jodit-pro 4.13.37 → 4.13.43
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.css +1 -1
- package/es2015/jodit.fat.min.js +26 -26
- package/es2015/jodit.js +90 -191
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +16 -16
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- 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.css +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +9 -3
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +9 -3
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1795 -2702
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +406 -275
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +9 -9
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +11 -18
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- 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 +10 -17
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +7 -7
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +11 -11
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +4 -10
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +14 -21
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- 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 +6 -6
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +6 -6
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +6 -6
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +6 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +13 -13
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +8 -8
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +18 -18
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +7 -7
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +7 -7
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +225 -105
- package/es5/polyfills.min.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var o in s)("object"==typeof exports?exports:t)[o]=s[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[702],{63643:function(t){t.exports='<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>'},27926:function(t){t.exports='<?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>'},10690:function(t){t.exports='<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>'},91997:function(t){t.exports='<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>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<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>'},41113:function(t,e,s){"use strict";var o=s(63643),a=s.n(o),n=s(6441);n.Config.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:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","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","ı 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","ş Ş","i̇ İ","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","ק 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"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","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]]},n.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:a(),isActive:function(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},n.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,e,s){"use strict";s.r(e),s.d(e,{keyboard:function(){return g}});var o=s(80294),a=s(20616),n=s(67709),r=s(82749),i=s(18766),c=s(23078),u=s(31635);s(41113);var h=s(25241),p=s(6441),l=s(65478),y=s(27613),d=s(50911),v=s(67510),f=s(41409),k=s(2692),g=function(t){function e(t){(0,a._)(this,e),s=(0,o._)(this,e,[t]),(0,r._)(s,"hasStyle",!k.JoditPro.fatMode),(0,r._)(s,"buttons",[{group:"insert",name:"keyboard"}]),(0,r._)(s,"__keyboard",void 0);var s,n=t.o.keyboard,i=n.extraKeyButtons,c=n.extraKeyGroup;return i.length&&i.forEach(function(e,s){var o=(0,y.isString)(e)?e:e.key,a=(0,y.isString)(e)||!e.hotkeys?["ctrl+".concat(s+1)]:e.hotkeys;t.registerButton({name:"extraKeyboardButtons.".concat(o),group:c}),p.Config.defaultOptions.controls.extraKeyboardButtons[o]={name:o,tooltip:o,args:[o],hotkeys:a,command:"insertChar"}}),s}return(0,i._)(e,t),(0,n._)(e,[{key:"afterInit",value:function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",function(){var t;return null==(t=e.__keyboard)?void 0:t.isOpened})}},{key:"insertChar",value:function(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}},{key:"toggleKeyboard",value:function(){if(!this.__keyboard){this.__keyboard=new f.Dialog({toolbarButtonSize:"tiny"});var t=new h.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);var e=this.j.o.keyboard,s=e.showLayoutSwitcher,o=e.layoutSwitchList,a=e.layoutList;if(s){var n=new v.UISelect(this.__keyboard,{value:t.state.currentLayout,options:o.map(function(t){var e,s;return{text:null!=(e=null==(s=a[t])?void 0:s.title)?e:t,value:t}}),onChange:function(e){t.state.currentLayout=e}});n.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(n)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}},{key:"beforeDestruct",value:function(t){var e;null==(e=this.__keyboard)||e.destruct()}}]),e}((0,c._)(d.Plugin));(0,r._)(g,"requires",["license"]),(0,u.__decorate)([l.autobind],g.prototype,"insertChar",null),(0,u.__decorate)([l.autobind],g.prototype,"toggleKeyboard",null),k.JoditPro.plugins.add("keyboard",g)},25241:function(t,e,s){"use strict";s.d(e,{UIKeyboard:function(){return S}});var o=s(80294),a=s(20616),n=s(67709),r=s(82749),i=s(18766),c=s(31635),u=s(82758),h=s(65478),p=s(43555),l=s(67510),y=s(27926),d=s.n(y),v=s(10690),f=s.n(v),k=s(91997),g=s.n(k),_=s(11699),b=s.n(_),w=s(98126),m=s.n(w),S=function(t){function e(t){var s;return(0,a._)(this,e),s=(0,o._)(this,e,[t]),(0,r._)(s,"state",{caps:!1,shift:!1,options:!1,currentLayout:s.j.o.keyboard.defaultLayoutSet}),(0,r._)(s,"_keys",s.getElms("key")),(0,r._)(s,"pressed",!1),(0,r._)(s,"reKeyDownTimeout",0),s.onStateChange(),s}return(0,i._)(e,t),(0,n._)(e,[{key:"className",value:function(){return"UIKeyboard"}},{key:"render",value:function(){var t=this.j.options.keyboard,e=t.layout,s=t.keySize,o=e.length;return"<div>".concat(function(){for(var t=[],a=0;o>a;a+=1){for(var n=[],r=0;r<e[a].length;r+=1)n.push('<div style="width:'.concat(s*e[a][r],"px;height:").concat(s,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(n.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")}},{key:"onStateChange",value:function(){for(var t=this.state,s=t.currentLayout,o=t.options,a=t.shift,n=t.caps,r=this.j.o.keyboard.layoutList[s].keys,i=0,c=0;c<r.length;c+=1)for(var u=0;u<r[c].length;u+=1){var h=r[c][u].split(" "),p=h[0];a&&(p=h[1]),!a&&n&&h[1]&&e.isLetter(h[0])&&(p=h[1]),o&&(p=h[2]),this.setKeyValue(i,null!=p?p:h[0]),i+=1}}},{key:"setKeyValue",value:function(t,s){var o=this._keys[t];if(o){var a=!1,n=this.state,r=n.options,i=n.shift,c=n.caps;switch(s){case"Caps":a=c;break;case"Options":a=r;break;case"Shift":a=i}o.innerHTML=e.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),a),(0,p.attr)(o,"-key",s)}}},{key:"onKeyUp",value:function(){this.pressed&&this.stopPress()}},{key:"onReady",value:function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}},{key:"stopPress",value:function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(function(e){e.classList.remove(t.getFullElName("key","pressed",!0))}))}},{key:"onKeyDown",value:function(t){var e=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));var a=(0,p.attr)(o,"-key");switch(a){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:a,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(u.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),a&&this.j.s.insertNode(this.j.createInside.text(a))}var n=this.j.o.keyboard,r=n.periodKeyRepeat,i=n.delayKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout(function(){return e.onKeyDown(t,r)},s||i),!1}}],[{key:"isLetter",value:function(t){return t.toLowerCase()!==t.toUpperCase()}},{key:"decorate",value:function(t){switch(t){case"Space":return"";case"Enter":return l.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return f();case"Options":return g();case"Tab":return m();default:return t}}}]),e}(l.UIElement);(0,c.__decorate)([(0,h.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],S.prototype,"onStateChange",null),(0,c.__decorate)([(0,h.watch)(["ow:mouseup"])],S.prototype,"onKeyUp",null),(0,c.__decorate)([(0,h.hook)("ready")],S.prototype,"onReady",null),(0,c.__decorate)([h.autobind],S.prototype,"stopPress",null),(0,c.__decorate)([(0,h.watch)(["container:mousedown","container:touchstart"])],S.prototype,"onKeyDown",null),S=(0,c.__decorate)([h.component],S)}},function(t){return t(t.s=95618)}])});
|
|
8
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var o in s)("object"==typeof exports?exports:t)[o]=s[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[702],{63643:function(t){t.exports='<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>'},27926:function(t){t.exports='<?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>'},10690:function(t){t.exports='<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>'},91997:function(t){t.exports='<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>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<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>'},41113:function(t,e,s){"use strict";var o=s(63643),a=s.n(o),n=s(6441);n.Config.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:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","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","ı 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","ş Ş","i̇ İ","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","ק 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"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","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]]},n.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:a(),isActive:function(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},n.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,e,s){"use strict";s.r(e),s.d(e,{keyboard:function(){return g}});var o=s(80294),a=s(20616),n=s(67709),r=s(82749),i=s(18766),c=s(31635),u=s(23078);s(41113);var h=s(25241),p=s(6441),l=s(65478),y=s(27613),d=s(50911),v=s(67510),f=s(41409),k=s(2692),g=function(t){function e(t){(0,a._)(this,e),s=(0,o._)(this,e,[t]),(0,r._)(s,"hasStyle",!k.JoditPro.fatMode),(0,r._)(s,"buttons",[{group:"insert",name:"keyboard"}]),(0,r._)(s,"__keyboard",void 0);var s,n=t.o.keyboard,i=n.extraKeyButtons,c=n.extraKeyGroup;return i.length&&i.forEach(function(e,s){var o=(0,y.isString)(e)?e:e.key,a=(0,y.isString)(e)||!e.hotkeys?["ctrl+".concat(s+1)]:e.hotkeys;t.registerButton({name:"extraKeyboardButtons.".concat(o),group:c}),p.Config.defaultOptions.controls.extraKeyboardButtons[o]={name:o,tooltip:o,args:[o],hotkeys:a,command:"insertChar"}}),s}return(0,i._)(e,t),(0,n._)(e,[{key:"afterInit",value:function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",function(){var t;return null==(t=e.__keyboard)?void 0:t.isOpened})}},{key:"insertChar",value:function(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}},{key:"toggleKeyboard",value:function(){if(!this.__keyboard){this.__keyboard=new f.Dialog({toolbarButtonSize:"tiny"});var t=new h.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);var e=this.j.o.keyboard,s=e.showLayoutSwitcher,o=e.layoutSwitchList,a=e.layoutList;if(s){var n=new v.UISelect(this.__keyboard,{value:t.state.currentLayout,options:o.map(function(t){var e,s;return{text:null!=(e=null==(s=a[t])?void 0:s.title)?e:t,value:t}}),onChange:function(e){t.state.currentLayout=e}});n.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(n)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}},{key:"beforeDestruct",value:function(t){var e;null==(e=this.__keyboard)||e.destruct()}}]),e}((0,u._)(d.Plugin));(0,r._)(g,"requires",["license"]),(0,c.__decorate)([l.autobind],g.prototype,"insertChar",null),(0,c.__decorate)([l.autobind],g.prototype,"toggleKeyboard",null),k.JoditPro.plugins.add("keyboard",g)},25241:function(t,e,s){"use strict";s.d(e,{UIKeyboard:function(){return S}});var o=s(80294),a=s(20616),n=s(67709),r=s(82749),i=s(18766),c=s(31635),u=s(82758),h=s(65478),p=s(43555),l=s(67510),y=s(27926),d=s.n(y),v=s(10690),f=s.n(v),k=s(91997),g=s.n(k),_=s(11699),b=s.n(_),w=s(98126),m=s.n(w),S=function(t){function e(t){var s;return(0,a._)(this,e),s=(0,o._)(this,e,[t]),(0,r._)(s,"state",{caps:!1,shift:!1,options:!1,currentLayout:s.j.o.keyboard.defaultLayoutSet}),(0,r._)(s,"_keys",s.getElms("key")),(0,r._)(s,"pressed",!1),(0,r._)(s,"reKeyDownTimeout",0),s.onStateChange(),s}return(0,i._)(e,t),(0,n._)(e,[{key:"className",value:function(){return"UIKeyboard"}},{key:"render",value:function(){var t=this.j.options.keyboard,e=t.layout,s=t.keySize,o=e.length;return"<div>".concat(function(){for(var t=[],a=0;o>a;a+=1){for(var n=[],r=0;r<e[a].length;r+=1)n.push('<div style="width:'.concat(s*e[a][r],"px;height:").concat(s,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(n.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")}},{key:"onStateChange",value:function(){for(var t=this.state,s=t.currentLayout,o=t.options,a=t.shift,n=t.caps,r=this.j.o.keyboard.layoutList[s].keys,i=0,c=0;c<r.length;c+=1)for(var u=0;u<r[c].length;u+=1){var h=r[c][u].split(" "),p=h[0];a&&(p=h[1]),!a&&n&&h[1]&&e.isLetter(h[0])&&(p=h[1]),o&&(p=h[2]),this.setKeyValue(i,null!=p?p:h[0]),i+=1}}},{key:"setKeyValue",value:function(t,s){var o=this._keys[t];if(o){var a=!1,n=this.state,r=n.options,i=n.shift,c=n.caps;switch(s){case"Caps":a=c;break;case"Options":a=r;break;case"Shift":a=i}o.innerHTML=e.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),a),(0,p.attr)(o,"-key",s)}}},{key:"onKeyUp",value:function(){this.pressed&&this.stopPress()}},{key:"onReady",value:function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}},{key:"stopPress",value:function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(function(e){e.classList.remove(t.getFullElName("key","pressed",!0))}))}},{key:"onKeyDown",value:function(t){var e=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));var a=(0,p.attr)(o,"-key");switch(a){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:a,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(u.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),a&&this.j.s.insertNode(this.j.createInside.text(a))}var n=this.j.o.keyboard,r=n.periodKeyRepeat,i=n.delayKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout(function(){return e.onKeyDown(t,r)},s||i),!1}}],[{key:"isLetter",value:function(t){return t.toLowerCase()!==t.toUpperCase()}},{key:"decorate",value:function(t){switch(t){case"Space":return"";case"Enter":return l.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return f();case"Options":return g();case"Tab":return m();default:return t}}}]),e}(l.UIElement);(0,c.__decorate)([(0,h.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],S.prototype,"onStateChange",null),(0,c.__decorate)([(0,h.watch)(["ow:mouseup"])],S.prototype,"onKeyUp",null),(0,c.__decorate)([(0,h.hook)("ready")],S.prototype,"onReady",null),(0,c.__decorate)([h.autobind],S.prototype,"stopPress",null),(0,c.__decorate)([(0,h.watch)(["container:mousedown","container:touchstart"])],S.prototype,"onKeyDown",null),S=(0,c.__decorate)([h.component],S)}},function(t){return t(t.s=95618)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -103,8 +103,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
103
103
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
104
104
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
105
105
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
106
|
-
/* harmony import */ var
|
|
107
|
-
/* harmony import */ var
|
|
106
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
107
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23078);
|
|
108
108
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29606);
|
|
109
109
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(65478);
|
|
110
110
|
/* harmony import */ var jodit_esm_core_helpers_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43555);
|
|
@@ -191,14 +191,14 @@ var MobileView = /*#__PURE__*/ function(Plugin) {
|
|
|
191
191
|
}
|
|
192
192
|
]);
|
|
193
193
|
return MobileView;
|
|
194
|
-
}((0,
|
|
194
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_10__.Plugin));
|
|
195
195
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(MobileView, "requires", [
|
|
196
196
|
'license'
|
|
197
197
|
]);
|
|
198
|
-
(0,
|
|
198
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
199
199
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':beforeSetMode.mobileView')
|
|
200
200
|
], MobileView.prototype, "__beforeSetMode", null);
|
|
201
|
-
MobileView = (0,
|
|
201
|
+
MobileView = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
202
202
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__.component
|
|
203
203
|
], MobileView);
|
|
204
204
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_11__.JoditPro.plugins.add('mobileView', MobileView);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<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>'},29606:function(e,t,n){"use strict";n.d(t,{dataBindCurrentKey:function(){return l},dataBindStoredKey:function(){return d}});var o=n(27222),i=n.n(o),r=n(6441),a=n(29807),u=n(86583);r.Config.prototype.mobileView={mode:"default"};var d="buttonmobileSView",l="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:i(),command:"mobileView",isActive:function(e){return(0,u.dataBind)(e,l)&&"default"!==(0,u.dataBind)(e,l)},isChildActive:function(e,t){var n,o,i=null==(o=t.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(i)&&(i=Number(i)),((0,u.dataBind)(e,l)||"default")===i},exec:function(e){return!!(0,u.dataBind)(e,d)&&void e.execCommand("mobileView",!1,(0,u.dataBind)(e,d))},childExec:function(e,t,n){var o,i,r=null==(i=n.button.control)||null==(o=i.args)?void 0:o[0];e.execCommand("mobileView",!1,(0,a.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,n){"use strict";n.r(t);var o=n(80294),i=n(20616),r=n(67709),a=n(82749),u=n(18766),d=n(
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<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>'},29606:function(e,t,n){"use strict";n.d(t,{dataBindCurrentKey:function(){return l},dataBindStoredKey:function(){return d}});var o=n(27222),i=n.n(o),r=n(6441),a=n(29807),u=n(86583);r.Config.prototype.mobileView={mode:"default"};var d="buttonmobileSView",l="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:i(),command:"mobileView",isActive:function(e){return(0,u.dataBind)(e,l)&&"default"!==(0,u.dataBind)(e,l)},isChildActive:function(e,t){var n,o,i=null==(o=t.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(i)&&(i=Number(i)),((0,u.dataBind)(e,l)||"default")===i},exec:function(e){return!!(0,u.dataBind)(e,d)&&void e.execCommand("mobileView",!1,(0,u.dataBind)(e,d))},childExec:function(e,t,n){var o,i,r=null==(i=n.button.control)||null==(o=i.args)?void 0:o[0];e.execCommand("mobileView",!1,(0,a.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,n){"use strict";n.r(t);var o=n(80294),i=n(20616),r=n(67709),a=n(82749),u=n(18766),d=n(31635),l=n(23078),c=n(29606),f=n(65478),s=n(43555),m=n(50911),b=n(2692),p=function(e){function t(){var e;return(0,i._)(this,t),e=(0,o._)(this,t,arguments),(0,a._)(e,"buttons",[{name:"mobileView",group:"state"}]),(0,a._)(e,"__currentMode","default"),e}return(0,u._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"MobileView"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("mobileView",{exec:function(n,o,i){t.__currentMode===i&&(i="default"),t.__currentMode=i,(0,s.dataBind)(e,c.dataBindCurrentKey,i),"default"!==t.__currentMode&&(0,s.dataBind)(e,c.dataBindStoredKey,i),"default"===i?(0,s.css)(t.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,s.css)(t.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",function(){})}},{key:"__beforeSetMode",value:function(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}},{key:"beforeDestruct",value:function(e){}}]),t}((0,l._)(m.Plugin));(0,a._)(p,"requires",["license"]),(0,d.__decorate)([(0,f.watch)(":beforeSetMode.mobileView")],p.prototype,"__beforeSetMode",null),p=(0,d.__decorate)([f.component],p),b.JoditPro.plugins.add("mobileView",p)}},function(e){return e(e.s=74398)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -79,8 +79,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79
79
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
80
80
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
81
81
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
82
|
-
/* harmony import */ var
|
|
83
|
-
/* harmony import */ var
|
|
82
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
83
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23078);
|
|
84
84
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13109);
|
|
85
85
|
/* harmony import */ var _page_break_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(64889);
|
|
86
86
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65478);
|
|
@@ -202,18 +202,18 @@ var PageBreak = /*#__PURE__*/ function(Plugin) {
|
|
|
202
202
|
}
|
|
203
203
|
]);
|
|
204
204
|
return PageBreak;
|
|
205
|
-
}((0,
|
|
205
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__.Plugin));
|
|
206
206
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(PageBreak, "requires", [
|
|
207
207
|
'license'
|
|
208
208
|
]);
|
|
209
|
-
(0,
|
|
209
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
210
210
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)([
|
|
211
211
|
':change',
|
|
212
212
|
':afterSetMode'
|
|
213
213
|
]),
|
|
214
214
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.debounce)()
|
|
215
215
|
], PageBreak.prototype, "onChange", null);
|
|
216
|
-
(0,
|
|
216
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
217
217
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':afterGetValueFromEditor')
|
|
218
218
|
], PageBreak.prototype, "onAfterGetValueFromEditor", null);
|
|
219
219
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_13__.JoditPro.plugins.add('pageBreak', PageBreak);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{17405:function(e){e.exports='<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>'},13109:function(e,t,a){"use strict";var r=a(17405),o=a.n(r),n=a(64889),i=a(6441);i.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},i.Config.prototype.iframeStyle="".concat(i.Config.prototype.iframeStyle,";").concat(n.default.replace(/[\n\t]/g,""))},64889:function(e,t){"use strict";t.default="[data-jodit-page-break] {\n display: flex;\n height: 24px;\n box-sizing: border-box;\n\n align-items: center;\n justify-content: center;\n\n border: 1px dashed #ccc;\n\n font-size: 12px;\n page-break-before: always;\n text-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n border-color: #818181;\n}"},79850:function(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:function(){return k}});var r=a(80294),o=a(20616),n=a(67709),i=a(82749),s=a(18766),p=a(
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{17405:function(e){e.exports='<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>'},13109:function(e,t,a){"use strict";var r=a(17405),o=a.n(r),n=a(64889),i=a(6441);i.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},i.Config.prototype.iframeStyle="".concat(i.Config.prototype.iframeStyle,";").concat(n.default.replace(/[\n\t]/g,""))},64889:function(e,t){"use strict";t.default="[data-jodit-page-break] {\n display: flex;\n height: 24px;\n box-sizing: border-box;\n\n align-items: center;\n justify-content: center;\n\n border: 1px dashed #ccc;\n\n font-size: 12px;\n page-break-before: always;\n text-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n border-color: #818181;\n}"},79850:function(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:function(){return k}});var r=a(80294),o=a(20616),n=a(67709),i=a(82749),s=a(18766),p=a(31635),d=a(23078);a(13109);var c=a(64889),u=a(65478),f=a(22732),l=a(21537),C=a(50911),g=a(2692),k=function(e){function t(){var e;return(0,o._)(this,t),e=(0,r._)(this,t,arguments),(0,i._)(e,"styles",c.default),(0,i._)(e,"buttons",[{name:"pageBreak",group:"insert"}]),e}return(0,s._)(t,e),(0,n._)(t,[{key:"className",value:function(){return"PageBreak"}},{key:"afterInit",value:function(e){var t=this;this.onChange(),e.registerCommand("insertPageBreak",function(){var a=e.createInside.div("",{});t.decoratePageBreak(a),e.s.insertNode(a,!1,!1);for(var r=new Set(["td","th","tr","tbody","thead","tfoot","caption","colgroup","table"]),o=a.parentNode;o&&o!==e.editor&&(f.Dom.after(o,a),!f.Dom.isBlock(o)||f.Dom.isTag(o,r));)o=a.parentNode;e.s.setCursorAfter(a),e.setEditorValue()})}},{key:"decoratePageBreak",value:function(e){(0,l.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}},{key:"beforeDestruct",value:function(){}},{key:"onChange",value:function(){var e=this;(0,l.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(function(t){f.Dom.isEmpty(t)&&!(0,l.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)})}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}]),t}((0,d._)(C.Plugin));(0,i._)(k,"requires",["license"]),(0,p.__decorate)([(0,u.watch)([":change",":afterSetMode"]),(0,u.debounce)()],k.prototype,"onChange",null),(0,p.__decorate)([(0,u.watch)(":afterGetValueFromEditor")],k.prototype,"onAfterGetValueFromEditor",null),g.JoditPro.plugins.add("pageBreak",k)}},function(e){return e(e.s=79850)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -358,9 +358,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
358
358
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67709);
|
|
359
359
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82749);
|
|
360
360
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18766);
|
|
361
|
-
/* harmony import */ var
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
361
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
362
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62361);
|
|
363
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23078);
|
|
364
364
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83967);
|
|
365
365
|
/* harmony import */ var _ui_code_tuner_code_tuner__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24397);
|
|
366
366
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(35960);
|
|
@@ -416,7 +416,7 @@ var pasteCode = /*#__PURE__*/ function(Plugin) {
|
|
|
416
416
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__codeTuner", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__highlightLibJSIsLoaded", false), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__loadLanguage", new Map()), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__initHighlightLibLoading", function(language) {
|
|
417
417
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
418
418
|
var _this_j_o_pasteCode, globalHighlightLib, _this_j_o_pasteCode_highlightLib, css, js, langUrl, highlight, isLangLoaded, beforeLibLoad, afterLibLoad;
|
|
419
|
-
return (0,
|
|
419
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_7__._)(this, function(_state) {
|
|
420
420
|
switch(_state.label){
|
|
421
421
|
case 0:
|
|
422
422
|
_this_j_o_pasteCode = _this1.j.o.pasteCode, globalHighlightLib = _this_j_o_pasteCode.globalHighlightLib, _this_j_o_pasteCode_highlightLib = _this_j_o_pasteCode.highlightLib, css = _this_j_o_pasteCode_highlightLib.css, js = _this_j_o_pasteCode_highlightLib.js, langUrl = _this_j_o_pasteCode_highlightLib.langUrl, highlight = _this_j_o_pasteCode_highlightLib.highlight, isLangLoaded = _this_j_o_pasteCode_highlightLib.isLangLoaded, beforeLibLoad = _this_j_o_pasteCode_highlightLib.beforeLibLoad, afterLibLoad = _this_j_o_pasteCode_highlightLib.afterLibLoad;
|
|
@@ -626,7 +626,7 @@ var pasteCode = /*#__PURE__*/ function(Plugin) {
|
|
|
626
626
|
value: function __highlightCode(pre) {
|
|
627
627
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
628
628
|
var language, highlight, container;
|
|
629
|
-
return (0,
|
|
629
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_7__._)(this, function(_state) {
|
|
630
630
|
switch(_state.label){
|
|
631
631
|
case 0:
|
|
632
632
|
language = this.__parseLanguage(pre);
|
|
@@ -683,33 +683,33 @@ var pasteCode = /*#__PURE__*/ function(Plugin) {
|
|
|
683
683
|
}
|
|
684
684
|
]);
|
|
685
685
|
return pasteCode;
|
|
686
|
-
}((0,
|
|
686
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_8__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_17__.Plugin));
|
|
687
687
|
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(pasteCode, "requires", [
|
|
688
688
|
'license'
|
|
689
689
|
]);
|
|
690
|
-
(0,
|
|
690
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
691
691
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.autobind
|
|
692
692
|
], pasteCode.prototype, "__openCodeEditDialog", null);
|
|
693
|
-
(0,
|
|
693
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
694
694
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)('?:rehighlightPasteCode')
|
|
695
695
|
], pasteCode.prototype, "onRehighlightPasteCode", null);
|
|
696
|
-
(0,
|
|
696
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
697
697
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)([
|
|
698
698
|
'?:change',
|
|
699
699
|
'?:afterInit'
|
|
700
700
|
]),
|
|
701
701
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.debounce)()
|
|
702
702
|
], pasteCode.prototype, "__onChange", null);
|
|
703
|
-
(0,
|
|
703
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
704
704
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)([
|
|
705
705
|
'?:dblclick',
|
|
706
706
|
'?:editPreInPasteCode'
|
|
707
707
|
])
|
|
708
708
|
], pasteCode.prototype, "onPreEdit", null);
|
|
709
|
-
(0,
|
|
709
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
710
710
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)('?:afterGetValueFromEditor')
|
|
711
711
|
], pasteCode.prototype, "onAfterGetValueFromEditor", null);
|
|
712
|
-
pasteCode = (0,
|
|
712
|
+
pasteCode = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
713
713
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.component
|
|
714
714
|
], pasteCode);
|
|
715
715
|
function waitingPromise(async, promise) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{75689:function(e){e.exports='<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>'},83967:function(e,t,o){"use strict";var i=o(35960),n=o(75689),a=o.n(n),r=o(6441),s=o(22732),c=o(53326);r.Config.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},r.Config.prototype.controls.codeBlock={edit:{icon:"pencil",tooltip:"Edit code",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},copy:{icon:"copy",tooltip:"Copy code",exec:function(e,t){s.Dom.isTag(t,"pre")&&(0,i.copyCodeToClipboard)(e,t)}},remove:{icon:"bin",tooltip:"Delete",exec:function(e,t){s.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("hideCodeTuner.pasteCode")}}},r.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,c.htmlspecialchars)(e)},isLangLoaded:function(e){return"html"===e||"u">typeof Prism&&!!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:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,o){return'<pre class="language-'.concat(t,'">').concat((0,c.htmlspecialchars)(o),"</pre>")},popup:["codeBlock.edit","codeBlock.copy","|","codeBlock.remove"],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}}},35960:function(e,t,o){"use strict";o.d(t,{copyCodeToClipboard:function(){return c},languageTitle:function(){return r},parseLanguage:function(){return a},setPreLanguage:function(){return s}});var i=o(22732);function n(e){return e.firstElementChild===e.lastElementChild&&i.Dom.isTag(e.firstElementChild,"code")?e.firstElementChild:e}function a(e,t){var o=null,i=function(e){return e.classList.forEach(function(e){var t=/^language-(.+)/.exec(e);t&&t[1]&&(o=t[1])})};i(t);var a=n(t);return null==o&&a!==t&&i(a),e.o.pasteCode.canonicalLanguageCode(o||"html")}function r(e,t){var o=e.o.pasteCode.languages.find(function(e){return String(e.value)===t});return e.i18n(String(o?o.text:t))}function s(e,t,o){var i=function(e){return Array.from(e.classList).forEach(function(t){/^language-/.test(t)&&e.classList.remove(t)})};i(t);var a=n(t);a!==t&&i(a),a.classList.add("language-".concat(o)),e.e.fire("rehighlightPasteCode",t),e.e.fire("synchro")}function c(e,t){var o=t.innerText,n=e.ow.navigator;if(n&&n.clipboard&&n.clipboard.writeText)n.clipboard.writeText(o).catch(function(){return null});else{var a=e.create.element("textarea");a.value=o,a.style.position="fixed",a.style.opacity="0",e.od.body.appendChild(a),a.select();try{e.od.execCommand("copy")}catch(e){}i.Dom.safeRemove(a)}e.e.fire("afterCopyCode.pasteCode",o)}},41406:function(e,t,o){"use strict";o.r(t),o.d(t,{pasteCode:function(){return k}});var i=o(77688),n=o(80294),a=o(20616),r=o(67709),s=o(82749),c=o(18766),l=o(23078),u=o(31635),h=o(62361);o(83967);var d=o(24397),p=o(35960),f=o(82758),g=o(65478),_=o(21537),v=o(87612),m=o(53326),C=o(50911),y=o(67510),j=o(41409),b=o(2692),k=function(e){function t(){var e;return(0,a._)(this,t),e=(0,n._)(this,t,arguments),(0,s._)(e,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,s._)(e,"__codeTuner",void 0),(0,s._)(e,"__highlightLibJSIsLoaded",!1),(0,s._)(e,"__loadLanguage",new Map),(0,s._)(e,"__initHighlightLibLoading",function(t){return(0,i._)(function(){var o,i,n,a,r,s,c,l,u,d;return(0,h._)(this,function(h){switch(h.label){case 0:if(i=(o=e.j.o.pasteCode).globalHighlightLib,a=(n=o.highlightLib).css,r=n.js,s=n.langUrl,c=n.highlight,l=n.isLangLoaded,u=n.beforeLibLoad,d=n.afterLibLoad,e.__highlightLibJSIsLoaded||i||(e.__highlightLibJSIsLoaded=Promise.resolve(null==u?void 0:u()).then(function(){return x(e.async,Promise.allSettled([(0,_.loadNextStyle)(e.jodit,a).catch(function(){return null}),(0,_.loadNext)(e.jodit,r).catch(function(){return null})]))}).then(function(){return null==d?void 0:d()})),(0,v.isBoolean)(e.__highlightLibJSIsLoaded))return[3,2];return[4,e.__highlightLibJSIsLoaded];case 1:h.sent(),h.label=2;case 2:if(!(t&&!l(t)&&!i))return[3,4];return e.__loadLanguage.has(t)||(f.IS_PROD,e.__loadLanguage.set(t,x(e.async,(0,_.appendScriptAsync)(e.jodit,s(t)).catch(function(){return null})))),[4,e.__loadLanguage.get(t)];case 3:h.sent(),h.label=4;case 4:return[2,{highlight:c}]}})})()}),e}return(0,c._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"pasteCode"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("pasteCode",function(){return t.__openCodeEditDialog()}),this.__codeTuner=new d.UICodeTuner(e),e.async.requestIdleCallback(function(){return t.__initHighlightLibLoading()})}},{key:"__openCodeEditDialog",value:function(e,t,o){var i=this,n=this.j,a=this.__createForm(),r=(0,_.refs)(a.container),s=r.code,c=r.language;e&&(c.value=e),t&&(s.value=t),n.async.requestIdleCallback(function(){s.focus()}),n.s.save(),this.__createDialog(function(){if(a.validate()){n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,c.value,s.value));if(o)j.Dom.replace(o,e,n.createInside,!1,!0);else{var t=n.s.current(),r=j.Dom.up(t,j.Dom.isBlock,n.editor);r&&!j.Dom.isCell(r)?j.Dom.after(r,e):n.s.insertNode(e)}i.__imdOnChange();return}return!1},function(){n.s.restore()}).setContent(a.container).open(!0)}},{key:"beforeDestruct",value:function(e){var t;null==(t=this.__codeTuner)||t.destruct()}},{key:"onRehighlightPasteCode",value:function(e){j.Dom.isTag(e,"pre")&&((0,_.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(function(){return null}))}},{key:"__createForm",value:function(){var e=this.jodit;return new y.UIForm(e,[new y.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new y.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}},{key:"__createDialog",value:function(e,t){var o=new j.Dialog({language:this.j.o.language});return o.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,y.Button)(o,"","Cancel","default").onAction(function(){o.close(),t()}),(0,y.Button)(o,"save","Save","primary").onAction(function(){o.close(),e()})]),o}},{key:"__onChange",value:function(){this.__imdOnChange()}},{key:"__imdOnChange",value:function(){var e=this;(0,_.$$)("pre",this.j.editor).forEach(function(t){(0,_.attr)(t,"contenteditable")||((0,_.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch(function(){return null}))})}},{key:"__highlightCode",value:function(e){return(0,i._)(function(){var t,o,i;return(0,h._)(this,function(n){switch(n.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return o=n.sent().highlight,i=e,e.firstElementChild===e.lastElementChild&&j.Dom.isTag(e.firstElementChild,"code")&&(i=e.firstElementChild),i.innerHTML=o(i.innerText,t),[2]}})}).call(this)}},{key:"onPreEdit",value:function(e){var t=j.Dom.isNode(e)&&j.Dom.isTag(e,"pre")?e:j.Dom.closest(e.target,"pre",this.j.editor);if(t){var o=this.__parseLanguage(t);this.__openCodeEditDialog(o,t.innerText,t)}}},{key:"__parseLanguage",value:function(e){return(0,p.parseLanguage)(this.jodit,e)}},{key:"onAfterGetValueFromEditor",value:function(e){var t=this,o=function(e,o,i,n,a,r){return"".concat(o.trim()).concat(n).concat((0,m.htmlspecialchars)((0,_.stripTags)(a,t.j.ed,new Set(["br"])))).concat(r)};e.value=e.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),o).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),o)}}]),t}((0,l._)(C.Plugin));function x(e,t){return e.promise(function(e,o){t.then(e).catch(o)}).catch(function(){return null})}(0,s._)(k,"requires",["license"]),(0,u.__decorate)([g.autobind],k.prototype,"__openCodeEditDialog",null),(0,u.__decorate)([(0,g.watch)("?:rehighlightPasteCode")],k.prototype,"onRehighlightPasteCode",null),(0,u.__decorate)([(0,g.watch)(["?:change","?:afterInit"]),(0,g.debounce)()],k.prototype,"__onChange",null),(0,u.__decorate)([(0,g.watch)(["?:dblclick","?:editPreInPasteCode"])],k.prototype,"onPreEdit",null),(0,u.__decorate)([(0,g.watch)("?:afterGetValueFromEditor")],k.prototype,"onAfterGetValueFromEditor",null),k=(0,u.__decorate)([g.component],k),b.JoditPro.plugins.add("paste-code",k)},24397:function(e,t,o){"use strict";o.d(t,{UICodeTuner:function(){return m}});var i=o(80294),n=o(20616),a=o(67709),r=o(82749),s=o(54816),c=o(84669),l=o(18766),u=o(94899),h=o(31635),d=o(35960),p=o(65478),f=o(22732),g=o(21537),_=o(67510),v=o(21491),m=function(e){function t(){var e;return(0,n._)(this,t),e=(0,i._)(this,t,arguments),(0,r._)(e,"toolbar",(0,v.makeCollection)(e.j,e)),(0,r._)(e,"popup",new _.Popup(e.j,!1)),(0,r._)(e,"isShown",!1),(0,r._)(e,"__hideTimer",0),(0,r._)(e,"currentBlock",void 0),e}return(0,l._)(t,e),(0,a._)(t,[{key:"className",value:function(){return"UICodeTuner"}},{key:"render",value:function(){return'<div>\n <div class="&__anchor" title="~Drag to move the code block~"></div>\n </div>'}},{key:"onEditorMouseMove",value:function(e){var t=f.Dom.closest(e.target,"pre",this.j.editor);t&&(this.__cancelHide(),this.show(t))}},{key:"onEditorClick",value:function(e){var t=f.Dom.closest(e.target,"pre",this.j.editor);t?(this.__cancelHide(),this.show(t),this.openToolbar()):this.forceHide()}},{key:"show",value:function(e){this.currentBlock=e,this.isShown||(this.isShown=!0,null==this.container.parentNode&&this.j.od.body.appendChild(this.container),this.j.e.on(this.j.ow,"mousemove",this.__onPointerMove),this.j.e.on(this.j.ow,"scroll resize",this.__onReposition).on(this.j.editor,"scroll",this.__onReposition)),this.calcPosition()}},{key:"hide",value:function(){this.popup.isOpened||this.forceHide()}},{key:"onOutsideClick",value:function(e){e&&f.Dom.isOrContains(this.container,e.target)||this.forceHide()}},{key:"forceHide",value:function(){this.__cancelHide(),this.isShown&&(this.isShown=!1,this.j.e.off(this.j.ow,"mousemove",this.__onPointerMove).off(this.j.ow,"scroll resize",this.__onReposition).off(this.j.editor,"scroll",this.__onReposition),this.popup.close(),f.Dom.safeRemove(this.container))}},{key:"__onPointerMove",value:function(e){this.isShown&&!this.popup.isOpened&&(this.__inActiveZone(e.clientX,e.clientY)?this.__cancelHide():this.__scheduleHide())}},{key:"__inActiveZone",value:function(e,t){var o=(0,g.position)(this.currentBlock,this.j);return e>=o.left-16-6-6&&e<=o.left+o.width&&t>=o.top-6&&t<=o.top+o.height+6}},{key:"__scheduleHide",value:function(){var e=this;this.__hideTimer||(this.__hideTimer=this.j.async.setTimeout(function(){e.__hideTimer=0,e.hide()},150))}},{key:"__cancelHide",value:function(){this.__hideTimer&&(this.j.async.clearTimeout(this.__hideTimer),this.__hideTimer=0)}},{key:"__onReposition",value:function(){if(this.isShown){if(!this.j.editor.contains(this.currentBlock))return void this.forceHide();this.calcPosition()}}},{key:"onEditorChange",value:function(){this.__onReposition()}},{key:"calcPosition",value:function(){var e=(0,g.position)(this.currentBlock,this.j);(0,g.css)(this.container,{left:Math.round(e.left-16-6),top:Math.round(e.top+4)}),this.popup.isOpened&&this.popup.updatePosition()}},{key:"openToolbar",value:function(){var e=this;this.toolbar.build([this.__languageControl()].concat((0,u._)(this.j.o.pasteCode.popup)),this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened?this.popup.updatePosition():this.popup.open(function(){return(0,g.position)(e.currentBlock,e.j)})}},{key:"__languageControl",value:function(){var e=this,t={};return this.j.o.pasteCode.languages.forEach(function(e){t[String(e.value)]=String(e.text)}),{name:"language",list:t,tooltip:"Language",text:(0,d.languageTitle)(this.j,(0,d.parseLanguage)(this.j,this.currentBlock)),childTemplate:function(t,o,i){return e.j.i18n(i)},update:function(t,o){var i=o.target;f.Dom.isTag(i,"pre")&&o.setState({text:(0,d.languageTitle)(e.j,(0,d.parseLanguage)(e.j,i)),icon:{name:""}})},childExec:function(t,o,i){var n=i.control,a=String(n.args&&n.args[0]||"plaintext");f.Dom.isTag(o,"pre")&&((0,d.setPreLanguage)(e.j,o,a),e.j.e.fire("hideCodeTuner.pasteCode"))}}}},{key:"onAnchorMouseDown",value:function(e){e.preventDefault(),this.popup.close(),this.j.e.fire("startDragElement",this.currentBlock,e)}},{key:"destruct",value:function(){this.forceHide(),this.popup.destruct(),(0,s._)((0,c._)(t.prototype),"destruct",this).call(this)}}]),t}(_.UIElement);(0,h.__decorate)([(0,p.watch)("j.editor:mousemove"),(0,p.throttle)(50)],m.prototype,"onEditorMouseMove",null),(0,h.__decorate)([(0,p.watch)("j.editor:click")],m.prototype,"onEditorClick",null),(0,h.__decorate)([(0,p.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,h.__decorate)([(0,p.watch)(":hideCodeTuner.pasteCode")],m.prototype,"forceHide",null),(0,h.__decorate)([p.autobind],m.prototype,"__onPointerMove",null),(0,h.__decorate)([p.autobind],m.prototype,"__onReposition",null),(0,h.__decorate)([(0,p.watch)(":change :resize :afterSetMode"),(0,p.throttle)(10)],m.prototype,"onEditorChange",null),(0,h.__decorate)([(0,p.watch)("anchor:mousedown")],m.prototype,"onAnchorMouseDown",null),m=(0,h.__decorate)([p.component],m)}},function(e){return e(e.s=41406)}])});
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{75689:function(e){e.exports='<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>'},83967:function(e,t,o){"use strict";var i=o(35960),n=o(75689),a=o.n(n),r=o(6441),s=o(22732),c=o(53326);r.Config.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},r.Config.prototype.controls.codeBlock={edit:{icon:"pencil",tooltip:"Edit code",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},copy:{icon:"copy",tooltip:"Copy code",exec:function(e,t){s.Dom.isTag(t,"pre")&&(0,i.copyCodeToClipboard)(e,t)}},remove:{icon:"bin",tooltip:"Delete",exec:function(e,t){s.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("hideCodeTuner.pasteCode")}}},r.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,c.htmlspecialchars)(e)},isLangLoaded:function(e){return"html"===e||"u">typeof Prism&&!!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:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,o){return'<pre class="language-'.concat(t,'">').concat((0,c.htmlspecialchars)(o),"</pre>")},popup:["codeBlock.edit","codeBlock.copy","|","codeBlock.remove"],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}}},35960:function(e,t,o){"use strict";o.d(t,{copyCodeToClipboard:function(){return c},languageTitle:function(){return r},parseLanguage:function(){return a},setPreLanguage:function(){return s}});var i=o(22732);function n(e){return e.firstElementChild===e.lastElementChild&&i.Dom.isTag(e.firstElementChild,"code")?e.firstElementChild:e}function a(e,t){var o=null,i=function(e){return e.classList.forEach(function(e){var t=/^language-(.+)/.exec(e);t&&t[1]&&(o=t[1])})};i(t);var a=n(t);return null==o&&a!==t&&i(a),e.o.pasteCode.canonicalLanguageCode(o||"html")}function r(e,t){var o=e.o.pasteCode.languages.find(function(e){return String(e.value)===t});return e.i18n(String(o?o.text:t))}function s(e,t,o){var i=function(e){return Array.from(e.classList).forEach(function(t){/^language-/.test(t)&&e.classList.remove(t)})};i(t);var a=n(t);a!==t&&i(a),a.classList.add("language-".concat(o)),e.e.fire("rehighlightPasteCode",t),e.e.fire("synchro")}function c(e,t){var o=t.innerText,n=e.ow.navigator;if(n&&n.clipboard&&n.clipboard.writeText)n.clipboard.writeText(o).catch(function(){return null});else{var a=e.create.element("textarea");a.value=o,a.style.position="fixed",a.style.opacity="0",e.od.body.appendChild(a),a.select();try{e.od.execCommand("copy")}catch(e){}i.Dom.safeRemove(a)}e.e.fire("afterCopyCode.pasteCode",o)}},41406:function(e,t,o){"use strict";o.r(t),o.d(t,{pasteCode:function(){return k}});var i=o(77688),n=o(80294),a=o(20616),r=o(67709),s=o(82749),c=o(18766),l=o(31635),u=o(62361),h=o(23078);o(83967);var d=o(24397),p=o(35960),f=o(82758),g=o(65478),_=o(21537),v=o(87612),m=o(53326),C=o(50911),y=o(67510),j=o(41409),b=o(2692),k=function(e){function t(){var e;return(0,a._)(this,t),e=(0,n._)(this,t,arguments),(0,s._)(e,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,s._)(e,"__codeTuner",void 0),(0,s._)(e,"__highlightLibJSIsLoaded",!1),(0,s._)(e,"__loadLanguage",new Map),(0,s._)(e,"__initHighlightLibLoading",function(t){return(0,i._)(function(){var o,i,n,a,r,s,c,l,h,d;return(0,u._)(this,function(u){switch(u.label){case 0:if(i=(o=e.j.o.pasteCode).globalHighlightLib,a=(n=o.highlightLib).css,r=n.js,s=n.langUrl,c=n.highlight,l=n.isLangLoaded,h=n.beforeLibLoad,d=n.afterLibLoad,e.__highlightLibJSIsLoaded||i||(e.__highlightLibJSIsLoaded=Promise.resolve(null==h?void 0:h()).then(function(){return x(e.async,Promise.allSettled([(0,_.loadNextStyle)(e.jodit,a).catch(function(){return null}),(0,_.loadNext)(e.jodit,r).catch(function(){return null})]))}).then(function(){return null==d?void 0:d()})),(0,v.isBoolean)(e.__highlightLibJSIsLoaded))return[3,2];return[4,e.__highlightLibJSIsLoaded];case 1:u.sent(),u.label=2;case 2:if(!(t&&!l(t)&&!i))return[3,4];return e.__loadLanguage.has(t)||(f.IS_PROD,e.__loadLanguage.set(t,x(e.async,(0,_.appendScriptAsync)(e.jodit,s(t)).catch(function(){return null})))),[4,e.__loadLanguage.get(t)];case 3:u.sent(),u.label=4;case 4:return[2,{highlight:c}]}})})()}),e}return(0,c._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"pasteCode"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("pasteCode",function(){return t.__openCodeEditDialog()}),this.__codeTuner=new d.UICodeTuner(e),e.async.requestIdleCallback(function(){return t.__initHighlightLibLoading()})}},{key:"__openCodeEditDialog",value:function(e,t,o){var i=this,n=this.j,a=this.__createForm(),r=(0,_.refs)(a.container),s=r.code,c=r.language;e&&(c.value=e),t&&(s.value=t),n.async.requestIdleCallback(function(){s.focus()}),n.s.save(),this.__createDialog(function(){if(a.validate()){n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,c.value,s.value));if(o)j.Dom.replace(o,e,n.createInside,!1,!0);else{var t=n.s.current(),r=j.Dom.up(t,j.Dom.isBlock,n.editor);r&&!j.Dom.isCell(r)?j.Dom.after(r,e):n.s.insertNode(e)}i.__imdOnChange();return}return!1},function(){n.s.restore()}).setContent(a.container).open(!0)}},{key:"beforeDestruct",value:function(e){var t;null==(t=this.__codeTuner)||t.destruct()}},{key:"onRehighlightPasteCode",value:function(e){j.Dom.isTag(e,"pre")&&((0,_.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(function(){return null}))}},{key:"__createForm",value:function(){var e=this.jodit;return new y.UIForm(e,[new y.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new y.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}},{key:"__createDialog",value:function(e,t){var o=new j.Dialog({language:this.j.o.language});return o.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,y.Button)(o,"","Cancel","default").onAction(function(){o.close(),t()}),(0,y.Button)(o,"save","Save","primary").onAction(function(){o.close(),e()})]),o}},{key:"__onChange",value:function(){this.__imdOnChange()}},{key:"__imdOnChange",value:function(){var e=this;(0,_.$$)("pre",this.j.editor).forEach(function(t){(0,_.attr)(t,"contenteditable")||((0,_.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch(function(){return null}))})}},{key:"__highlightCode",value:function(e){return(0,i._)(function(){var t,o,i;return(0,u._)(this,function(n){switch(n.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return o=n.sent().highlight,i=e,e.firstElementChild===e.lastElementChild&&j.Dom.isTag(e.firstElementChild,"code")&&(i=e.firstElementChild),i.innerHTML=o(i.innerText,t),[2]}})}).call(this)}},{key:"onPreEdit",value:function(e){var t=j.Dom.isNode(e)&&j.Dom.isTag(e,"pre")?e:j.Dom.closest(e.target,"pre",this.j.editor);if(t){var o=this.__parseLanguage(t);this.__openCodeEditDialog(o,t.innerText,t)}}},{key:"__parseLanguage",value:function(e){return(0,p.parseLanguage)(this.jodit,e)}},{key:"onAfterGetValueFromEditor",value:function(e){var t=this,o=function(e,o,i,n,a,r){return"".concat(o.trim()).concat(n).concat((0,m.htmlspecialchars)((0,_.stripTags)(a,t.j.ed,new Set(["br"])))).concat(r)};e.value=e.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),o).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),o)}}]),t}((0,h._)(C.Plugin));function x(e,t){return e.promise(function(e,o){t.then(e).catch(o)}).catch(function(){return null})}(0,s._)(k,"requires",["license"]),(0,l.__decorate)([g.autobind],k.prototype,"__openCodeEditDialog",null),(0,l.__decorate)([(0,g.watch)("?:rehighlightPasteCode")],k.prototype,"onRehighlightPasteCode",null),(0,l.__decorate)([(0,g.watch)(["?:change","?:afterInit"]),(0,g.debounce)()],k.prototype,"__onChange",null),(0,l.__decorate)([(0,g.watch)(["?:dblclick","?:editPreInPasteCode"])],k.prototype,"onPreEdit",null),(0,l.__decorate)([(0,g.watch)("?:afterGetValueFromEditor")],k.prototype,"onAfterGetValueFromEditor",null),k=(0,l.__decorate)([g.component],k),b.JoditPro.plugins.add("paste-code",k)},24397:function(e,t,o){"use strict";o.d(t,{UICodeTuner:function(){return m}});var i=o(80294),n=o(20616),a=o(67709),r=o(82749),s=o(54816),c=o(84669),l=o(18766),u=o(94899),h=o(31635),d=o(35960),p=o(65478),f=o(22732),g=o(21537),_=o(67510),v=o(21491),m=function(e){function t(){var e;return(0,n._)(this,t),e=(0,i._)(this,t,arguments),(0,r._)(e,"toolbar",(0,v.makeCollection)(e.j,e)),(0,r._)(e,"popup",new _.Popup(e.j,!1)),(0,r._)(e,"isShown",!1),(0,r._)(e,"__hideTimer",0),(0,r._)(e,"currentBlock",void 0),e}return(0,l._)(t,e),(0,a._)(t,[{key:"className",value:function(){return"UICodeTuner"}},{key:"render",value:function(){return'<div>\n <div class="&__anchor" title="~Drag to move the code block~"></div>\n </div>'}},{key:"onEditorMouseMove",value:function(e){var t=f.Dom.closest(e.target,"pre",this.j.editor);t&&(this.__cancelHide(),this.show(t))}},{key:"onEditorClick",value:function(e){var t=f.Dom.closest(e.target,"pre",this.j.editor);t?(this.__cancelHide(),this.show(t),this.openToolbar()):this.forceHide()}},{key:"show",value:function(e){this.currentBlock=e,this.isShown||(this.isShown=!0,null==this.container.parentNode&&this.j.od.body.appendChild(this.container),this.j.e.on(this.j.ow,"mousemove",this.__onPointerMove),this.j.e.on(this.j.ow,"scroll resize",this.__onReposition).on(this.j.editor,"scroll",this.__onReposition)),this.calcPosition()}},{key:"hide",value:function(){this.popup.isOpened||this.forceHide()}},{key:"onOutsideClick",value:function(e){e&&f.Dom.isOrContains(this.container,e.target)||this.forceHide()}},{key:"forceHide",value:function(){this.__cancelHide(),this.isShown&&(this.isShown=!1,this.j.e.off(this.j.ow,"mousemove",this.__onPointerMove).off(this.j.ow,"scroll resize",this.__onReposition).off(this.j.editor,"scroll",this.__onReposition),this.popup.close(),f.Dom.safeRemove(this.container))}},{key:"__onPointerMove",value:function(e){this.isShown&&!this.popup.isOpened&&(this.__inActiveZone(e.clientX,e.clientY)?this.__cancelHide():this.__scheduleHide())}},{key:"__inActiveZone",value:function(e,t){var o=(0,g.position)(this.currentBlock,this.j);return e>=o.left-16-6-6&&e<=o.left+o.width&&t>=o.top-6&&t<=o.top+o.height+6}},{key:"__scheduleHide",value:function(){var e=this;this.__hideTimer||(this.__hideTimer=this.j.async.setTimeout(function(){e.__hideTimer=0,e.hide()},150))}},{key:"__cancelHide",value:function(){this.__hideTimer&&(this.j.async.clearTimeout(this.__hideTimer),this.__hideTimer=0)}},{key:"__onReposition",value:function(){if(this.isShown){if(!this.j.editor.contains(this.currentBlock))return void this.forceHide();this.calcPosition()}}},{key:"onEditorChange",value:function(){this.__onReposition()}},{key:"calcPosition",value:function(){var e=(0,g.position)(this.currentBlock,this.j);(0,g.css)(this.container,{left:Math.round(e.left-16-6),top:Math.round(e.top+4)}),this.popup.isOpened&&this.popup.updatePosition()}},{key:"openToolbar",value:function(){var e=this;this.toolbar.build([this.__languageControl()].concat((0,u._)(this.j.o.pasteCode.popup)),this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened?this.popup.updatePosition():this.popup.open(function(){return(0,g.position)(e.currentBlock,e.j)})}},{key:"__languageControl",value:function(){var e=this,t={};return this.j.o.pasteCode.languages.forEach(function(e){t[String(e.value)]=String(e.text)}),{name:"language",list:t,tooltip:"Language",text:(0,d.languageTitle)(this.j,(0,d.parseLanguage)(this.j,this.currentBlock)),childTemplate:function(t,o,i){return e.j.i18n(i)},update:function(t,o){var i=o.target;f.Dom.isTag(i,"pre")&&o.setState({text:(0,d.languageTitle)(e.j,(0,d.parseLanguage)(e.j,i)),icon:{name:""}})},childExec:function(t,o,i){var n=i.control,a=String(n.args&&n.args[0]||"plaintext");f.Dom.isTag(o,"pre")&&((0,d.setPreLanguage)(e.j,o,a),e.j.e.fire("hideCodeTuner.pasteCode"))}}}},{key:"onAnchorMouseDown",value:function(e){e.preventDefault(),this.popup.close(),this.j.e.fire("startDragElement",this.currentBlock,e)}},{key:"destruct",value:function(){this.forceHide(),this.popup.destruct(),(0,s._)((0,c._)(t.prototype),"destruct",this).call(this)}}]),t}(_.UIElement);(0,h.__decorate)([(0,p.watch)("j.editor:mousemove"),(0,p.throttle)(50)],m.prototype,"onEditorMouseMove",null),(0,h.__decorate)([(0,p.watch)("j.editor:click")],m.prototype,"onEditorClick",null),(0,h.__decorate)([(0,p.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,h.__decorate)([(0,p.watch)(":hideCodeTuner.pasteCode")],m.prototype,"forceHide",null),(0,h.__decorate)([p.autobind],m.prototype,"__onPointerMove",null),(0,h.__decorate)([p.autobind],m.prototype,"__onReposition",null),(0,h.__decorate)([(0,p.watch)(":change :resize :afterSetMode"),(0,p.throttle)(10)],m.prototype,"onEditorChange",null),(0,h.__decorate)([(0,p.watch)("anchor:mousedown")],m.prototype,"onAnchorMouseDown",null),m=(0,h.__decorate)([p.component],m)}},function(e){return e(e.s=41406)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -499,8 +499,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
499
499
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
500
500
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
501
501
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
502
|
-
/* harmony import */ var
|
|
503
|
-
/* harmony import */ var
|
|
502
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
503
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23078);
|
|
504
504
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12324);
|
|
505
505
|
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45198);
|
|
506
506
|
/* harmony import */ var _show_blocks_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(78879);
|
|
@@ -620,20 +620,20 @@ function svgToUrl(svg) {
|
|
|
620
620
|
}
|
|
621
621
|
]);
|
|
622
622
|
return showBlocks;
|
|
623
|
-
}((0,
|
|
623
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_13__.Plugin));
|
|
624
624
|
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(showBlocks, "requires", [
|
|
625
625
|
'license'
|
|
626
626
|
]);
|
|
627
|
-
(0,
|
|
627
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
628
628
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.cache
|
|
629
629
|
], showBlocks.prototype, "style", null);
|
|
630
|
-
(0,
|
|
630
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
631
631
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.autobind
|
|
632
632
|
], showBlocks.prototype, "enable", null);
|
|
633
|
-
(0,
|
|
633
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
634
634
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.autobind
|
|
635
635
|
], showBlocks.prototype, "disable", null);
|
|
636
|
-
(0,
|
|
636
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
637
637
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.autobind
|
|
638
638
|
], showBlocks.prototype, "toggle", null);
|
|
639
639
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_15__.JoditPro.plugins.add('show-blocks', showBlocks);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.43
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:o)[e]=n[e]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},12324:function(o,t,n){"use strict";var e=n(6441);e.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},e.Config.prototype.controls.showBlocks={isActive:function(o){return!!o.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(o){o.exports={"Show Blocks":"تظهر كتل"}},42350:function(o){o.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(o){o.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(o){o.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(o){o.exports={"Show Blocks":"תראה רחובות"}},25321:function(o){o.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(o){o.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(o,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return s.a},cs_cz:function(){return r.a},de:function(){return a.a},es:function(){return u.a},fa:function(){return h.a},fr:function(){return p.a},he:function(){return g.a},hu:function(){return w.a},id:function(){return x.a},it:function(){return y.a},ja:function(){return S.a},ko:function(){return q.a},nl:function(){return C.a},pl:function(){return E.a},pt_br:function(){return L.a},ru:function(){return H.a},tr:function(){return A.a},zh_cn:function(){return I.a},zh_tw:function(){return R.a}});var e=n(7085),s=n.n(e),i=n(42350),r=n.n(i),c=n(53189),a=n.n(c),l=n(48154),u=n.n(l),f=n(59551),h=n.n(f),d=n(41858),p=n.n(d),k=n(78777),g=n.n(k),b=n(25321),w=n.n(b),B=n(27847),x=n.n(B),m=n(23287),y=n.n(m),v=n(73035),S=n.n(v),_=n(97028),q=n.n(_),j=n(26436),C=n.n(j),z=n(6602),E=n.n(z),M=n(86401),L=n.n(M),T=n(54023),H=n.n(T),P=n(8432),A=n.n(P),D=n(58366),I=n.n(D),J=n(46954),R=n.n(J)},23287:function(o){o.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(o){o.exports={"Show Blocks":"ショーのブロック"}},97028:function(o){o.exports={"Show Blocks":"쇼 블록"}},26436:function(o){o.exports={"Show Blocks":"Toon Blokken"}},6602:function(o){o.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(o){o.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(o){o.exports={"Show Blocks":"Показать Блоки"}},8432:function(o){o.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(o){o.exports={"Show Blocks":"显示块"}},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,n){"use strict";n.r(t),n.d(t,{showBlocks:function(){return B}});var e=n(80294),s=n(20616),i=n(67709),r=n(82749),c=n(18766),a=n(
|
|
8
|
+
!function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:o)[e]=n[e]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},12324:function(o,t,n){"use strict";var e=n(6441);e.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},e.Config.prototype.controls.showBlocks={isActive:function(o){return!!o.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(o){o.exports={"Show Blocks":"تظهر كتل"}},42350:function(o){o.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(o){o.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(o){o.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(o){o.exports={"Show Blocks":"תראה רחובות"}},25321:function(o){o.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(o){o.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(o,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return s.a},cs_cz:function(){return r.a},de:function(){return a.a},es:function(){return u.a},fa:function(){return h.a},fr:function(){return p.a},he:function(){return g.a},hu:function(){return w.a},id:function(){return x.a},it:function(){return y.a},ja:function(){return S.a},ko:function(){return q.a},nl:function(){return C.a},pl:function(){return E.a},pt_br:function(){return L.a},ru:function(){return H.a},tr:function(){return A.a},zh_cn:function(){return I.a},zh_tw:function(){return R.a}});var e=n(7085),s=n.n(e),i=n(42350),r=n.n(i),c=n(53189),a=n.n(c),l=n(48154),u=n.n(l),f=n(59551),h=n.n(f),d=n(41858),p=n.n(d),k=n(78777),g=n.n(k),b=n(25321),w=n.n(b),B=n(27847),x=n.n(B),m=n(23287),y=n.n(m),v=n(73035),S=n.n(v),_=n(97028),q=n.n(_),j=n(26436),C=n.n(j),z=n(6602),E=n.n(z),M=n(86401),L=n.n(M),T=n(54023),H=n.n(T),P=n(8432),A=n.n(P),D=n(58366),I=n.n(D),J=n(46954),R=n.n(J)},23287:function(o){o.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(o){o.exports={"Show Blocks":"ショーのブロック"}},97028:function(o){o.exports={"Show Blocks":"쇼 블록"}},26436:function(o){o.exports={"Show Blocks":"Toon Blokken"}},6602:function(o){o.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(o){o.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(o){o.exports={"Show Blocks":"Показать Блоки"}},8432:function(o){o.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(o){o.exports={"Show Blocks":"显示块"}},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,n){"use strict";n.r(t),n.d(t,{showBlocks:function(){return B}});var e=n(80294),s=n(20616),i=n(67709),r=n(82749),c=n(18766),a=n(31635),l=n(23078);n(12324);var u=n(45198),f=n(78879),h=n.n(f),d=n(65478),p=n(2748),k=n(580),g=n(50911),b=n(12153),w=n(2692),B=function(o){function t(o){var n;return(0,s._)(this,t),n=(0,e._)(this,t,[o]),(0,r._)(n,"buttons",[{name:"showBlocks",group:"state"}]),(0,r._)(n,"isEnabled",!1),(0,k.extendLang)(u),b.Icon.set("showBlocks",h()),n}return(0,c._)(t,o),(0,i._)(t,[{key:"style",get:function(){return(0,k.getContainer)(this.jodit,t,"style",!0)}},{key:"enable",value:function(){var o=this;this.isEnabled=!0;var t=this.j.o.iframe?"body":".jodit-wysiwyg",n=this.j.o.showBlocks,e=n.tagList,s=n.color;this.style.innerHTML=e.map(function(n){var e;return"".concat(t," ").concat(n,"{\n outline: 1px dashed ").concat(s,';\n background-image: url("').concat((e='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+s+';font: 10px sans-serif" x="50px" y="0">'+n+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(e))),'");\n background-position: top 2px ').concat("rtl"===o.j.o.direction?"left":"right"," 4px;\n background-repeat: no-repeat;\n position: relative;\n }")}).join("")}},{key:"disable",value:function(){this.isEnabled=!1;var o=(0,d.cached)(this,"style");o&&(o.innerHTML="")}},{key:"toggle",value:function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}},{key:"afterInit",value:function(o){var t=this;o.e.on("showBlocksEnabled",function(){return t.isEnabled}),o.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}},{key:"beforeDestruct",value:function(o){this.disable(),p.Dom.safeRemove((0,d.cached)(this,"style"))}}]),t}((0,l._)(g.Plugin));(0,r._)(B,"requires",["license"]),(0,a.__decorate)([d.cache],B.prototype,"style",null),(0,a.__decorate)([d.autobind],B.prototype,"enable",null),(0,a.__decorate)([d.autobind],B.prototype,"disable",null),(0,a.__decorate)([d.autobind],B.prototype,"toggle",null),w.JoditPro.plugins.add("show-blocks",B)}},function(o){return o(o.s=47682)}])});
|