jodit-pro 4.7.3 → 4.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.js +1 -6
- package/esm/core/ui/form/range/range.js +1 -6
- package/esm/index.js +1 -6
- package/esm/jodit-pro.js +1 -6
- package/esm/plugins/all.js +1 -6
- package/esm/plugins/autocomplete/autocomplete.js +1 -6
- package/esm/plugins/autocomplete/config.js +1 -6
- package/esm/plugins/autocomplete/helpers.js +1 -6
- package/esm/plugins/autocomplete/interface.js +0 -6
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -6
- package/esm/plugins/autocomplete/ui/item.js +1 -6
- package/esm/plugins/backup/assets/restore.svg.js +1 -1
- package/esm/plugins/backup/backup.js +1 -6
- package/esm/plugins/backup/config.js +1 -6
- package/esm/plugins/backup/interface.js +0 -6
- package/esm/plugins/backup/langs/index.js +0 -6
- package/esm/plugins/backup/modules/store.js +1 -6
- package/esm/plugins/backup/ui/box.js +1 -6
- package/esm/plugins/backup/ui/item.js +1 -6
- package/esm/plugins/backup/ui/list.js +1 -6
- package/esm/plugins/button-generator/assets/check.svg.js +1 -1
- package/esm/plugins/button-generator/assets/styles.json.js +1 -1
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -6
- package/esm/plugins/button-generator/icon.svg.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +5 -1
- package/esm/plugins/button-generator/ui/form/form.js +79 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.js +7 -6
- package/esm/plugins/button-generator/ui/preview/preview.js +4 -1
- package/esm/plugins/change-case/change-case.js +1 -6
- package/esm/plugins/change-case/config.js +1 -6
- package/esm/plugins/change-case/icon.svg.js +1 -1
- package/esm/plugins/color-picker/color-picker.js +1 -6
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -6
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.js +1 -6
- package/esm/plugins/emoji/emoji.json.js +1 -1
- package/esm/plugins/emoji/emoji.svg.js +1 -1
- package/esm/plugins/emoji/interface.js +0 -6
- package/esm/plugins/emoji/ui/emoji.js +1 -6
- package/esm/plugins/export-docs/assets/export.svg.js +1 -1
- package/esm/plugins/export-docs/config.js +1 -6
- package/esm/plugins/export-docs/export-docs.js +2 -6
- package/esm/plugins/finder/browser.js +1 -6
- package/esm/plugins/finder/config.js +1 -6
- package/esm/plugins/finder/finder.js +1 -6
- package/esm/plugins/finder/helpers/context-menu.js +1 -6
- package/esm/plugins/finder/helpers/helpers.js +1 -6
- package/esm/plugins/finder/helpers/history-manager.js +1 -6
- package/esm/plugins/finder/helpers/loading-manager.js +1 -6
- package/esm/plugins/finder/helpers/persistent-store.js +1 -6
- package/esm/plugins/finder/helpers/state-manager.js +1 -6
- package/esm/plugins/finder/langs/index.js +1 -6
- package/esm/plugins/finder/langs/ru.js +1 -6
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/index.js +1 -6
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.js +10 -6
- package/esm/plugins/finder/ui/header/header.js +1 -6
- package/esm/plugins/finder/ui/item/item.js +5 -6
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -6
- package/esm/plugins/finder/ui/panel/panel.js +4 -6
- package/esm/plugins/finder/ui/preview/preview.js +6 -1
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.js +5 -6
- package/esm/plugins/finder/ui/sidebar/sidebar.js +5 -1
- package/esm/plugins/finder/ui/source/source.js +4 -6
- package/esm/plugins/finder/ui/sources/sources.js +1 -6
- package/esm/plugins/finder/ui/statusbar/statusbar.js +5 -6
- package/esm/plugins/finder/ui/tree/tree.js +1 -6
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +5 -6
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -1
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -1
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -1
- package/esm/plugins/google-maps/assets/index.js +1 -6
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -1
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -1
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -1
- package/esm/plugins/google-maps/assets/text.svg.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -6
- package/esm/plugins/google-maps/google-maps.js +1 -6
- package/esm/plugins/google-maps/helpers/const.js +1 -6
- package/esm/plugins/google-maps/helpers/generate-js-script.js +122 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -6
- package/esm/plugins/google-maps/helpers/helpers.js +1 -6
- package/esm/plugins/google-maps/helpers/static-url.js +1 -6
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -6
- package/esm/plugins/google-maps/ui/editors/base.js +5 -6
- package/esm/plugins/google-maps/ui/editors/index.js +1 -6
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -6
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -6
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -6
- package/esm/plugins/google-maps/ui/index.js +1 -6
- package/esm/plugins/google-maps/ui/map/map.js +5 -6
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/index.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -6
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -6
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -6
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +4 -6
- package/esm/plugins/google-search/google-search.js +1 -6
- package/esm/plugins/google-search/icon.svg.js +1 -1
- package/esm/plugins/highlight-signature/config.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -6
- package/esm/plugins/iframe-editor/config.js +1 -6
- package/esm/plugins/iframe-editor/icon.svg.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -6
- package/esm/plugins/iframe-editor/interface.js +0 -6
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -6
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/icon.svg.js +1 -1
- package/esm/plugins/keyboard/interface.js +0 -6
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +3 -6
- package/esm/plugins/license/helpers/helpers.js +1 -6
- package/esm/plugins/license/license.js +1 -6
- package/esm/plugins/mobile-view/config.js +1 -6
- package/esm/plugins/mobile-view/icon.svg.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -6
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -1
- package/esm/plugins/page-break/config.js +1 -6
- package/esm/plugins/page-break/page-break.css.js +18 -6
- package/esm/plugins/page-break/page-break.js +1 -6
- package/esm/plugins/paste-code/config.js +1 -6
- package/esm/plugins/paste-code/icon.svg.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -6
- package/esm/plugins/paste-from-word/cases/clean-styles.js +1 -6
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +1 -6
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -6
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -6
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -6
- package/esm/plugins/paste-from-word/cases/index.js +1 -6
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +1 -6
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +1 -6
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -6
- package/esm/plugins/paste-from-word/cases/process-links.js +1 -6
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +1 -6
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -6
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +1 -6
- package/esm/plugins/paste-from-word/cases/table.js +1 -6
- package/esm/plugins/paste-from-word/config.js +1 -6
- package/esm/plugins/paste-from-word/constants.js +1 -6
- package/esm/plugins/paste-from-word/element/checkers.js +1 -6
- package/esm/plugins/paste-from-word/element/element.js +1 -6
- package/esm/plugins/paste-from-word/element/index.js +1 -6
- package/esm/plugins/paste-from-word/element/render.js +1 -6
- package/esm/plugins/paste-from-word/element/style.js +1 -6
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -6
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -6
- package/esm/plugins/paste-from-word/helpers/helpers.js +1 -6
- package/esm/plugins/paste-from-word/helpers/index.js +1 -6
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -6
- package/esm/plugins/paste-from-word/interface.js +0 -6
- package/esm/plugins/paste-from-word/paste-from-word.js +1 -6
- package/esm/plugins/show-blocks/config.js +1 -6
- package/esm/plugins/show-blocks/langs/ar.js +1 -6
- package/esm/plugins/show-blocks/langs/cs_cz.js +1 -6
- package/esm/plugins/show-blocks/langs/de.js +1 -6
- package/esm/plugins/show-blocks/langs/es.js +1 -6
- package/esm/plugins/show-blocks/langs/fa.js +1 -6
- package/esm/plugins/show-blocks/langs/fr.js +1 -6
- package/esm/plugins/show-blocks/langs/he.js +1 -6
- package/esm/plugins/show-blocks/langs/hu.js +1 -6
- package/esm/plugins/show-blocks/langs/id.js +1 -6
- package/esm/plugins/show-blocks/langs/index.js +1 -6
- package/esm/plugins/show-blocks/langs/it.js +1 -6
- package/esm/plugins/show-blocks/langs/ja.js +1 -6
- package/esm/plugins/show-blocks/langs/ko.js +1 -6
- package/esm/plugins/show-blocks/langs/nl.js +1 -6
- package/esm/plugins/show-blocks/langs/pl.js +1 -6
- package/esm/plugins/show-blocks/langs/pt_br.js +1 -6
- package/esm/plugins/show-blocks/langs/ru.js +1 -6
- package/esm/plugins/show-blocks/langs/tr.js +1 -6
- package/esm/plugins/show-blocks/langs/zh_cn.js +1 -6
- package/esm/plugins/show-blocks/langs/zh_tw.js +1 -6
- package/esm/plugins/show-blocks/show-blocks.js +7 -6
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -1
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -6
- package/esm/plugins/todo-list/todo-list.js +1 -6
- package/esm/plugins/translate/assets/swap.svg.js +1 -1
- package/esm/plugins/translate/assets/translate.svg.js +1 -1
- package/esm/plugins/translate/config.js +1 -6
- package/esm/plugins/translate/interface.js +0 -6
- package/esm/plugins/translate/providers/google/google.js +1 -6
- package/esm/plugins/translate/providers/languages.js +1 -6
- package/esm/plugins/translate/replace-text-fragments.js +1 -1
- package/esm/plugins/translate/translate.js +1 -6
- package/esm/plugins/translate/ui/list/list.js +7 -6
- package/esm/plugins/translate/ui/settings/settings.js +7 -6
- package/esm/plugins/tune-block/config.js +3 -6
- package/esm/plugins/tune-block/tune-block.js +1 -6
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +3 -6
- package/esm/traits/resize/resize.js +1 -6
- package/esm/traits/select-items/select-items.js +1 -6
- package/package.json +1 -1
- package/esm/tsconfig.json +0 -17
- package/types/tsconfig.json +0 -17
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import{removeElement as t}from"./remove-element.js";import{updateStateAndGme as e}from"./update-state-and-gme.js";import{UIMarkerEditor as o,UIPolygonEditor as i,UIPolylineEditor as n}from"../../editors/index.js";function getInfoWindow(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}export function openPropsDialog(s,a){let d;switch(this.state.mode="hand",s.type){case"polyline":d=new n(this.jodit,s.state,this.options);break;case"marker":d=new o(this.jodit,s.state,this.options);break;case"circle":case"polygon":d=new i(this.jodit,s.state,this.options)}if(!d)return;this.append(d),this.j.e.on(d,"bin",()=>{t.call(this,s)}).on(d,"change",(t,o)=>{e.call(this,{...s.state,[t]:o},a)});const r=getInfoWindow.call(this);if("polygon"===s.type||"polyline"===s.type){const t=s.gme.getPath().getAt(0);r.setPosition(t)}"circle"===s.type&&r.setPosition(s.gme.getCenter()),r.setContent(d.container),r.open(this.map,s.gme),r.addListener("closeclick",()=>{d&&(this.remove(d),d.destruct())})}
|
|
1
|
+
var a=Object.defineProperty;var n=(t,i)=>a(t,"name",{value:i,configurable:!0});import{removeElement as d}from"./remove-element.js";import{updateStateAndGme as c}from"./update-state-and-gme.js";import{UIMarkerEditor as p,UIPolygonEditor as h,UIPolylineEditor as f}from"../../editors/index.js";function l(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}n(l,"getInfoWindow");function u(t,i){let e;switch(this.state.mode="hand",t.type){case"polyline":e=new f(this.jodit,t.state,this.options);break;case"marker":e=new p(this.jodit,t.state,this.options);break;case"circle":case"polygon":e=new h(this.jodit,t.state,this.options);break}if(!e)return;this.append(e),this.j.e.on(e,"bin",()=>{d.call(this,t)}).on(e,"change",(s,r)=>{c.call(this,{...t.state,[s]:r},i)});const o=l.call(this);if(t.type==="polygon"||t.type==="polyline"){const s=t.gme.getPath().getAt(0);o.setPosition(s)}t.type==="circle"&&o.setPosition(t.gme.getCenter()),o.setContent(e.container),o.open(this.map,t.gme),o.addListener("closeclick",()=>{e&&(this.remove(e),e.destruct())})}n(u,"openPropsDialog");export{u as openPropsDialog};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
export function removeElement(e){const t=this.mapElements.indexOf(e);-1!==t&&(this.mapElements[t].gme.setMap(null),this.mapElements.splice(t,1),this.state.elements.splice(t,1),this.state.elements=[...this.state.elements])}
|
|
1
|
+
var m=Object.defineProperty;var s=(t,e)=>m(t,"name",{value:e,configurable:!0});function i(t){const e=this.mapElements.indexOf(t);e!==-1&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=[...this.state.elements])}s(i,"removeElement");export{i as removeElement};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import{arrayToPath as e}from"../../../helpers/helpers.js";export function updateStateAndGme(t,s,o=!1){const a=this.mapElements[s];if(a.state===t||a.state.type!==t.type)return;const i=a.state;if(!o){let s;for(s in t){const o=t[s],l=i[s];if(null!=o&&(null==l||o.toString()!==l.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(a.type){case"polyline":case"circle":case"polygon":a.gme.setOptions({[s]:o})}break;case"coordinates":switch(a.type){case"polygon":case"polyline":a.gme.setPath(e(o))}}}}a.state=t,this.state.elements[s]=t}
|
|
1
|
+
var n=Object.defineProperty;var c=(e,o)=>n(e,"name",{value:o,configurable:!0});import{arrayToPath as p}from"../../../helpers/helpers.js";function m(e,o,i=!1){const t=this.mapElements[o];if(t.state===e||t.state.type!==e.type)return;const r=t.state;if(!i){let s;for(s in e){const a=e[s],l=r[s];if(a!=null&&(l==null||a.toString()!==l.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(t.type){case"polyline":case"circle":case"polygon":{t.gme.setOptions({[s]:a});break}}break;case"coordinates":switch(t.type){case"polygon":case"polyline":{t.gme.setPath(p(a));break}}break}}}t.state=e,this.state.elements[o]=e}c(m,"updateStateAndGme");export{m as updateStateAndGme};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,o,r){var n,c=arguments.length,s=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(c<3?n(s):c>3?n(e,o,s):n(e,o))||s);return c>3&&s&&Object.defineProperty(e,o,s),s};import{component as e}from"jodit/esm/core/decorators/component/component.js";import{UICheckbox as o,UIForm as r}from"jodit/esm/core/ui/index.js";let n=class UIMapsControlsForm extends r{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const r={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(r);this.append(n.map(e=>new o(t,{label:r[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)})))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};n=t([e],n);export{n as UIMapsControlsForm};
|
|
1
|
+
var h=Object.defineProperty;var p=(l,o)=>h(l,"name",{value:o,configurable:!0});var c,m=function(l,o,e,n){var r=arguments.length,t=r<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,o,e,n);else for(var a=l.length-1;a>=0;a--)(s=l[a])&&(t=(r<3?s(t):r>3?s(o,e,t):s(o,e))||t);return r>3&&t&&Object.defineProperty(o,e,t),t};import{component as f}from"jodit/esm/core/decorators/component/component.js";import{UICheckbox as u,UIForm as C}from"jodit/esm/core/ui/index.js";let i=(c=class extends C{className(){return"UIMapsControlsForm"}constructor(o,e){super(o),this.state=e;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(t=>new u(o,{label:n[t],name:t,checked:this.state.controls[t],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,t)})))}onChangeSize(o,e){this.state.controls={...this.state.controls,[o]:e==="true"}}},p(c,"UIMapsControlsForm"),c);i=m([f],i);export{i as UIMapsControlsForm};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,n,a){var l,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var i=e.length-1;i>=0;i--)(l=e[i])&&(o=(r<3?l(o):r>3?l(t,n,o):l(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o};import{autobind as t,component as n,watch as a}from"jodit/esm/core/decorators/index.js";import{refs as l}from"jodit/esm/core/helpers/utils/selector.js";import{UIForm as r,UIInput as o,UISelect as i}from"jodit/esm/core/ui/index.js";let s=class UIMapsPropsForm extends r{className(){return"UIMapsPropsForm"}constructor(e,t){var n;super(e),this.state=t;const[a,l]=t.size,[r,s]=t.center;this.append([new o(e,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Height",name:"height",value:l,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new o(e,{label:"Longitude",name:"lng",value:s,onChange:this.onChangeCenter}),new i(e,{label:"Map type",value:t.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:e=>{t.type=e}}),new i(e,{label:"Layer",value:null!==(n=t.layer)&&void 0!==n?n:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:e=>{t.layer=e}})])}onChangeSize(){const{width:e,height:t}=l(this.container);this.state.size=[parseInt(null==e?void 0:e.value,10)||0,parseInt(null==t?void 0:t.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=l(this.container),[n,a]=this.state.size;n.toString()!==e.value&&(e.value=n.toString()),a.toString()!==t.value&&(t.value=a.toString())}onChangeCenter(){const{lat:e,lng:t}=l(this.container);this.state.center=[parseFloat(null==e?void 0:e.value)||0,parseFloat(null==t?void 0:t.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=l(this.container),[n,a]=this.state.center;n.toString()!==e.value&&(e.value=n.toString()),a.toString()!==t.value&&(t.value=a.toString())}onExternalChangeType(){const{mapType:e}=l(this.container);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=l(this.container);this.state.layer!==e.value&&(e.value=this.state.layer)}};e([t],s.prototype,"onChangeSize",null),e([a("state.size")],s.prototype,"onExternalChangeSize",null),e([t],s.prototype,"onChangeCenter",null),e([a(["state.center"])],s.prototype,"onExternalChangeCenter",null),e([a(["state.type"])],s.prototype,"onExternalChangeType",null),e([a(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=e([n],s);export{s as UIMapsPropsForm};
|
|
1
|
+
var m=Object.defineProperty;var v=(u,e)=>m(u,"name",{value:e,configurable:!0});var h,r=function(u,e,t,n){var a=arguments.length,l=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,e,t,n);else for(var p=u.length-1;p>=0;p--)(i=u[p])&&(l=(a<3?i(l):a>3?i(e,t,l):i(e,t))||l);return a>3&&l&&Object.defineProperty(e,t,l),l};import{autobind as f,component as x,watch as c}from"jodit/esm/core/decorators/index.js";import{refs as s}from"jodit/esm/core/helpers/utils/selector.js";import{UIForm as d,UIInput as g,UISelect as C}from"jodit/esm/core/ui/index.js";let o=(h=class extends d{className(){return"UIMapsPropsForm"}constructor(e,t){var n;super(e),this.state=t;const[a,l]=t.size,[i,p]=t.center;this.append([new g(e,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new g(e,{label:"Height",name:"height",value:l,type:"number",onChange:this.onChangeSize}),new g(e,{label:"Latitude",name:"lat",value:i,onChange:this.onChangeCenter}),new g(e,{label:"Longitude",name:"lng",value:p,onChange:this.onChangeCenter}),new C(e,{label:"Map type",value:t.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:v(y=>{t.type=y},"onChange")}),new C(e,{label:"Layer",value:(n=t.layer)!==null&&n!==void 0?n:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:v(y=>{t.layer=y},"onChange")})])}onChangeSize(){const{width:e,height:t}=s(this.container);this.state.size=[parseInt(e?.value,10)||0,parseInt(t?.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=s(this.container),[n,a]=this.state.size;n.toString()!==e.value&&(e.value=n.toString()),a.toString()!==t.value&&(t.value=a.toString())}onChangeCenter(){const{lat:e,lng:t}=s(this.container);this.state.center=[parseFloat(e?.value)||0,parseFloat(t?.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=s(this.container),[n,a]=this.state.center;n.toString()!==e.value&&(e.value=n.toString()),a.toString()!==t.value&&(t.value=a.toString())}onExternalChangeType(){const{mapType:e}=s(this.container);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=s(this.container);this.state.layer!==e.value&&(e.value=this.state.layer)}},v(h,"UIMapsPropsForm"),h);r([f],o.prototype,"onChangeSize",null),r([c("state.size")],o.prototype,"onExternalChangeSize",null),r([f],o.prototype,"onChangeCenter",null),r([c(["state.center"])],o.prototype,"onExternalChangeCenter",null),r([c(["state.type"])],o.prototype,"onExternalChangeType",null),r([c(["state.layer"])],o.prototype,"onExternalChangeLayer",null),o=r([x],o);export{o as UIMapsPropsForm};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,o,l):r(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{component as t}from"jodit/esm/core/decorators/component/component.js";import{assert as o}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as i}from"jodit/esm/core/ui/element.js";import{JoditPro as r}from"../../../../jodit-pro.js";let s=class UIWysiwyg extends i{className(){return"UIWysiwyg"}constructor(e,t,i,s){super(e);const l=this.getElm("editor");o(null!=l,"editor element does not exist");const n=r.make(l,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1,...t});n.value=i,n.e.on("change",()=>s(n.value))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=e([t],s);export{s as UIWysiwyg};
|
|
1
|
+
var u=Object.defineProperty;var m=(s,e)=>u(s,"name",{value:e,configurable:!0});var n,f=function(s,e,i,l){var r=arguments.length,t=r<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,i):l,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(s,e,i,l);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(t=(r<3?o(t):r>3?o(e,i,t):o(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};import{component as d}from"jodit/esm/core/decorators/component/component.js";import{assert as g}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as h}from"jodit/esm/core/ui/element.js";import{JoditPro as b}from"../../../../jodit-pro.js";let c=(n=class extends h{className(){return"UIWysiwyg"}constructor(e,i,l,r){super(e);const t=this.getElm("editor");g(t!=null,"editor element does not exist");const o=b.make(t,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1,...i});o.value=l,o.e.on("change",()=>r(o.value))}render(){return`<div>
|
|
2
|
+
<div class='&__label'>~Info~</div>
|
|
3
|
+
<div class='&__editor'></div>
|
|
4
|
+
</div>`}},m(n,"UIWysiwyg"),n);c=f([d],c);export{c as UIWysiwyg};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import o from"./icon.svg.js";import{Config as e}from"jodit/esm/config.js";import{trim as r}from"jodit/esm/core/helpers/index.js";import{Plugin as t}from"jodit/esm/core/plugin/index.js";import{isEditorEmpty as s}from"jodit/esm/plugins/placeholder/placeholder.js";import{JoditPro as i}from"../../jodit-pro.js";e.prototype.controls.google={tooltip:"Google search",icon:o,isDisabled:o=>s(o.editor),command:"startSearch"};export class googleSearch extends t{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(o){o.registerCommand("startSearch",{exec:()=>{var e,t,s;let i;const{s:n}=o;if(i=n.isCollapsed()?null===(t=null===(e=n.current())||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.innerText:null===(s=n.sel)||void 0===s?void 0:s.toString(),i){const o="https://www.google.com/search?q="+encodeURIComponent(r(i));window.open(o,"_blank")}}})}beforeDestruct(o){}}googleSearch.requires=["license"],i.plugins.add("google-search",googleSearch);
|
|
1
|
+
var d=Object.defineProperty;var m=(e,o)=>d(e,"name",{value:o,configurable:!0});import p from"./icon.svg.js";import{Config as u}from"jodit/esm/config.js";import{trim as g}from"jodit/esm/core/helpers/index.js";import{Plugin as f}from"jodit/esm/core/plugin/index.js";import{isEditorEmpty as v}from"jodit/esm/plugins/placeholder/placeholder.js";import{JoditPro as h}from"../../jodit-pro.js";u.prototype.controls.google={tooltip:"Google search",icon:p,isDisabled(e){return v(e.editor)},command:"startSearch"};const c=class c extends f{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(o){o.registerCommand("startSearch",{exec:m(()=>{var i,n,s;let r;const{s:l}=o;if(l.isCollapsed()?r=(n=(i=l.current())===null||i===void 0?void 0:i.parentElement)===null||n===void 0?void 0:n.innerText:r=(s=l.sel)===null||s===void 0?void 0:s.toString(),r){const a="https://www.google.com/search?q="+encodeURIComponent(g(r));window.open(a,"_blank")}},"exec")})}beforeDestruct(o){}};m(c,"googleSearch");let t=c;t.requires=["license"],h.plugins.add("google-search",t);export{t as googleSearch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var C='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg> ';export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Config as e}from"jodit/esm/config.js";e.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]};
|
|
1
|
+
import{Config as e}from"jodit/esm/config.js";e.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r,i){var o,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n};import"./config.js";import{autobind as t,debounce as r}from"jodit/esm/core/decorators/index.js";import{Dom as i}from"jodit/esm/core/dom/dom.js";import{attr as o}from"jodit/esm/core/helpers/utils/attr.js";import{Plugin as s}from"jodit/esm/core/plugin/plugin.js";import{JoditPro as n}from"../../jodit-pro.js";export class highlightSignature extends s{constructor(){super(...arguments),this.abortController=null}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&(e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",highlightSignature.removeUtilWrappers),this.walkNodes())}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}walkNodes(){var e;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:t}=this,r=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);null===(e=this.abortController)||void 0===e||e.abort(),this.workLoop(r)}runWorker(e){let t;this.j.e.mute();let r=0;const{processInChunkCount:i}=this.j.o.highlightSignature;try{do{if(r+=1,t=e.nextNode(),!t)return;if(this.checkNormalizing(t))return;this.checkReplaceSchemas(t)}while(t&&i>r)}finally{this.j.e.unmute()}this.workLoop(e)}workLoop(e){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(e),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(e){return!!i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(highlightSignature.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:r}=this,o=r.o.highlightSignature;for(const r in o.schema){const s=RegExp(r);if(s.test(t)){const n=t.match(s);if(!n||void 0===n.index)continue;const a=o.schema[r](this.j,n);if(a)return i.markTemporary(a,{dataHighlightSchema:r}),void this.replaceMatchedTextToElm(e,t,n,a)}}}replaceMatchedTextToElm(e,t,r,o){var s;const{j:n}=this,{range:a}=n.s,h=a.startContainer===e,l=a.startOffset,c=null!==(s=r.index)&&void 0!==s?s:0;e.nodeValue=t.substring(0,c);const g=t.substring(c+r[0].length);if(g.length){const t=n.createInside.text(g);i.after(e,t)}o.innerText=r[0],i.after(e,o),h&&this.restoreCursorPosition(l,e,o.firstChild,o.nextSibling)}static hasUtilWrapper(e){return i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const t=r.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(r,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){i.temporaryList(this.j.editor).forEach(e=>{var t;const r=o(e,"dataHighlightSchema");if(!r)return;const s=RegExp(r),n=null!==(t=e.innerText)&&void 0!==t?t:"";s.test(n)&&!n.replace(s,"").length||(this.j.s.save(),i.unwrap(e),this.j.s.restore())})}}highlightSignature.requires=["license"],e([r()],highlightSignature.prototype,"walkNodes",null),e([t],highlightSignature.prototype,"runWorker",null),n.plugins.add("highlight-signature",highlightSignature);
|
|
1
|
+
var j=Object.defineProperty;var d=(c,e)=>j(c,"name",{value:e,configurable:!0});var g=function(c,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(c,e,t,r);else for(var s=c.length-1;s>=0;s--)(n=c[s])&&(o=(i<3?n(o):i>3?n(e,t,o):n(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o};import"./config.js";import{autobind as k,debounce as b}from"jodit/esm/core/decorators/index.js";import{Dom as a}from"jodit/esm/core/dom/dom.js";import{attr as v}from"jodit/esm/core/helpers/utils/attr.js";import{Plugin as T}from"jodit/esm/core/plugin/plugin.js";import{JoditPro as S}from"../../jodit-pro.js";const h=class h extends T{constructor(){super(...arguments),this.abortController=null}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&(e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",h.removeUtilWrappers),this.walkNodes())}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",h.removeUtilWrappers)}walkNodes(){var e;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:t}=this,r=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);(e=this.abortController)===null||e===void 0||e.abort(),this.workLoop(r)}runWorker(e){let t;this.j.e.mute();let r=0;const{processInChunkCount:i}=this.j.o.highlightSignature;try{do{if(r+=1,t=e.nextNode(),!t||this.checkNormalizing(t))return;this.checkReplaceSchemas(t)}while(t&&i>r)}finally{this.j.e.unmute()}this.workLoop(e)}workLoop(e){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(e),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(e){return a.isText(e.nextSibling)?(this.j.editor.normalize(),this.walkNodes(),!0):!1}checkReplaceSchemas(e){if(h.hasUtilWrapper(e))return;const t=e.nodeValue;if(t==null)return;const{j:r}=this,i=r.o.highlightSignature;for(const o in i.schema){const n=RegExp(o);if(n.test(t)){const s=t.match(n);if(!s||s.index===void 0)continue;const u=i.schema[o](this.j,s);if(u){a.markTemporary(u,{dataHighlightSchema:o}),this.replaceMatchedTextToElm(e,t,s,u);return}}}}replaceMatchedTextToElm(e,t,r,i){var o;const{j:n}=this,{range:s}=n.s,u=s.startContainer===e,m=s.startOffset,f=(o=r.index)!==null&&o!==void 0?o:0;e.nodeValue=t.substring(0,f);const p=t.substring(f+r[0].length);if(p.length){const x=n.createInside.text(p);a.after(e,x)}i.innerText=r[0],a.after(e,i),u&&this.restoreCursorPosition(m,e,i.firstChild,i.nextSibling)}static hasUtilWrapper(e){return a.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=a.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const i=r.nodeValue;if(i.length>=e){const o=this.j.s.createRange();o.setStart(r,e),this.j.s.selectRange(o,!1);break}e-=i.length}}checkUtilsBoxToSchema(){a.temporaryList(this.j.editor).forEach(e=>{var t;const r=v(e,"dataHighlightSchema");if(!r)return;const i=RegExp(r),o=(t=e.innerText)!==null&&t!==void 0?t:"";(!i.test(o)||o.replace(i,"").length)&&(this.j.s.save(),a.unwrap(e),this.j.s.restore())})}};d(h,"highlightSignature");let l=h;l.requires=["license"],g([b()],l.prototype,"walkNodes",null),g([k],l.prototype,"runWorker",null),S.plugins.add("highlight-signature",l);export{l as highlightSignature};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import o from"./icon.svg.js";import{Config as r}from"jodit/esm/config.js";import{Dom as i}from"jodit/esm/core/dom/dom.js";import{isArray as e}from"jodit/esm/core/helpers//checker/is-array.js";r.prototype.controls.iframeEditor={icon:o,tooltip:"Iframe Editor",exec:(o,r)=>{i.isTag(r,"jodit")&&i.isTag(r.firstElementChild,"iframe")&&(r=r.firstElementChild),o.e.fire("toggleIframeEditor",i.isTag(r,"iframe")?r:null)}},e(r.prototype.popup.iframe)&&r.prototype.popup.iframe.push("iframeEditor");
|
|
1
|
+
var e=Object.defineProperty;var p=(i,o)=>e(i,"name",{value:o,configurable:!0});import m from"./icon.svg.js";import{Config as r}from"jodit/esm/config.js";import{Dom as t}from"jodit/esm/core/dom/dom.js";import{isArray as f}from"jodit/esm/core/helpers//checker/is-array.js";r.prototype.controls.iframeEditor={icon:m,tooltip:"Iframe Editor",exec:p((i,o)=>{t.isTag(o,"jodit")&&t.isTag(o.firstElementChild,"iframe")&&(o=o.firstElementChild),i.e.fire("toggleIframeEditor",t.isTag(o,"iframe")?o:null)},"exec")},f(r.prototype.popup.iframe)&&r.prototype.popup.iframe.push("iframeEditor");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var h='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg> ';export{h as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,i,o){var r,s=arguments.length,l=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(l=(s<3?r(l):s>3?r(t,i,l):r(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};import"./config.js";import{UIIframeEditor as t}from"./ui/iframe-editor/iframe-editor.js";import{autobind as i,watch as o}from"jodit/esm/core/decorators/index.js";import{Dom as r}from"jodit/esm/core/dom/index.js";import{attr as s,css as l}from"jodit/esm/core/helpers/index.js";import{Plugin as d}from"jodit/esm/core/plugin/index.js";import{Button as a}from"jodit/esm/core/ui/button/index.js";import{Dialog as n}from"jodit/esm/modules/index.js";import{JoditPro as m}from"../../jodit-pro.js";export class IframeEditor extends d{constructor(){super(...arguments),this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(e){e.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(e){var i,o,d,m,c;this.__dialog||(this.__dialog=new n({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!r.isTag(e,"iframe")&&(e=void 0);const f=new t(this.__dialog,{src:null!==(i=null==e?void 0:e.src)&&void 0!==i?i:"",name:null!==(o=null==e?void 0:e.name)&&void 0!==o?o:"",title:null!==(d=null==e?void 0:e.title)&&void 0!==d?d:"",frameBorder:"1"===(null==e?void 0:e.frameBorder)||"yes"===(null==e?void 0:e.frameBorder),width:null!==(m=null==e?void 0:e.offsetWidth)&&void 0!==m?m:700,height:null!==(c=null==e?void 0:e.offsetHeight)&&void 0!==c?c:400});this.__dialog.setContent(f);const h=this.__dialog;h.isOpened?h.close():(h.setFooter([a(h,"cancel","Cancel","default").onAction(()=>h.close()),a(h,"ok",e?"Update":"Insert","primary").onAction(()=>{if(!f.srcField.value)return f.srcField.validate(),void f.srcField.focus();e||(e=this.j.createInside.element("iframe"),this.j.s.insertNode(e,!0,!1)),e.className=f.state.className||"",s(e,{src:f.state.src,title:f.state.title,name:f.state.name,frameborder:f.state.frameBorder?"1":"0",width:f.state.width,height:f.state.height}),r.isTag(e.parentElement,"jodit")&&l(e.parentElement,{width:f.state.width,height:f.state.height}),this.jodit.e.fire("synchro"),h.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{f.srcField.focus()}))}onDblClick(e){r.isTag(e.target,"iframe")&&this.toggleEditor(e.target)}beforeDestruct(e){var t;null===(t=this.__dialog)||void 0===t||t.destruct()}}IframeEditor.requires=["license","color-picker"],e([i],IframeEditor.prototype,"toggleEditor",null),e([o(":dblclick")],IframeEditor.prototype,"onDblClick",null),m.plugins.add("iframe-editor",IframeEditor);
|
|
1
|
+
var p=Object.defineProperty;var a=(c,i)=>p(c,"name",{value:i,configurable:!0});var u=function(c,i,e,t){var s=arguments.length,l=s<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,i,e,t);else for(var o=c.length-1;o>=0;o--)(d=c[o])&&(l=(s<3?d(l):s>3?d(i,e,l):d(i,e))||l);return s>3&&l&&Object.defineProperty(i,e,l),l};import"./config.js";import{UIIframeEditor as v}from"./ui/iframe-editor/iframe-editor.js";import{autobind as _,watch as b}from"jodit/esm/core/decorators/index.js";import{Dom as f}from"jodit/esm/core/dom/index.js";import{attr as j,css as w}from"jodit/esm/core/helpers/index.js";import{Plugin as E}from"jodit/esm/core/plugin/index.js";import{Button as h}from"jodit/esm/core/ui/button/index.js";import{Dialog as g}from"jodit/esm/modules/index.js";import{JoditPro as y}from"../../jodit-pro.js";const m=class m extends E{constructor(){super(...arguments),this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(i){i.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(i){var e,t,s,l,d;this.__dialog||(this.__dialog=new g({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),i&&!f.isTag(i,"iframe")&&(i=void 0);const o=new v(this.__dialog,{src:(e=i?.src)!==null&&e!==void 0?e:"",name:(t=i?.name)!==null&&t!==void 0?t:"",title:(s=i?.title)!==null&&s!==void 0?s:"",frameBorder:i?.frameBorder==="1"||i?.frameBorder==="yes",width:(l=i?.offsetWidth)!==null&&l!==void 0?l:700,height:(d=i?.offsetHeight)!==null&&d!==void 0?d:400});this.__dialog.setContent(o);const n=this.__dialog;n.isOpened?n.close():(n.setFooter([h(n,"cancel","Cancel","default").onAction(()=>n.close()),h(n,"ok",i?"Update":"Insert","primary").onAction(()=>{if(!o.srcField.value){o.srcField.validate(),o.srcField.focus();return}i||(i=this.j.createInside.element("iframe"),this.j.s.insertNode(i,!0,!1)),i.className=o.state.className||"",j(i,{src:o.state.src,title:o.state.title,name:o.state.name,frameborder:o.state.frameBorder?"1":"0",width:o.state.width,height:o.state.height}),f.isTag(i.parentElement,"jodit")&&w(i.parentElement,{width:o.state.width,height:o.state.height}),this.jodit.e.fire("synchro"),n.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{o.srcField.focus()}))}onDblClick(i){f.isTag(i.target,"iframe")&&this.toggleEditor(i.target)}beforeDestruct(i){var e;(e=this.__dialog)===null||e===void 0||e.destruct()}};a(m,"IframeEditor");let r=m;r.requires=["license","color-picker"],u([_],r.prototype,"toggleEditor",null),u([b(":dblclick")],r.prototype,"onDblClick",null),y.plugins.add("iframe-editor",r);export{r as IframeEditor};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,a,r){var s,n=arguments.length,i=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,a,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,a,i):s(t,a))||i);return n>3&&i&&Object.defineProperty(t,a,i),i};import{component as t}from"jodit/esm/core/decorators/component/component.js";import{UIBlock as a,UICheckbox as r,UIGroup as s,UIInput as n}from"jodit/esm/core/ui/index.js";let i=class UIIframeEditor extends s{className(){return"UIIframeEditor"}constructor(e,t){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,t),this.srcField=new n(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new a(e,[new n(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new n(e,{label:"Height",type:"number",value:this.state.height,onChange:e=>{this.state.height=parseInt(e,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a(e,[new r(e,{label:"Show frame border",checked:Boolean(t.frameBorder),onChange:e=>{this.state.frameBorder="true"===e}})]),new n(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new n(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};i=e([t],i);export{i as UIIframeEditor};
|
|
1
|
+
var f=Object.defineProperty;var s=(l,e)=>f(l,"name",{value:e,configurable:!0});var n,p=function(l,e,a,t){var i=arguments.length,r=i<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,a):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(l,e,a,t);else for(var o=l.length-1;o>=0;o--)(c=l[o])&&(r=(i<3?c(r):i>3?c(e,a,r):c(e,a))||r);return i>3&&r&&Object.defineProperty(e,a,r),r};import{component as b}from"jodit/esm/core/decorators/component/component.js";import{UIBlock as u,UICheckbox as w,UIGroup as g,UIInput as h}from"jodit/esm/core/ui/index.js";let m=(n=class extends g{className(){return"UIIframeEditor"}constructor(e,a){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,a),this.srcField=new h(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:s(t=>{this.state.src=t},"onChange")}),this.append([this.srcField,new u(e,[new h(e,{label:"Width",type:"number",value:this.state.width,onChange:s(t=>{this.state.width=parseInt(t,10)||0},"onChange")}),new h(e,{label:"Height",type:"number",value:this.state.height,onChange:s(t=>{this.state.height=parseInt(t,10)||0},"onChange")})],{className:this.getFullElName("block"),align:"center"}),new u(e,[new w(e,{label:"Show frame border",checked:!!a.frameBorder,onChange:s(t=>{this.state.frameBorder=t==="true"},"onChange")})]),new h(e,{label:"Name",value:this.state.name,type:"text",onChange:s(t=>{this.state.name=t},"onChange")}),new h(e,{label:"Title",value:this.state.title,type:"text",onChange:s(t=>{this.state.title=t},"onChange")})])}},s(n,"UIIframeEditor"),n);m=p([b],m);export{m as UIIframeEditor};
|
package/esm/plugins/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.js";
|
|
1
|
+
import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"./icon.svg.js";import{Config as t}from"jodit/esm/config.js";t.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ \xB1","1 ! \xA7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :",`' "`,"Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Espa\xF1ol",keys:[["\xBA ` ~","1 ! \xA7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","\xA1 = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\xE7 \xC7 \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xF1 \xD1 ; :",`' "`,"Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ \xB1","1 ! \xA7","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","\xFC \xDC [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xF6 \xD6 ;",`\xE4 \xC4 ' "`,"Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",keys:[["` ~ \xB1","1 ! \xA7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","\u0439 \u0419","\u0446 \u0426","\u0443 \u0423","\u043A \u041A","\u0435 \u0415","\u043D \u041D","\u0433 \u0413","\u0448 \u0428","\u0449 \u0429","\u0437 \u0417","\u0445 \u0425 [","\u044A ] {","\\ | }"],["Caps","\u0444 \u0424","\u044B \u042B","\u0432 \u0412","\u0430 \u0410","\u043F \u041F","\u0440 \u0420","\u043E \u041E","\u043B \u041B","\u0434 \u0414","\u0436 \u0416 ;","\u044D \u042D '","Enter"],["Shift","\u044F \u042F","\u0447 \u0427","\u0441 \u0421","\u043C \u041C","\u0438 \u0418","\u0442 \u0422","\u044C \u042C","\u0431 \u0411 ,","\u044E \u042E .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"T\xFCrk\xE7e",keys:[['" \xE9` ~',"1 ! \xA7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xB1","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","\u0131 I","o O","p P","\u011F \u011E","\xFC \xDC",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\u015F \u015E","i\u0307 \u0130","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","\xF6 \xD6 <","\xE7 \xC7 >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ \xB1","1 ! \xA7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","\u05E7 e E","\u05E8 r R","\u05D0 t T","\u05D8 y Y","\u05D5 u U","\u05DF i I","\u05DD o O","\u05E4 p P","[ {","] }","\\ |"],["Caps","\u05E9 a A","\u05D3 s S","\u05D2 d D","\u05DB f F","\u05E2 g G","\u05D9 h H","\u05D7 j J","\u05DC k K","\u05DA l L","\u05E3 ; :",`' "`,"Enter"],["Shift","\u05D6 z Z","\u05E1 x X","\u05D1 c C","\u05D4 v V","\u05E0 b B","\u05DE n N","\u05E6 m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["\u04BB \u04BA` ~","1 ! \xA7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xB1","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","\u0439 \u0419","\u04E9 \u04E8","\u0443 \u0423","\u043A \u041A","\u0435 \u0415","\u043D \u041D","\u0433 \u0413","\u0448 \u0428","\u04D9 \u04D8","\u0437 \u0417","\u0445 \u0425 [","\u04AF \u04AE ]","\\ | }"],["Caps","\u0444 \u0424","\u044B \u042B","\u0432 \u0412","\u0430 \u0410","\u043F \u041F","\u0440 \u0420","\u043E \u041E","\u043B \u041B","\u0434 \u0414","\u04A3 \u04A2 ;","\u044D \u042D '","Enter"],["Shift","\u044F \u042F","\u0447 \u0427","\u0441 \u0421","\u043C \u041C","\u0438 \u0418","\u0442 \u0422","\u0497 \u0496","\u0431 \u0411 ,","\u044E \u042E .","\u0491 \u0490 /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},t.prototype.controls.keyboard={tooltip:"Keyboard",icon:a,isActive(e){return!!e.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},t.prototype.controls.extraKeyboardButtons={};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var h='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg> ';export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var y=Object.defineProperty;var h=(d,t)=>y(d,"name",{value:t,configurable:!0});var c=function(d,t,e,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(d,t,e,s);else for(var n=d.length-1;n>=0;n--)(o=d[n])&&(i=(r<3?o(i):r>3?o(t,e,i):o(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i};import"./config.js";import{UIKeyboard as _}from"./ui/keyboard/keyboard.js";import{Config as b}from"jodit/esm/config.js";import{autobind as p}from"jodit/esm/core/decorators/index.js";import{isString as f}from"jodit/esm/core/helpers/checker/index.js";import{Plugin as g}from"jodit/esm/core/plugin/index.js";import{UISelect as v}from"jodit/esm/core/ui/index.js";import{Dialog as C}from"jodit/esm/modules/index.js";import{JoditPro as m}from"../../jodit-pro.js";const u=class u extends g{constructor(t){super(t),this.hasStyle=!m.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:e,extraKeyGroup:s}=t.o.keyboard;e.length&&e.forEach((r,i)=>{const o=f(r)?r:r.key,n=f(r)||!r.hotkeys?[`ctrl+${i+1}`]:r.hotkeys;t.registerButton({name:`extraKeyboardButtons.${o}`,group:s});const{extraKeyboardButtons:l}=b.defaultOptions.controls;l[o]={name:o,tooltip:o,args:[o],hotkeys:n,command:"insertChar"}})}afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>{var e;return(e=this.__keyboard)===null||e===void 0?void 0:e.isOpened})}insertChar(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new C({toolbarButtonSize:"tiny"});const t=new _(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);const{showLayoutSwitcher:e,layoutSwitchList:s,layoutList:r}=this.j.o.keyboard;if(e){const i=new v(this.__keyboard,{value:t.state.currentLayout,options:s.map(o=>{var n,l;return{text:(l=(n=r[o])===null||n===void 0?void 0:n.title)!==null&&l!==void 0?l:o,value:o}}),onChange(o){t.state.currentLayout=o}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var e;(e=this.__keyboard)===null||e===void 0||e.destruct()}};h(u,"keyboard");let a=u;a.requires=["license"],c([p],a.prototype,"insertChar",null),c([p],a.prototype,"toggleKeyboard",null),m.plugins.add("keyboard",a);export{a as keyboard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var l='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>';export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg> ';export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var c=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg> `;export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg> ';export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var v='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg> ';export{v as default};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var t,e=this&&this.__decorate||function(t,e,s,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(i=(a<3?r(i):a>3?r(e,s,i):r(e,s))||i);return a>3&&i&&Object.defineProperty(e,s,i),i};import{NBSP_SPACE as s}from"jodit/esm/core/constants.js";import{autobind as o,component as r,hook as a,watch as i}from"jodit/esm/core/decorators/index.js";import{attr as n}from"jodit/esm/core/helpers/utils/index.js";import{Icon as c,UIElement as h}from"jodit/esm/core/ui/index.js";import p from"../assets/backspace.svg.js";import l from"../assets/caps.svg.js";import u from"../assets/dots.svg.js";import y from"../assets/shift.svg.js";import d from"../assets/tab.svg.js";let f=t=class UIKeyboard extends h{className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let r=0;r<s;r+=1){const s=[];for(let o=0;o<t[r].length;o+=1)s.push(`<div style="width:${e*t[r][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:e,options:s,shift:o,caps:r}=this.state,{keys:a}=this.j.o.keyboard.layoutList[e];let i=0;for(let e=0;e<a.length;e+=1)for(let n=0;n<a[e].length;n+=1){const c=a[e][n].split(" ");let h=c[0];o&&(h=c[1]),!o&&r&&c[1]&&t.isLetter(c[0])&&(h=c[1]),s&&(h=c[2]),this.setKeyValue(i,null!=h?h:c[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(e,s){const o=this._keys[e];if(!o)return;let r=!1;const{options:a,shift:i,caps:c}=this.state;switch(s){case"Caps":r=c;break;case"Options":r=a;break;case"Shift":r=i}o.innerHTML=t.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),r),n(o,"-key",s)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,e=0){const o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));const r=n(o,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}const{periodKeyRepeat:a,delayKeyRepeat:i}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,a),e||i),!1}constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.get("enter");case"Backspace":return p;case"Shift":return y;case"Caps":return l;case"Options":return u;case"Tab":return d;default:return t}}};e([i(["state.currentLayout","state.options","state.shift","state.caps"])],f.prototype,"onStateChange",null),e([i(["ow:mouseup"])],f.prototype,"onKeyUp",null),e([a("ready")],f.prototype,"onReady",null),e([o],f.prototype,"stopPress",null),e([i(["container:mousedown","container:touchstart"])],f.prototype,"onKeyDown",null),f=t=e([r],f);export{f as UIKeyboard};
|
|
1
|
+
var b=Object.defineProperty;var m=(u,t)=>b(u,"name",{value:t,configurable:!0});var p,l=function(u,t,r,s){var o=arguments.length,e=o<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(u,t,r,s);else for(var i=u.length-1;i>=0;i--)(a=u[i])&&(e=(o<3?a(e):o>3?a(t,r,e):a(t,r))||e);return o>3&&e&&Object.defineProperty(t,r,e),e},f;import{NBSP_SPACE as w}from"jodit/esm/core/constants.js";import{autobind as j,component as g,hook as K,watch as d}from"jodit/esm/core/decorators/index.js";import{attr as k}from"jodit/esm/core/helpers/utils/index.js";import{Icon as v,UIElement as L}from"jodit/esm/core/ui/index.js";import I from"../assets/backspace.svg.js";import S from"../assets/caps.svg.js";import _ from"../assets/dots.svg.js";import E from"../assets/shift.svg.js";import C from"../assets/tab.svg.js";let n=f=(p=class extends L{className(){return"UIKeyboard"}render(){const{layout:t,keySize:r}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let e=0;e<s;e+=1){const a=[];for(let i=0;i<t[e].length;i+=1)a.push(`<div style="width:${r*t[e][i]}px;height:${r}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${a.join(`
|
|
2
|
+
`)}</div>`)}return o.join(`
|
|
3
|
+
`)})()}</div>`}onStateChange(){const{currentLayout:t,options:r,shift:s,caps:o}=this.state,{keys:e}=this.j.o.keyboard.layoutList[t];let a=0;for(let i=0;i<e.length;i+=1)for(let y=0;y<e[i].length;y+=1){const c=e[i][y].split(" ");let h=c[0];s&&(h=c[1]),!s&&o&&c[1]&&f.isLetter(c[0])&&(h=c[1]),r&&(h=c[2]),this.setKeyValue(a,h??c[0]),a+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,r){const s=this._keys[t];if(!s)return;let o=!1;const{options:e,shift:a,caps:i}=this.state;switch(r){case"Caps":o=i;break;case"Options":o=e;break;case"Shift":o=a;break}s.innerHTML=f.decorate(r),s.classList.toggle(this.getFullElName("key","active",!0),o),k(s,"-key",r)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,r=0){const s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));const o=k(s,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(w));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}const{periodKeyRepeat:e,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,e),r||a),!1}constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}static decorate(t){switch(t){case"Space":return"";case"Enter":return v.get("enter");case"Backspace":return I;case"Shift":return E;case"Caps":return S;case"Options":return _;case"Tab":return C;default:return t}}},m(p,"UIKeyboard"),p);l([d(["state.currentLayout","state.options","state.shift","state.caps"])],n.prototype,"onStateChange",null),l([d(["ow:mouseup"])],n.prototype,"onKeyUp",null),l([K("ready")],n.prototype,"onReady",null),l([j],n.prototype,"stopPress",null),l([d(["container:mousedown","container:touchstart"])],n.prototype,"onKeyDown",null),n=f=l([g],n);export{n as UIKeyboard};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
const t=["*localhost*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];export function isAllowedSubdomain(e){return t.some(t=>new RegExp(function escapeRegex(t){return t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}(t.replace(/\*/g,"%ANY%")).replace(/%ANY%/g,".*")).test(e))}export function validateLicense(t,e){if(validateEntLicense(t=t.replace(/[^A-Z0-9-]/g,"R")))return!0;if(isAllowedSubdomain(e))return!0;const n=domainsHash(e),r=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,e)=>t.replace("{part}",n[e]||"[R-T]")),a=RegExp(`^${r.join("-")}$`,"i"),o=t.substring(12,13),s=a.test(t);if(!s&&o===(typeof!e).toUpperCase()[5]){const n=e.split(".");return n.shift(),!!n.length&&validateLicense(t,n.join("."))}return s}export function validateEntLicense(t){return/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(t)}export function domainsHash(t){const e=t.split(".");return e.map(t=>{const e=t[0];return"string"==typeof e&&Boolean(e.charCodeAt(0))?String.fromCharCode(e.charCodeAt(0)+1):e}).concat(e.map(t=>{const e=t[t.length-1];return"string"==typeof e&&Boolean(e.charCodeAt(0))?String.fromCharCode(e.charCodeAt(0)-1):e})).map(t=>null!=t&&/\w/.test(t)?t:"r")}
|
|
1
|
+
var u=Object.defineProperty;var s=(t,e)=>u(t,"name",{value:e,configurable:!0});const g=["*localhost*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function l(t){return t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}s(l,"escapeRegex");function A(t){return g.some(e=>new RegExp(l(e.replace(/\*/g,"%ANY%")).replace(/%ANY%/g,".*")).test(t))}s(A,"isAllowedSubdomain");function f(t,e){if(t=t.replace(/[^A-Z0-9-]/g,"R"),h(t)||A(e))return!0;const r=C(e),n=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((a,p)=>a.replace("{part}",r[p]||"[R-T]")),c=RegExp(`^${n.join("-")}$`,"i"),i=t.substring(12,13),o=c.test(t);if(!o&&i===(typeof!e).toUpperCase()[5]){const a=e.split(".");return a.shift(),a.length?f(t,a.join(".")):!1}return o}s(f,"validateLicense");function h(t){return/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(t)}s(h,"validateEntLicense");function C(t){const e=t.split(".");return e.map(r=>{const n=r[0];return typeof n=="string"&&n.charCodeAt(0)?String.fromCharCode(n.charCodeAt(0)+1):n}).concat(e.map(r=>{const n=r[r.length-1];return typeof n=="string"&&n.charCodeAt(0)?String.fromCharCode(n.charCodeAt(0)-1):n})).map(r=>r!=null&&/\w/.test(r)?r:"r")}s(C,"domainsHash");export{C as domainsHash,A as isAllowedSubdomain,h as validateEntLicense,f as validateLicense};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import{isAllowedSubdomain as e,validateLicense as t}from"./helpers/helpers.js";import{IS_TEST as o}from"jodit/esm/core/constants.js";import{Dom as s}from"jodit/esm/core/dom/dom.js";import{isBoolean as r}from"jodit/esm/core/helpers/checker/is-boolean.js";import{isString as i}from"jodit/esm/core/helpers/checker/is-string.js";import{Plugin as n}from"jodit/esm/core/plugin/plugin.js";import{JoditPro as c}from"../../jodit-pro.js";export class license extends n{static make(e){return new license(e)}afterInit(s){this.j.e.on("checkReserve",async s=>{const r=this.j.o.license;if(e(s))return"normal";if(!r)return"";const n=s;if(!i(r))return"";let c=t(r,n);return!c&&r[12]>"A"&&!o&&(c=await this.validateLicenseRemote(r,n)),c?"normal":""})}beforeDestruct(e){}async validateLicenseRemote(e,o){const i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&t(n,o))return!0;const c=document.createElement("script");return c.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(o)}`,document.body.appendChild(c),this.j.async.promise(e=>{window.onJoditResolveKeyCode=n=>{try{if(r(n))return e(n);t(n,o)?(this.j.storage.set(i,n),e(!0)):e(!1)}finally{s.safeRemove(c)}},this.j.async.setTimeout(()=>{e(!1),s.safeRemove(c)},3e3)})}}c.plugins.add("license",license);
|
|
1
|
+
var p=Object.defineProperty;var c=(f,o)=>p(f,"name",{value:o,configurable:!0});import{isAllowedSubdomain as u,validateLicense as m}from"./helpers/helpers.js";import{IS_TEST as h}from"jodit/esm/core/constants.js";import{Dom as l}from"jodit/esm/core/dom/dom.js";import{isBoolean as v}from"jodit/esm/core/helpers/checker/is-boolean.js";import{isString as j}from"jodit/esm/core/helpers/checker/is-string.js";import{Plugin as y}from"jodit/esm/core/plugin/plugin.js";import{JoditPro as R}from"../../jodit-pro.js";const a=class a extends y{static make(o){return new a(o)}afterInit(o){this.j.e.on("checkReserve",async i=>{const e=this.j.o.license;if(u(i))return"normal";if(!e)return"";const r=i;if(!j(e))return"";let t=m(e,r);return!t&&e[12]>"A"&&!h&&(t=await this.validateLicenseRemote(e,r)),t?"normal":""})}beforeDestruct(o){}async validateLicenseRemote(o,i){const e="validateJoditLicenseRemote",r=this.j.storage.get(e);if(r&&m(r,i))return!0;const t=document.createElement("script");return t.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(o)}&host=${encodeURIComponent(i)}`,document.body.appendChild(t),this.j.async.promise(s=>{window.onJoditResolveKeyCode=n=>{try{if(v(n))return s(n);m(n,i)?(this.j.storage.set(e,n),s(!0)):s(!1)}finally{l.safeRemove(t)}},this.j.async.setTimeout(()=>{s(!1),l.safeRemove(t)},3e3)})}};c(a,"license");let d=a;R.plugins.add("license",d);export{d as license};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import e from"./icon.svg.js";import{Config as o}from"jodit/esm/config.js";import{isNumeric as i}from"jodit/esm/core/helpers/checker/is-numeric.js";import{dataBind as t}from"jodit/esm/core/helpers/utils/data-bind.js";o.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";o.prototype.controls.mobileView={tooltip:"Mobile View",icon:e,command:"mobileView",isActive:e=>t(e,dataBindCurrentKey)&&"default"!==t(e,dataBindCurrentKey),isChildActive:(e,o)=>{var r,d;let n=null===(d=null===(r=o.control)||void 0===r?void 0:r.args)||void 0===d?void 0:d[0];return i(n)&&(n=Number(n)),(t(e,dataBindCurrentKey)||"default")===n},exec:e=>{if(!t(e,dataBindStoredKey))return!1;e.execCommand("mobileView",!1,t(e,dataBindStoredKey))},childExec:(e,o,{button:t})=>{var r,d;const n=null===(d=null===(r=t.control)||void 0===r?void 0:r.args)||void 0===d?void 0:d[0];e.execCommand("mobileView",!1,i(n)?Number(n):n)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
|
|
1
|
+
var f=Object.defineProperty;var l=(e,n)=>f(e,"name",{value:n,configurable:!0});import b from"./icon.svg.js";import{Config as d}from"jodit/esm/config.js";import{isNumeric as u}from"jodit/esm/core/helpers/checker/is-numeric.js";import{dataBind as r}from"jodit/esm/core/helpers/utils/data-bind.js";d.prototype.mobileView={mode:"default"};const c="buttonmobileSView",m="buttonmobileCView";d.prototype.controls.mobileView={tooltip:"Mobile View",icon:b,command:"mobileView",isActive:l(e=>r(e,m)&&r(e,m)!=="default","isActive"),isChildActive:l((e,n)=>{var t,i;let o=(i=(t=n.control)===null||t===void 0?void 0:t.args)===null||i===void 0?void 0:i[0];return u(o)&&(o=Number(o)),(r(e,m)||"default")===o},"isChildActive"),exec:l(e=>{if(r(e,c)){e.execCommand("mobileView",!1,r(e,c));return}return!1},"exec"),childExec:l((e,n,{button:t})=>{var i,o;const a=(o=(i=t.control)===null||i===void 0?void 0:i.args)===null||o===void 0?void 0:o[0];e.execCommand("mobileView",!1,u(a)?Number(a):a)},"childExec"),list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};export{m as dataBindCurrentKey,c as dataBindStoredKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg> ';export{a as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,d=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(d=(s<3?i(d):s>3?i(t,o,d):i(t,o))||d);return s>3&&d&&Object.defineProperty(t,o,d),d};import{dataBindCurrentKey as t,dataBindStoredKey as o}from"./config.js";import{component as r,watch as i}from"jodit/esm/core/decorators/index.js";import{css as s,dataBind as d}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as n}from"jodit/esm/core/plugin/index.js";import{JoditPro as l}from"../../jodit-pro.js";let c=class MobileView extends n{constructor(){super(...arguments),this.buttons=[{name:"mobileView",group:"state"}],this.__currentMode="default"}afterInit(e){e.registerCommand("mobileView",{exec:(r,i,n)=>{this.__currentMode===n&&(n="default"),this.__currentMode=n,d(e,t,n),"default"!==this.__currentMode&&d(e,o,n),"default"===n?s(this.jodit.workplace,{width:null,margin:null}):s(this.j.workplace,{width:n,margin:"0 auto"})}}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}};c.requires=["license"],e([i(":beforeSetMode.mobileView")],c.prototype,"__beforeSetMode",null),c=e([r],c),l.plugins.add("mobileView",c);
|
|
1
|
+
var h=Object.defineProperty;var a=(r,e)=>h(r,"name",{value:e,configurable:!0});var p=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);import{dataBindCurrentKey as b,dataBindStoredKey as w}from"./config.js";import{component as M,watch as g}from"jodit/esm/core/decorators/index.js";import{css as s,dataBind as _}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as V}from"jodit/esm/core/plugin/index.js";import{JoditPro as S}from"../../jodit-pro.js";var j=p(c=>{var n,m=c&&c.__decorate||function(r,e,i,l){var t=arguments.length,o=t<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,i):l,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,l);else for(var u=r.length-1;u>=0;u--)(d=r[u])&&(o=(t<3?d(o):t>3?d(e,i,o):d(e,i))||o);return t>3&&o&&Object.defineProperty(e,i,o),o};let f=(n=class extends V{constructor(){super(...arguments),this.buttons=[{name:"mobileView",group:"state"}],this.__currentMode="default"}afterInit(e){e.registerCommand("mobileView",{exec:a((i,l,t)=>{this.__currentMode===t&&(t="default"),this.__currentMode=t,_(e,b,t),this.__currentMode!=="default"&&_(e,w,t),t==="default"?s(this.jodit.workplace,{width:null,margin:null}):s(this.j.workplace,{width:t,margin:"0 auto"})},"exec")}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){this.__currentMode!=="default"&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}},a(n,"MobileView"),n);f.requires=["license"],m([g(":beforeSetMode.mobileView")],f.prototype,"__beforeSetMode",null),f=m([M],f),S.plugins.add("mobileView",f)});export default j();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var C='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg> ';export{C as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import e from"./assets/page-break.svg.js";import r from"./page-break.css.js";import{Config as o}from"jodit/esm/config.js";o.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},o.prototype.controls.pageBreak={tooltip:"Insert page break",icon:e,command:"insertPageBreak"},o.prototype.iframeStyle=`${o.prototype.iframeStyle};${r.replace(/[\n\t]/g,"")}`;
|
|
1
|
+
import o from"./assets/page-break.svg.js";import r from"./page-break.css.js";import{Config as e}from"jodit/esm/config.js";e.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},e.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o,command:"insertPageBreak"},e.prototype.iframeStyle=`${e.prototype.iframeStyle};${r.replace(/[\n\t]/g,"")}`;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var e=`[data-jodit-page-break] {
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 24px;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
|
|
9
|
+
border: 1px dashed #ccc;
|
|
10
|
+
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
page-break-before: always;
|
|
13
|
+
text-transform: uppercase;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-jodit-page-break]:active {
|
|
17
|
+
border-color: #818181;
|
|
18
|
+
}`;export{e as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r,o){var a,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};import"./config.js";import{debounce as t,watch as r}from"jodit/esm/core/decorators/index.js";import{Dom as o}from"jodit/esm/core/dom/index.js";import{$$ as a,attr as i}from"jodit/esm/core/helpers/index.js";import{Plugin as s}from"jodit/esm/core/plugin/index.js";import{JoditPro as n}from"../../jodit-pro.js";export class PageBreak extends s{constructor(){super(...arguments),this.styles=styles,this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(o.after(r,t),!o.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){i(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){a('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{o.isEmpty(e)&&!i(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}PageBreak.requires=["license"],e([r([":change",":afterSetMode"]),t()],PageBreak.prototype,"onChange",null),e([r(":afterGetValueFromEditor")],PageBreak.prototype,"onAfterGetValueFromEditor",null),n.plugins.add("pageBreak",PageBreak);
|
|
1
|
+
var g=Object.defineProperty;var c=(i,e)=>g(i,"name",{value:e,configurable:!0});var d=function(i,e,t,r){var n=arguments.length,a=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,r);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{debounce as h,watch as u}from"jodit/esm/core/decorators/index.js";import{Dom as p}from"jodit/esm/core/dom/index.js";import{$$ as b,attr as m}from"jodit/esm/core/helpers/index.js";import{Plugin as k}from"jodit/esm/core/plugin/index.js";import{JoditPro as y}from"../../jodit-pro.js";const f=class f extends k{constructor(){super(...arguments),this.styles=styles,this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(p.after(r,t),!p.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){m(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){b('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{p.isEmpty(e)&&!m(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}};c(f,"PageBreak");let o=f;o.requires=["license"],d([u([":change",":afterSetMode"]),h()],o.prototype,"onChange",null),d([u(":afterGetValueFromEditor")],o.prototype,"onAfterGetValueFromEditor",null),y.plugins.add("pageBreak",o);export{o as PageBreak};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import e from"./icon.svg.js";import{Config as t}from"jodit/esm/config.js";import{htmlspecialchars as a}from"jodit/esm/core/helpers/html/htmlspecialchars.js";t.prototype.controls.pasteCode={icon:e,tooltip:"Paste code",command:"pasteCode"},t.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:(e,t)=>"undefined"!=typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):a(e),isLangLoaded:e=>"html"===e||"undefined"!=typeof Prism&&Boolean(Prism.languages[e]),js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,s)=>`<pre class="language-${t}">${a(s)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}};
|
|
1
|
+
var r=Object.defineProperty;var a=(t,e)=>r(t,"name",{value:e,configurable:!0});import o from"./icon.svg.js";import{Config as s}from"jodit/esm/config.js";import{htmlspecialchars as l}from"jodit/esm/core/helpers/html/htmlspecialchars.js";s.prototype.controls.pasteCode={icon:o,tooltip:"Paste code",command:"pasteCode"},s.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(t,e){return typeof Prism<"u"?Prism.highlight(t,Prism.languages[e]||Prism.languages.plain,e):l(t)},isLangLoaded(t){return t==="html"?!0:typeof Prism<"u"?!!Prism.languages[t]:!1},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:a(t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${t}.min.js`,"langUrl"),css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:a((t,e,i)=>`<pre class="language-${e}">${l(i)}</pre>`,"insertTemplate"),languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var c='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg> ';export{c as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,i,o){var a,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};import"./config.js";import{IS_PROD as t}from"jodit/esm/core/constants.js";import{autobind as i,component as o,debounce as a,watch as s}from"jodit/esm/core/decorators/index.js";import{$$ as n,appendScriptAsync as r,attr as l,loadNext as d,loadNextStyle as h,refs as c,stripTags as g}from"jodit/esm/core/helpers/index.js";import{isBoolean as p}from"jodit/esm/core/helpers/checker/is-boolean.js";import{htmlspecialchars as u}from"jodit/esm/core/helpers/html/htmlspecialchars.js";import{Plugin as m}from"jodit/esm/core/plugin/index.js";import{Button as _,UIForm as f,UISelect as C,UITextArea as j}from"jodit/esm/core/ui/index.js";import{Dialog as L,Dom as b}from"jodit/esm/modules/index.js";import{JoditPro as E}from"../../jodit-pro.js";let v=class pasteCode extends m{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.__highlightLibJSIsLoaded=!1,this.__loadLanguage=new Map,this.__initHighlightLibLoading=async e=>{const{globalHighlightLib:i,highlightLib:{css:o,js:a,langUrl:s,highlight:n,isLangLoaded:l,beforeLibLoad:c,afterLibLoad:g}}=this.j.o.pasteCode;return this.__highlightLibJSIsLoaded||i||(this.__highlightLibJSIsLoaded=Promise.resolve(null==c?void 0:c()).then(()=>waitingPromise(this.async,Promise.allSettled([h(this.jodit,o).catch(()=>null),d(this.jodit,a).catch(()=>null)]))).then(()=>null==g?void 0:g())),p(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,!e||l(e)||i||(this.__loadLanguage.has(e)||(t||console.log("Load language",e,"for paste-code"),this.__loadLanguage.set(e,waitingPromise(this.async,r(this.jodit,s(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:n}}}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){const o=this.j,a=this.__createForm(),{code:s,language:n}=c(a.container);e&&(n.value=e),t&&(s.value=t),o.async.requestIdleCallback(()=>{s.focus()}),o.s.save(),this.__createDialog(()=>{if(a.validate()){o.s.restore();const e=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,n.value,s.value));if(i)b.replace(i,e,o.createInside,!1,!0);else{const t=o.s.current(),i=b.up(t,b.isBlock,o.editor);i&&!b.isCell(i)?b.after(i,e):o.s.insertNode(e)}return void this.__imdOnChange()}return!1},()=>{o.s.restore()}).setContent(a.container).open(!0)}beforeDestruct(e){}__createForm(){const{jodit:e}=this;return new f(e,[new C(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new j(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){const i=new L({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([_(i,"","Cancel","default").onAction(()=>{i.close(),t()}),_(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){n("pre",this.j.editor).forEach(e=>{l(e,"contenteditable")||(l(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){const t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t);let o=e;e.firstElementChild===e.lastElementChild&&b.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){const t=b.isNode(e)&&b.isTag(e,"pre")?e:b.closest(e.target,"pre",this.j.editor);if(t){const e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){let t=null;const getLang=e=>e.classList.forEach(e=>{if(/language-/.test(e)){const i=/language-(.*)/.exec(e);i&&i[1]&&(t=i[1])}});return getLang(e),null==t&&e.firstElementChild===e.lastElementChild&&b.isTag(e.firstElementChild,"code")&&getLang(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const strip=(e,t,i,o,a,s)=>`${t.trim()}${o}${u(g(a,this.j.ed,new Set(["br"])))}${s}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,strip).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,strip)}};v.requires=["license"],e([i],v.prototype,"__openCodeEditDialog",null),e([s(["?:change","?:afterInit"]),a()],v.prototype,"__onChange",null),e([s(["?:dblclick","?:editPreInPasteCode"])],v.prototype,"onPreEdit",null),e([s("?:afterGetValueFromEditor")],v.prototype,"onAfterGetValueFromEditor",null),v=e([o],v);export{v as pasteCode};function waitingPromise(e,t){return e.promise((e,i)=>{t.then(e).catch(i)}).catch(()=>null)}E.plugins.add("paste-code",v);
|
|
1
|
+
var j=Object.defineProperty;var u=(d,e)=>j(d,"name",{value:e,configurable:!0});var g,_=function(d,e,t,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(d,e,t,i);else for(var s=d.length-1;s>=0;s--)(n=d[s])&&(a=(o<3?n(a):o>3?n(e,t,a):n(e,t))||a);return o>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{IS_PROD as v}from"jodit/esm/core/constants.js";import{autobind as E,component as I,debounce as w,watch as p}from"jodit/esm/core/decorators/index.js";import{$$ as S,appendScriptAsync as y,attr as m,loadNext as P,loadNextStyle as D,refs as T,stripTags as x}from"jodit/esm/core/helpers/index.js";import{isBoolean as F}from"jodit/esm/core/helpers/checker/is-boolean.js";import{htmlspecialchars as H}from"jodit/esm/core/helpers/html/htmlspecialchars.js";import{Plugin as J}from"jodit/esm/core/plugin/index.js";import{Button as C,UIForm as O,UISelect as A,UITextArea as $}from"jodit/esm/core/ui/index.js";import{Dialog as q,Dom as l}from"jodit/esm/modules/index.js";import{JoditPro as N}from"../../jodit-pro.js";let r=(g=class extends J{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.__highlightLibJSIsLoaded=!1,this.__loadLanguage=new Map,this.__initHighlightLibLoading=async e=>{const{globalHighlightLib:t,highlightLib:{css:i,js:o,langUrl:a,highlight:n,isLangLoaded:s,beforeLibLoad:c,afterLibLoad:h}}=this.j.o.pasteCode;return!this.__highlightLibJSIsLoaded&&!t&&(this.__highlightLibJSIsLoaded=Promise.resolve(c?.()).then(()=>L(this.async,Promise.allSettled([D(this.jodit,i).catch(()=>null),P(this.jodit,o).catch(()=>null)]))).then(()=>h?.())),F(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,e&&!s(e)&&!t&&(this.__loadLanguage.has(e)||(v||console.log("Load language",e,"for paste-code"),this.__loadLanguage.set(e,L(this.async,y(this.jodit,a(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:n}}}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){const o=this.j,a=this.__createForm(),{code:n,language:s}=T(a.container);e&&(s.value=e),t&&(n.value=t),o.async.requestIdleCallback(()=>{n.focus()}),o.s.save(),this.__createDialog(()=>{if(a.validate()){o.s.restore();const h=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,s.value,n.value));if(i)l.replace(i,h,o.createInside,!1,!0);else{const b=o.s.current(),f=l.up(b,l.isBlock,o.editor);f&&!l.isCell(f)?l.after(f,h):o.s.insertNode(h)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(a.container).open(!0)}beforeDestruct(e){}__createForm(){const{jodit:e}=this;return new O(e,[new A(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new $(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){const i=new q({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([C(i,"","Cancel","default").onAction(()=>{i.close(),t()}),C(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){S("pre",this.j.editor).forEach(e=>{m(e,"contenteditable")||(m(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){const t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t);let o=e;e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){const t=l.isNode(e)&&l.isTag(e,"pre")?e:l.closest(e.target,"pre",this.j.editor);if(t){const i=this.__parseLanguage(t);this.__openCodeEditDialog(i,t.innerText,t)}}__parseLanguage(e){let t=null;const i=u(o=>o.classList.forEach(a=>{if(/language-/.test(a)){const n=/language-(.*)/.exec(a);n&&n[1]&&(t=n[1])}}),"getLang");return i(e),t==null&&e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&i(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const t=u((i,o,a,n,s,c)=>`${o.trim()}${n}${H(x(s,this.j.ed,new Set(["br"])))}${c}`,"strip");e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}},u(g,"pasteCode"),g);r.requires=["license"],_([E],r.prototype,"__openCodeEditDialog",null),_([p(["?:change","?:afterInit"]),w()],r.prototype,"__onChange",null),_([p(["?:dblclick","?:editPreInPasteCode"])],r.prototype,"onPreEdit",null),_([p("?:afterGetValueFromEditor")],r.prototype,"onAfterGetValueFromEditor",null),r=_([I],r);function L(d,e){return d.promise((t,i)=>{e.then(t).catch(i)}).catch(()=>null)}u(L,"waitingPromise"),N.plugins.add("paste-code",r);export{r as pasteCode};
|