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/es5/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
|
*/
|
|
@@ -3847,7 +3847,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3847
3847
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3848
3848
|
*/
|
|
3849
3849
|
|
|
3850
|
-
var APP_VERSION = "4.2.
|
|
3850
|
+
var APP_VERSION = "4.2.24";
|
|
3851
3851
|
// prettier-ignore
|
|
3852
3852
|
var ES = "es5";
|
|
3853
3853
|
var IS_ES_MODERN = false;
|
|
@@ -4008,8 +4008,8 @@ var KEY_ALIASES = {
|
|
|
4008
4008
|
option: 'alt',
|
|
4009
4009
|
return: 'enter',
|
|
4010
4010
|
right: 'arrowright',
|
|
4011
|
-
space: '
|
|
4012
|
-
spacebar: '
|
|
4011
|
+
space: 'space',
|
|
4012
|
+
spacebar: 'space',
|
|
4013
4013
|
up: 'arrowup',
|
|
4014
4014
|
win: 'meta',
|
|
4015
4015
|
windows: 'meta'
|
|
@@ -5045,11 +5045,17 @@ var Dom = /** @class */ (function () {
|
|
|
5045
5045
|
notMoveContent = false;
|
|
5046
5046
|
}
|
|
5047
5047
|
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isHTML */ .AH)(newTagName)) {
|
|
5048
|
+
void 0;
|
|
5048
5049
|
newTagName = create.fromHTML(newTagName);
|
|
5049
5050
|
}
|
|
5050
|
-
var tag
|
|
5051
|
-
|
|
5052
|
-
|
|
5051
|
+
var tag;
|
|
5052
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)) {
|
|
5053
|
+
void 0;
|
|
5054
|
+
tag = create.element(newTagName);
|
|
5055
|
+
}
|
|
5056
|
+
else {
|
|
5057
|
+
tag = newTagName;
|
|
5058
|
+
}
|
|
5053
5059
|
if (!notMoveContent) {
|
|
5054
5060
|
while (elm.firstChild) {
|
|
5055
5061
|
tag.appendChild(elm.firstChild);
|
|
@@ -6871,7 +6877,8 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
|
|
|
6871
6877
|
var data = boxes.get(jodit) || {}, key = name + tag;
|
|
6872
6878
|
var view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
6873
6879
|
if (!data[key]) {
|
|
6874
|
-
var c = view.c
|
|
6880
|
+
var c = view.c;
|
|
6881
|
+
var body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
|
|
6875
6882
|
? jodit.o.shadowRoot
|
|
6876
6883
|
: jodit.od.body;
|
|
6877
6884
|
if (createInsideEditor &&
|
|
@@ -6891,6 +6898,7 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
|
|
|
6891
6898
|
body.appendChild(box_1);
|
|
6892
6899
|
data[key] = box_1;
|
|
6893
6900
|
jodit.hookStatus('beforeDestruct', function () {
|
|
6901
|
+
view.events.off(box_1);
|
|
6894
6902
|
_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(box_1);
|
|
6895
6903
|
delete data[key];
|
|
6896
6904
|
if (Object.keys(data).length) {
|
|
@@ -6898,6 +6906,7 @@ function getContainer(jodit, classFunc, tag, createInsideEditor) {
|
|
|
6898
6906
|
}
|
|
6899
6907
|
});
|
|
6900
6908
|
boxes.set(jodit, data);
|
|
6909
|
+
view.events.fire('getContainer', box_1);
|
|
6901
6910
|
}
|
|
6902
6911
|
data[key].classList.remove('jodit_theme_default', 'jodit_theme_dark');
|
|
6903
6912
|
data[key].classList.add("jodit_theme_".concat(view.o.theme || 'default'));
|
|
@@ -8727,7 +8736,8 @@ function normalizeKeyAliases(keys) {
|
|
|
8727
8736
|
ctrl: 2,
|
|
8728
8737
|
control: 2,
|
|
8729
8738
|
alt: 3,
|
|
8730
|
-
shift: 4
|
|
8739
|
+
shift: 4,
|
|
8740
|
+
space: 5
|
|
8731
8741
|
};
|
|
8732
8742
|
return keys
|
|
8733
8743
|
.replace(/\+\+/g, '+add')
|
|
@@ -16201,12 +16211,11 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16201
16211
|
if (!view.o.textIcons &&
|
|
16202
16212
|
view.o.showTooltip &&
|
|
16203
16213
|
!view.o.useNativeTooltip) {
|
|
16214
|
+
_this.j.e.on('getContainer', function (box) {
|
|
16215
|
+
_this.__onAttach(box);
|
|
16216
|
+
});
|
|
16204
16217
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, function () {
|
|
16205
|
-
|
|
16206
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(_this.j, UITooltip_1).appendChild(_this.container);
|
|
16207
|
-
view.e.on(view.container, 'mouseenter.tooltip', _this.__onMouseEnter, {
|
|
16208
|
-
capture: true
|
|
16209
|
-
});
|
|
16218
|
+
_this.__onAttach(_this.j.container);
|
|
16210
16219
|
});
|
|
16211
16220
|
}
|
|
16212
16221
|
return _this;
|
|
@@ -16218,6 +16227,13 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
16218
16227
|
UITooltip.prototype.render = function () {
|
|
16219
16228
|
return '<div><div class="&__content"></div></div>';
|
|
16220
16229
|
};
|
|
16230
|
+
UITooltip.prototype.__onAttach = function (container) {
|
|
16231
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
16232
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
16233
|
+
this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
16234
|
+
capture: true
|
|
16235
|
+
});
|
|
16236
|
+
};
|
|
16221
16237
|
UITooltip.prototype.__addListenersOnEnter = function () {
|
|
16222
16238
|
if (this.__listenClose) {
|
|
16223
16239
|
return;
|
|
@@ -25947,46 +25963,42 @@ var Table = /** @class */ (function (_super) {
|
|
|
25947
25963
|
Table.prototype.removeRow = function (table, rowIndex) {
|
|
25948
25964
|
return Table.__removeRow(table, rowIndex);
|
|
25949
25965
|
};
|
|
25950
|
-
|
|
25951
|
-
|
|
25952
|
-
|
|
25953
|
-
|
|
25954
|
-
|
|
25966
|
+
/**
|
|
25967
|
+
* Insert column before / after all the columns containing the selected cells
|
|
25968
|
+
*/
|
|
25969
|
+
Table.prototype.appendColumn = function (table, selectedCell, insertAfter) {
|
|
25970
|
+
if (insertAfter === void 0) {
|
|
25971
|
+
insertAfter = true;
|
|
25955
25972
|
}
|
|
25956
|
-
|
|
25957
|
-
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
25961
|
-
|
|
25962
|
-
|
|
25963
|
-
|
|
25964
|
-
|
|
25965
|
-
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
25969
|
-
|
|
25973
|
+
var box = Table.__formalMatrix(table);
|
|
25974
|
+
if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isCell(selectedCell.previousElementSibling)) {
|
|
25975
|
+
return this.appendColumn(table, selectedCell.previousElementSibling, true);
|
|
25976
|
+
}
|
|
25977
|
+
var columnIndex = insertAfter
|
|
25978
|
+
? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1)
|
|
25979
|
+
: selectedCell.cellIndex;
|
|
25980
|
+
var newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
|
|
25981
|
+
for (var i = 0; i < box.length;) {
|
|
25982
|
+
var cells = box[i];
|
|
25983
|
+
if (cells[columnIndex] !== cells[newColumnIndex] ||
|
|
25984
|
+
columnIndex === newColumnIndex) {
|
|
25985
|
+
var cell = this.j.createInside.element('td');
|
|
25986
|
+
if (insertAfter) {
|
|
25987
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.after(cells[columnIndex], cell);
|
|
25970
25988
|
}
|
|
25971
|
-
|
|
25972
|
-
|
|
25973
|
-
|
|
25974
|
-
|
|
25975
|
-
|
|
25976
|
-
added = true;
|
|
25989
|
+
else {
|
|
25990
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(cells[columnIndex], cell);
|
|
25991
|
+
}
|
|
25992
|
+
if (cells[columnIndex].rowSpan > 1) {
|
|
25993
|
+
cell.rowSpan = cells[columnIndex].rowSpan;
|
|
25977
25994
|
}
|
|
25978
25995
|
}
|
|
25979
|
-
|
|
25980
|
-
|
|
25996
|
+
else {
|
|
25997
|
+
cells[columnIndex].colSpan += 1;
|
|
25981
25998
|
}
|
|
25999
|
+
i += cells[columnIndex].rowSpan || 1;
|
|
25982
26000
|
}
|
|
25983
26001
|
};
|
|
25984
|
-
/**
|
|
25985
|
-
* Insert column before / after all the columns containing the selected cells
|
|
25986
|
-
*/
|
|
25987
|
-
Table.prototype.appendColumn = function (table, j, after) {
|
|
25988
|
-
return Table.__appendColumn(table, j, after, this.j.createInside);
|
|
25989
|
-
};
|
|
25990
26002
|
Table.__removeColumn = function (table, j) {
|
|
25991
26003
|
var box = Table.__formalMatrix(table);
|
|
25992
26004
|
var dec;
|
|
@@ -26204,7 +26216,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
26204
26216
|
alreadyMerged.delete(first);
|
|
26205
26217
|
Table.__unmark(__marked);
|
|
26206
26218
|
Table.__normalizeTable(table);
|
|
26207
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(function (tr
|
|
26219
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(function (tr) {
|
|
26208
26220
|
if (!tr.cells.length) {
|
|
26209
26221
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(tr);
|
|
26210
26222
|
}
|
|
@@ -26213,7 +26225,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
26213
26225
|
}
|
|
26214
26226
|
};
|
|
26215
26227
|
/**
|
|
26216
|
-
* It combines all
|
|
26228
|
+
* It combines all the selected cells into one. The contents of the cells will also be combined
|
|
26217
26229
|
*/
|
|
26218
26230
|
Table.prototype.mergeSelected = function (table) {
|
|
26219
26231
|
return Table.__mergeSelected(table, this.j);
|
|
@@ -28639,7 +28651,9 @@ var addNewLine = /** @class */ (function (_super) {
|
|
|
28639
28651
|
editor.e
|
|
28640
28652
|
.off(editor.editor, '.' + ns)
|
|
28641
28653
|
.off(editor.container, '.' + ns)
|
|
28654
|
+
.off('.' + ns)
|
|
28642
28655
|
.on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
|
|
28656
|
+
.on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce)
|
|
28643
28657
|
.on(editor.editor, 'click' + '.' + ns, this.__hide)
|
|
28644
28658
|
.on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
|
|
28645
28659
|
.on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
|
|
@@ -28727,7 +28741,8 @@ var addNewLine = /** @class */ (function (_super) {
|
|
|
28727
28741
|
jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.__line);
|
|
28728
28742
|
this.j.e
|
|
28729
28743
|
.off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
|
|
28730
|
-
.off(this.j.container, '.' + ns)
|
|
28744
|
+
.off(this.j.container, '.' + ns)
|
|
28745
|
+
.off('.' + ns);
|
|
28731
28746
|
};
|
|
28732
28747
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
28733
28748
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)(':lock')
|
|
@@ -30978,13 +30993,21 @@ function allowAttributes(jodit, nodeElm, hadEffect, allow) {
|
|
|
30978
30993
|
*/
|
|
30979
30994
|
|
|
30980
30995
|
|
|
30996
|
+
var TABLE_CONTAINER_TAGS = new Set([
|
|
30997
|
+
'table',
|
|
30998
|
+
'tbody',
|
|
30999
|
+
'thead',
|
|
31000
|
+
'tfoot',
|
|
31001
|
+
'tr'
|
|
31002
|
+
]);
|
|
30981
31003
|
/**
|
|
30982
31004
|
* @private
|
|
30983
31005
|
*/
|
|
30984
31006
|
function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
|
|
30985
31007
|
if (jodit.o.cleanHTML.fillEmptyParagraph &&
|
|
30986
31008
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(nodeElm) &&
|
|
30987
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)
|
|
31009
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) &&
|
|
31010
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(nodeElm, TABLE_CONTAINER_TAGS)) {
|
|
30988
31011
|
var br = jodit.createInside.element('br');
|
|
30989
31012
|
nodeElm.appendChild(br);
|
|
30990
31013
|
return true;
|
|
@@ -34286,7 +34309,8 @@ var hotkeys = /** @class */ (function (_super) {
|
|
|
34286
34309
|
function hotkeys() {
|
|
34287
34310
|
var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .zs)(arguments), false)) || this;
|
|
34288
34311
|
_this.onKeyPress = function (event) {
|
|
34289
|
-
var special = _this.specialKeys[event.which]
|
|
34312
|
+
var special = _this.specialKeys[event.which];
|
|
34313
|
+
var character = (event.key || String.fromCharCode(event.which)).toLowerCase();
|
|
34290
34314
|
var modif = [special || character];
|
|
34291
34315
|
['alt', 'ctrl', 'shift', 'meta'].forEach(function (specialKey) {
|
|
34292
34316
|
if (event[specialKey + 'Key'] && special !== specialKey) {
|
|
@@ -34382,7 +34406,8 @@ var hotkeys = /** @class */ (function (_super) {
|
|
|
34382
34406
|
}
|
|
34383
34407
|
})
|
|
34384
34408
|
.on('keydown.hotkeys', function (event) {
|
|
34385
|
-
var shortcut = _this.onKeyPress(event)
|
|
34409
|
+
var shortcut = _this.onKeyPress(event);
|
|
34410
|
+
var stop = {
|
|
34386
34411
|
shouldStop: true
|
|
34387
34412
|
};
|
|
34388
34413
|
var resultOfFire = _this.j.e.fire(shortcut + '.hotkey', event.type, stop);
|
|
@@ -43160,7 +43185,7 @@ var selectCells = /** @class */ (function (_super) {
|
|
|
43160
43185
|
break;
|
|
43161
43186
|
case 'addcolumnafter':
|
|
43162
43187
|
case 'addcolumnbefore':
|
|
43163
|
-
this.__tableModule.appendColumn(table_1, cell
|
|
43188
|
+
this.__tableModule.appendColumn(table_1, cell, command === 'addcolumnafter');
|
|
43164
43189
|
break;
|
|
43165
43190
|
case 'addrowafter':
|
|
43166
43191
|
case 'addrowbefore':
|
|
@@ -46604,6 +46629,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
46604
46629
|
}
|
|
46605
46630
|
},
|
|
46606
46631
|
popup: function (editor, current, close, button) {
|
|
46632
|
+
editor.editor.normalize();
|
|
46633
|
+
var snapshot = editor.history.snapshot.make();
|
|
46607
46634
|
var control = button.control;
|
|
46608
46635
|
var default_rows_count = control.data && control.data.rows ? control.data.rows : 10, default_cols_count = control.data && control.data.cols ? control.data.cols : 10;
|
|
46609
46636
|
var generateExtraClasses = function () {
|
|
@@ -46696,10 +46723,24 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
46696
46723
|
table.classList.add(className);
|
|
46697
46724
|
});
|
|
46698
46725
|
});
|
|
46699
|
-
|
|
46700
|
-
|
|
46726
|
+
editor.s.restore();
|
|
46727
|
+
editor.s.removeMarkers();
|
|
46728
|
+
editor.editor.normalize();
|
|
46729
|
+
editor.history.snapshot.restore(snapshot);
|
|
46730
|
+
var 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);
|
|
46731
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isEmpty(block)) {
|
|
46732
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.replace(block, table, undefined, false, true);
|
|
46733
|
+
}
|
|
46734
|
+
else {
|
|
46735
|
+
if (block) {
|
|
46736
|
+
var fake = crt.text('\n');
|
|
46737
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
46738
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
46739
|
+
}
|
|
46740
|
+
else {
|
|
46741
|
+
editor.s.insertNode(table, false);
|
|
46742
|
+
}
|
|
46701
46743
|
}
|
|
46702
|
-
editor.s.insertNode(table, false);
|
|
46703
46744
|
if (first_td) {
|
|
46704
46745
|
editor.s.setCursorIn(first_td);
|
|
46705
46746
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|