jodit-pro 4.13.47 → 4.13.49
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 +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +27 -6
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.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/style/style.css +1 -1
- package/es2015/plugins/style/style.js +52 -8
- package/es2015/plugins/style/style.min.js +2 -2
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.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.fat.min.js +3 -3
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +2 -2
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +27 -6
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.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/style/style.css +1 -1
- package/es2021/plugins/style/style.js +51 -8
- package/es2021/plugins/style/style.min.js +2 -2
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.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 +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +27 -6
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.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/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +51 -8
- package/es2021.en/plugins/style/style.min.js +2 -2
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +27 -6
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.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/style/style.css +1 -1
- package/es5/plugins/style/style.js +101 -19
- package/es5/plugins/style/style.min.js +2 -2
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/style/helpers/apply-style.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.49
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -107,9 +107,13 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.style =
|
|
|
107
107
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
108
108
|
/* harmony export */ applyStyle: function() { return /* binding */ applyStyle; }
|
|
109
109
|
/* harmony export */ });
|
|
110
|
-
/* harmony import */ var
|
|
111
|
-
/* harmony import */ var
|
|
112
|
-
/* harmony import */ var
|
|
110
|
+
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43284);
|
|
111
|
+
/* harmony import */ var _swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61200);
|
|
112
|
+
/* harmony import */ var _detect_active_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69341);
|
|
113
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82758);
|
|
114
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2748);
|
|
115
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
116
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
113
117
|
/*!
|
|
114
118
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
115
119
|
* See LICENSE.md in the project root for license information.
|
|
@@ -117,17 +121,21 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.style =
|
|
|
117
121
|
*/
|
|
118
122
|
|
|
119
123
|
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
120
128
|
function findTarget(editor, def) {
|
|
121
129
|
var current = editor.s.current();
|
|
122
130
|
if (!current) {
|
|
123
131
|
return null;
|
|
124
132
|
}
|
|
125
|
-
if (
|
|
126
|
-
return
|
|
133
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element)) {
|
|
134
|
+
return jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
|
|
127
135
|
}
|
|
128
|
-
var node =
|
|
136
|
+
var node = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(current) ? current : current.parentNode;
|
|
129
137
|
while(node && node !== editor.editor){
|
|
130
|
-
if (
|
|
138
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(node) && node.nodeName.toLowerCase() === def.element) {
|
|
131
139
|
return node;
|
|
132
140
|
}
|
|
133
141
|
node = node.parentNode;
|
|
@@ -169,8 +177,8 @@ function cleanupExtraClasses(editor, def) {
|
|
|
169
177
|
if (!current) {
|
|
170
178
|
return;
|
|
171
179
|
}
|
|
172
|
-
if (
|
|
173
|
-
var block =
|
|
180
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element)) {
|
|
181
|
+
var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
|
|
174
182
|
if (block) {
|
|
175
183
|
removeClassesFromElement(block, classes.slice(1));
|
|
176
184
|
}
|
|
@@ -179,7 +187,7 @@ function cleanupExtraClasses(editor, def) {
|
|
|
179
187
|
if (target) {
|
|
180
188
|
removeClassesFromElement(target, classes.slice(1));
|
|
181
189
|
if (target.nodeName.toLowerCase() === 'span' && !target.attributes.length) {
|
|
182
|
-
|
|
190
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.unwrap(target);
|
|
183
191
|
}
|
|
184
192
|
}
|
|
185
193
|
}
|
|
@@ -198,6 +206,71 @@ function addExtraClasses(editor, def) {
|
|
|
198
206
|
target.classList.add(classes[i]);
|
|
199
207
|
}
|
|
200
208
|
}
|
|
209
|
+
function removeBlockStyleAttributes(editor, def) {
|
|
210
|
+
var _def_classes;
|
|
211
|
+
var current = editor.s.current();
|
|
212
|
+
if (!current) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
|
|
216
|
+
if (!block || block.nodeName.toLowerCase() !== def.element) {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
var classes = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean);
|
|
220
|
+
if (classes === null || classes === void 0 ? void 0 : classes.length) {
|
|
221
|
+
removeClassesFromElement(block, classes);
|
|
222
|
+
}
|
|
223
|
+
if (def.attributes) {
|
|
224
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
225
|
+
try {
|
|
226
|
+
for(var _iterator = Object.entries(def.attributes)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
227
|
+
var _step_value = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__._)(_step.value, 2), key = _step_value[0], value = _step_value[1];
|
|
228
|
+
if (value == null) {
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
if (key === 'class' && typeof value === 'string') {
|
|
232
|
+
removeClassesFromElement(block, value.split(/\s+/));
|
|
233
|
+
} else if (key === 'style' && (typeof value === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_1__._)(value)) === 'object') {
|
|
234
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
235
|
+
try {
|
|
236
|
+
for(var _iterator1 = Object.keys(value)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
237
|
+
var prop = _step1.value;
|
|
238
|
+
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__.css)(block, prop, null);
|
|
239
|
+
}
|
|
240
|
+
} catch (err) {
|
|
241
|
+
_didIteratorError1 = true;
|
|
242
|
+
_iteratorError1 = err;
|
|
243
|
+
} finally{
|
|
244
|
+
try {
|
|
245
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
246
|
+
_iterator1.return();
|
|
247
|
+
}
|
|
248
|
+
} finally{
|
|
249
|
+
if (_didIteratorError1) {
|
|
250
|
+
throw _iteratorError1;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
} else if ((0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(block, key) === String(value)) {
|
|
255
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(block, key, null);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} catch (err) {
|
|
259
|
+
_didIteratorError = true;
|
|
260
|
+
_iteratorError = err;
|
|
261
|
+
} finally{
|
|
262
|
+
try {
|
|
263
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
264
|
+
_iterator.return();
|
|
265
|
+
}
|
|
266
|
+
} finally{
|
|
267
|
+
if (_didIteratorError) {
|
|
268
|
+
throw _iteratorError;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
201
274
|
function buildCommitStyleOptions(def) {
|
|
202
275
|
var _def_classes;
|
|
203
276
|
if (def.attributes) {
|
|
@@ -220,14 +293,23 @@ function buildCommitStyleOptions(def) {
|
|
|
220
293
|
};
|
|
221
294
|
}
|
|
222
295
|
function applyStyle(editor, def, definitions) {
|
|
223
|
-
var active = (0,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
296
|
+
var active = (0,_detect_active_style__WEBPACK_IMPORTED_MODULE_2__.detectActiveStyle)(editor, definitions);
|
|
297
|
+
var isBlockDef = jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element);
|
|
298
|
+
if (active && jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(active.element) === isBlockDef) {
|
|
299
|
+
if (isBlockDef && active !== def) {
|
|
300
|
+
// Unsetting a block style via commitStyle unwraps the current
|
|
301
|
+
// block, so the new style would land on the surrounding container
|
|
302
|
+
// (e.g. the div around an h3). Strip the old definition's
|
|
303
|
+
// classes/attributes in place; commitStyle below replaces the tag.
|
|
304
|
+
removeBlockStyleAttributes(editor, active);
|
|
305
|
+
} else {
|
|
306
|
+
editor.s.commitStyle(buildCommitStyleOptions(active));
|
|
307
|
+
if (!active.attributes) {
|
|
308
|
+
cleanupExtraClasses(editor, active);
|
|
309
|
+
}
|
|
310
|
+
if (active === def) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
231
313
|
}
|
|
232
314
|
}
|
|
233
315
|
editor.s.commitStyle(buildCommitStyleOptions(def));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.49
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),
|
|
8
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),a=r(6441);a.Config.prototype.customStyles={definitions:[]},a.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,n.detectActiveStyle)(t,e)},update:function(t,e){var r,i=t.o.customStyles.definitions;if(i.length){var o=(0,n.detectActiveStyle)(t,i),l=(null==(r=e.control)?void 0:r.component)==="select";(t.o.textIcons||l)&&(o?e.state.text=o.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,r){var n=t.o.customStyles.definitions;if(!n.length)return!1;t.s.current()||t.s.focus(),t.s.save();var o=(0,i.buildStylePopup)(t,n,function(){t.s.restore(),r()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,r){"use strict";r.d(e,{applyStyle:function(){return d}});var n=r(43284),i=r(61200),o=r(69341),l=r(82758),a=r(2748),s=r(29960),u=r(41180);function c(t,e){var r=t.s.current();if(!r)return null;if(l.IS_BLOCK.test(e.element))return a.Dom.closest(r,a.Dom.isBlock,t.editor);for(var n=a.Dom.isElement(r)?r:r.parentNode;n&&n!==t.editor;){if(a.Dom.isElement(n)&&n.nodeName.toLowerCase()===e.element)return n;n=n.parentNode}return null}function f(t,e){var r=!0,n=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var a=o.value;t.classList.remove(a)}}catch(t){n=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(n)throw i}}""===t.className&&t.removeAttribute("class")}function v(t){if(t.attributes)return{element:t.element,attributes:t.attributes};var e,r=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return r?{element:t.element,attributes:{class:r}}:{element:t.element}}function d(t,e,r){var d=(0,o.detectActiveStyle)(t,r),y=l.IS_BLOCK.test(e.element);if(d&&l.IS_BLOCK.test(d.element)===y){if(y&&d!==e)!function(t,e){var r=t.s.current();if(r){var o=a.Dom.closest(r,a.Dom.isBlock,t.editor);if(o&&o.nodeName.toLowerCase()===e.element){var l=null==(y=e.classes)?void 0:y.filter(Boolean);if((null==l?void 0:l.length)&&f(o,l),e.attributes){var c=!0,v=!1,d=void 0;try{for(var y,m,p=Object.entries(e.attributes)[Symbol.iterator]();!(c=(m=p.next()).done);c=!0){var h=(0,n._)(m.value,2),b=h[0],S=h[1];if(null!=S)if("class"===b&&"string"==typeof S)f(o,S.split(/\s+/));else if("style"===b&&(void 0===S?"undefined":(0,i._)(S))==="object"){var _=!0,g=!1,x=void 0;try{for(var w,C=Object.keys(S)[Symbol.iterator]();!(_=(w=C.next()).done);_=!0){var B=w.value;(0,u.css)(o,B,null)}}catch(t){g=!0,x=t}finally{try{_||null==C.return||C.return()}finally{if(g)throw x}}}else(0,s.attr)(o,b)===String(S)&&(0,s.attr)(o,b,null)}}catch(t){v=!0,d=t}finally{try{c||null==p.return||p.return()}finally{if(v)throw d}}}}}}(t,d);else if(t.s.commitStyle(v(d)),d.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=t.s.current();if(i)if(l.IS_BLOCK.test(e.element)){var o=a.Dom.closest(i,a.Dom.isBlock,t.editor);o&&f(o,n.slice(1))}else{var s=c(t,e);s&&(f(s,n.slice(1)),"span"!==s.nodeName.toLowerCase()||s.attributes.length||a.Dom.unwrap(s))}}}(t,d),d===e)return}t.s.commitStyle(v(e)),e.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=c(t,e);if(i)for(var o=1;o<n.length;o++)i.classList.add(n[o])}}(t,e)}},8060:function(t,e,r){"use strict";r.d(e,{classifyDefinitions:function(){return i}});var n=r(82758);function i(t){var e=[],r=[],i=!0,o=!1,l=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;n.IS_BLOCK.test(u.element)?e.push(u):r.push(u)}}catch(t){o=!0,l=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),r.length&&c.push({title:"Text styles",definitions:r}),c}},69341:function(t,e,r){"use strict";r.d(e,{detectActiveStyle:function(){return c}});var n=r(43284),i=r(61200),o=r(82758),l=r(2748),a=r(29960),s=r(41180);function u(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;if(e.attributes)return function(t,e){var r=!0,o=!1,l=void 0;try{for(var u,c=Object.entries(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=(0,n._)(u.value,2),v=f[0],d=f[1];if(null!=d){if("class"===v){if("string"==typeof d&&!t.classList.contains(d))return!1}else if("style"===v){if((void 0===d?"undefined":(0,i._)(d))==="object"&&null!=d){var y=!0,m=!1,p=void 0;try{for(var h,b=Object.entries(d)[Symbol.iterator]();!(y=(h=b.next()).done);y=!0){var S=(0,n._)(h.value,2),_=S[0],g=S[1];if(null!=g&&(0,s.css)(t,_,!0)!==String(g))return!1}}catch(t){m=!0,p=t}finally{try{y||null==b.return||b.return()}finally{if(m)throw p}}}}else if((0,a.attr)(t,v)!==String(d))return!1}}}catch(t){o=!0,l=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return!0}(t,e.attributes);var r,o=null==(r=e.classes)?void 0:r.filter(Boolean);return null==o||!o.length||o.every(function(e){return t.classList.contains(e)})}function c(t,e){var r=t.s.current();if(!r)return null;var n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value;if(o.IS_BLOCK.test(f.element)){var v=l.Dom.closest(r,l.Dom.isBlock,t.editor);if(v&&u(v,f))return f}else for(var d=l.Dom.isElement(r)?r:r.parentNode;d&&d!==t.editor;){if(l.Dom.isElement(d)&&u(d,f))return f;d=d.parentNode}}}catch(t){i=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return null}},75554:function(t,e,r){"use strict";r.r(e),r.d(e,{style:function(){return f}});var n=r(80294),i=r(20616),o=r(67709),l=r(82749),a=r(18766),s=r(23078);r(28609);var u=r(50911),c=r(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,n._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,a._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,s._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},5440:function(t,e,r){"use strict";r.d(e,{buildStylePopup:function(){return s}});var n=r(31105),i=r(8060),o=r(69341),l=r(29960),a="jodit-style-popup";function s(t,e,r){var s=(0,i.classifyDefinitions)(e),u=(0,o.detectActiveStyle)(t,e),c=t.c.div(a),f=!0,v=!1,d=void 0;try{for(var y,m=s[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var p=y.value,h=t.c.div("".concat(a,"__group-title"));h.textContent=t.i18n(p.title),c.appendChild(h);var b=t.c.div("".concat(a,"__grid")),S=!0,_=!1,g=void 0;try{for(var x,w=p.definitions[Symbol.iterator]();!(S=(x=w.next()).done);S=!0)!function(){var i=x.value,o=t.c.element("button");o.type="button";var s=u===i;o.className="".concat(a,"__card")+(s?" ".concat(a,"__card_active_true"):"");var c=t.c.div("".concat(a,"__card-preview")),f=t.c.element(i.element);if(i.attributes)(0,l.attr)(f,i.attributes);else{var v=!0,d=!1,y=void 0;try{for(var m,p,h,S=(null!=(m=null==(p=i.classes)?void 0:p.filter(Boolean))?m:[])[Symbol.iterator]();!(v=(h=S.next()).done);v=!0){var _=h.value;f.classList.add(_)}}catch(t){d=!0,y=t}finally{try{v||null==S.return||S.return()}finally{if(d)throw y}}}f.textContent=i.name,c.appendChild(f),o.appendChild(c);var g=t.c.div("".concat(a,"__card-label"));g.textContent=i.name,o.appendChild(g),t.e.on(o,"click",function(){t.s.focus(),(0,n.applyStyle)(t,i,e),t.synchronizeValues(),r()}),b.appendChild(o)}()}catch(t){_=!0,g=t}finally{try{S||null==w.return||w.return()}finally{if(_)throw g}}c.appendChild(b)}}catch(t){v=!0,d=t}finally{try{f||null==m.return||m.return()}finally{if(v)throw d}}return c}}},function(t){return t(t.s=75554)}])});
|
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED
package/es5/polyfills.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var y=Object.defineProperty;var i=(t,e)=>y(t,"name",{value:e,configurable:!0});import{detectActiveStyle as g}from"./detect-active-style.js";import{IS_BLOCK as u}from"jodit/esm/core/constants.js";import{Dom as r}from"jodit/esm/core/dom/dom.js";import{attr as f}from"jodit/esm/core/helpers/utils/attr.js";import{css as B}from"jodit/esm/core/helpers/utils/css.js";function v(t,e){const n=t.s.current();if(!n)return null;if(u.test(e.element))return r.closest(n,r.isBlock,t.editor);let s=r.isElement(n)?n:n.parentNode;for(;s&&s!==t.editor;){if(r.isElement(s)&&s.nodeName.toLowerCase()===e.element)return s;s=s.parentNode}return null}i(v,"findTarget");function m(t,e){for(const n of e)t.classList.remove(n);t.className===""&&t.removeAttribute("class")}i(m,"removeClassesFromElement");function k(t,e){var n;const s=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!s||s.length<=1)return;const o=t.s.current();if(o)if(u.test(e.element)){const l=r.closest(o,r.isBlock,t.editor);l&&m(l,s.slice(1))}else{const l=v(t,e);l&&(m(l,s.slice(1)),l.nodeName.toLowerCase()==="span"&&!l.attributes.length&&r.unwrap(l))}}i(k,"cleanupExtraClasses");function C(t,e){var n;const s=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!s||s.length<=1)return;const o=v(t,e);if(o)for(let l=1;l<s.length;l++)o.classList.add(s[l])}i(C,"addExtraClasses");function S(t,e){var n;const s=t.s.current();if(!s)return;const o=r.closest(s,r.isBlock,t.editor);if(!o||o.nodeName.toLowerCase()!==e.element)return;const l=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(l?.length&&m(o,l),e.attributes){for(const[a,c]of Object.entries(e.attributes))if(c!=null)if(a==="class"&&typeof c=="string")m(o,c.split(/\s+/));else if(a==="style"&&typeof c=="object")for(const b of Object.keys(c))B(o,b,null);else f(o,a)===String(c)&&f(o,a,null)}}i(S,"removeBlockStyleAttributes");function p(t){var e;if(t.attributes)return{element:t.element,attributes:t.attributes};const n=(e=t.classes)===null||e===void 0?void 0:e.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}i(p,"buildCommitStyleOptions");function O(t,e,n){const s=g(t,n),o=u.test(e.element);if(s&&u.test(s.element)===o){if(o&&s!==e)S(t,s);else if(t.s.commitStyle(p(s)),s.attributes||k(t,s),s===e)return}t.s.commitStyle(p(e)),e.attributes||C(t,e)}i(O,"applyStyle");export{O as applyStyle};
|