jodit 4.8.3 → 4.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +4 -4
- package/es2015/jodit.js +15 -14
- package/es2015/jodit.min.js +4 -4
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +4 -4
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +4 -4
- package/es2021/jodit.js +15 -14
- package/es2021/jodit.min.js +4 -4
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +4 -4
- package/es2021.en/jodit.js +15 -14
- package/es2021.en/jodit.min.js +4 -4
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +18 -14
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/modules/toolbar/collection/collection.js +3 -2
- package/esm/plugins/size/size.d.ts +1 -0
- package/esm/plugins/size/size.js +4 -1
- package/esm/plugins/source/editor/engines/ace.js +8 -10
- package/esm/plugins/source/editor/engines/area.js +1 -1
- package/package.json +1 -1
- package/types/plugins/size/size.d.ts +1 -0
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED
package/es5/polyfills.min.js
CHANGED
package/esm/core/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.8.
|
|
6
|
+
export const APP_VERSION = "4.8.4";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -13,7 +13,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
import { autobind, component, debounce, hook } from "../../../core/decorators/index.js";
|
|
16
|
+
import { autobind, component, debounce, hook, watch } from "../../../core/decorators/index.js";
|
|
17
17
|
import { error } from "../../../core/helpers/utils/error/error.js";
|
|
18
18
|
import { UIList } from "../../../core/ui/index.js";
|
|
19
19
|
import { makeButton, makeSelect } from "../factory.js";
|
|
@@ -72,7 +72,7 @@ let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
|
72
72
|
}
|
|
73
73
|
constructor(jodit) {
|
|
74
74
|
super(jodit);
|
|
75
|
-
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change
|
|
75
|
+
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize ' +
|
|
76
76
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
77
77
|
}
|
|
78
78
|
__initEvents() {
|
|
@@ -110,6 +110,7 @@ let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
__decorate([
|
|
113
|
+
watch(':afterInit'),
|
|
113
114
|
autobind
|
|
114
115
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
115
116
|
__decorate([
|
package/esm/plugins/size/size.js
CHANGED
|
@@ -41,12 +41,15 @@ export class size extends Plugin {
|
|
|
41
41
|
.on('afterInit.size resize.size afterUpdateToolbar.size ' +
|
|
42
42
|
'scroll.size afterResize.size', this.__resizeWorkspaces)
|
|
43
43
|
.on('toggleFullSize.size toggleToolbar.size', this.__resizeWorkspaceImd);
|
|
44
|
-
this.
|
|
44
|
+
this.__immediateInitialize();
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Set editor size by options
|
|
48
48
|
*/
|
|
49
49
|
__initialize() {
|
|
50
|
+
this.__immediateInitialize();
|
|
51
|
+
}
|
|
52
|
+
__immediateInitialize() {
|
|
50
53
|
const { j } = this;
|
|
51
54
|
if (j.o.inline) {
|
|
52
55
|
return;
|
|
@@ -121,23 +121,21 @@ export class AceEditor extends SourceEditor {
|
|
|
121
121
|
onResize();
|
|
122
122
|
this.onReady();
|
|
123
123
|
};
|
|
124
|
-
|
|
125
|
-
if (editor.
|
|
126
|
-
editor.
|
|
124
|
+
const initAceEditor = () => {
|
|
125
|
+
if (editor.isInDestruct ||
|
|
126
|
+
(editor.getRealMode() !== constants.MODE_SOURCE &&
|
|
127
|
+
editor.getMode() !== constants.MODE_SPLIT)) {
|
|
127
128
|
return;
|
|
128
129
|
}
|
|
129
130
|
this.fromWYSIWYG();
|
|
130
131
|
tryInitAceEditor();
|
|
131
|
-
}
|
|
132
|
-
|
|
132
|
+
};
|
|
133
|
+
editor.e.on('afterSetMode', initAceEditor);
|
|
134
|
+
initAceEditor();
|
|
133
135
|
// global add ace editor in browser
|
|
134
136
|
if (!this.aceExists()) {
|
|
135
137
|
loadNext(editor, editor.o.sourceEditorCDNUrlsJS)
|
|
136
|
-
.then(
|
|
137
|
-
if (!editor.isInDestruct) {
|
|
138
|
-
tryInitAceEditor();
|
|
139
|
-
}
|
|
140
|
-
})
|
|
138
|
+
.then(initAceEditor)
|
|
141
139
|
.catch(() => null);
|
|
142
140
|
}
|
|
143
141
|
}
|
|
@@ -12,7 +12,7 @@ export class TextAreaEditor extends SourceEditor {
|
|
|
12
12
|
this.autosize = this.j.async.debounce(() => {
|
|
13
13
|
this.instance.style.height = 'auto';
|
|
14
14
|
this.instance.style.height = this.instance.scrollHeight + 'px';
|
|
15
|
-
}, this.j.defaultTimeout);
|
|
15
|
+
}, this.j.defaultTimeout, true);
|
|
16
16
|
}
|
|
17
17
|
init(editor) {
|
|
18
18
|
this.instance = editor.c.element('textarea', {
|
package/package.json
CHANGED