jodit-pro 2.0.0-beta.28 → 2.0.0-beta.32
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 +320 -41
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +499 -333
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- 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 +21 -2
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +13 -16
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +320 -41
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +500 -332
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- 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 +21 -2
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +13 -16
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +320 -41
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +490 -330
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- 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 +21 -2
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +13 -15
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +320 -41
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +490 -330
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- 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 +21 -2
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -15
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +397 -54
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +645 -465
- 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 +5 -3
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +8 -3
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +2 -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 +3 -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 +5 -3
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +3 -3
- 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 +33 -19
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +25 -22
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +2 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +2 -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 +3 -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 +9 -13
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +15 -17
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +2 -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 +5 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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 +3 -3
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +3 -3
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +6 -5
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +6 -4
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.js +1 -1
- package/esm/core/ui/form/range/range.js +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/backup/ui/box.js +1 -1
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +2 -2
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.js +2 -2
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/history-manager.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.js +2 -2
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.js +2 -2
- package/esm/plugins/finder/ui/progress/progress.js +2 -2
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/sidebar/sidebar.js +2 -2
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/translate/ui/settings/settings.js +1 -1
- package/esm/plugins/tune-block/config.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/package.json +1 -1
package/es2015/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: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.32
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2401,8 +2401,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2401
2401
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2402
2402
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2403
2403
|
*/
|
|
2404
|
-
const APP_VERSION = "2.0.0-beta.
|
|
2405
|
-
//
|
|
2404
|
+
const APP_VERSION = "2.0.0-beta.32";
|
|
2405
|
+
// prettier-ignore
|
|
2406
2406
|
const ES = "es2015";
|
|
2407
2407
|
const IS_ES_MODERN = true;
|
|
2408
2408
|
const IS_ES_NEXT = false;
|
|
@@ -3372,8 +3372,8 @@ function watch(observeFields, opts) {
|
|
|
3372
3372
|
/* harmony export */ });
|
|
3373
3373
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
3374
3374
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
3375
|
-
/* harmony import */ var
|
|
3376
|
-
/* harmony import */ var
|
|
3375
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84621);
|
|
3376
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73076);
|
|
3377
3377
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98478);
|
|
3378
3378
|
/*!
|
|
3379
3379
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -3500,7 +3500,7 @@ class Dom {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
if (withAttributes && Dom.isElement(elm) && Dom.isElement(tag)) {
|
|
3503
|
-
(0,
|
|
3503
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .q)(elm.attributes).forEach(attr => {
|
|
3504
3504
|
tag.setAttribute(attr.name, attr.value);
|
|
3505
3505
|
});
|
|
3506
3506
|
}
|
|
@@ -3544,7 +3544,7 @@ class Dom {
|
|
|
3544
3544
|
else {
|
|
3545
3545
|
cond = condNoEmptyElement;
|
|
3546
3546
|
}
|
|
3547
|
-
const emptyText = (node) => node.nodeValue == null || (0,
|
|
3547
|
+
const emptyText = (node) => node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .fy)(node.nodeValue).length === 0;
|
|
3548
3548
|
if (Dom.isText(node)) {
|
|
3549
3549
|
return emptyText(node);
|
|
3550
3550
|
}
|
|
@@ -3826,14 +3826,14 @@ class Dom {
|
|
|
3826
3826
|
return Dom.findSibling(node, left, n => {
|
|
3827
3827
|
var _a;
|
|
3828
3828
|
return (!Dom.isEmptyTextNode(n) &&
|
|
3829
|
-
Boolean(!Dom.isText(n) || (((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,
|
|
3829
|
+
Boolean(!Dom.isText(n) || (((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .fy)(n.nodeValue))));
|
|
3830
3830
|
});
|
|
3831
3831
|
}
|
|
3832
3832
|
/**
|
|
3833
3833
|
* Returns the nearest non-empty neighbor
|
|
3834
3834
|
*/
|
|
3835
3835
|
static findNotEmptyNeighbor(node, left, root) {
|
|
3836
|
-
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.call)(left ? Dom.prev : Dom.next, node, n => Boolean(n && (!Dom.isText(n) || (0,
|
|
3836
|
+
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.call)(left ? Dom.prev : Dom.next, node, n => Boolean(n && (!Dom.isText(n) || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .fy)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length)), root);
|
|
3837
3837
|
}
|
|
3838
3838
|
static sibling(node, left) {
|
|
3839
3839
|
return left ? node.previousSibling : node.nextSibling;
|
|
@@ -3950,7 +3950,7 @@ class Dom {
|
|
|
3950
3950
|
*/
|
|
3951
3951
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
3952
3952
|
const fragment = (from.ownerDocument || document).createDocumentFragment();
|
|
3953
|
-
(0,
|
|
3953
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .q)(from.childNodes)
|
|
3954
3954
|
.filter(elm => {
|
|
3955
3955
|
if (filter(elm)) {
|
|
3956
3956
|
return true;
|
|
@@ -6295,7 +6295,7 @@ function applyStyles(html) {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
});
|
|
6297
6297
|
convertedString = iframeDoc.firstChild
|
|
6298
|
-
? (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .
|
|
6298
|
+
? (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .fy)(iframeDoc.body.innerHTML)
|
|
6299
6299
|
: '';
|
|
6300
6300
|
}
|
|
6301
6301
|
}
|
|
@@ -6307,7 +6307,7 @@ function applyStyles(html) {
|
|
|
6307
6307
|
if (convertedString) {
|
|
6308
6308
|
html = convertedString;
|
|
6309
6309
|
}
|
|
6310
|
-
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .
|
|
6310
|
+
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .fy)(html
|
|
6311
6311
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6312
6312
|
.replace(/<!--[^>]*>/g, ''));
|
|
6313
6313
|
}
|
|
@@ -6395,7 +6395,7 @@ function cleanFromWord(html) {
|
|
|
6395
6395
|
if (convertedString) {
|
|
6396
6396
|
html = convertedString;
|
|
6397
6397
|
}
|
|
6398
|
-
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .
|
|
6398
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .fy).join('\n');
|
|
6399
6399
|
return html
|
|
6400
6400
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6401
6401
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -6626,7 +6626,7 @@ function stripTags(html, doc = document, exclude = null) {
|
|
|
6626
6626
|
pr.insertBefore(doc.createTextNode(' '), nx);
|
|
6627
6627
|
}
|
|
6628
6628
|
});
|
|
6629
|
-
return restoreTags((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .
|
|
6629
|
+
return restoreTags((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .fy)(tmp.innerText));
|
|
6630
6630
|
}
|
|
6631
6631
|
function restoreTags(content) {
|
|
6632
6632
|
return content.replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g, (_, isClosed, isSingle, tag) => `<${isClosed ? '/' : ''}${tag}>`);
|
|
@@ -6706,6 +6706,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6706
6706
|
/* harmony export */ stripTags: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_5__.oN; },
|
|
6707
6707
|
/* harmony export */ toArray: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_1__.qo; },
|
|
6708
6708
|
/* harmony export */ trim: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_8__.fy; },
|
|
6709
|
+
/* harmony export */ trimChars: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_8__.cE; },
|
|
6709
6710
|
/* harmony export */ trimInv: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_8__.as; },
|
|
6710
6711
|
/* harmony export */ ucfirst: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_8__.Ps; }
|
|
6711
6712
|
/* harmony export */ });
|
|
@@ -6819,7 +6820,7 @@ const normalizeColor = (colorInput) => {
|
|
|
6819
6820
|
if (!color) {
|
|
6820
6821
|
return false;
|
|
6821
6822
|
}
|
|
6822
|
-
color = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
6823
|
+
color = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(color.toUpperCase());
|
|
6823
6824
|
color = color.substring(1);
|
|
6824
6825
|
if (color.length === 3) {
|
|
6825
6826
|
for (let i = 0; i < 3; i += 1) {
|
|
@@ -6927,7 +6928,7 @@ function normalizeKeyAliases(keys) {
|
|
|
6927
6928
|
return keys
|
|
6928
6929
|
.replace(/\+\+/g, '+add')
|
|
6929
6930
|
.split(/[\s]*\+[\s]*/)
|
|
6930
|
-
.map(key => (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
6931
|
+
.map(key => (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(key.toLowerCase()))
|
|
6931
6932
|
.map(key => jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_ALIASES[key] || key)
|
|
6932
6933
|
.sort((a, b) => {
|
|
6933
6934
|
if (order[a] && !order[b]) {
|
|
@@ -6999,7 +7000,7 @@ const normalizeLicense = (license, count = 8) => {
|
|
|
6999
7000
|
*/
|
|
7000
7001
|
const normalizePath = (...path) => {
|
|
7001
7002
|
return path
|
|
7002
|
-
.filter(part => (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
7003
|
+
.filter(part => (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(part).length)
|
|
7003
7004
|
.map((part, index) => {
|
|
7004
7005
|
part = part.replace(/([^:])[\\/]+/g, '$1/');
|
|
7005
7006
|
if (index) {
|
|
@@ -7075,9 +7076,9 @@ const normalizeRelativePath = (path) => {
|
|
|
7075
7076
|
/**
|
|
7076
7077
|
* Normalize value to CSS meters
|
|
7077
7078
|
*/
|
|
7078
|
-
const normalizeSize = (value) => {
|
|
7079
|
+
const normalizeSize = (value, units) => {
|
|
7079
7080
|
if (/^[0-9]+$/.test(value.toString())) {
|
|
7080
|
-
return value +
|
|
7081
|
+
return value + units;
|
|
7081
7082
|
}
|
|
7082
7083
|
return value.toString();
|
|
7083
7084
|
};
|
|
@@ -7571,9 +7572,10 @@ function i18n(key, params, options) {
|
|
|
7571
7572
|
/* harmony export */ Pz: function() { return /* reexport safe */ _stringify__WEBPACK_IMPORTED_MODULE_4__.P; },
|
|
7572
7573
|
/* harmony export */ Qy: function() { return /* reexport safe */ _fuzzy_search_index__WEBPACK_IMPORTED_MODULE_1__.Q; },
|
|
7573
7574
|
/* harmony export */ ag: function() { return /* reexport safe */ _i18n__WEBPACK_IMPORTED_MODULE_2__.a; },
|
|
7574
|
-
/* harmony export */ as: function() { return /* reexport safe */ _trim__WEBPACK_IMPORTED_MODULE_5__.
|
|
7575
|
+
/* harmony export */ as: function() { return /* reexport safe */ _trim__WEBPACK_IMPORTED_MODULE_5__.as; },
|
|
7576
|
+
/* harmony export */ cE: function() { return /* reexport safe */ _trim__WEBPACK_IMPORTED_MODULE_5__.cE; },
|
|
7575
7577
|
/* harmony export */ eV: function() { return /* reexport safe */ _camel_case__WEBPACK_IMPORTED_MODULE_0__.e; },
|
|
7576
|
-
/* harmony export */ fy: function() { return /* reexport safe */ _trim__WEBPACK_IMPORTED_MODULE_5__.
|
|
7578
|
+
/* harmony export */ fy: function() { return /* reexport safe */ _trim__WEBPACK_IMPORTED_MODULE_5__.fy; },
|
|
7577
7579
|
/* harmony export */ gB: function() { return /* reexport safe */ _i18n__WEBPACK_IMPORTED_MODULE_2__.g; },
|
|
7578
7580
|
/* harmony export */ gP: function() { return /* reexport safe */ _kebab_case__WEBPACK_IMPORTED_MODULE_3__.g; }
|
|
7579
7581
|
/* harmony export */ });
|
|
@@ -7680,8 +7682,9 @@ function stringify(value, options = {}) {
|
|
|
7680
7682
|
|
|
7681
7683
|
"use strict";
|
|
7682
7684
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7683
|
-
/* harmony export */
|
|
7684
|
-
/* harmony export */
|
|
7685
|
+
/* harmony export */ as: function() { return /* binding */ trimInv; },
|
|
7686
|
+
/* harmony export */ cE: function() { return /* binding */ trimChars; },
|
|
7687
|
+
/* harmony export */ fy: function() { return /* binding */ trim; }
|
|
7685
7688
|
/* harmony export */ });
|
|
7686
7689
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
7687
7690
|
/*!
|
|
@@ -7702,6 +7705,11 @@ function trim(value) {
|
|
|
7702
7705
|
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP_END)(), '')
|
|
7703
7706
|
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP_START)(), '');
|
|
7704
7707
|
}
|
|
7708
|
+
function trimChars(value, chars) {
|
|
7709
|
+
return value
|
|
7710
|
+
.replace(RegExp(`[${chars}]+$`), '')
|
|
7711
|
+
.replace(RegExp(`^[${chars}]+`), '');
|
|
7712
|
+
}
|
|
7705
7713
|
/**
|
|
7706
7714
|
* Trim only invisible chars
|
|
7707
7715
|
*/
|
|
@@ -8315,6 +8323,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8315
8323
|
* Get the value of a computed style property for the first element in the set of matched elements or set one or
|
|
8316
8324
|
* more CSS properties for every matched element
|
|
8317
8325
|
*
|
|
8326
|
+
* @param element - HTML element
|
|
8318
8327
|
* @param key - An object of property-value pairs to set. A CSS property name.
|
|
8319
8328
|
* @param value - A value to set for the property.
|
|
8320
8329
|
* @param onlyStyleMode - Get value from style attribute, without calculating
|
|
@@ -11810,7 +11819,7 @@ function extractSelectedPart(wrapper, font, jodit) {
|
|
|
11810
11819
|
*/
|
|
11811
11820
|
function extractAndMove(wrapper, range, left) {
|
|
11812
11821
|
const fragment = range.extractContents();
|
|
11813
|
-
if ((!fragment.textContent || !(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .
|
|
11822
|
+
if ((!fragment.textContent || !(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .fy)(fragment.textContent).length) &&
|
|
11814
11823
|
fragment.firstChild) {
|
|
11815
11824
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.unwrap(fragment.firstChild);
|
|
11816
11825
|
}
|
|
@@ -12031,16 +12040,19 @@ void 0;
|
|
|
12031
12040
|
void 0;
|
|
12032
12041
|
void 0;
|
|
12033
12042
|
/**
|
|
12034
|
-
* Element has the similar styles
|
|
12043
|
+
* Element has the similar styles keys
|
|
12035
12044
|
*/
|
|
12036
12045
|
function hasSameStyleKeys(elm, rules) {
|
|
12037
12046
|
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isTag(elm, 'font') &&
|
|
12038
12047
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isHTMLElement(elm) &&
|
|
12039
12048
|
Object.keys(rules).every(property => {
|
|
12040
12049
|
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .i)(elm, property, true);
|
|
12041
|
-
return
|
|
12050
|
+
return value !== '';
|
|
12042
12051
|
}));
|
|
12043
12052
|
}
|
|
12053
|
+
const elm2 = document.createElement('div');
|
|
12054
|
+
elm2.style.color = 'red';
|
|
12055
|
+
void 0;
|
|
12044
12056
|
void 0;
|
|
12045
12057
|
void 0;
|
|
12046
12058
|
|
|
@@ -12062,8 +12074,8 @@ void 0;
|
|
|
12062
12074
|
/* harmony export */ iN: function() { return /* reexport safe */ _toggle_attributes__WEBPACK_IMPORTED_MODULE_0__.i; },
|
|
12063
12075
|
/* harmony export */ ig: function() { return /* reexport safe */ _extract__WEBPACK_IMPORTED_MODULE_4__.i; },
|
|
12064
12076
|
/* harmony export */ pe: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_9__.p; },
|
|
12065
|
-
/* harmony export */
|
|
12066
|
-
/* harmony export */
|
|
12077
|
+
/* harmony export */ qb: function() { return /* reexport safe */ _is_suit_element__WEBPACK_IMPORTED_MODULE_11__.qb; },
|
|
12078
|
+
/* harmony export */ re: function() { return /* reexport safe */ _wrap__WEBPACK_IMPORTED_MODULE_13__.r; }
|
|
12067
12079
|
/* harmony export */ });
|
|
12068
12080
|
/* harmony import */ var _toggle_attributes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91335);
|
|
12069
12081
|
/* harmony import */ var _list_toggle_ordered_list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70839);
|
|
@@ -12219,7 +12231,7 @@ function elementsEqualAttributes(elm1, elm2) {
|
|
|
12219
12231
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12220
12232
|
/* harmony export */ Dd: function() { return /* binding */ isSameStyleChild; },
|
|
12221
12233
|
/* harmony export */ fB: function() { return /* binding */ isSuitElement; },
|
|
12222
|
-
/* harmony export */
|
|
12234
|
+
/* harmony export */ qb: function() { return /* binding */ suitableClosest; }
|
|
12223
12235
|
/* harmony export */ });
|
|
12224
12236
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
12225
12237
|
/* harmony import */ var _is_normal_node__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16640);
|
|
@@ -12235,26 +12247,36 @@ function elementsEqualAttributes(elm1, elm2) {
|
|
|
12235
12247
|
* @param commitStyle - style commit
|
|
12236
12248
|
* @param elm - checked item
|
|
12237
12249
|
* @param strict - strict mode - false - the default tag is suitable for us if it is also in the commit
|
|
12250
|
+
* @param strictStyle - strict style mode - true - the element has the same style keys as in the commit, but not their values
|
|
12238
12251
|
* @private
|
|
12239
12252
|
*/
|
|
12240
|
-
function isSuitElement(commitStyle, elm, strict) {
|
|
12253
|
+
function isSuitElement(commitStyle, elm, strict, strictStyle = true) {
|
|
12241
12254
|
var _a;
|
|
12242
|
-
if (!elm) {
|
|
12255
|
+
if (!elm || !(0,_is_normal_node__WEBPACK_IMPORTED_MODULE_1__/* .isNormalNode */ .c)(elm)) {
|
|
12243
12256
|
return false;
|
|
12244
12257
|
}
|
|
12245
12258
|
const { element, elementIsDefault, options } = commitStyle;
|
|
12259
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isList(elm) && commitStyle.elementIsList) {
|
|
12260
|
+
return true;
|
|
12261
|
+
}
|
|
12262
|
+
const elmIsSame = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isTag(elm, element);
|
|
12263
|
+
if (elmIsSame && !(elementIsDefault && strict)) {
|
|
12264
|
+
return true;
|
|
12265
|
+
}
|
|
12246
12266
|
const elmHasSameStyle = Boolean(((_a = options.attributes) === null || _a === void 0 ? void 0 : _a.style) &&
|
|
12247
|
-
(
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
if (
|
|
12251
|
-
(elmHasSameStyle && (0,_is_normal_node__WEBPACK_IMPORTED_MODULE_1__/* .isNormalNode */ .c)(elm) && !commitStyle.elementIsList)) {
|
|
12267
|
+
(strictStyle
|
|
12268
|
+
? (0,_has_same_style__WEBPACK_IMPORTED_MODULE_2__/* .hasSameStyle */ .k)(elm, options.attributes.style)
|
|
12269
|
+
: (0,_has_same_style__WEBPACK_IMPORTED_MODULE_2__/* .hasSameStyleKeys */ .Y)(elm, options.attributes.style)));
|
|
12270
|
+
if (elmHasSameStyle && !commitStyle.elementIsList) {
|
|
12252
12271
|
return true;
|
|
12253
12272
|
}
|
|
12254
|
-
return
|
|
12273
|
+
return !elmIsSame && !strict && elementIsDefault && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isInlineBlock(elm);
|
|
12255
12274
|
}
|
|
12256
|
-
|
|
12257
|
-
|
|
12275
|
+
/**
|
|
12276
|
+
* @private
|
|
12277
|
+
*/
|
|
12278
|
+
function suitableClosest(commitStyle, element, root) {
|
|
12279
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.closest(element, node => isSuitElement(commitStyle, node, true, false), root);
|
|
12258
12280
|
}
|
|
12259
12281
|
/**
|
|
12260
12282
|
* Inside the parent element there is a block with the same styles
|
|
@@ -12264,6 +12286,7 @@ function findSuitClosest(commitStyle, element, root) {
|
|
|
12264
12286
|
* <p>|test<strong>test</strong>|</p>
|
|
12265
12287
|
* ```
|
|
12266
12288
|
* Apply `{element:'strong'}`
|
|
12289
|
+
* @private
|
|
12267
12290
|
*/
|
|
12268
12291
|
function isSameStyleChild(commitStyle, elm) {
|
|
12269
12292
|
var _a, _b;
|
|
@@ -12995,7 +13018,7 @@ const transactions = {
|
|
|
12995
13018
|
if (elm) {
|
|
12996
13019
|
return Object.assign(Object.assign({}, value), { next: states.ELEMENT, element: elm });
|
|
12997
13020
|
}
|
|
12998
|
-
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
13021
|
+
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__/* .suitableClosest */ .qb)(style, element, jodit.editor);
|
|
12999
13022
|
if (style.elementIsList && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isList(suit)) {
|
|
13000
13023
|
return Object.assign(Object.assign({}, value), { next: states.LIST });
|
|
13001
13024
|
}
|
|
@@ -13030,7 +13053,7 @@ const transactions = {
|
|
|
13030
13053
|
[states.EXTRACT]: {
|
|
13031
13054
|
exec(value) {
|
|
13032
13055
|
const { element, jodit, style } = value;
|
|
13033
|
-
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
13056
|
+
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__/* .suitableClosest */ .qb)(style, element, jodit.editor);
|
|
13034
13057
|
void 0;
|
|
13035
13058
|
if (!style.elementIsBlock) {
|
|
13036
13059
|
(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__/* .extractSelectedPart */ .ig)(suit, element, jodit);
|
|
@@ -13705,6 +13728,7 @@ let UIButton = class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MO
|
|
|
13705
13728
|
UIButton = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
13706
13729
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.component
|
|
13707
13730
|
], UIButton);
|
|
13731
|
+
|
|
13708
13732
|
function Button(jodit, stateOrText, text, variant) {
|
|
13709
13733
|
const button = new UIButton(jodit);
|
|
13710
13734
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
@@ -13815,6 +13839,7 @@ UIButtonGroup = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
|
13815
13839
|
], UIButtonGroup);
|
|
13816
13840
|
|
|
13817
13841
|
|
|
13842
|
+
|
|
13818
13843
|
/***/ }),
|
|
13819
13844
|
|
|
13820
13845
|
/***/ 29788:
|
|
@@ -13871,9 +13896,9 @@ UIButtonGroup = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
|
13871
13896
|
var UITooltip_1;
|
|
13872
13897
|
|
|
13873
13898
|
/**
|
|
13874
|
-
* [[include:
|
|
13899
|
+
* [[include:core/ui/button/tooltip/README.md]]
|
|
13875
13900
|
* @packageDocumentation
|
|
13876
|
-
* @module
|
|
13901
|
+
* @module ui/button
|
|
13877
13902
|
*/
|
|
13878
13903
|
|
|
13879
13904
|
|
|
@@ -14044,6 +14069,7 @@ UITooltip = UITooltip_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */
|
|
|
14044
14069
|
], UITooltip);
|
|
14045
14070
|
|
|
14046
14071
|
|
|
14072
|
+
|
|
14047
14073
|
/***/ }),
|
|
14048
14074
|
|
|
14049
14075
|
/***/ 84789:
|
|
@@ -14204,6 +14230,7 @@ UIElement = UIElement_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */
|
|
|
14204
14230
|
], UIElement);
|
|
14205
14231
|
|
|
14206
14232
|
|
|
14233
|
+
|
|
14207
14234
|
/***/ }),
|
|
14208
14235
|
|
|
14209
14236
|
/***/ 87043:
|
|
@@ -14224,7 +14251,7 @@ UIElement = UIElement_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */
|
|
|
14224
14251
|
*/
|
|
14225
14252
|
|
|
14226
14253
|
/**
|
|
14227
|
-
* @module ui/form
|
|
14254
|
+
* @module ui/form
|
|
14228
14255
|
*/
|
|
14229
14256
|
|
|
14230
14257
|
|
|
@@ -14254,6 +14281,7 @@ UIBlock = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
|
|
|
14254
14281
|
], UIBlock);
|
|
14255
14282
|
|
|
14256
14283
|
|
|
14284
|
+
|
|
14257
14285
|
/***/ }),
|
|
14258
14286
|
|
|
14259
14287
|
/***/ 23741:
|
|
@@ -14338,6 +14366,7 @@ UIForm = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
|
14338
14366
|
], UIForm);
|
|
14339
14367
|
|
|
14340
14368
|
|
|
14369
|
+
|
|
14341
14370
|
/***/ }),
|
|
14342
14371
|
|
|
14343
14372
|
/***/ 61916:
|
|
@@ -14416,6 +14445,7 @@ UITextArea = UITextArea_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate
|
|
|
14416
14445
|
], UITextArea);
|
|
14417
14446
|
|
|
14418
14447
|
|
|
14448
|
+
|
|
14419
14449
|
/***/ }),
|
|
14420
14450
|
|
|
14421
14451
|
/***/ 98341:
|
|
@@ -14501,6 +14531,7 @@ UICheckbox = UICheckbox_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate
|
|
|
14501
14531
|
], UICheckbox);
|
|
14502
14532
|
|
|
14503
14533
|
|
|
14534
|
+
|
|
14504
14535
|
/***/ }),
|
|
14505
14536
|
|
|
14506
14537
|
/***/ 12411:
|
|
@@ -14567,6 +14598,7 @@ UIFileInput = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
|
|
|
14567
14598
|
], UIFileInput);
|
|
14568
14599
|
|
|
14569
14600
|
|
|
14601
|
+
|
|
14570
14602
|
/***/ }),
|
|
14571
14603
|
|
|
14572
14604
|
/***/ 78862:
|
|
@@ -14842,6 +14874,7 @@ UIInput = UIInput_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn
|
|
|
14842
14874
|
], UIInput);
|
|
14843
14875
|
|
|
14844
14876
|
|
|
14877
|
+
|
|
14845
14878
|
/***/ }),
|
|
14846
14879
|
|
|
14847
14880
|
/***/ 54214:
|
|
@@ -14928,6 +14961,7 @@ UISelect = UISelect_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .
|
|
|
14928
14961
|
], UISelect);
|
|
14929
14962
|
|
|
14930
14963
|
|
|
14964
|
+
|
|
14931
14965
|
/***/ }),
|
|
14932
14966
|
|
|
14933
14967
|
/***/ 71713:
|
|
@@ -14976,7 +15010,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14976
15010
|
* Input is required
|
|
14977
15011
|
*/
|
|
14978
15012
|
const required = function (input) {
|
|
14979
|
-
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
15013
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(input.value).length) {
|
|
14980
15014
|
input.error = 'Please fill out this field';
|
|
14981
15015
|
return false;
|
|
14982
15016
|
}
|
|
@@ -14986,7 +15020,7 @@ const required = function (input) {
|
|
|
14986
15020
|
* Input value should be valid URL
|
|
14987
15021
|
*/
|
|
14988
15022
|
const url = function (input) {
|
|
14989
|
-
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .P)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
15023
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .P)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(input.value))) {
|
|
14990
15024
|
input.error = 'Please enter a web address';
|
|
14991
15025
|
return false;
|
|
14992
15026
|
}
|
|
@@ -15014,7 +15048,7 @@ const url = function (input) {
|
|
|
15014
15048
|
* Select is required
|
|
15015
15049
|
*/
|
|
15016
15050
|
const required = function (select) {
|
|
15017
|
-
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
15051
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(select.value).length) {
|
|
15018
15052
|
select.error = 'Please fill out this field';
|
|
15019
15053
|
return false;
|
|
15020
15054
|
}
|
|
@@ -15059,7 +15093,6 @@ var UIGroup_1;
|
|
|
15059
15093
|
|
|
15060
15094
|
|
|
15061
15095
|
let UIGroup = UIGroup_1 = class UIGroup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u {
|
|
15062
|
-
/** @override */
|
|
15063
15096
|
className() {
|
|
15064
15097
|
return 'UIGroup';
|
|
15065
15098
|
}
|
|
@@ -15077,7 +15110,6 @@ let UIGroup = UIGroup_1 = class UIGroup extends jodit_core_ui_element__WEBPACK_I
|
|
|
15077
15110
|
stack.push(...elm);
|
|
15078
15111
|
}
|
|
15079
15112
|
else if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_5__/* .Component */ .w.isInstanceOf(elm, UIGroup_1)) {
|
|
15080
|
-
// @ts-ignore
|
|
15081
15113
|
stack.push(...elm.elements);
|
|
15082
15114
|
}
|
|
15083
15115
|
else {
|
|
@@ -15179,6 +15211,7 @@ UIGroup = UIGroup_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn
|
|
|
15179
15211
|
], UIGroup);
|
|
15180
15212
|
|
|
15181
15213
|
|
|
15214
|
+
|
|
15182
15215
|
/***/ }),
|
|
15183
15216
|
|
|
15184
15217
|
/***/ 5217:
|
|
@@ -15321,7 +15354,14 @@ let UIList = class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
15321
15354
|
}
|
|
15322
15355
|
default:
|
|
15323
15356
|
lastBtnSeparator = false;
|
|
15324
|
-
|
|
15357
|
+
switch (control.component) {
|
|
15358
|
+
case 'select':
|
|
15359
|
+
elm = this.makeSelect(control, target);
|
|
15360
|
+
break;
|
|
15361
|
+
case 'button':
|
|
15362
|
+
default:
|
|
15363
|
+
elm = this.makeButton(control, target);
|
|
15364
|
+
}
|
|
15325
15365
|
}
|
|
15326
15366
|
if (elm) {
|
|
15327
15367
|
if (!group) {
|
|
@@ -15356,11 +15396,16 @@ let UIList = class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
15356
15396
|
this.update();
|
|
15357
15397
|
return this;
|
|
15358
15398
|
}
|
|
15399
|
+
makeSelect(control, target) {
|
|
15400
|
+
throw new Error('Not implemented behaviour');
|
|
15401
|
+
}
|
|
15359
15402
|
/**
|
|
15360
15403
|
* Create button instance
|
|
15361
15404
|
*/
|
|
15362
15405
|
makeButton(control, target) {
|
|
15363
|
-
return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__/* .UIButton */ .y3(this.j
|
|
15406
|
+
return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__/* .UIButton */ .y3(this.j, {
|
|
15407
|
+
name: control.name
|
|
15408
|
+
});
|
|
15364
15409
|
}
|
|
15365
15410
|
};
|
|
15366
15411
|
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
@@ -15371,6 +15416,7 @@ UIList = (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
|
15371
15416
|
], UIList);
|
|
15372
15417
|
|
|
15373
15418
|
|
|
15419
|
+
|
|
15374
15420
|
/***/ }),
|
|
15375
15421
|
|
|
15376
15422
|
/***/ 82388:
|
|
@@ -15404,6 +15450,7 @@ UISeparator = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .gn)([
|
|
|
15404
15450
|
], UISeparator);
|
|
15405
15451
|
|
|
15406
15452
|
|
|
15453
|
+
|
|
15407
15454
|
/***/ }),
|
|
15408
15455
|
|
|
15409
15456
|
/***/ 41131:
|
|
@@ -15437,6 +15484,7 @@ UISpacer = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .gn)([
|
|
|
15437
15484
|
], UISpacer);
|
|
15438
15485
|
|
|
15439
15486
|
|
|
15487
|
+
|
|
15440
15488
|
/***/ }),
|
|
15441
15489
|
|
|
15442
15490
|
/***/ 77549:
|
|
@@ -15528,6 +15576,7 @@ function getControlType(button, controls) {
|
|
|
15528
15576
|
* @private
|
|
15529
15577
|
*/
|
|
15530
15578
|
function findControlType(path, controls) {
|
|
15579
|
+
var _a;
|
|
15531
15580
|
// eslint-disable-next-line prefer-const
|
|
15532
15581
|
let [namespaceOrKey, key] = path.split(/\./);
|
|
15533
15582
|
let store = controls;
|
|
@@ -15539,8 +15588,14 @@ function findControlType(path, controls) {
|
|
|
15539
15588
|
else {
|
|
15540
15589
|
key = namespaceOrKey;
|
|
15541
15590
|
}
|
|
15591
|
+
const list = (_a = store[key]) === null || _a === void 0 ? void 0 : _a.list;
|
|
15542
15592
|
return store[key]
|
|
15543
|
-
? Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])) :
|
|
15593
|
+
? Object.assign(Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])), { list: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isArray)(list)
|
|
15594
|
+
? list.reduce((acc, k) => {
|
|
15595
|
+
acc[k] = k;
|
|
15596
|
+
return acc;
|
|
15597
|
+
}, {})
|
|
15598
|
+
: list }) : undefined;
|
|
15544
15599
|
}
|
|
15545
15600
|
|
|
15546
15601
|
|
|
@@ -15646,7 +15701,10 @@ class Icon {
|
|
|
15646
15701
|
let iconElement;
|
|
15647
15702
|
const { name, iconURL, fill } = icon;
|
|
15648
15703
|
const clearName = name.replace(/[^a-zA-Z0-9]/g, '_');
|
|
15649
|
-
|
|
15704
|
+
let iconFromEvent;
|
|
15705
|
+
if (!/<svg/.test(name)) {
|
|
15706
|
+
iconFromEvent = (_b = (_a = jodit.o).getIcon) === null || _b === void 0 ? void 0 : _b.call(_a, name, clearName);
|
|
15707
|
+
}
|
|
15650
15708
|
const cacheKey = `${name}${iconURL}${fill}${iconFromEvent !== null && iconFromEvent !== void 0 ? iconFromEvent : ''}`;
|
|
15651
15709
|
if (jodit.o.cache && this.__cache.has(cacheKey)) {
|
|
15652
15710
|
return (_c = this.__cache.get(cacheKey)) === null || _c === void 0 ? void 0 : _c.cloneNode(true);
|
|
@@ -15762,15 +15820,16 @@ Icon.__cache = new Map();
|
|
|
15762
15820
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15763
15821
|
/* harmony export */ G: function() { return /* binding */ Popup; }
|
|
15764
15822
|
/* harmony export */ });
|
|
15765
|
-
/* harmony import */ var
|
|
15823
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97582);
|
|
15766
15824
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
15767
15825
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95582);
|
|
15768
15826
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
15769
15827
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
15770
|
-
/* harmony import */ var
|
|
15771
|
-
/* harmony import */ var
|
|
15772
|
-
/* harmony import */ var
|
|
15773
|
-
/* harmony import */ var
|
|
15828
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91630);
|
|
15829
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84789);
|
|
15830
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50526);
|
|
15831
|
+
/* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79467);
|
|
15832
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81160);
|
|
15774
15833
|
/*!
|
|
15775
15834
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15776
15835
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15790,6 +15849,7 @@ Icon.__cache = new Map();
|
|
|
15790
15849
|
|
|
15791
15850
|
|
|
15792
15851
|
|
|
15852
|
+
|
|
15793
15853
|
const EVENTS_FOR_AUTOCLOSE = [
|
|
15794
15854
|
'escape',
|
|
15795
15855
|
'cut',
|
|
@@ -15797,25 +15857,28 @@ const EVENTS_FOR_AUTOCLOSE = [
|
|
|
15797
15857
|
'backSpaceAfterDelete',
|
|
15798
15858
|
'beforeCommandDelete'
|
|
15799
15859
|
];
|
|
15800
|
-
class Popup extends
|
|
15801
|
-
/** @override */
|
|
15860
|
+
class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_3__/* .UIGroup */ .q {
|
|
15802
15861
|
className() {
|
|
15803
15862
|
return 'Popup';
|
|
15804
15863
|
}
|
|
15805
|
-
|
|
15864
|
+
appendChildToContainer(childContainer) {
|
|
15865
|
+
const content = this.getElm('content');
|
|
15866
|
+
void 0;
|
|
15867
|
+
content.appendChild(childContainer);
|
|
15868
|
+
}
|
|
15806
15869
|
updateParentElement(target) {
|
|
15807
|
-
if (target !== this &&
|
|
15808
|
-
this.
|
|
15870
|
+
if (target !== this && jodit_core_component_component__WEBPACK_IMPORTED_MODULE_6__/* .Component */ .w.isInstanceOf(target, Popup)) {
|
|
15871
|
+
this.__childrenPopups.forEach(popup => {
|
|
15809
15872
|
if (!target.closest(popup) && popup.isOpened) {
|
|
15810
15873
|
popup.close();
|
|
15811
15874
|
}
|
|
15812
15875
|
});
|
|
15813
|
-
if (!this.
|
|
15876
|
+
if (!this.__childrenPopups.has(target)) {
|
|
15814
15877
|
this.j.e.on(target, 'beforeClose', () => {
|
|
15815
|
-
this.
|
|
15878
|
+
this.__childrenPopups.delete(target);
|
|
15816
15879
|
});
|
|
15817
15880
|
}
|
|
15818
|
-
this.
|
|
15881
|
+
this.__childrenPopups.add(target);
|
|
15819
15882
|
}
|
|
15820
15883
|
return super.updateParentElement(target);
|
|
15821
15884
|
}
|
|
@@ -15823,21 +15886,18 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15823
15886
|
* Set popup content
|
|
15824
15887
|
*/
|
|
15825
15888
|
setContent(content) {
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
let elm;
|
|
15829
|
-
if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_5__/* .Component */ .w.isInstanceOf(content, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .u)) {
|
|
15830
|
-
elm = content.container;
|
|
15831
|
-
content.parentElement = this;
|
|
15889
|
+
if (this.allChildren.length) {
|
|
15890
|
+
throw new Error('Remove children');
|
|
15832
15891
|
}
|
|
15833
|
-
|
|
15834
|
-
|
|
15892
|
+
if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_6__/* .Component */ .w.isInstanceOf(content, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .u)) {
|
|
15893
|
+
this.append(content);
|
|
15835
15894
|
}
|
|
15836
15895
|
else {
|
|
15837
|
-
elm = content
|
|
15896
|
+
const elm = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(content)
|
|
15897
|
+
? this.j.c.fromHTML(content)
|
|
15898
|
+
: content;
|
|
15899
|
+
this.appendChildToContainer(elm);
|
|
15838
15900
|
}
|
|
15839
|
-
box.appendChild(elm);
|
|
15840
|
-
this.container.appendChild(box);
|
|
15841
15901
|
this.updatePosition();
|
|
15842
15902
|
return this;
|
|
15843
15903
|
}
|
|
@@ -15846,17 +15906,17 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15846
15906
|
*/
|
|
15847
15907
|
open(getBound, keepPosition = false, parentContainer) {
|
|
15848
15908
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.markOwner)(this.jodit, this.container);
|
|
15849
|
-
this.
|
|
15909
|
+
this.__calculateZIndex();
|
|
15850
15910
|
this.isOpened = true;
|
|
15851
|
-
this.
|
|
15852
|
-
this.
|
|
15911
|
+
this.__addGlobalListeners();
|
|
15912
|
+
this.__targetBound = !keepPosition
|
|
15853
15913
|
? getBound
|
|
15854
15914
|
: this.getKeepBound(getBound);
|
|
15855
15915
|
if (parentContainer) {
|
|
15856
15916
|
parentContainer.appendChild(this.container);
|
|
15857
15917
|
}
|
|
15858
15918
|
else {
|
|
15859
|
-
const popupContainer = (0,
|
|
15919
|
+
const popupContainer = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_7__/* .getContainer */ .ZO)(this.jodit, Popup);
|
|
15860
15920
|
if (parentContainer !== this.container.parentElement) {
|
|
15861
15921
|
popupContainer.appendChild(this.container);
|
|
15862
15922
|
}
|
|
@@ -15866,7 +15926,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15866
15926
|
this.j.e.fire('afterOpenPopup', this);
|
|
15867
15927
|
return this;
|
|
15868
15928
|
}
|
|
15869
|
-
|
|
15929
|
+
__calculateZIndex() {
|
|
15870
15930
|
if (this.container.style.zIndex) {
|
|
15871
15931
|
return;
|
|
15872
15932
|
}
|
|
@@ -15892,7 +15952,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15892
15952
|
return;
|
|
15893
15953
|
}
|
|
15894
15954
|
if (!pe.parentElement && pe.container.parentElement) {
|
|
15895
|
-
const elm =
|
|
15955
|
+
const elm = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .u.closestElement(pe.container.parentElement, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .u);
|
|
15896
15956
|
if (elm) {
|
|
15897
15957
|
pe = elm;
|
|
15898
15958
|
continue;
|
|
@@ -15927,22 +15987,22 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15927
15987
|
if (!this.isOpened) {
|
|
15928
15988
|
return this;
|
|
15929
15989
|
}
|
|
15930
|
-
const [pos, strategy] = this.
|
|
15990
|
+
const [pos, strategy] = this.__calculatePosition(this.__targetBound(), this.viewBound(), (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.position)(this.container, this.j));
|
|
15931
15991
|
this.setMod('strategy', strategy);
|
|
15932
15992
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.css)(this.container, {
|
|
15933
15993
|
left: pos.left,
|
|
15934
15994
|
top: pos.top
|
|
15935
15995
|
});
|
|
15936
|
-
this.
|
|
15996
|
+
this.__childrenPopups.forEach(popup => popup.updatePosition());
|
|
15937
15997
|
return this;
|
|
15938
15998
|
}
|
|
15939
|
-
|
|
15999
|
+
__throttleUpdatePosition() {
|
|
15940
16000
|
this.updatePosition();
|
|
15941
16001
|
}
|
|
15942
16002
|
/**
|
|
15943
16003
|
* Calculate start point
|
|
15944
16004
|
*/
|
|
15945
|
-
|
|
16005
|
+
__calculatePosition(target, view, container, defaultStrategy = this.strategy) {
|
|
15946
16006
|
const x = {
|
|
15947
16007
|
left: target.left,
|
|
15948
16008
|
right: target.left - (container.width - target.width)
|
|
@@ -16003,17 +16063,17 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16003
16063
|
return this;
|
|
16004
16064
|
}
|
|
16005
16065
|
this.isOpened = false;
|
|
16006
|
-
this.
|
|
16066
|
+
this.__childrenPopups.forEach(popup => popup.close());
|
|
16007
16067
|
this.j.e.fire(this, 'beforeClose');
|
|
16008
16068
|
this.j.e.fire('beforePopupClose', this);
|
|
16009
|
-
this.
|
|
16069
|
+
this.__removeGlobalListeners();
|
|
16010
16070
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.safeRemove(this.container);
|
|
16011
16071
|
return this;
|
|
16012
16072
|
}
|
|
16013
16073
|
/**
|
|
16014
16074
|
* Close popup if click was in outside
|
|
16015
16075
|
*/
|
|
16016
|
-
|
|
16076
|
+
__closeOnOutsideClick(e) {
|
|
16017
16077
|
if (!this.isOpened || this.isOwnClick(e)) {
|
|
16018
16078
|
return;
|
|
16019
16079
|
}
|
|
@@ -16023,17 +16083,17 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16023
16083
|
if (!e.target) {
|
|
16024
16084
|
return false;
|
|
16025
16085
|
}
|
|
16026
|
-
const box =
|
|
16086
|
+
const box = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .u.closestElement(e.target, Popup);
|
|
16027
16087
|
return Boolean(box && (this === box || box.closest(this)));
|
|
16028
16088
|
}
|
|
16029
|
-
|
|
16030
|
-
const up = this.
|
|
16031
|
-
|
|
16089
|
+
__addGlobalListeners() {
|
|
16090
|
+
const up = this.__throttleUpdatePosition, ow = this.ow;
|
|
16091
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_7__/* .eventEmitter */ .TB.on('closeAllPopups', this.close);
|
|
16032
16092
|
if (this.smart) {
|
|
16033
16093
|
this.j.e
|
|
16034
16094
|
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16035
|
-
.on('mousedown touchstart', this.
|
|
16036
|
-
.on(ow, 'mousedown touchstart', this.
|
|
16095
|
+
.on('mousedown touchstart', this.__closeOnOutsideClick)
|
|
16096
|
+
.on(ow, 'mousedown touchstart', this.__closeOnOutsideClick);
|
|
16037
16097
|
}
|
|
16038
16098
|
this.j.e
|
|
16039
16099
|
.on('closeAllPopups', this.close)
|
|
@@ -16045,14 +16105,14 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16045
16105
|
box && this.j.e.on(box, 'scroll mousewheel', up);
|
|
16046
16106
|
});
|
|
16047
16107
|
}
|
|
16048
|
-
|
|
16049
|
-
const up = this.
|
|
16050
|
-
|
|
16108
|
+
__removeGlobalListeners() {
|
|
16109
|
+
const up = this.__throttleUpdatePosition, ow = this.ow;
|
|
16110
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_7__/* .eventEmitter */ .TB.off('closeAllPopups', this.close);
|
|
16051
16111
|
if (this.smart) {
|
|
16052
16112
|
this.j.e
|
|
16053
16113
|
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16054
|
-
.off('mousedown touchstart', this.
|
|
16055
|
-
.off(ow, 'mousedown touchstart', this.
|
|
16114
|
+
.off('mousedown touchstart', this.__closeOnOutsideClick)
|
|
16115
|
+
.off(ow, 'mousedown touchstart', this.__closeOnOutsideClick);
|
|
16056
16116
|
}
|
|
16057
16117
|
this.j.e
|
|
16058
16118
|
.off('closeAllPopups', this.close)
|
|
@@ -16082,28 +16142,33 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16082
16142
|
width: this.ow.innerWidth,
|
|
16083
16143
|
height: this.ow.innerHeight
|
|
16084
16144
|
});
|
|
16085
|
-
this.
|
|
16145
|
+
this.__childrenPopups = new Set();
|
|
16086
16146
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(this.container, 'role', 'popup');
|
|
16087
16147
|
}
|
|
16148
|
+
render() {
|
|
16149
|
+
return `<div>
|
|
16150
|
+
<div class="&__content"></div>
|
|
16151
|
+
</div>`;
|
|
16152
|
+
}
|
|
16088
16153
|
/** @override **/
|
|
16089
16154
|
destruct() {
|
|
16090
16155
|
this.close();
|
|
16091
16156
|
return super.destruct();
|
|
16092
16157
|
}
|
|
16093
16158
|
}
|
|
16094
|
-
(0,
|
|
16095
|
-
|
|
16159
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
16160
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
16096
16161
|
], Popup.prototype, "updatePosition", null);
|
|
16097
|
-
(0,
|
|
16098
|
-
(0,
|
|
16099
|
-
|
|
16100
|
-
], Popup.prototype, "
|
|
16101
|
-
(0,
|
|
16102
|
-
|
|
16162
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
16163
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.throttle)(10),
|
|
16164
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
16165
|
+
], Popup.prototype, "__throttleUpdatePosition", null);
|
|
16166
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
16167
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
16103
16168
|
], Popup.prototype, "close", null);
|
|
16104
|
-
(0,
|
|
16105
|
-
|
|
16106
|
-
], Popup.prototype, "
|
|
16169
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
16170
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
16171
|
+
], Popup.prototype, "__closeOnOutsideClick", null);
|
|
16107
16172
|
|
|
16108
16173
|
|
|
16109
16174
|
/***/ }),
|
|
@@ -16296,7 +16361,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
16296
16361
|
/** @override **/
|
|
16297
16362
|
constructor(options, isJodit = false) {
|
|
16298
16363
|
super(options, isJodit);
|
|
16299
|
-
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__/* .makeCollection */ .
|
|
16364
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__/* .makeCollection */ .RP)(this);
|
|
16300
16365
|
this.defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16301
16366
|
this.registeredButtons = new Set();
|
|
16302
16367
|
this.groupToButtons = {};
|
|
@@ -16606,6 +16671,7 @@ View.esModern = jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_ES_MODERN;
|
|
|
16606
16671
|
View = View_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
16607
16672
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.derive)(jodit_core_traits_mods__WEBPACK_IMPORTED_MODULE_10__/* .Mods */ .$, jodit_core_traits_elms__WEBPACK_IMPORTED_MODULE_6__/* .Elms */ .F)
|
|
16608
16673
|
], View);
|
|
16674
|
+
|
|
16609
16675
|
View.defaultOptions = {
|
|
16610
16676
|
extraButtons: [],
|
|
16611
16677
|
cache: true,
|
|
@@ -17964,6 +18030,7 @@ Jodit.core = {
|
|
|
17964
18030
|
Jodit = Jodit_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
17965
18031
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_6__/* .Dlgs */ .l)
|
|
17966
18032
|
], Jodit);
|
|
18033
|
+
|
|
17967
18034
|
function addClassNames(className, elm) {
|
|
17968
18035
|
if (className) {
|
|
17969
18036
|
className.split(/\s+/).forEach(cn => elm.classList.add(cn));
|
|
@@ -18148,6 +18215,7 @@ ContextMenu = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
|
18148
18215
|
], ContextMenu);
|
|
18149
18216
|
|
|
18150
18217
|
|
|
18218
|
+
|
|
18151
18219
|
/***/ }),
|
|
18152
18220
|
|
|
18153
18221
|
/***/ 24040:
|
|
@@ -18891,6 +18959,7 @@ Dialog = (0,tslib__WEBPACK_IMPORTED_MODULE_13__/* .__decorate */ .gn)([
|
|
|
18891
18959
|
], Dialog);
|
|
18892
18960
|
|
|
18893
18961
|
|
|
18962
|
+
|
|
18894
18963
|
/***/ }),
|
|
18895
18964
|
|
|
18896
18965
|
/***/ 2932:
|
|
@@ -19572,7 +19641,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.filebrowser
|
|
|
19572
19641
|
},
|
|
19573
19642
|
filter: {
|
|
19574
19643
|
isInput: true,
|
|
19575
|
-
getContent: (filebrowser,
|
|
19644
|
+
getContent: (filebrowser, b) => {
|
|
19576
19645
|
const oldInput = b.container.querySelector('.jodit-input');
|
|
19577
19646
|
if (oldInput) {
|
|
19578
19647
|
return oldInput;
|
|
@@ -20519,6 +20588,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20519
20588
|
FileBrowser = (0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .gn)([
|
|
20520
20589
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_10__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_15__/* .Dlgs */ .l)
|
|
20521
20590
|
], FileBrowser);
|
|
20591
|
+
|
|
20522
20592
|
/**
|
|
20523
20593
|
* @private
|
|
20524
20594
|
*/
|
|
@@ -22160,6 +22230,7 @@ ImageEditor.calcValueByPercent = (value, percent) => {
|
|
|
22160
22230
|
ImageEditor = ImageEditor_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
22161
22231
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.component
|
|
22162
22232
|
], ImageEditor);
|
|
22233
|
+
|
|
22163
22234
|
/**
|
|
22164
22235
|
* Open Image Editor
|
|
22165
22236
|
*/
|
|
@@ -22314,10 +22385,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22314
22385
|
/* harmony export */ Snapshot: function() { return /* reexport safe */ _history_snapshot__WEBPACK_IMPORTED_MODULE_16__.a; },
|
|
22315
22386
|
/* harmony export */ StatusBar: function() { return /* reexport safe */ _status_bar_status_bar__WEBPACK_IMPORTED_MODULE_18__.A; },
|
|
22316
22387
|
/* harmony export */ Table: function() { return /* reexport safe */ _table_table__WEBPACK_IMPORTED_MODULE_19__.i; },
|
|
22317
|
-
/* harmony export */ ToolbarButton: function() { return /* reexport safe */ _toolbar_button__WEBPACK_IMPORTED_MODULE_22__.
|
|
22388
|
+
/* harmony export */ ToolbarButton: function() { return /* reexport safe */ _toolbar_button__WEBPACK_IMPORTED_MODULE_22__.hA; },
|
|
22318
22389
|
/* harmony export */ ToolbarCollection: function() { return /* reexport safe */ _toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_21__.n; },
|
|
22319
|
-
/* harmony export */ ToolbarContent: function() { return /* reexport safe */ _toolbar_button__WEBPACK_IMPORTED_MODULE_22__.
|
|
22390
|
+
/* harmony export */ ToolbarContent: function() { return /* reexport safe */ _toolbar_button__WEBPACK_IMPORTED_MODULE_22__.c_; },
|
|
22320
22391
|
/* harmony export */ ToolbarEditorCollection: function() { return /* reexport safe */ _toolbar_collection_editor_collection__WEBPACK_IMPORTED_MODULE_20__.N; },
|
|
22392
|
+
/* harmony export */ ToolbarSelect: function() { return /* reexport safe */ _toolbar_button__WEBPACK_IMPORTED_MODULE_22__.vT; },
|
|
22321
22393
|
/* harmony export */ UIBlock: function() { return /* reexport safe */ jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__.eC; },
|
|
22322
22394
|
/* harmony export */ UIButton: function() { return /* reexport safe */ jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__.y3; },
|
|
22323
22395
|
/* harmony export */ UICheckbox: function() { return /* reexport safe */ jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__.mA; },
|
|
@@ -22438,6 +22510,7 @@ UIMessage = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .gn)([
|
|
|
22438
22510
|
], UIMessage);
|
|
22439
22511
|
|
|
22440
22512
|
|
|
22513
|
+
|
|
22441
22514
|
/***/ }),
|
|
22442
22515
|
|
|
22443
22516
|
/***/ 15964:
|
|
@@ -22545,6 +22618,7 @@ UIMessages = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
|
22545
22618
|
], UIMessages);
|
|
22546
22619
|
|
|
22547
22620
|
|
|
22621
|
+
|
|
22548
22622
|
/***/ }),
|
|
22549
22623
|
|
|
22550
22624
|
/***/ 66529:
|
|
@@ -22655,6 +22729,7 @@ StatusBar = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
|
22655
22729
|
], StatusBar);
|
|
22656
22730
|
|
|
22657
22731
|
|
|
22732
|
+
|
|
22658
22733
|
/***/ }),
|
|
22659
22734
|
|
|
22660
22735
|
/***/ 2871:
|
|
@@ -23363,26 +23438,28 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23363
23438
|
}
|
|
23364
23439
|
/** @override **/
|
|
23365
23440
|
update() {
|
|
23366
|
-
var _a;
|
|
23367
|
-
// @ts-ignore
|
|
23368
|
-
window.__onupdate = ((_a = window.__onupdate) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
23441
|
+
var _a, _b;
|
|
23369
23442
|
const { control, state } = this, tc = this.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_7__/* .ToolbarCollection */ .n);
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(control.update) && tc) {
|
|
23373
|
-
control.update(this, tc.jodit);
|
|
23443
|
+
if (!tc) {
|
|
23444
|
+
return;
|
|
23374
23445
|
}
|
|
23375
|
-
|
|
23446
|
+
const value = (_a = control.value) === null || _a === void 0 ? void 0 : _a.call(control, tc.jodit, this);
|
|
23447
|
+
if (value !== undefined) {
|
|
23448
|
+
state.value = value;
|
|
23449
|
+
}
|
|
23450
|
+
state.disabled = this.__calculateDisabledStatus(tc);
|
|
23451
|
+
state.activated = this.__calculateActivatedStatus(tc);
|
|
23452
|
+
(_b = control.update) === null || _b === void 0 ? void 0 : _b.call(control, tc.jodit, this);
|
|
23376
23453
|
}
|
|
23377
23454
|
/**
|
|
23378
23455
|
* Calculates whether the button is active
|
|
23379
23456
|
*/
|
|
23380
|
-
|
|
23457
|
+
__calculateActivatedStatus(tc) {
|
|
23458
|
+
var _a, _b;
|
|
23381
23459
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
23382
23460
|
return false;
|
|
23383
23461
|
}
|
|
23384
|
-
if ((
|
|
23385
|
-
this.control.isActive(this.j, this.control, this)) {
|
|
23462
|
+
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
23386
23463
|
return true;
|
|
23387
23464
|
}
|
|
23388
23465
|
return Boolean(tc && tc.shouldBeActive(this));
|
|
@@ -23390,7 +23467,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23390
23467
|
/**
|
|
23391
23468
|
* Calculates whether an element is blocked for the user
|
|
23392
23469
|
*/
|
|
23393
|
-
|
|
23470
|
+
__calculateDisabledStatus(tc) {
|
|
23471
|
+
var _a, _b;
|
|
23394
23472
|
if (this.j.o.disabled) {
|
|
23395
23473
|
return true;
|
|
23396
23474
|
}
|
|
@@ -23399,8 +23477,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23399
23477
|
!this.j.o.activeButtonsInReadOnly.includes(this.control.name))) {
|
|
23400
23478
|
return true;
|
|
23401
23479
|
}
|
|
23402
|
-
if ((
|
|
23403
|
-
this.control.isDisabled(this.j, this.control, this)) {
|
|
23480
|
+
if ((_b = (_a = this.control).isDisabled) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
23404
23481
|
return true;
|
|
23405
23482
|
}
|
|
23406
23483
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
@@ -23533,7 +23610,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23533
23610
|
onTriggerClick(e) {
|
|
23534
23611
|
var _a, _b, _c;
|
|
23535
23612
|
if (this.openedPopup) {
|
|
23536
|
-
this.
|
|
23613
|
+
this.__closePopup();
|
|
23537
23614
|
return;
|
|
23538
23615
|
}
|
|
23539
23616
|
const { control: ctr } = this;
|
|
@@ -23541,14 +23618,14 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23541
23618
|
actionTrigger: this
|
|
23542
23619
|
};
|
|
23543
23620
|
if (ctr.list) {
|
|
23544
|
-
return this.
|
|
23621
|
+
return this.__openControlList(ctr);
|
|
23545
23622
|
}
|
|
23546
23623
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
|
|
23547
23624
|
const popup = this.openPopup();
|
|
23548
23625
|
popup.parentElement = this;
|
|
23549
23626
|
if (this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
23550
23627
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
23551
|
-
const elm = ctr.popup(this.j, target,
|
|
23628
|
+
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
23552
23629
|
if (elm) {
|
|
23553
23630
|
popup
|
|
23554
23631
|
.setContent((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? this.j.c.fromHTML(elm) : elm)
|
|
@@ -23569,10 +23646,10 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23569
23646
|
/**
|
|
23570
23647
|
* Create and open popup list
|
|
23571
23648
|
*/
|
|
23572
|
-
|
|
23649
|
+
__openControlList(control) {
|
|
23573
23650
|
var _a;
|
|
23574
23651
|
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key) => (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_9__/* .findControlType */ .z)(key, controls);
|
|
23575
|
-
const list = control.list, menu = this.openPopup(), toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .
|
|
23652
|
+
const list = control.list, menu = this.openPopup(), toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .RP)(this.j);
|
|
23576
23653
|
menu.parentElement = this;
|
|
23577
23654
|
toolbar.parentElement = menu;
|
|
23578
23655
|
toolbar.mode = 'vertical';
|
|
@@ -23602,6 +23679,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23602
23679
|
data: control.data,
|
|
23603
23680
|
command: control.command,
|
|
23604
23681
|
isActive: control.isChildActive,
|
|
23682
|
+
value: control.value,
|
|
23605
23683
|
isDisabled: control.isChildDisabled,
|
|
23606
23684
|
mode: control.mode,
|
|
23607
23685
|
args: [...(control.args ? control.args : []), key, value]
|
|
@@ -23614,7 +23692,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23614
23692
|
toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isArray)(list)
|
|
23615
23693
|
? list.map(getButton)
|
|
23616
23694
|
: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.keys)(list, false).map(key => getButton(key, list[key])), this.target);
|
|
23617
|
-
menu.setContent(toolbar
|
|
23695
|
+
menu.setContent(toolbar).open(() => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
23618
23696
|
this.state.activated = true;
|
|
23619
23697
|
}
|
|
23620
23698
|
onOutsideClick(e) {
|
|
@@ -23625,18 +23703,18 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23625
23703
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isNode(e.target) ||
|
|
23626
23704
|
(!jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isOrContains(this.container, e.target) &&
|
|
23627
23705
|
!this.openedPopup.isOwnClick(e))) {
|
|
23628
|
-
this.
|
|
23706
|
+
this.__closePopup();
|
|
23629
23707
|
}
|
|
23630
23708
|
}
|
|
23631
23709
|
openPopup() {
|
|
23632
|
-
this.
|
|
23710
|
+
this.__closePopup();
|
|
23633
23711
|
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_3__/* .Popup */ .G(this.j, false);
|
|
23634
23712
|
this.j.e
|
|
23635
23713
|
.on(this.ow, 'mousedown touchstart', this.onOutsideClick)
|
|
23636
23714
|
.on('escape closeAllPopups', this.onOutsideClick);
|
|
23637
23715
|
return this.openedPopup;
|
|
23638
23716
|
}
|
|
23639
|
-
|
|
23717
|
+
__closePopup() {
|
|
23640
23718
|
if (this.openedPopup) {
|
|
23641
23719
|
this.j.e
|
|
23642
23720
|
.off(this.ow, 'mousedown touchstart', this.onOutsideClick)
|
|
@@ -23676,7 +23754,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23676
23754
|
}
|
|
23677
23755
|
}
|
|
23678
23756
|
if (ctr.list) {
|
|
23679
|
-
return this.
|
|
23757
|
+
return this.__openControlList(ctr);
|
|
23680
23758
|
}
|
|
23681
23759
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
|
|
23682
23760
|
return this.onTriggerClick(originalEvent);
|
|
@@ -23689,7 +23767,7 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23689
23767
|
}
|
|
23690
23768
|
}
|
|
23691
23769
|
destruct() {
|
|
23692
|
-
this.
|
|
23770
|
+
this.__closePopup();
|
|
23693
23771
|
return super.destruct();
|
|
23694
23772
|
}
|
|
23695
23773
|
};
|
|
@@ -23707,12 +23785,13 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23707
23785
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
23708
23786
|
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
23709
23787
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
23710
|
-
], ToolbarButton.prototype, "
|
|
23788
|
+
], ToolbarButton.prototype, "__closePopup", null);
|
|
23711
23789
|
ToolbarButton = (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
23712
23790
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
23713
23791
|
], ToolbarButton);
|
|
23714
23792
|
|
|
23715
23793
|
|
|
23794
|
+
|
|
23716
23795
|
/***/ }),
|
|
23717
23796
|
|
|
23718
23797
|
/***/ 75482:
|
|
@@ -23748,7 +23827,7 @@ let ToolbarContent = class ToolbarContent extends jodit_core_ui_button__WEBPACK_
|
|
|
23748
23827
|
}
|
|
23749
23828
|
/** @override */
|
|
23750
23829
|
update() {
|
|
23751
|
-
const content = this.control.getContent(this.j, this
|
|
23830
|
+
const content = this.control.getContent(this.j, this);
|
|
23752
23831
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(content) || content.parentNode !== this.container) {
|
|
23753
23832
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.detach(this.container);
|
|
23754
23833
|
this.container.appendChild((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(content) ? this.j.create.fromHTML(content) : content);
|
|
@@ -23772,6 +23851,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
|
23772
23851
|
], ToolbarContent);
|
|
23773
23852
|
|
|
23774
23853
|
|
|
23854
|
+
|
|
23775
23855
|
/***/ }),
|
|
23776
23856
|
|
|
23777
23857
|
/***/ 63782:
|
|
@@ -23779,11 +23859,13 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
|
23779
23859
|
|
|
23780
23860
|
"use strict";
|
|
23781
23861
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23782
|
-
/* harmony export */
|
|
23783
|
-
/* harmony export */
|
|
23862
|
+
/* harmony export */ c_: function() { return /* reexport safe */ _content__WEBPACK_IMPORTED_MODULE_1__.c; },
|
|
23863
|
+
/* harmony export */ hA: function() { return /* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_0__.h; },
|
|
23864
|
+
/* harmony export */ vT: function() { return /* reexport safe */ _select_select__WEBPACK_IMPORTED_MODULE_2__.v; }
|
|
23784
23865
|
/* harmony export */ });
|
|
23785
23866
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34288);
|
|
23786
23867
|
/* harmony import */ var _content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75482);
|
|
23868
|
+
/* harmony import */ var _select_select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24440);
|
|
23787
23869
|
/*!
|
|
23788
23870
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
23789
23871
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -23796,6 +23878,63 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
|
23796
23878
|
|
|
23797
23879
|
|
|
23798
23880
|
|
|
23881
|
+
|
|
23882
|
+
/***/ }),
|
|
23883
|
+
|
|
23884
|
+
/***/ 24440:
|
|
23885
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
23886
|
+
|
|
23887
|
+
"use strict";
|
|
23888
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23889
|
+
/* harmony export */ v: function() { return /* binding */ ToolbarSelect; }
|
|
23890
|
+
/* harmony export */ });
|
|
23891
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
23892
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
23893
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4682);
|
|
23894
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34288);
|
|
23895
|
+
/*!
|
|
23896
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
23897
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
23898
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
23899
|
+
*/
|
|
23900
|
+
|
|
23901
|
+
/**
|
|
23902
|
+
* @module modules/toolbar/button
|
|
23903
|
+
*/
|
|
23904
|
+
|
|
23905
|
+
|
|
23906
|
+
|
|
23907
|
+
|
|
23908
|
+
let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .h {
|
|
23909
|
+
className() {
|
|
23910
|
+
return 'ToolbarSelect';
|
|
23911
|
+
}
|
|
23912
|
+
update() {
|
|
23913
|
+
var _a, _b, _c;
|
|
23914
|
+
super.update();
|
|
23915
|
+
this.state.icon.name = '';
|
|
23916
|
+
const { list, data } = this.control;
|
|
23917
|
+
if (list) {
|
|
23918
|
+
let key = this.state.value ||
|
|
23919
|
+
(data && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .H)(data.currentValue)
|
|
23920
|
+
? data.currentValue
|
|
23921
|
+
: undefined);
|
|
23922
|
+
if (!key) {
|
|
23923
|
+
const keys = Object.keys(list);
|
|
23924
|
+
key = keys[0];
|
|
23925
|
+
}
|
|
23926
|
+
const text = (list[key.toString()] || key).toString();
|
|
23927
|
+
this.state.text =
|
|
23928
|
+
(_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
|
|
23929
|
+
}
|
|
23930
|
+
}
|
|
23931
|
+
};
|
|
23932
|
+
ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
23933
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
23934
|
+
], ToolbarSelect);
|
|
23935
|
+
|
|
23936
|
+
|
|
23937
|
+
|
|
23799
23938
|
/***/ }),
|
|
23800
23939
|
|
|
23801
23940
|
/***/ 60731:
|
|
@@ -23839,7 +23978,10 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
23839
23978
|
return button || null;
|
|
23840
23979
|
}
|
|
23841
23980
|
makeButton(control, target = null) {
|
|
23842
|
-
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeButton */ .
|
|
23981
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeButton */ .gu)(this.j, control, target);
|
|
23982
|
+
}
|
|
23983
|
+
makeSelect(control, target = null) {
|
|
23984
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeSelect */ .OT)(this.j, control, target);
|
|
23843
23985
|
}
|
|
23844
23986
|
/**
|
|
23845
23987
|
* Button should be active
|
|
@@ -23926,6 +24068,7 @@ ToolbarCollection = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)(
|
|
|
23926
24068
|
], ToolbarCollection);
|
|
23927
24069
|
|
|
23928
24070
|
|
|
24071
|
+
|
|
23929
24072
|
/***/ }),
|
|
23930
24073
|
|
|
23931
24074
|
/***/ 99332:
|
|
@@ -24072,6 +24215,7 @@ ToolbarEditorCollection = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */
|
|
|
24072
24215
|
], ToolbarEditorCollection);
|
|
24073
24216
|
|
|
24074
24217
|
|
|
24218
|
+
|
|
24075
24219
|
/***/ }),
|
|
24076
24220
|
|
|
24077
24221
|
/***/ 45429:
|
|
@@ -24079,14 +24223,16 @@ ToolbarEditorCollection = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */
|
|
|
24079
24223
|
|
|
24080
24224
|
"use strict";
|
|
24081
24225
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24082
|
-
/* harmony export */
|
|
24083
|
-
/* harmony export */
|
|
24226
|
+
/* harmony export */ OT: function() { return /* binding */ makeSelect; },
|
|
24227
|
+
/* harmony export */ RP: function() { return /* binding */ makeCollection; },
|
|
24228
|
+
/* harmony export */ gu: function() { return /* binding */ makeButton; }
|
|
24084
24229
|
/* harmony export */ });
|
|
24085
24230
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
24086
24231
|
/* harmony import */ var _collection_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60731);
|
|
24087
24232
|
/* harmony import */ var _collection_editor_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99332);
|
|
24088
24233
|
/* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34288);
|
|
24089
24234
|
/* harmony import */ var _button_content__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75482);
|
|
24235
|
+
/* harmony import */ var _button_select_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24440);
|
|
24090
24236
|
/*!
|
|
24091
24237
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24092
24238
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24097,6 +24243,7 @@ ToolbarEditorCollection = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */
|
|
|
24097
24243
|
|
|
24098
24244
|
|
|
24099
24245
|
|
|
24246
|
+
|
|
24100
24247
|
/**
|
|
24101
24248
|
* Collection factory
|
|
24102
24249
|
*/
|
|
@@ -24126,6 +24273,9 @@ function makeButton(jodit, control, target = null) {
|
|
|
24126
24273
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
24127
24274
|
return button;
|
|
24128
24275
|
}
|
|
24276
|
+
function makeSelect(view, control, target = null) {
|
|
24277
|
+
return new _button_select_select__WEBPACK_IMPORTED_MODULE_5__/* .ToolbarSelect */ .v(view, control, target);
|
|
24278
|
+
}
|
|
24129
24279
|
|
|
24130
24280
|
|
|
24131
24281
|
/***/ }),
|
|
@@ -26505,12 +26655,7 @@ function bold(editor) {
|
|
|
26505
26655
|
: cssOptions[key];
|
|
26506
26656
|
});
|
|
26507
26657
|
editor.s.commitStyle({
|
|
26508
|
-
element: control.tags ? control.tags[0] : undefined
|
|
26509
|
-
attributes: cssRules
|
|
26510
|
-
? {
|
|
26511
|
-
style: cssRules
|
|
26512
|
-
}
|
|
26513
|
-
: {}
|
|
26658
|
+
element: control.tags ? control.tags[0] : undefined
|
|
26514
26659
|
});
|
|
26515
26660
|
editor.synchronizeValues();
|
|
26516
26661
|
return false;
|
|
@@ -26654,29 +26799,29 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.classSpan =
|
|
|
26654
26799
|
'warning',
|
|
26655
26800
|
'error'
|
|
26656
26801
|
],
|
|
26657
|
-
isChildActive: (editor,
|
|
26802
|
+
isChildActive: (editor, button) => {
|
|
26658
26803
|
const current = editor.s.current();
|
|
26659
26804
|
if (current) {
|
|
26660
26805
|
const currentBpx = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isElement, editor.editor) || editor.editor;
|
|
26661
|
-
return Boolean(control.args &&
|
|
26662
|
-
currentBpx.classList.contains(control.args[0].toString()));
|
|
26806
|
+
return Boolean(button.control.args &&
|
|
26807
|
+
currentBpx.classList.contains(button.control.args[0].toString()));
|
|
26663
26808
|
}
|
|
26664
26809
|
return false;
|
|
26665
26810
|
},
|
|
26666
|
-
isActive: (editor,
|
|
26811
|
+
isActive: (editor, btn) => {
|
|
26667
26812
|
const current = editor.s.current();
|
|
26668
26813
|
if (current) {
|
|
26669
26814
|
const currentBpx = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isElement, editor.editor) || editor.editor;
|
|
26670
26815
|
let present = false;
|
|
26671
|
-
control.list &&
|
|
26672
|
-
Object.keys(control.list).forEach((className) => {
|
|
26816
|
+
btn.control.list &&
|
|
26817
|
+
Object.keys(btn.control.list).forEach((className) => {
|
|
26673
26818
|
if (currentBpx.classList.contains(className)) {
|
|
26674
26819
|
present = true;
|
|
26675
26820
|
}
|
|
26676
26821
|
});
|
|
26677
26822
|
return Boolean(currentBpx &&
|
|
26678
26823
|
currentBpx !== editor.editor &&
|
|
26679
|
-
control.list !== undefined &&
|
|
26824
|
+
btn.control.list !== undefined &&
|
|
26680
26825
|
present);
|
|
26681
26826
|
}
|
|
26682
26827
|
return false;
|
|
@@ -26929,9 +27074,9 @@ function getHash(tags) {
|
|
|
26929
27074
|
const tagsHash = {};
|
|
26930
27075
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .H)(tags)) {
|
|
26931
27076
|
tags.split(separator).map((elm) => {
|
|
26932
|
-
elm = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
27077
|
+
elm = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(elm);
|
|
26933
27078
|
const attr = attributesReg.exec(elm), allowAttributes = {}, attributeMap = (attrName) => {
|
|
26934
|
-
attrName = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
27079
|
+
attrName = (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(attrName);
|
|
26935
27080
|
const val = attrReg.exec(attrName);
|
|
26936
27081
|
if (val) {
|
|
26937
27082
|
allowAttributes[val[1]] = val[2];
|
|
@@ -27429,7 +27574,7 @@ function isRemovableNode(jodit, node, current, allow, deny) {
|
|
|
27429
27574
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isElement(node) &&
|
|
27430
27575
|
node.nodeName.match(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_INLINE) != null &&
|
|
27431
27576
|
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isTemporary(node) &&
|
|
27432
|
-
(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .
|
|
27577
|
+
(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .fy)(node.innerHTML).length === 0 &&
|
|
27433
27578
|
(current == null || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isOrContains(node, current)));
|
|
27434
27579
|
}
|
|
27435
27580
|
|
|
@@ -27695,7 +27840,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .pw.add('color
|
|
|
27695
27840
|
|
|
27696
27841
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .J.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
27697
27842
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.brush = {
|
|
27698
|
-
update(
|
|
27843
|
+
update(editor, button) {
|
|
27699
27844
|
const color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
|
|
27700
27845
|
const update = (key, value) => {
|
|
27701
27846
|
if (value && value !== (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(editor.editor, key).toString()) {
|
|
@@ -27717,7 +27862,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.brush = {
|
|
|
27717
27862
|
button.state.icon.fill = '';
|
|
27718
27863
|
button.state.activated = false;
|
|
27719
27864
|
},
|
|
27720
|
-
popup: (editor, current,
|
|
27865
|
+
popup: (editor, current, close, button) => {
|
|
27721
27866
|
let colorHEX = '', bg_color = '', tabs = [], currentElement = null;
|
|
27722
27867
|
if (current && current !== editor.editor && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isNode(current)) {
|
|
27723
27868
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isElement(current) &&
|
|
@@ -28415,7 +28560,7 @@ class deleteCommand extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Pl
|
|
|
28415
28560
|
if (current && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(current.firstChild, 'br')) {
|
|
28416
28561
|
jodit.s.removeNode(current.firstChild);
|
|
28417
28562
|
}
|
|
28418
|
-
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .
|
|
28563
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .fy)(jodit.editor.textContent || '') &&
|
|
28419
28564
|
!jodit.editor.querySelector('img,table,jodit,iframe,hr') &&
|
|
28420
28565
|
(!current || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.closest(current, 'table', jodit.editor))) {
|
|
28421
28566
|
jodit.editor.innerHTML = '';
|
|
@@ -29714,7 +29859,7 @@ function wrapText(fake, jodit) {
|
|
|
29714
29859
|
|
|
29715
29860
|
|
|
29716
29861
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.file = {
|
|
29717
|
-
popup: (editor, current,
|
|
29862
|
+
popup: (editor, current, close) => {
|
|
29718
29863
|
const insert = (url, title = '') => {
|
|
29719
29864
|
editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
|
|
29720
29865
|
};
|
|
@@ -29846,13 +29991,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .pw.add('focus
|
|
|
29846
29991
|
|
|
29847
29992
|
"use strict";
|
|
29848
29993
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
29849
|
-
/* harmony import */ var
|
|
29850
|
-
/* harmony import */ var
|
|
29851
|
-
/* harmony import */ var
|
|
29852
|
-
/* harmony import */ var
|
|
29853
|
-
/* harmony import */ var
|
|
29854
|
-
/* harmony import */ var
|
|
29855
|
-
/* harmony import */ var
|
|
29994
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18002);
|
|
29995
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10503);
|
|
29996
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39007);
|
|
29997
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
29998
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23358);
|
|
29999
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30000
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8138);
|
|
30001
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(73076);
|
|
29856
30002
|
/*!
|
|
29857
30003
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29858
30004
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29864,74 +30010,86 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .pw.add('focus
|
|
|
29864
30010
|
|
|
29865
30011
|
|
|
29866
30012
|
|
|
30013
|
+
|
|
29867
30014
|
/**
|
|
29868
30015
|
* Default font-size points
|
|
29869
30016
|
*/
|
|
29870
30017
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.defaultFontSizePoints = 'px';
|
|
29871
|
-
|
|
30018
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .J.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
29872
30019
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.fontsize = {
|
|
29873
30020
|
command: 'fontsize',
|
|
29874
30021
|
data: {
|
|
29875
|
-
cssRule: 'font-size'
|
|
29876
|
-
|
|
29877
|
-
|
|
29878
|
-
|
|
29879
|
-
|
|
29880
|
-
|
|
29881
|
-
'11',
|
|
29882
|
-
'12',
|
|
29883
|
-
'14',
|
|
29884
|
-
'16',
|
|
29885
|
-
'18',
|
|
29886
|
-
'24',
|
|
29887
|
-
'30',
|
|
29888
|
-
'36',
|
|
29889
|
-
'48',
|
|
29890
|
-
'60',
|
|
29891
|
-
'72',
|
|
29892
|
-
'96'
|
|
29893
|
-
],
|
|
29894
|
-
exec: (editor, event, { control }) => (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.memorizeExec)(editor, event, { control }, (value) => {
|
|
29895
|
-
var _a;
|
|
29896
|
-
if (((_a = control.command) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'fontsize') {
|
|
29897
|
-
return `${value}${editor.o.defaultFontSizePoints}`;
|
|
30022
|
+
cssRule: 'font-size',
|
|
30023
|
+
normalise: (v, editor) => {
|
|
30024
|
+
if (/pt$/i.test(v) && editor.o.defaultFontSizePoints === 'pt') {
|
|
30025
|
+
return v.replace(/pt$/i, '');
|
|
30026
|
+
}
|
|
30027
|
+
return v;
|
|
29898
30028
|
}
|
|
29899
|
-
|
|
29900
|
-
|
|
30029
|
+
},
|
|
30030
|
+
list: [8, 9, 10, 11, 12, 14, 16, 18, 24, 30, 32, 34, 36, 48, 60, 72, 96],
|
|
30031
|
+
textTemplate: (editor, value) => {
|
|
30032
|
+
return value + editor.o.defaultFontSizePoints;
|
|
30033
|
+
},
|
|
29901
30034
|
childTemplate: (editor, key, value) => {
|
|
29902
30035
|
return `${value}${editor.o.defaultFontSizePoints}`;
|
|
29903
30036
|
},
|
|
29904
30037
|
tooltip: 'Font size',
|
|
29905
|
-
|
|
30038
|
+
value: (editor, button) => {
|
|
30039
|
+
var _a;
|
|
30040
|
+
const current = editor.s.current();
|
|
30041
|
+
if (!current) {
|
|
30042
|
+
return;
|
|
30043
|
+
}
|
|
30044
|
+
const box = jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isElement, editor.editor);
|
|
30045
|
+
if (!box) {
|
|
30046
|
+
return;
|
|
30047
|
+
}
|
|
30048
|
+
const control = button.control;
|
|
30049
|
+
const cssKey = ((_a = control.data) === null || _a === void 0 ? void 0 : _a.cssRule) || 'font-size';
|
|
30050
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .i)(box, cssKey);
|
|
30051
|
+
return value.toString();
|
|
30052
|
+
},
|
|
30053
|
+
isChildActive: (editor, button) => {
|
|
29906
30054
|
var _a, _b;
|
|
29907
|
-
const
|
|
29908
|
-
|
|
29909
|
-
|
|
29910
|
-
|
|
29911
|
-
|
|
29912
|
-
|
|
29913
|
-
|
|
29914
|
-
|
|
29915
|
-
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
return
|
|
29919
|
-
control.args &&
|
|
29920
|
-
normalize(control.args[0].toString()) ===
|
|
29921
|
-
normalize(value.toString()));
|
|
30055
|
+
const value = button.state.value;
|
|
30056
|
+
const normalize = (_b = (_a = button.control.data) === null || _a === void 0 ? void 0 : _a.normalize) !== null && _b !== void 0 ? _b : ((v) => v);
|
|
30057
|
+
return Boolean(value &&
|
|
30058
|
+
button.control.args &&
|
|
30059
|
+
normalize(button.control.args[0].toString()) ===
|
|
30060
|
+
normalize(value.toString()));
|
|
30061
|
+
},
|
|
30062
|
+
isActive: (editor, button) => {
|
|
30063
|
+
var _a, _b;
|
|
30064
|
+
const value = button.state.value;
|
|
30065
|
+
if (!value) {
|
|
30066
|
+
return false;
|
|
29922
30067
|
}
|
|
29923
|
-
|
|
30068
|
+
const normalize = (_b = (_a = button.control.data) === null || _a === void 0 ? void 0 : _a.normalize) !== null && _b !== void 0 ? _b : ((v) => v);
|
|
30069
|
+
let keySet = button.control.data.cacheListSet;
|
|
30070
|
+
if (!keySet) {
|
|
30071
|
+
const keys = Object.keys(button.control.list).map(normalize);
|
|
30072
|
+
keySet = new Set(keys);
|
|
30073
|
+
button.control.data.cacheListSet = keySet;
|
|
30074
|
+
}
|
|
30075
|
+
return keySet.has(normalize(value.toString()));
|
|
29924
30076
|
}
|
|
29925
30077
|
};
|
|
29926
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.fontsize), { command: 'fontname',
|
|
30078
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.fontsize), { command: 'fontname', textTemplate: (j, value) => {
|
|
30079
|
+
const [first] = value.split(',');
|
|
30080
|
+
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_5__/* .trimChars */ .cE)(first, '"\'');
|
|
30081
|
+
}, list: {
|
|
29927
30082
|
'': 'Default',
|
|
29928
|
-
'
|
|
29929
|
-
'
|
|
29930
|
-
'
|
|
29931
|
-
'
|
|
29932
|
-
'
|
|
29933
|
-
'
|
|
29934
|
-
'
|
|
30083
|
+
'Arial, Helvetica, sans-serif': 'Arial',
|
|
30084
|
+
"'Courier New', Courier, monospace": 'Courier New',
|
|
30085
|
+
'Georgia, Palatino, serif': 'Georgia',
|
|
30086
|
+
"'Lucida Sans Unicode', 'Lucida Grande', sans-serif": 'Lucida Sans Unicode',
|
|
30087
|
+
'Tahoma, Geneva, sans-serif': 'Tahoma',
|
|
30088
|
+
"'Times New Roman', Times, serif": 'Times New Roman',
|
|
30089
|
+
"'Trebuchet MS', Helvetica, sans-serif": 'Trebuchet MS',
|
|
30090
|
+
'Helvetica, sans-serif': 'Helvetica',
|
|
30091
|
+
'Impact, Charcoal, sans-serif': 'Impact',
|
|
30092
|
+
'Verdana, Geneva, sans-serif': 'Verdana'
|
|
29935
30093
|
}, childTemplate: (editor, key, value) => {
|
|
29936
30094
|
let isAvailable = false;
|
|
29937
30095
|
try {
|
|
@@ -29947,7 +30105,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font = Objec
|
|
|
29947
30105
|
return v
|
|
29948
30106
|
.toLowerCase()
|
|
29949
30107
|
.replace(/['"]+/g, '')
|
|
29950
|
-
.replace(/[^a-z0-9]+/g, ',');
|
|
30108
|
+
.replace(/[^a-z0-9-]+/g, ',');
|
|
29951
30109
|
}
|
|
29952
30110
|
}, tooltip: 'Font family' });
|
|
29953
30111
|
|
|
@@ -29989,7 +30147,7 @@ function font(editor) {
|
|
|
29989
30147
|
editor.s.commitStyle({
|
|
29990
30148
|
attributes: {
|
|
29991
30149
|
style: {
|
|
29992
|
-
fontSize: (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_0__.normalizeSize)(third)
|
|
30150
|
+
fontSize: (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_0__.normalizeSize)(third, editor.o.defaultFontSizePoints)
|
|
29993
30151
|
}
|
|
29994
30152
|
}
|
|
29995
30153
|
});
|
|
@@ -30016,18 +30174,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .pw.add('font'
|
|
|
30016
30174
|
|
|
30017
30175
|
/***/ }),
|
|
30018
30176
|
|
|
30019
|
-
/***/
|
|
30020
|
-
/***/ (function(__unused_webpack_module,
|
|
30177
|
+
/***/ 7263:
|
|
30178
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
30021
30179
|
|
|
30022
30180
|
"use strict";
|
|
30023
|
-
/*
|
|
30024
|
-
/* harmony import */ var
|
|
30025
|
-
/* harmony import */ var
|
|
30026
|
-
/* harmony import */ var
|
|
30027
|
-
/* harmony import */ var
|
|
30028
|
-
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10503);
|
|
30029
|
-
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(88989);
|
|
30030
|
-
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
30181
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10503);
|
|
30182
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
30183
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8138);
|
|
30184
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88989);
|
|
30185
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30031
30186
|
/*!
|
|
30032
30187
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30033
30188
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30037,38 +30192,33 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .pw.add('font'
|
|
|
30037
30192
|
|
|
30038
30193
|
|
|
30039
30194
|
|
|
30040
|
-
|
|
30041
|
-
|
|
30042
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .J.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
30043
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.paragraph = {
|
|
30195
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .J.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
30196
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paragraph = {
|
|
30044
30197
|
command: 'formatBlock',
|
|
30045
|
-
|
|
30198
|
+
value(editor, button) {
|
|
30199
|
+
var _a, _b;
|
|
30046
30200
|
const control = button.control, current = editor.s.current();
|
|
30047
|
-
|
|
30048
|
-
|
|
30049
|
-
|
|
30050
|
-
|
|
30051
|
-
|
|
30052
|
-
|
|
30053
|
-
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
button.state.icon.name = currentValue;
|
|
30060
|
-
}
|
|
30061
|
-
control.data.currentValue = currentValue;
|
|
30201
|
+
const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isBlock, editor.editor);
|
|
30202
|
+
return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
|
|
30203
|
+
},
|
|
30204
|
+
update(editor, button) {
|
|
30205
|
+
const control = button.control, current = editor.s.current();
|
|
30206
|
+
if (!current) {
|
|
30207
|
+
return false;
|
|
30208
|
+
}
|
|
30209
|
+
const currentValue = button.state.value, list = control.list;
|
|
30210
|
+
if (list && list[currentValue.toString()]) {
|
|
30211
|
+
if (editor.o.textIcons) {
|
|
30212
|
+
button.state.text = list[currentValue.toString()].toString();
|
|
30062
30213
|
}
|
|
30063
30214
|
}
|
|
30064
30215
|
return false;
|
|
30065
30216
|
},
|
|
30066
|
-
exec: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.memorizeExec,
|
|
30067
30217
|
data: {
|
|
30068
|
-
currentValue: '
|
|
30218
|
+
currentValue: 'p'
|
|
30069
30219
|
},
|
|
30070
30220
|
list: {
|
|
30071
|
-
p: '
|
|
30221
|
+
p: 'Paragraph',
|
|
30072
30222
|
h1: 'Heading 1',
|
|
30073
30223
|
h2: 'Heading 2',
|
|
30074
30224
|
h3: 'Heading 3',
|
|
@@ -30076,32 +30226,36 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.paragraph =
|
|
|
30076
30226
|
blockquote: 'Quote',
|
|
30077
30227
|
pre: 'Code'
|
|
30078
30228
|
},
|
|
30079
|
-
isChildActive: (editor,
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
const currentBox = jodit_modules___WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, jodit_modules___WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
30083
|
-
return Boolean(currentBox &&
|
|
30084
|
-
currentBox !== editor.editor &&
|
|
30085
|
-
control.args !== undefined &&
|
|
30086
|
-
currentBox.nodeName.toLowerCase() === control.args[0]);
|
|
30087
|
-
}
|
|
30088
|
-
return false;
|
|
30229
|
+
isChildActive: (editor, button) => {
|
|
30230
|
+
var _a, _b;
|
|
30231
|
+
return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
|
|
30089
30232
|
},
|
|
30090
|
-
isActive: (editor,
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
return Boolean(currentBpx &&
|
|
30095
|
-
currentBpx !== editor.editor &&
|
|
30096
|
-
control.list !== undefined &&
|
|
30097
|
-
!jodit_modules___WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(currentBpx, 'p') &&
|
|
30098
|
-
control.list[currentBpx.nodeName.toLowerCase()] !== undefined);
|
|
30099
|
-
}
|
|
30100
|
-
return false;
|
|
30233
|
+
isActive: (editor, button) => {
|
|
30234
|
+
var _a;
|
|
30235
|
+
return (button.state.value !== editor.o.enter &&
|
|
30236
|
+
Boolean((_a = button.control.list) === null || _a === void 0 ? void 0 : _a[button.state.value]));
|
|
30101
30237
|
},
|
|
30102
30238
|
childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
|
|
30103
30239
|
tooltip: 'Insert format block'
|
|
30104
30240
|
};
|
|
30241
|
+
|
|
30242
|
+
|
|
30243
|
+
/***/ }),
|
|
30244
|
+
|
|
30245
|
+
/***/ 8001:
|
|
30246
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30247
|
+
|
|
30248
|
+
"use strict";
|
|
30249
|
+
/* unused harmony export formatBlock */
|
|
30250
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81160);
|
|
30251
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7263);
|
|
30252
|
+
/*!
|
|
30253
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30254
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
30255
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30256
|
+
*/
|
|
30257
|
+
|
|
30258
|
+
|
|
30105
30259
|
/**
|
|
30106
30260
|
* Process command - `formatblock`
|
|
30107
30261
|
*/
|
|
@@ -30118,7 +30272,7 @@ function formatBlock(editor) {
|
|
|
30118
30272
|
return false;
|
|
30119
30273
|
});
|
|
30120
30274
|
}
|
|
30121
|
-
|
|
30275
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .pw.add('formatBlock', formatBlock);
|
|
30122
30276
|
|
|
30123
30277
|
|
|
30124
30278
|
/***/ }),
|
|
@@ -30155,7 +30309,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.fullsize = {
|
|
|
30155
30309
|
exec: (editor) => {
|
|
30156
30310
|
editor.toggleFullSize();
|
|
30157
30311
|
},
|
|
30158
|
-
update(
|
|
30312
|
+
update(editor, button) {
|
|
30159
30313
|
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
30160
30314
|
button.state.activated = editor.isFullSize;
|
|
30161
30315
|
if (editor.o.textIcons) {
|
|
@@ -30763,14 +30917,16 @@ function iframe(editor) {
|
|
|
30763
30917
|
if (opt.height === 'auto') {
|
|
30764
30918
|
doc.documentElement &&
|
|
30765
30919
|
(doc.documentElement.style.overflowY = 'hidden');
|
|
30766
|
-
const resizeIframe = editor.async.throttle(() => {
|
|
30767
|
-
|
|
30768
|
-
editor.
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
parseInt(style.
|
|
30772
|
-
|
|
30773
|
-
|
|
30920
|
+
const resizeIframe = editor.async.throttle((...args) => {
|
|
30921
|
+
editor.async.requestAnimationFrame(() => {
|
|
30922
|
+
if (editor.editor &&
|
|
30923
|
+
editor.iframe &&
|
|
30924
|
+
opt.height === 'auto') {
|
|
30925
|
+
const style = editor.ew.getComputedStyle(editor.editor), marginOffset = parseInt(style.marginTop || '0', 10) +
|
|
30926
|
+
parseInt(style.marginBottom || '0', 10);
|
|
30927
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_0__.css)(editor.iframe, 'height', editor.editor.offsetHeight + marginOffset);
|
|
30928
|
+
}
|
|
30929
|
+
});
|
|
30774
30930
|
}, editor.defaultTimeout / 2);
|
|
30775
30931
|
editor.e
|
|
30776
30932
|
.on('change afterInit afterSetMode resize', resizeIframe)
|
|
@@ -30780,7 +30936,7 @@ function iframe(editor) {
|
|
|
30780
30936
|
const resizeObserver = new ResizeObserver(resizeIframe);
|
|
30781
30937
|
resizeObserver.observe(doc.body);
|
|
30782
30938
|
editor.e.on('beforeDestruct', () => {
|
|
30783
|
-
resizeObserver.
|
|
30939
|
+
resizeObserver.disconnect();
|
|
30784
30940
|
});
|
|
30785
30941
|
}
|
|
30786
30942
|
}
|
|
@@ -30820,6 +30976,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .pw.add('ifram
|
|
|
30820
30976
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
30821
30977
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30822
30978
|
*/
|
|
30979
|
+
/**
|
|
30980
|
+
* @module plugins/image-processor
|
|
30981
|
+
*/
|
|
30823
30982
|
|
|
30824
30983
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.imageProcessor = {
|
|
30825
30984
|
replaceDataURIToBlobIdInView: true
|
|
@@ -31737,7 +31896,7 @@ function positionTab(editor) {
|
|
|
31737
31896
|
|
|
31738
31897
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .J.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
31739
31898
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.image = {
|
|
31740
|
-
popup: (editor, current,
|
|
31899
|
+
popup: (editor, current, close) => {
|
|
31741
31900
|
let sourceImage = null;
|
|
31742
31901
|
if (current &&
|
|
31743
31902
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .i.isText(current) &&
|
|
@@ -32225,7 +32384,7 @@ const cmd = (control) => control.args && (0,jodit_core_helpers_checker__WEBPACK_
|
|
|
32225
32384
|
/* harmony default export */ __webpack_exports__.Z = ([
|
|
32226
32385
|
{
|
|
32227
32386
|
name: 'brush',
|
|
32228
|
-
popup: (editor, _,
|
|
32387
|
+
popup: (editor, _, close) => {
|
|
32229
32388
|
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isJoditObject */ .Zu)(editor)) {
|
|
32230
32389
|
return;
|
|
32231
32390
|
}
|
|
@@ -32545,7 +32704,7 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plug
|
|
|
32545
32704
|
return new jodit_core_ui_popup__WEBPACK_IMPORTED_MODULE_2__/* .Popup */ .G(this.jodit, false);
|
|
32546
32705
|
}
|
|
32547
32706
|
get toolbar() {
|
|
32548
|
-
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_1__/* .makeCollection */ .
|
|
32707
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_1__/* .makeCollection */ .RP)(this.jodit, this.popup);
|
|
32549
32708
|
}
|
|
32550
32709
|
onClick(node) {
|
|
32551
32710
|
const elements = this.elmsList, target = jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isTag(node, 'img')
|
|
@@ -32806,7 +32965,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .J.set('justify', (_j
|
|
|
32806
32965
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.align = {
|
|
32807
32966
|
name: 'left',
|
|
32808
32967
|
tooltip: 'Align',
|
|
32809
|
-
update(
|
|
32968
|
+
update(editor, button) {
|
|
32810
32969
|
const control = button.control, current = editor.s.current();
|
|
32811
32970
|
if (current) {
|
|
32812
32971
|
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isBlock, editor.editor) ||
|
|
@@ -32819,8 +32978,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.align = {
|
|
|
32819
32978
|
if (control.data &&
|
|
32820
32979
|
control.data.currentValue !== currentValue &&
|
|
32821
32980
|
control.list &&
|
|
32822
|
-
control.list
|
|
32823
|
-
if (editor.o.textIcons) {
|
|
32981
|
+
control.list[currentValue]) {
|
|
32982
|
+
if (editor.o.textIcons || control.component === 'select') {
|
|
32824
32983
|
button.state.text = currentValue;
|
|
32825
32984
|
}
|
|
32826
32985
|
else {
|
|
@@ -32832,11 +32991,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.align = {
|
|
|
32832
32991
|
},
|
|
32833
32992
|
isActive: (editor, btn) => {
|
|
32834
32993
|
const current = editor.s.current();
|
|
32835
|
-
if (current
|
|
32836
|
-
|
|
32837
|
-
return (btn.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .i)(currentBox, 'text-align').toString()) === -1);
|
|
32994
|
+
if (!current || !btn.control.defaultValue) {
|
|
32995
|
+
return false;
|
|
32838
32996
|
}
|
|
32839
|
-
|
|
32997
|
+
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isBlock, editor.editor) ||
|
|
32998
|
+
editor.editor;
|
|
32999
|
+
return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .i)(currentBox, 'text-align').toString()) === -1);
|
|
32840
33000
|
},
|
|
32841
33001
|
defaultValue: ['left', 'start', 'inherit'],
|
|
32842
33002
|
data: {
|
|
@@ -33707,7 +33867,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.link = {
|
|
|
33707
33867
|
const current = editor.s.current();
|
|
33708
33868
|
return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.closest(current, 'a', editor.editor));
|
|
33709
33869
|
},
|
|
33710
|
-
popup: (editor, current,
|
|
33870
|
+
popup: (editor, current, close) => {
|
|
33711
33871
|
return editor.e.fire('generateLinkForm.link', current, close);
|
|
33712
33872
|
},
|
|
33713
33873
|
tags: ['a'],
|
|
@@ -34260,11 +34420,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mobileTapTimeout = 30
|
|
|
34260
34420
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.toolbarAdaptive = true;
|
|
34261
34421
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.dots = {
|
|
34262
34422
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.MODE_WYSIWYG,
|
|
34263
|
-
popup: (editor, current,
|
|
34264
|
-
let store = control.data;
|
|
34423
|
+
popup: (editor, current, close, button) => {
|
|
34424
|
+
let store = button.control.data;
|
|
34265
34425
|
if (store === undefined) {
|
|
34266
34426
|
store = {
|
|
34267
|
-
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeCollection */ .
|
|
34427
|
+
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeCollection */ .RP)(editor),
|
|
34268
34428
|
rebuild: () => {
|
|
34269
34429
|
var _a, _b;
|
|
34270
34430
|
if (button) {
|
|
@@ -34278,7 +34438,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.dots = {
|
|
|
34278
34438
|
}
|
|
34279
34439
|
}
|
|
34280
34440
|
};
|
|
34281
|
-
control.data = store;
|
|
34441
|
+
button.control.data = store;
|
|
34282
34442
|
}
|
|
34283
34443
|
store.rebuild();
|
|
34284
34444
|
return store.toolbar;
|
|
@@ -36234,6 +36394,7 @@ resizeHandler.requires = ['size'];
|
|
|
36234
36394
|
resizeHandler = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
36235
36395
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
36236
36396
|
], resizeHandler);
|
|
36397
|
+
|
|
36237
36398
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_4__/* .pluginSystem */ .pw.add('resizeHandler', resizeHandler);
|
|
36238
36399
|
|
|
36239
36400
|
|
|
@@ -37601,6 +37762,7 @@ UISearch = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
|
37601
37762
|
], UISearch);
|
|
37602
37763
|
|
|
37603
37764
|
|
|
37765
|
+
|
|
37604
37766
|
/***/ }),
|
|
37605
37767
|
|
|
37606
37768
|
/***/ 31882:
|
|
@@ -38323,6 +38485,7 @@ let size = class size extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_
|
|
|
38323
38485
|
size = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
38324
38486
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
38325
38487
|
], size);
|
|
38488
|
+
|
|
38326
38489
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .pw.add('size', size);
|
|
38327
38490
|
|
|
38328
38491
|
|
|
@@ -40196,7 +40359,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .J.set('symbols', (_s
|
|
|
40196
40359
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.symbols = {
|
|
40197
40360
|
hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
|
|
40198
40361
|
tooltip: 'Insert Special Character',
|
|
40199
|
-
popup: (editor, current,
|
|
40362
|
+
popup: (editor, current, close) => {
|
|
40200
40363
|
const container = editor.e.fire('generateSpecialCharactersTable.symbols');
|
|
40201
40364
|
if (container) {
|
|
40202
40365
|
if (editor.o.usePopupForSpecialCharacters) {
|
|
@@ -41192,7 +41355,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.table = {
|
|
|
41192
41355
|
'table table-dark': 'Bootstrap Dark'
|
|
41193
41356
|
}
|
|
41194
41357
|
},
|
|
41195
|
-
popup: (editor, current,
|
|
41358
|
+
popup: (editor, current, close, button) => {
|
|
41359
|
+
const control = button.control;
|
|
41196
41360
|
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;
|
|
41197
41361
|
const generateExtraClasses = () => {
|
|
41198
41362
|
if (!editor.o.table.useExtraClassesOptions) {
|
|
@@ -41371,7 +41535,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .pw.add('table
|
|
|
41371
41535
|
|
|
41372
41536
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .J.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
41373
41537
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.video = {
|
|
41374
|
-
popup: (editor, current,
|
|
41538
|
+
popup: (editor, current, close) => {
|
|
41375
41539
|
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_3__/* .UIForm */ .x4(editor, [
|
|
41376
41540
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_3__/* .UIBlock */ .eC(editor, [
|
|
41377
41541
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .u3(editor, {
|
|
@@ -41734,7 +41898,7 @@ class xpath extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */
|
|
|
41734
41898
|
};
|
|
41735
41899
|
this.appendSelectAll = () => {
|
|
41736
41900
|
this.removeSelectAll();
|
|
41737
|
-
this.selectAllButton = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__/* .makeButton */ .
|
|
41901
|
+
this.selectAllButton = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__/* .makeButton */ .gu)(this.j, Object.assign({ name: 'selectall' }, this.j.o.controls.selectall));
|
|
41738
41902
|
this.selectAllButton.state.size = 'tiny';
|
|
41739
41903
|
this.container &&
|
|
41740
41904
|
this.container.insertBefore(this.selectAllButton.container, this.container.firstChild);
|
|
@@ -41945,23 +42109,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41945
42109
|
*/
|
|
41946
42110
|
|
|
41947
42111
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
41948
|
-
'
|
|
41949
|
-
'
|
|
41950
|
-
'
|
|
41951
|
-
'
|
|
41952
|
-
'
|
|
41953
|
-
'
|
|
41954
|
-
'
|
|
41955
|
-
'
|
|
41956
|
-
'
|
|
41957
|
-
'
|
|
41958
|
-
'
|
|
41959
|
-
'
|
|
41960
|
-
'
|
|
41961
|
-
'
|
|
41962
|
-
'
|
|
41963
|
-
|
|
41964
|
-
|
|
42112
|
+
"'Andale mono', monospace'": 'Andale Mono',
|
|
42113
|
+
'Arial, Helvetica, sans-serif': 'Arial',
|
|
42114
|
+
"'Arial black', sans-serif": 'Arial Black',
|
|
42115
|
+
"'Book antiqua', palatino, serif": 'Book Antiqua',
|
|
42116
|
+
"'Comic Sans MS', sans-serif": 'Comic Sans MS',
|
|
42117
|
+
"'Courier new', Courier, monospace": 'Courier New',
|
|
42118
|
+
'Georgia, Palatino, serif': 'Georgia',
|
|
42119
|
+
'Helvetica, Arial, sans-serif': 'Helvetica',
|
|
42120
|
+
'Impact, Charcoal, sans-serif': 'Impact',
|
|
42121
|
+
'Symbol, sans-serif': 'Symbol',
|
|
42122
|
+
'Tahoma, Arial, Helvetica, sans-serif': 'Tahoma',
|
|
42123
|
+
'Terminal, Monaco, monospace': 'Terminal',
|
|
42124
|
+
"'Times new roman', Times, serif": 'Times New Roman',
|
|
42125
|
+
"'Trebuchet ms', Geneva, sans-serif": 'Trebuchet MS',
|
|
42126
|
+
'Verdana, Geneva, sans-serif': 'Verdana',
|
|
42127
|
+
Webdings: 'Webdings',
|
|
42128
|
+
"Wingdings, 'Zapf dingbats'": 'Wingdings'
|
|
41965
42129
|
};
|
|
41966
42130
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
41967
42131
|
|
|
@@ -42433,6 +42597,7 @@ Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
|
42433
42597
|
], Autocomplete);
|
|
42434
42598
|
|
|
42435
42599
|
|
|
42600
|
+
|
|
42436
42601
|
/***/ }),
|
|
42437
42602
|
|
|
42438
42603
|
/***/ 91381:
|
|
@@ -42747,7 +42912,7 @@ const clearClassName = (elm) => {
|
|
|
42747
42912
|
// Normalize or remove class
|
|
42748
42913
|
if (elm.attributes.class) {
|
|
42749
42914
|
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
42750
|
-
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
42915
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)(elm.attributes.class)) {
|
|
42751
42916
|
elm.attributes.class = null;
|
|
42752
42917
|
}
|
|
42753
42918
|
}
|
|
@@ -43717,7 +43882,7 @@ function innerHTML(elm, filter = () => true, removeEmpty = true, allowedStylePro
|
|
|
43717
43882
|
let result = elm
|
|
43718
43883
|
.map((e) => html(e, filter, removeEmpty, allowedStyleProps))
|
|
43719
43884
|
.join('');
|
|
43720
|
-
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .
|
|
43885
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .fy)(result).length === 0) {
|
|
43721
43886
|
result = ' ';
|
|
43722
43887
|
}
|
|
43723
43888
|
return result;
|
|
@@ -43813,6 +43978,7 @@ let Style = class Style {
|
|
|
43813
43978
|
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
43814
43979
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
43815
43980
|
], Style);
|
|
43981
|
+
|
|
43816
43982
|
function readStyles(style) {
|
|
43817
43983
|
return uniqueMax((style !== null && style !== void 0 ? style : '')
|
|
43818
43984
|
.replace(/"/g, '"')
|
|
@@ -44133,7 +44299,7 @@ function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
|
44133
44299
|
elm.style.clear();
|
|
44134
44300
|
}, true);
|
|
44135
44301
|
}
|
|
44136
|
-
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .
|
|
44302
|
+
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .fy)((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .innerHTML */ .C7)(body, (elm) => !elm.isComment, true, jodit.o.pasteFromWord.allowedStyleProps));
|
|
44137
44303
|
}
|
|
44138
44304
|
|
|
44139
44305
|
|