jodit 4.0.14 → 4.0.16
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 +10 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +12 -6
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +12 -6
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.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 +2 -2
- package/es2021/jodit.js +12 -6
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +12 -6
- package/es2021.en/jodit.min.js +2 -2
- 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 +12 -6
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- 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/esm/core/constants.js +1 -1
- package/esm/jodit.js +10 -4
- package/esm/modules/toolbar/button/button.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/package.json +1 -1
- package/types/modules/toolbar/button/button.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
package/es2021/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.
|
|
4
|
+
* Version: v4.0.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1692,7 +1692,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1692
1692
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1693
1693
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1694
1694
|
*/
|
|
1695
|
-
const APP_VERSION = "4.0.
|
|
1695
|
+
const APP_VERSION = "4.0.16";
|
|
1696
1696
|
// prettier-ignore
|
|
1697
1697
|
const ES = "es2021";
|
|
1698
1698
|
const IS_ES_MODERN = true;
|
|
@@ -16919,6 +16919,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16919
16919
|
this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_2__.Selection(this);
|
|
16920
16920
|
const beforeInitHookResult = this.beforeInitHook();
|
|
16921
16921
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
|
|
16922
|
+
if (this.isInDestruct) {
|
|
16923
|
+
return;
|
|
16924
|
+
}
|
|
16922
16925
|
this.e.fire('beforeInit', this);
|
|
16923
16926
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.__init(this);
|
|
16924
16927
|
this.e.fire('afterPluginSystemInit', this);
|
|
@@ -16930,6 +16933,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16930
16933
|
const addPlaceResult = this.addPlace(element, options);
|
|
16931
16934
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .instances */ .as[this.id] = this;
|
|
16932
16935
|
const init = () => {
|
|
16936
|
+
if (this.isInDestruct) {
|
|
16937
|
+
return;
|
|
16938
|
+
}
|
|
16933
16939
|
if (this.e) {
|
|
16934
16940
|
this.e.fire('afterInit', this);
|
|
16935
16941
|
}
|
|
@@ -17205,10 +17211,6 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17205
17211
|
}
|
|
17206
17212
|
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_2__.STATUSES.beforeDestruct);
|
|
17207
17213
|
this.__elementToPlace.clear();
|
|
17208
|
-
if (!this.editor) {
|
|
17209
|
-
return;
|
|
17210
|
-
}
|
|
17211
|
-
const buffer = this.getEditorValue();
|
|
17212
17214
|
this.storage.clear();
|
|
17213
17215
|
this.buffer.clear();
|
|
17214
17216
|
this.commands.clear();
|
|
@@ -17217,7 +17219,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17217
17219
|
this.e.off(this.ow);
|
|
17218
17220
|
this.e.off(this.od);
|
|
17219
17221
|
this.e.off(this.od.body);
|
|
17222
|
+
const buffer = this.editor ? this.getEditorValue() : '';
|
|
17220
17223
|
this.places.forEach(({ container, workplace, statusbar, element, iframe, editor, history }) => {
|
|
17224
|
+
if (!element) {
|
|
17225
|
+
return;
|
|
17226
|
+
}
|
|
17221
17227
|
if (element !== container) {
|
|
17222
17228
|
if (element.hasAttribute(__defaultStyleDisplayKey)) {
|
|
17223
17229
|
const display = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultStyleDisplayKey);
|