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/es2021.en/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
|
*/
|
|
@@ -16983,10 +16983,11 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
16983
16983
|
super.destruct();
|
|
16984
16984
|
}
|
|
16985
16985
|
constructor(jodit){
|
|
16986
|
-
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change
|
|
16986
|
+
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');
|
|
16987
16987
|
}
|
|
16988
16988
|
}
|
|
16989
16989
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
16990
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':afterInit'),
|
|
16990
16991
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
16991
16992
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
16992
16993
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
@@ -18133,11 +18134,14 @@ const map = {};
|
|
|
18133
18134
|
editor.e.on('setHeight.size', this.__setHeight).on('setWidth.size', this.__setWidth).on('afterInit.size changePlace.size', this.__initialize, {
|
|
18134
18135
|
top: true
|
|
18135
18136
|
}).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);
|
|
18136
|
-
this.
|
|
18137
|
+
this.__immediateInitialize();
|
|
18137
18138
|
}
|
|
18138
18139
|
/**
|
|
18139
18140
|
* Set editor size by options
|
|
18140
18141
|
*/ __initialize() {
|
|
18142
|
+
this.__immediateInitialize();
|
|
18143
|
+
}
|
|
18144
|
+
__immediateInitialize() {
|
|
18141
18145
|
const { j } = this;
|
|
18142
18146
|
if (j.o.inline) {
|
|
18143
18147
|
return;
|
|
@@ -18622,7 +18626,7 @@ class TextAreaEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_I
|
|
|
18622
18626
|
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "autosize", this.j.async.debounce(()=>{
|
|
18623
18627
|
this.instance.style.height = 'auto';
|
|
18624
18628
|
this.instance.style.height = this.instance.scrollHeight + 'px';
|
|
18625
|
-
}, this.j.defaultTimeout));
|
|
18629
|
+
}, this.j.defaultTimeout, true));
|
|
18626
18630
|
}
|
|
18627
18631
|
}
|
|
18628
18632
|
|
|
@@ -33166,7 +33170,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33166
33170
|
* ```
|
|
33167
33171
|
* @packageDocumentation
|
|
33168
33172
|
* @module constants
|
|
33169
|
-
*/ const APP_VERSION = "4.8.
|
|
33173
|
+
*/ const APP_VERSION = "4.8.5";
|
|
33170
33174
|
// prettier-ignore
|
|
33171
33175
|
const ES = "es2021";
|
|
33172
33176
|
const IS_ES_MODERN = true;
|
|
@@ -37926,21 +37930,18 @@ class AceEditor extends jodit_plugins_source_editor_sourceEditor__WEBPACK_IMPORT
|
|
|
37926
37930
|
onResize();
|
|
37927
37931
|
this.onReady();
|
|
37928
37932
|
};
|
|
37929
|
-
|
|
37930
|
-
if (editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SPLIT) {
|
|
37933
|
+
const initAceEditor = ()=>{
|
|
37934
|
+
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) {
|
|
37931
37935
|
return;
|
|
37932
37936
|
}
|
|
37933
37937
|
this.fromWYSIWYG();
|
|
37934
37938
|
tryInitAceEditor();
|
|
37935
|
-
}
|
|
37936
|
-
|
|
37939
|
+
};
|
|
37940
|
+
editor.e.on('afterSetMode', initAceEditor);
|
|
37941
|
+
initAceEditor();
|
|
37937
37942
|
// global add ace editor in browser
|
|
37938
37943
|
if (!this.aceExists()) {
|
|
37939
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(()=>
|
|
37940
|
-
if (!editor.isInDestruct) {
|
|
37941
|
-
tryInitAceEditor();
|
|
37942
|
-
}
|
|
37943
|
-
}).catch(()=>null);
|
|
37944
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(()=>null);
|
|
37944
37945
|
}
|
|
37945
37946
|
}
|
|
37946
37947
|
destruct() {
|