This commit is contained in:
杜恒
2021-03-26 15:27:06 +08:00
parent 05a76e265f
commit 93bfd92d7a
21 changed files with 195 additions and 176 deletions

View File

@@ -13516,7 +13516,7 @@
if (selection === '') this._setCursor(cm, cursor + str.length + 1);
cm.focus();
}
handleFullScreen(cm, el) {
handleFullScreen(el) {
el.toggleClass('active');
$('body').toggleClass('fullscreen');
$('.cm-container').toggleClass('fullscreen');
@@ -13943,6 +13943,7 @@
data: formData,
contentType: false,
processData: false,
dataType: 'json',
xhr: () => {
const xhr = $.ajaxSettings.xhr();
if (!xhr.upload) return;
@@ -14038,7 +14039,7 @@
e.preventDefault();
switch (item.type) {
case 'fullScreen':
super.handleFullScreen(this.cm, el);
super.handleFullScreen(el);
break;
case 'publish':
super.handlePublish();

View File

@@ -51,7 +51,7 @@ class JoeAction {
if (selection === '') this._setCursor(cm, cursor + str.length + 1);
cm.focus();
}
handleFullScreen(cm, el) {
handleFullScreen(el) {
el.toggleClass('active');
$('body').toggleClass('fullscreen');
$('.cm-container').toggleClass('fullscreen');
@@ -478,6 +478,7 @@ class Joe extends JoeAction {
data: formData,
contentType: false,
processData: false,
dataType: 'json',
xhr: () => {
const xhr = $.ajaxSettings.xhr();
if (!xhr.upload) return;
@@ -573,7 +574,7 @@ class Joe extends JoeAction {
e.preventDefault();
switch (item.type) {
case 'fullScreen':
super.handleFullScreen(this.cm, el);
super.handleFullScreen(el);
break;
case 'publish':
super.handlePublish();