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/es2021/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
|
*/
|
|
@@ -2451,7 +2451,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2451
2451
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2452
2452
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2453
2453
|
*/
|
|
2454
|
-
const APP_VERSION = "4.2.
|
|
2454
|
+
const APP_VERSION = "4.2.24";
|
|
2455
2455
|
// prettier-ignore
|
|
2456
2456
|
const ES = "es2021";
|
|
2457
2457
|
const IS_ES_MODERN = true;
|
|
@@ -2613,8 +2613,8 @@ const KEY_ALIASES = {
|
|
|
2613
2613
|
option: 'alt',
|
|
2614
2614
|
return: 'enter',
|
|
2615
2615
|
right: 'arrowright',
|
|
2616
|
-
space: '
|
|
2617
|
-
spacebar: '
|
|
2616
|
+
space: 'space',
|
|
2617
|
+
spacebar: 'space',
|
|
2618
2618
|
up: 'arrowup',
|
|
2619
2619
|
win: 'meta',
|
|
2620
2620
|
windows: 'meta'
|
|
@@ -3572,11 +3572,17 @@ class Dom {
|
|
|
3572
3572
|
}
|
|
3573
3573
|
static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
|
|
3574
3574
|
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isHTML */ .AH)(newTagName)) {
|
|
3575
|
+
void 0;
|
|
3575
3576
|
newTagName = create.fromHTML(newTagName);
|
|
3576
3577
|
}
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3578
|
+
let tag;
|
|
3579
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)) {
|
|
3580
|
+
void 0;
|
|
3581
|
+
tag = create.element(newTagName);
|
|
3582
|
+
}
|
|
3583
|
+
else {
|
|
3584
|
+
tag = newTagName;
|
|
3585
|
+
}
|
|
3580
3586
|
if (!notMoveContent) {
|
|
3581
3587
|
while (elm.firstChild) {
|
|
3582
3588
|
tag.appendChild(elm.firstChild);
|
|
@@ -5217,7 +5223,8 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5217
5223
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
5218
5224
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5219
5225
|
if (!data[key]) {
|
|
5220
|
-
let c = view.c
|
|
5226
|
+
let c = view.c;
|
|
5227
|
+
let body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
|
|
5221
5228
|
? jodit.o.shadowRoot
|
|
5222
5229
|
: jodit.od.body;
|
|
5223
5230
|
if (createInsideEditor &&
|
|
@@ -5237,6 +5244,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5237
5244
|
body.appendChild(box);
|
|
5238
5245
|
data[key] = box;
|
|
5239
5246
|
jodit.hookStatus('beforeDestruct', () => {
|
|
5247
|
+
view.events.off(box);
|
|
5240
5248
|
_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(box);
|
|
5241
5249
|
delete data[key];
|
|
5242
5250
|
if (Object.keys(data).length) {
|
|
@@ -5244,6 +5252,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5244
5252
|
}
|
|
5245
5253
|
});
|
|
5246
5254
|
boxes.set(jodit, data);
|
|
5255
|
+
view.events.fire('getContainer', box);
|
|
5247
5256
|
}
|
|
5248
5257
|
data[key].classList.remove('jodit_theme_default', 'jodit_theme_dark');
|
|
5249
5258
|
data[key].classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
@@ -7043,7 +7052,8 @@ function normalizeKeyAliases(keys) {
|
|
|
7043
7052
|
ctrl: 2,
|
|
7044
7053
|
control: 2,
|
|
7045
7054
|
alt: 3,
|
|
7046
|
-
shift: 4
|
|
7055
|
+
shift: 4,
|
|
7056
|
+
space: 5
|
|
7047
7057
|
};
|
|
7048
7058
|
return keys
|
|
7049
7059
|
.replace(/\+\+/g, '+add')
|
|
@@ -14095,15 +14105,21 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14095
14105
|
if (!view.o.textIcons &&
|
|
14096
14106
|
view.o.showTooltip &&
|
|
14097
14107
|
!view.o.useNativeTooltip) {
|
|
14108
|
+
this.j.e.on('getContainer', (box) => {
|
|
14109
|
+
this.__onAttach(box);
|
|
14110
|
+
});
|
|
14098
14111
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14099
|
-
|
|
14100
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14101
|
-
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14102
|
-
capture: true
|
|
14103
|
-
});
|
|
14112
|
+
this.__onAttach(this.j.container);
|
|
14104
14113
|
});
|
|
14105
14114
|
}
|
|
14106
14115
|
}
|
|
14116
|
+
__onAttach(container) {
|
|
14117
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14118
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14119
|
+
this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14120
|
+
capture: true
|
|
14121
|
+
});
|
|
14122
|
+
}
|
|
14107
14123
|
__addListenersOnEnter() {
|
|
14108
14124
|
if (this.__listenClose) {
|
|
14109
14125
|
return;
|
|
@@ -23263,46 +23279,39 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23263
23279
|
removeRow(table, rowIndex) {
|
|
23264
23280
|
return Table.__removeRow(table, rowIndex);
|
|
23265
23281
|
}
|
|
23266
|
-
|
|
23282
|
+
/**
|
|
23283
|
+
* Insert column before / after all the columns containing the selected cells
|
|
23284
|
+
*/
|
|
23285
|
+
appendColumn(table, selectedCell, insertAfter = true) {
|
|
23267
23286
|
const box = Table.__formalMatrix(table);
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23281
|
-
|
|
23282
|
-
else {
|
|
23283
|
-
td.parentNode && td.parentNode.appendChild(cell);
|
|
23284
|
-
}
|
|
23285
|
-
added = true;
|
|
23287
|
+
if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isCell(selectedCell.previousElementSibling)) {
|
|
23288
|
+
return this.appendColumn(table, selectedCell.previousElementSibling, true);
|
|
23289
|
+
}
|
|
23290
|
+
const columnIndex = insertAfter
|
|
23291
|
+
? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1)
|
|
23292
|
+
: selectedCell.cellIndex;
|
|
23293
|
+
const newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
|
|
23294
|
+
for (let i = 0; i < box.length;) {
|
|
23295
|
+
const cells = box[i];
|
|
23296
|
+
if (cells[columnIndex] !== cells[newColumnIndex] ||
|
|
23297
|
+
columnIndex === newColumnIndex) {
|
|
23298
|
+
const cell = this.j.createInside.element('td');
|
|
23299
|
+
if (insertAfter) {
|
|
23300
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.after(cells[columnIndex], cell);
|
|
23286
23301
|
}
|
|
23287
|
-
|
|
23288
|
-
|
|
23289
|
-
|
|
23290
|
-
|
|
23291
|
-
|
|
23292
|
-
added = true;
|
|
23302
|
+
else {
|
|
23303
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(cells[columnIndex], cell);
|
|
23304
|
+
}
|
|
23305
|
+
if (cells[columnIndex].rowSpan > 1) {
|
|
23306
|
+
cell.rowSpan = cells[columnIndex].rowSpan;
|
|
23293
23307
|
}
|
|
23294
23308
|
}
|
|
23295
|
-
|
|
23296
|
-
|
|
23309
|
+
else {
|
|
23310
|
+
cells[columnIndex].colSpan += 1;
|
|
23297
23311
|
}
|
|
23312
|
+
i += cells[columnIndex].rowSpan || 1;
|
|
23298
23313
|
}
|
|
23299
23314
|
}
|
|
23300
|
-
/**
|
|
23301
|
-
* Insert column before / after all the columns containing the selected cells
|
|
23302
|
-
*/
|
|
23303
|
-
appendColumn(table, j, after) {
|
|
23304
|
-
return Table.__appendColumn(table, j, after, this.j.createInside);
|
|
23305
|
-
}
|
|
23306
23315
|
static __removeColumn(table, j) {
|
|
23307
23316
|
const box = Table.__formalMatrix(table);
|
|
23308
23317
|
let dec;
|
|
@@ -23520,7 +23529,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23520
23529
|
alreadyMerged.delete(first);
|
|
23521
23530
|
Table.__unmark(__marked);
|
|
23522
23531
|
Table.__normalizeTable(table);
|
|
23523
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(
|
|
23532
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(tr => {
|
|
23524
23533
|
if (!tr.cells.length) {
|
|
23525
23534
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(tr);
|
|
23526
23535
|
}
|
|
@@ -23529,7 +23538,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23529
23538
|
}
|
|
23530
23539
|
}
|
|
23531
23540
|
/**
|
|
23532
|
-
* It combines all
|
|
23541
|
+
* It combines all the selected cells into one. The contents of the cells will also be combined
|
|
23533
23542
|
*/
|
|
23534
23543
|
mergeSelected(table) {
|
|
23535
23544
|
return Table.__mergeSelected(table, this.j);
|
|
@@ -25871,7 +25880,9 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
25871
25880
|
editor.e
|
|
25872
25881
|
.off(editor.editor, '.' + ns)
|
|
25873
25882
|
.off(editor.container, '.' + ns)
|
|
25883
|
+
.off('.' + ns)
|
|
25874
25884
|
.on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
|
|
25885
|
+
.on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce)
|
|
25875
25886
|
.on(editor.editor, 'click' + '.' + ns, this.__hide)
|
|
25876
25887
|
.on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
|
|
25877
25888
|
.on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
|
|
@@ -25959,7 +25970,8 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
25959
25970
|
jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.__line);
|
|
25960
25971
|
this.j.e
|
|
25961
25972
|
.off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
|
|
25962
|
-
.off(this.j.container, '.' + ns)
|
|
25973
|
+
.off(this.j.container, '.' + ns)
|
|
25974
|
+
.off('.' + ns);
|
|
25963
25975
|
}
|
|
25964
25976
|
}
|
|
25965
25977
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -28141,13 +28153,21 @@ function allowAttributes(jodit, nodeElm, hadEffect, allow) {
|
|
|
28141
28153
|
*/
|
|
28142
28154
|
|
|
28143
28155
|
|
|
28156
|
+
const TABLE_CONTAINER_TAGS = new Set([
|
|
28157
|
+
'table',
|
|
28158
|
+
'tbody',
|
|
28159
|
+
'thead',
|
|
28160
|
+
'tfoot',
|
|
28161
|
+
'tr'
|
|
28162
|
+
]);
|
|
28144
28163
|
/**
|
|
28145
28164
|
* @private
|
|
28146
28165
|
*/
|
|
28147
28166
|
function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
|
|
28148
28167
|
if (jodit.o.cleanHTML.fillEmptyParagraph &&
|
|
28149
28168
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(nodeElm) &&
|
|
28150
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)
|
|
28169
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) &&
|
|
28170
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(nodeElm, TABLE_CONTAINER_TAGS)) {
|
|
28151
28171
|
const br = jodit.createInside.element('br');
|
|
28152
28172
|
nodeElm.appendChild(br);
|
|
28153
28173
|
return true;
|
|
@@ -31366,7 +31386,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31366
31386
|
constructor() {
|
|
31367
31387
|
super(...arguments);
|
|
31368
31388
|
this.onKeyPress = (event) => {
|
|
31369
|
-
const special = this.specialKeys[event.which]
|
|
31389
|
+
const special = this.specialKeys[event.which];
|
|
31390
|
+
const character = (event.key || String.fromCharCode(event.which)).toLowerCase();
|
|
31370
31391
|
const modif = [special || character];
|
|
31371
31392
|
['alt', 'ctrl', 'shift', 'meta'].forEach(specialKey => {
|
|
31372
31393
|
if (event[specialKey + 'Key'] && special !== specialKey) {
|
|
@@ -31460,7 +31481,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31460
31481
|
}
|
|
31461
31482
|
})
|
|
31462
31483
|
.on('keydown.hotkeys', (event) => {
|
|
31463
|
-
const shortcut = this.onKeyPress(event)
|
|
31484
|
+
const shortcut = this.onKeyPress(event);
|
|
31485
|
+
const stop = {
|
|
31464
31486
|
shouldStop: true
|
|
31465
31487
|
};
|
|
31466
31488
|
const resultOfFire = this.j.e.fire(shortcut + '.hotkey', event.type, stop);
|
|
@@ -39796,7 +39818,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
39796
39818
|
break;
|
|
39797
39819
|
case 'addcolumnafter':
|
|
39798
39820
|
case 'addcolumnbefore':
|
|
39799
|
-
this.__tableModule.appendColumn(table, cell
|
|
39821
|
+
this.__tableModule.appendColumn(table, cell, command === 'addcolumnafter');
|
|
39800
39822
|
break;
|
|
39801
39823
|
case 'addrowafter':
|
|
39802
39824
|
case 'addrowbefore':
|
|
@@ -43139,6 +43161,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43139
43161
|
}
|
|
43140
43162
|
},
|
|
43141
43163
|
popup: (editor, current, close, button) => {
|
|
43164
|
+
editor.editor.normalize();
|
|
43165
|
+
const snapshot = editor.history.snapshot.make();
|
|
43142
43166
|
const control = button.control;
|
|
43143
43167
|
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;
|
|
43144
43168
|
const generateExtraClasses = () => {
|
|
@@ -43231,10 +43255,24 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43231
43255
|
table.classList.add(className);
|
|
43232
43256
|
});
|
|
43233
43257
|
});
|
|
43234
|
-
|
|
43235
|
-
|
|
43258
|
+
editor.s.restore();
|
|
43259
|
+
editor.s.removeMarkers();
|
|
43260
|
+
editor.editor.normalize();
|
|
43261
|
+
editor.history.snapshot.restore(snapshot);
|
|
43262
|
+
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);
|
|
43263
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isEmpty(block)) {
|
|
43264
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.replace(block, table, undefined, false, true);
|
|
43265
|
+
}
|
|
43266
|
+
else {
|
|
43267
|
+
if (block) {
|
|
43268
|
+
const fake = crt.text('\n');
|
|
43269
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
43270
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
43271
|
+
}
|
|
43272
|
+
else {
|
|
43273
|
+
editor.s.insertNode(table, false);
|
|
43274
|
+
}
|
|
43236
43275
|
}
|
|
43237
|
-
editor.s.insertNode(table, false);
|
|
43238
43276
|
if (first_td) {
|
|
43239
43277
|
editor.s.setCursorIn(first_td);
|
|
43240
43278
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|