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/es2021/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.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -17718,10 +17718,11 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
17718
17718
|
super.destruct();
|
|
17719
17719
|
}
|
|
17720
17720
|
constructor(jodit){
|
|
17721
|
-
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change
|
|
17721
|
+
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');
|
|
17722
17722
|
}
|
|
17723
17723
|
}
|
|
17724
17724
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17725
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':afterInit'),
|
|
17725
17726
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
17726
17727
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
17727
17728
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
@@ -18896,11 +18897,14 @@ const map = {};
|
|
|
18896
18897
|
editor.e.on('setHeight.size', this.__setHeight).on('setWidth.size', this.__setWidth).on('afterInit.size changePlace.size', this.__initialize, {
|
|
18897
18898
|
top: true
|
|
18898
18899
|
}).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);
|
|
18899
|
-
this.
|
|
18900
|
+
this.__immediateInitialize();
|
|
18900
18901
|
}
|
|
18901
18902
|
/**
|
|
18902
18903
|
* Set editor size by options
|
|
18903
18904
|
*/ __initialize() {
|
|
18905
|
+
this.__immediateInitialize();
|
|
18906
|
+
}
|
|
18907
|
+
__immediateInitialize() {
|
|
18904
18908
|
const { j } = this;
|
|
18905
18909
|
if (j.o.inline) {
|
|
18906
18910
|
return;
|
|
@@ -19420,7 +19424,7 @@ class TextAreaEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_I
|
|
|
19420
19424
|
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "autosize", this.j.async.debounce(()=>{
|
|
19421
19425
|
this.instance.style.height = 'auto';
|
|
19422
19426
|
this.instance.style.height = this.instance.scrollHeight + 'px';
|
|
19423
|
-
}, this.j.defaultTimeout));
|
|
19427
|
+
}, this.j.defaultTimeout, true));
|
|
19424
19428
|
}
|
|
19425
19429
|
}
|
|
19426
19430
|
|
|
@@ -34419,7 +34423,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34419
34423
|
* ```
|
|
34420
34424
|
* @packageDocumentation
|
|
34421
34425
|
* @module constants
|
|
34422
|
-
*/ const APP_VERSION = "4.8.
|
|
34426
|
+
*/ const APP_VERSION = "4.8.4";
|
|
34423
34427
|
// prettier-ignore
|
|
34424
34428
|
const ES = "es2021";
|
|
34425
34429
|
const IS_ES_MODERN = true;
|
|
@@ -39430,21 +39434,18 @@ class AceEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_IMPORT
|
|
|
39430
39434
|
onResize();
|
|
39431
39435
|
this.onReady();
|
|
39432
39436
|
};
|
|
39433
|
-
|
|
39434
|
-
if (editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SPLIT) {
|
|
39437
|
+
const initAceEditor = ()=>{
|
|
39438
|
+
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) {
|
|
39435
39439
|
return;
|
|
39436
39440
|
}
|
|
39437
39441
|
this.fromWYSIWYG();
|
|
39438
39442
|
tryInitAceEditor();
|
|
39439
|
-
}
|
|
39440
|
-
|
|
39443
|
+
};
|
|
39444
|
+
editor.e.on('afterSetMode', initAceEditor);
|
|
39445
|
+
initAceEditor();
|
|
39441
39446
|
// global add ace editor in browser
|
|
39442
39447
|
if (!this.aceExists()) {
|
|
39443
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(()=>
|
|
39444
|
-
if (!editor.isInDestruct) {
|
|
39445
|
-
tryInitAceEditor();
|
|
39446
|
-
}
|
|
39447
|
-
}).catch(()=>null);
|
|
39448
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(()=>null);
|
|
39448
39449
|
}
|
|
39449
39450
|
}
|
|
39450
39451
|
destruct() {
|