jodit-pro 4.2.23 → 4.2.24
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/es2015/jodit.css +4 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +95 -57
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +4 -2
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +95 -57
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +4 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +95 -57
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +4 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +95 -57
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +11 -6
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +98 -57
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/package.json +1 -1
package/es2018/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.24
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2450,7 +2450,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2450
2450
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2451
2451
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2452
2452
|
*/
|
|
2453
|
-
const APP_VERSION = "4.2.
|
|
2453
|
+
const APP_VERSION = "4.2.24";
|
|
2454
2454
|
// prettier-ignore
|
|
2455
2455
|
const ES = "es2018";
|
|
2456
2456
|
const IS_ES_MODERN = true;
|
|
@@ -2612,8 +2612,8 @@ const KEY_ALIASES = {
|
|
|
2612
2612
|
option: 'alt',
|
|
2613
2613
|
return: 'enter',
|
|
2614
2614
|
right: 'arrowright',
|
|
2615
|
-
space: '
|
|
2616
|
-
spacebar: '
|
|
2615
|
+
space: 'space',
|
|
2616
|
+
spacebar: 'space',
|
|
2617
2617
|
up: 'arrowup',
|
|
2618
2618
|
win: 'meta',
|
|
2619
2619
|
windows: 'meta'
|
|
@@ -3575,11 +3575,17 @@ class Dom {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
|
|
3577
3577
|
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isHTML */ .AH)(newTagName)) {
|
|
3578
|
+
void 0;
|
|
3578
3579
|
newTagName = create.fromHTML(newTagName);
|
|
3579
3580
|
}
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3581
|
+
let tag;
|
|
3582
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)) {
|
|
3583
|
+
void 0;
|
|
3584
|
+
tag = create.element(newTagName);
|
|
3585
|
+
}
|
|
3586
|
+
else {
|
|
3587
|
+
tag = newTagName;
|
|
3588
|
+
}
|
|
3583
3589
|
if (!notMoveContent) {
|
|
3584
3590
|
while (elm.firstChild) {
|
|
3585
3591
|
tag.appendChild(elm.firstChild);
|
|
@@ -5232,7 +5238,8 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5232
5238
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
5233
5239
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5234
5240
|
if (!data[key]) {
|
|
5235
|
-
let c = view.c
|
|
5241
|
+
let c = view.c;
|
|
5242
|
+
let body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
|
|
5236
5243
|
? jodit.o.shadowRoot
|
|
5237
5244
|
: jodit.od.body;
|
|
5238
5245
|
if (createInsideEditor &&
|
|
@@ -5252,6 +5259,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5252
5259
|
body.appendChild(box);
|
|
5253
5260
|
data[key] = box;
|
|
5254
5261
|
jodit.hookStatus('beforeDestruct', () => {
|
|
5262
|
+
view.events.off(box);
|
|
5255
5263
|
_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(box);
|
|
5256
5264
|
delete data[key];
|
|
5257
5265
|
if (Object.keys(data).length) {
|
|
@@ -5259,6 +5267,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5259
5267
|
}
|
|
5260
5268
|
});
|
|
5261
5269
|
boxes.set(jodit, data);
|
|
5270
|
+
view.events.fire('getContainer', box);
|
|
5262
5271
|
}
|
|
5263
5272
|
data[key].classList.remove('jodit_theme_default', 'jodit_theme_dark');
|
|
5264
5273
|
data[key].classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
@@ -7059,7 +7068,8 @@ function normalizeKeyAliases(keys) {
|
|
|
7059
7068
|
ctrl: 2,
|
|
7060
7069
|
control: 2,
|
|
7061
7070
|
alt: 3,
|
|
7062
|
-
shift: 4
|
|
7071
|
+
shift: 4,
|
|
7072
|
+
space: 5
|
|
7063
7073
|
};
|
|
7064
7074
|
return keys
|
|
7065
7075
|
.replace(/\+\+/g, '+add')
|
|
@@ -14137,15 +14147,21 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14137
14147
|
if (!view.o.textIcons &&
|
|
14138
14148
|
view.o.showTooltip &&
|
|
14139
14149
|
!view.o.useNativeTooltip) {
|
|
14150
|
+
this.j.e.on('getContainer', (box) => {
|
|
14151
|
+
this.__onAttach(box);
|
|
14152
|
+
});
|
|
14140
14153
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14141
|
-
|
|
14142
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14143
|
-
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14144
|
-
capture: true
|
|
14145
|
-
});
|
|
14154
|
+
this.__onAttach(this.j.container);
|
|
14146
14155
|
});
|
|
14147
14156
|
}
|
|
14148
14157
|
}
|
|
14158
|
+
__onAttach(container) {
|
|
14159
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14160
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14161
|
+
this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14162
|
+
capture: true
|
|
14163
|
+
});
|
|
14164
|
+
}
|
|
14149
14165
|
__addListenersOnEnter() {
|
|
14150
14166
|
if (this.__listenClose) {
|
|
14151
14167
|
return;
|
|
@@ -23333,46 +23349,39 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23333
23349
|
removeRow(table, rowIndex) {
|
|
23334
23350
|
return Table.__removeRow(table, rowIndex);
|
|
23335
23351
|
}
|
|
23336
|
-
|
|
23352
|
+
/**
|
|
23353
|
+
* Insert column before / after all the columns containing the selected cells
|
|
23354
|
+
*/
|
|
23355
|
+
appendColumn(table, selectedCell, insertAfter = true) {
|
|
23337
23356
|
const box = Table.__formalMatrix(table);
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
|
|
23342
|
-
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
else {
|
|
23353
|
-
td.parentNode && td.parentNode.appendChild(cell);
|
|
23354
|
-
}
|
|
23355
|
-
added = true;
|
|
23357
|
+
if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isCell(selectedCell.previousElementSibling)) {
|
|
23358
|
+
return this.appendColumn(table, selectedCell.previousElementSibling, true);
|
|
23359
|
+
}
|
|
23360
|
+
const columnIndex = insertAfter
|
|
23361
|
+
? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1)
|
|
23362
|
+
: selectedCell.cellIndex;
|
|
23363
|
+
const newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
|
|
23364
|
+
for (let i = 0; i < box.length;) {
|
|
23365
|
+
const cells = box[i];
|
|
23366
|
+
if (cells[columnIndex] !== cells[newColumnIndex] ||
|
|
23367
|
+
columnIndex === newColumnIndex) {
|
|
23368
|
+
const cell = this.j.createInside.element('td');
|
|
23369
|
+
if (insertAfter) {
|
|
23370
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.after(cells[columnIndex], cell);
|
|
23356
23371
|
}
|
|
23357
|
-
|
|
23358
|
-
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
|
|
23362
|
-
added = true;
|
|
23372
|
+
else {
|
|
23373
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(cells[columnIndex], cell);
|
|
23374
|
+
}
|
|
23375
|
+
if (cells[columnIndex].rowSpan > 1) {
|
|
23376
|
+
cell.rowSpan = cells[columnIndex].rowSpan;
|
|
23363
23377
|
}
|
|
23364
23378
|
}
|
|
23365
|
-
|
|
23366
|
-
|
|
23379
|
+
else {
|
|
23380
|
+
cells[columnIndex].colSpan += 1;
|
|
23367
23381
|
}
|
|
23382
|
+
i += cells[columnIndex].rowSpan || 1;
|
|
23368
23383
|
}
|
|
23369
23384
|
}
|
|
23370
|
-
/**
|
|
23371
|
-
* Insert column before / after all the columns containing the selected cells
|
|
23372
|
-
*/
|
|
23373
|
-
appendColumn(table, j, after) {
|
|
23374
|
-
return Table.__appendColumn(table, j, after, this.j.createInside);
|
|
23375
|
-
}
|
|
23376
23385
|
static __removeColumn(table, j) {
|
|
23377
23386
|
const box = Table.__formalMatrix(table);
|
|
23378
23387
|
let dec;
|
|
@@ -23590,7 +23599,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23590
23599
|
alreadyMerged.delete(first);
|
|
23591
23600
|
Table.__unmark(__marked);
|
|
23592
23601
|
Table.__normalizeTable(table);
|
|
23593
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(
|
|
23602
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(tr => {
|
|
23594
23603
|
if (!tr.cells.length) {
|
|
23595
23604
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(tr);
|
|
23596
23605
|
}
|
|
@@ -23599,7 +23608,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23599
23608
|
}
|
|
23600
23609
|
}
|
|
23601
23610
|
/**
|
|
23602
|
-
* It combines all
|
|
23611
|
+
* It combines all the selected cells into one. The contents of the cells will also be combined
|
|
23603
23612
|
*/
|
|
23604
23613
|
mergeSelected(table) {
|
|
23605
23614
|
return Table.__mergeSelected(table, this.j);
|
|
@@ -25955,7 +25964,9 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
25955
25964
|
editor.e
|
|
25956
25965
|
.off(editor.editor, '.' + ns)
|
|
25957
25966
|
.off(editor.container, '.' + ns)
|
|
25967
|
+
.off('.' + ns)
|
|
25958
25968
|
.on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
|
|
25969
|
+
.on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce)
|
|
25959
25970
|
.on(editor.editor, 'click' + '.' + ns, this.__hide)
|
|
25960
25971
|
.on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
|
|
25961
25972
|
.on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
|
|
@@ -26043,7 +26054,8 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
26043
26054
|
jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.__line);
|
|
26044
26055
|
this.j.e
|
|
26045
26056
|
.off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
|
|
26046
|
-
.off(this.j.container, '.' + ns)
|
|
26057
|
+
.off(this.j.container, '.' + ns)
|
|
26058
|
+
.off('.' + ns);
|
|
26047
26059
|
}
|
|
26048
26060
|
}
|
|
26049
26061
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -28230,13 +28242,21 @@ function allowAttributes(jodit, nodeElm, hadEffect, allow) {
|
|
|
28230
28242
|
*/
|
|
28231
28243
|
|
|
28232
28244
|
|
|
28245
|
+
const TABLE_CONTAINER_TAGS = new Set([
|
|
28246
|
+
'table',
|
|
28247
|
+
'tbody',
|
|
28248
|
+
'thead',
|
|
28249
|
+
'tfoot',
|
|
28250
|
+
'tr'
|
|
28251
|
+
]);
|
|
28233
28252
|
/**
|
|
28234
28253
|
* @private
|
|
28235
28254
|
*/
|
|
28236
28255
|
function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
|
|
28237
28256
|
if (jodit.o.cleanHTML.fillEmptyParagraph &&
|
|
28238
28257
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(nodeElm) &&
|
|
28239
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)
|
|
28258
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) &&
|
|
28259
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(nodeElm, TABLE_CONTAINER_TAGS)) {
|
|
28240
28260
|
const br = jodit.createInside.element('br');
|
|
28241
28261
|
nodeElm.appendChild(br);
|
|
28242
28262
|
return true;
|
|
@@ -31467,7 +31487,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31467
31487
|
constructor() {
|
|
31468
31488
|
super(...arguments);
|
|
31469
31489
|
this.onKeyPress = (event) => {
|
|
31470
|
-
const special = this.specialKeys[event.which]
|
|
31490
|
+
const special = this.specialKeys[event.which];
|
|
31491
|
+
const character = (event.key || String.fromCharCode(event.which)).toLowerCase();
|
|
31471
31492
|
const modif = [special || character];
|
|
31472
31493
|
['alt', 'ctrl', 'shift', 'meta'].forEach(specialKey => {
|
|
31473
31494
|
if (event[specialKey + 'Key'] && special !== specialKey) {
|
|
@@ -31561,7 +31582,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31561
31582
|
}
|
|
31562
31583
|
})
|
|
31563
31584
|
.on('keydown.hotkeys', (event) => {
|
|
31564
|
-
const shortcut = this.onKeyPress(event)
|
|
31585
|
+
const shortcut = this.onKeyPress(event);
|
|
31586
|
+
const stop = {
|
|
31565
31587
|
shouldStop: true
|
|
31566
31588
|
};
|
|
31567
31589
|
const resultOfFire = this.j.e.fire(shortcut + '.hotkey', event.type, stop);
|
|
@@ -39914,7 +39936,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
39914
39936
|
break;
|
|
39915
39937
|
case 'addcolumnafter':
|
|
39916
39938
|
case 'addcolumnbefore':
|
|
39917
|
-
this.__tableModule.appendColumn(table, cell
|
|
39939
|
+
this.__tableModule.appendColumn(table, cell, command === 'addcolumnafter');
|
|
39918
39940
|
break;
|
|
39919
39941
|
case 'addrowafter':
|
|
39920
39942
|
case 'addrowbefore':
|
|
@@ -43273,6 +43295,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43273
43295
|
}
|
|
43274
43296
|
},
|
|
43275
43297
|
popup: (editor, current, close, button) => {
|
|
43298
|
+
editor.editor.normalize();
|
|
43299
|
+
const snapshot = editor.history.snapshot.make();
|
|
43276
43300
|
const control = button.control;
|
|
43277
43301
|
const default_rows_count = control.data && control.data.rows ? control.data.rows : 10, default_cols_count = control.data && control.data.cols ? control.data.cols : 10;
|
|
43278
43302
|
const generateExtraClasses = () => {
|
|
@@ -43365,10 +43389,24 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43365
43389
|
table.classList.add(className);
|
|
43366
43390
|
});
|
|
43367
43391
|
});
|
|
43368
|
-
|
|
43369
|
-
|
|
43392
|
+
editor.s.restore();
|
|
43393
|
+
editor.s.removeMarkers();
|
|
43394
|
+
editor.editor.normalize();
|
|
43395
|
+
editor.history.snapshot.restore(snapshot);
|
|
43396
|
+
const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.furthest(editor.s.current(), jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
43397
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isEmpty(block)) {
|
|
43398
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.replace(block, table, undefined, false, true);
|
|
43399
|
+
}
|
|
43400
|
+
else {
|
|
43401
|
+
if (block) {
|
|
43402
|
+
const fake = crt.text('\n');
|
|
43403
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
43404
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
43405
|
+
}
|
|
43406
|
+
else {
|
|
43407
|
+
editor.s.insertNode(table, false);
|
|
43408
|
+
}
|
|
43370
43409
|
}
|
|
43371
|
-
editor.s.insertNode(table, false);
|
|
43372
43410
|
if (first_td) {
|
|
43373
43411
|
editor.s.setCursorIn(first_td);
|
|
43374
43412
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|