jodit 4.8.3 → 4.8.5
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/.nvmrc +0 -1
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.8.
|
|
4
|
+
* Version: v4.8.5
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -17944,10 +17944,11 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
17944
17944
|
super.destruct();
|
|
17945
17945
|
}
|
|
17946
17946
|
constructor(jodit){
|
|
17947
|
-
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change
|
|
17947
|
+
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize ' + 'selectionchange changeSelection focus afterSetMode touchstart focus blur');
|
|
17948
17948
|
}
|
|
17949
17949
|
}
|
|
17950
17950
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17951
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':afterInit'),
|
|
17951
17952
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
17952
17953
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
17953
17954
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
@@ -19128,11 +19129,14 @@ const map = {};
|
|
|
19128
19129
|
editor.e.on('setHeight.size', this.__setHeight).on('setWidth.size', this.__setWidth).on('afterInit.size changePlace.size', this.__initialize, {
|
|
19129
19130
|
top: true
|
|
19130
19131
|
}).on(editor.ow, 'load.size', this.__resizeWorkspaces).on('afterInit.size resize.size afterUpdateToolbar.size ' + 'scroll.size afterResize.size', this.__resizeWorkspaces).on('toggleFullSize.size toggleToolbar.size', this.__resizeWorkspaceImd);
|
|
19131
|
-
this.
|
|
19132
|
+
this.__immediateInitialize();
|
|
19132
19133
|
}
|
|
19133
19134
|
/**
|
|
19134
19135
|
* Set editor size by options
|
|
19135
19136
|
*/ __initialize() {
|
|
19137
|
+
this.__immediateInitialize();
|
|
19138
|
+
}
|
|
19139
|
+
__immediateInitialize() {
|
|
19136
19140
|
const { j } = this;
|
|
19137
19141
|
if (j.o.inline) {
|
|
19138
19142
|
return;
|
|
@@ -19653,7 +19657,7 @@ class TextAreaEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_I
|
|
|
19653
19657
|
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "autosize", this.j.async.debounce(()=>{
|
|
19654
19658
|
this.instance.style.height = 'auto';
|
|
19655
19659
|
this.instance.style.height = this.instance.scrollHeight + 'px';
|
|
19656
|
-
}, this.j.defaultTimeout));
|
|
19660
|
+
}, this.j.defaultTimeout, true));
|
|
19657
19661
|
}
|
|
19658
19662
|
}
|
|
19659
19663
|
|
|
@@ -34751,7 +34755,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34751
34755
|
* ```
|
|
34752
34756
|
* @packageDocumentation
|
|
34753
34757
|
* @module constants
|
|
34754
|
-
*/ const APP_VERSION = "4.8.
|
|
34758
|
+
*/ const APP_VERSION = "4.8.5";
|
|
34755
34759
|
// prettier-ignore
|
|
34756
34760
|
const ES = "es2015";
|
|
34757
34761
|
const IS_ES_MODERN = true;
|
|
@@ -39803,21 +39807,18 @@ class AceEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_IMPORT
|
|
|
39803
39807
|
onResize();
|
|
39804
39808
|
this.onReady();
|
|
39805
39809
|
};
|
|
39806
|
-
|
|
39807
|
-
if (editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SPLIT) {
|
|
39810
|
+
const initAceEditor = ()=>{
|
|
39811
|
+
if (editor.isInDestruct || editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SPLIT) {
|
|
39808
39812
|
return;
|
|
39809
39813
|
}
|
|
39810
39814
|
this.fromWYSIWYG();
|
|
39811
39815
|
tryInitAceEditor();
|
|
39812
|
-
}
|
|
39813
|
-
|
|
39816
|
+
};
|
|
39817
|
+
editor.e.on('afterSetMode', initAceEditor);
|
|
39818
|
+
initAceEditor();
|
|
39814
39819
|
// global add ace editor in browser
|
|
39815
39820
|
if (!this.aceExists()) {
|
|
39816
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(()=>
|
|
39817
|
-
if (!editor.isInDestruct) {
|
|
39818
|
-
tryInitAceEditor();
|
|
39819
|
-
}
|
|
39820
|
-
}).catch(()=>null);
|
|
39821
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(()=>null);
|
|
39821
39822
|
}
|
|
39822
39823
|
}
|
|
39823
39824
|
destruct() {
|