jodit-pro 4.9.27 → 4.9.33
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/CHANGELOG.md +50 -1
- package/config.js +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +15 -15
- package/es2015/jodit.js +15 -10
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.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 +40 -4
- package/es2015/plugins/finder/finder.min.js +4 -4
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +37 -21
- package/es2015/plugins/style/style.min.js +2 -2
- package/es2015/plugins/templates/templates.css +82 -0
- package/es2015/plugins/templates/templates.js +178 -0
- package/es2015/plugins/templates/templates.min.css +1 -0
- package/es2015/plugins/templates/templates.min.js +8 -0
- 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 +15 -15
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +3 -3
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +2 -2
- package/es2018/plugins/templates/templates.min.css +1 -0
- package/es2018/plugins/templates/templates.min.js +8 -0
- 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 +15 -15
- package/es2021/jodit.js +15 -10
- package/es2021/jodit.min.js +6 -6
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.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 +40 -4
- package/es2021/plugins/finder/finder.min.js +4 -4
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +31 -21
- package/es2021/plugins/style/style.min.js +2 -2
- package/es2021/plugins/templates/templates.css +82 -0
- package/es2021/plugins/templates/templates.js +178 -0
- package/es2021/plugins/templates/templates.min.css +1 -0
- package/es2021/plugins/templates/templates.min.js +8 -0
- 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 +16 -16
- package/es2021.en/jodit.js +15 -10
- package/es2021.en/jodit.min.js +6 -6
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.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 +6 -4
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +31 -21
- package/es2021.en/plugins/style/style.min.js +2 -2
- package/es2021.en/plugins/templates/templates.css +82 -0
- package/es2021.en/plugins/templates/templates.js +178 -0
- package/es2021.en/plugins/templates/templates.min.css +1 -0
- package/es2021.en/plugins/templates/templates.min.js +8 -0
- 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 +15 -10
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +40 -4
- 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 +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +37 -21
- package/es5/plugins/style/style.min.js +2 -2
- package/es5/plugins/templates/templates.css +82 -0
- package/es5/plugins/templates/templates.js +220 -0
- package/es5/plugins/templates/templates.min.css +1 -0
- package/es5/plugins/templates/templates.min.js +8 -0
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +6 -0
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/finder/langs/de.d.ts +22 -0
- package/esm/plugins/finder/langs/de.js +1 -0
- package/esm/plugins/finder/langs/index.d.ts +2 -1
- package/esm/plugins/finder/langs/index.js +1 -1
- package/esm/plugins/style/helpers/apply-style.js +1 -1
- package/esm/plugins/style/helpers/detect-active-style.js +1 -1
- package/esm/plugins/style/interface.d.ts +1 -1
- package/esm/plugins/style/ui/style-popup.js +1 -1
- package/esm/plugins/templates/config.d.ts +13 -0
- package/esm/plugins/templates/config.js +1 -0
- package/esm/plugins/templates/icon.svg.js +1 -0
- package/esm/plugins/templates/interface.d.ts +11 -0
- package/esm/plugins/templates/interface.js +0 -0
- package/esm/plugins/templates/templates.d.ts +18 -0
- package/esm/plugins/templates/templates.js +1 -0
- package/esm/plugins/templates/ui/templates-popup.d.ts +8 -0
- package/esm/plugins/templates/ui/templates-popup.js +1 -0
- package/package.json +1 -1
- package/types/config.d.ts +6 -0
- package/types/plugins/finder/langs/de.d.ts +22 -0
- package/types/plugins/finder/langs/index.d.ts +2 -1
- package/types/plugins/style/interface.d.ts +1 -1
- package/types/plugins/templates/config.d.ts +13 -0
- package/types/plugins/templates/interface.d.ts +11 -0
- package/types/plugins/templates/templates.d.ts +18 -0
- package/types/plugins/templates/ui/templates-popup.d.ts +8 -0
|
@@ -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.9.
|
|
4
|
+
* Version: v4.9.33
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -52,6 +52,8 @@ function buildStylePopup(editor, definitions, close) {
|
|
|
52
52
|
try {
|
|
53
53
|
var _loop = function() {
|
|
54
54
|
var def = _step1.value;
|
|
55
|
+
var _ref;
|
|
56
|
+
var _def_classes;
|
|
55
57
|
var card = editor.c.element('button');
|
|
56
58
|
card.type = 'button';
|
|
57
59
|
var isActive = active === def;
|
|
@@ -60,7 +62,7 @@ function buildStylePopup(editor, definitions, close) {
|
|
|
60
62
|
var previewEl = editor.c.element(def.element);
|
|
61
63
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
62
64
|
try {
|
|
63
|
-
for(var _iterator = def.classes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
65
|
+
for(var _iterator = ((_ref = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean)) !== null && _ref !== void 0 ? _ref : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
64
66
|
var cls = _step.value;
|
|
65
67
|
previewEl.classList.add(cls);
|
|
66
68
|
}
|
|
@@ -323,7 +325,9 @@ function removeClassesFromElement(el, classes) {
|
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
327
|
function cleanupExtraClasses(editor, def) {
|
|
326
|
-
|
|
328
|
+
var _def_classes;
|
|
329
|
+
var classes = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean);
|
|
330
|
+
if (!classes || classes.length <= 1) {
|
|
327
331
|
return;
|
|
328
332
|
}
|
|
329
333
|
var current = editor.s.current();
|
|
@@ -333,12 +337,12 @@ function cleanupExtraClasses(editor, def) {
|
|
|
333
337
|
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
|
|
334
338
|
var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
|
|
335
339
|
if (block) {
|
|
336
|
-
removeClassesFromElement(block,
|
|
340
|
+
removeClassesFromElement(block, classes.slice(1));
|
|
337
341
|
}
|
|
338
342
|
} else {
|
|
339
343
|
var target = findTarget(editor, def);
|
|
340
344
|
if (target) {
|
|
341
|
-
removeClassesFromElement(target,
|
|
345
|
+
removeClassesFromElement(target, classes.slice(1));
|
|
342
346
|
if (target.nodeName.toLowerCase() === 'span' && !target.attributes.length) {
|
|
343
347
|
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(target);
|
|
344
348
|
}
|
|
@@ -346,37 +350,44 @@ function cleanupExtraClasses(editor, def) {
|
|
|
346
350
|
}
|
|
347
351
|
}
|
|
348
352
|
function addExtraClasses(editor, def) {
|
|
349
|
-
|
|
353
|
+
var _def_classes;
|
|
354
|
+
var classes = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean);
|
|
355
|
+
if (!classes || classes.length <= 1) {
|
|
350
356
|
return;
|
|
351
357
|
}
|
|
352
358
|
var target = findTarget(editor, def);
|
|
353
359
|
if (!target) {
|
|
354
360
|
return;
|
|
355
361
|
}
|
|
356
|
-
for(var i = 1; i <
|
|
357
|
-
target.classList.add(
|
|
362
|
+
for(var i = 1; i < classes.length; i++){
|
|
363
|
+
target.classList.add(classes[i]);
|
|
358
364
|
}
|
|
359
365
|
}
|
|
366
|
+
function buildCommitStyleOptions(def) {
|
|
367
|
+
var _def_classes;
|
|
368
|
+
var firstClass = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean)[0];
|
|
369
|
+
if (firstClass) {
|
|
370
|
+
return {
|
|
371
|
+
element: def.element,
|
|
372
|
+
attributes: {
|
|
373
|
+
class: firstClass
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
element: def.element
|
|
379
|
+
};
|
|
380
|
+
}
|
|
360
381
|
function applyStyle(editor, def, definitions) {
|
|
361
382
|
var active = (0,_detect_active_style__WEBPACK_IMPORTED_MODULE_0__.detectActiveStyle)(editor, definitions);
|
|
362
383
|
if (active) {
|
|
363
|
-
editor.s.commitStyle(
|
|
364
|
-
element: active.element,
|
|
365
|
-
attributes: {
|
|
366
|
-
class: active.classes[0]
|
|
367
|
-
}
|
|
368
|
-
});
|
|
384
|
+
editor.s.commitStyle(buildCommitStyleOptions(active));
|
|
369
385
|
cleanupExtraClasses(editor, active);
|
|
370
386
|
if (active === def) {
|
|
371
387
|
return;
|
|
372
388
|
}
|
|
373
389
|
}
|
|
374
|
-
editor.s.commitStyle(
|
|
375
|
-
element: def.element,
|
|
376
|
-
attributes: {
|
|
377
|
-
class: def.classes[0]
|
|
378
|
-
}
|
|
379
|
-
});
|
|
390
|
+
editor.s.commitStyle(buildCommitStyleOptions(def));
|
|
380
391
|
addExtraClasses(editor, def);
|
|
381
392
|
}
|
|
382
393
|
|
|
@@ -399,10 +410,15 @@ function applyStyle(editor, def, definitions) {
|
|
|
399
410
|
*/
|
|
400
411
|
|
|
401
412
|
function elementMatchesDefinition(el, def) {
|
|
413
|
+
var _def_classes;
|
|
402
414
|
if (el.nodeName.toLowerCase() !== def.element) {
|
|
403
415
|
return false;
|
|
404
416
|
}
|
|
405
|
-
|
|
417
|
+
var classes = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean);
|
|
418
|
+
if (!(classes === null || classes === void 0 ? void 0 : classes.length)) {
|
|
419
|
+
return true;
|
|
420
|
+
}
|
|
421
|
+
return classes.every(function(cls) {
|
|
406
422
|
return el.classList.contains(cls);
|
|
407
423
|
});
|
|
408
424
|
}
|
|
@@ -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.9.
|
|
4
|
+
* Version: v4.9.33
|
|
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 n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{5440:function(t,e,n){"use strict";n.d(e,{buildStylePopup:function(){return s}});var r=n(31105),o=n(8060),i=n(69341),l="jodit-style-popup";function s(t,e,n){var s=(0,o.classifyDefinitions)(e),
|
|
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 n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{5440:function(t,e,n){"use strict";n.d(e,{buildStylePopup:function(){return s}});var r=n(31105),o=n(8060),i=n(69341),l="jodit-style-popup";function s(t,e,n){var s=(0,o.classifyDefinitions)(e),a=(0,i.detectActiveStyle)(t,e),u=t.c.div(l),c=!0,f=!1,d=void 0;try{for(var v,y=s[Symbol.iterator]();!(c=(v=y.next()).done);c=!0){var p=v.value,m=t.c.div("".concat(l,"__group-title"));m.textContent=t.i18n(p.title),u.appendChild(m);var h=t.c.div("".concat(l,"__grid")),x=!0,S=!1,g=void 0;try{for(var _,w=p.definitions[Symbol.iterator]();!(x=(_=w.next()).done);x=!0)!function(){var o=_.value,i=t.c.element("button");i.type="button";var s=a===o;i.className="".concat(l,"__card")+(s?" ".concat(l,"__card_active_true"):"");var u=t.c.div("".concat(l,"__card-preview")),c=t.c.element(o.element),f=!0,d=!1,v=void 0;try{for(var y,p,m,x=(null!=(y=null==(p=o.classes)?void 0:p.filter(Boolean))?y:[])[Symbol.iterator]();!(f=(m=x.next()).done);f=!0){var S=m.value;c.classList.add(S)}}catch(t){d=!0,v=t}finally{try{f||null==x.return||x.return()}finally{if(d)throw v}}c.textContent=o.name,u.appendChild(c),i.appendChild(u);var g=t.c.div("".concat(l,"__card-label"));g.textContent=o.name,i.appendChild(g),t.e.on(i,"click",function(){t.s.focus(),(0,r.applyStyle)(t,o,e),t.synchronizeValues(),n()}),h.appendChild(i)}()}catch(t){S=!0,g=t}finally{try{x||null==w.return||w.return()}finally{if(S)throw g}}u.appendChild(h)}}catch(t){f=!0,d=t}finally{try{c||null==y.return||y.return()}finally{if(f)throw d}}return u}},8060:function(t,e,n){"use strict";n.d(e,{classifyDefinitions:function(){return o}});var r=n(82758);function o(t){var e=[],n=[],o=!0,i=!1,l=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done);o=!0){var u=s.value;r.IS_BLOCK.test(u.element)?e.push(u):n.push(u)}}catch(t){i=!0,l=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),n.length&&c.push({title:"Text styles",definitions:n}),c}},28609:function(t,e,n){"use strict";var r=n(69341),o=n(5440),i=n(78955),l=n.n(i),s=n(6441);s.Config.prototype.customStyles={definitions:[]},s.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,r.detectActiveStyle)(t,e)},update:function(t,e){var n,o=t.o.customStyles.definitions;if(o.length){var i=(0,r.detectActiveStyle)(t,o),l=(null==(n=e.control)?void 0:n.component)==="select";(t.o.textIcons||l)&&(i?e.state.text=i.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,n){var r=t.o.customStyles.definitions;if(!r.length)return!1;t.s.current()||t.s.focus(),t.s.save();var i=(0,o.buildStylePopup)(t,r,function(){t.s.restore(),n()});return t.e.one("beforePopupClose",function(){t.s.restore()}),i}}},31105:function(t,e,n){"use strict";n.d(e,{applyStyle:function(){return u}});var r=n(69341),o=n(82758),i=n(2748);function l(t,e){var n=t.s.current();if(!n)return null;if(o.IS_BLOCK.test(e.element))return i.Dom.closest(n,i.Dom.isBlock,t.editor);for(var r=i.Dom.isElement(n)?n:n.parentNode;r&&r!==t.editor;){if(i.Dom.isElement(r)&&r.nodeName.toLowerCase()===e.element)return r;r=r.parentNode}return null}function s(t,e){var n=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done);n=!0){var s=i.value;t.classList.remove(s)}}catch(t){r=!0,o=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}""===t.className&&t.removeAttribute("class")}function a(t){var e,n=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}function u(t,e,n){var u=(0,r.detectActiveStyle)(t,n);u&&(t.s.commitStyle(a(u)),!function(t,e){var n,r=null==(n=e.classes)?void 0:n.filter(Boolean);if(r&&!(r.length<=1)){var a=t.s.current();if(a)if(o.IS_BLOCK.test(e.element)){var u=i.Dom.closest(a,i.Dom.isBlock,t.editor);u&&s(u,r.slice(1))}else{var c=l(t,e);c&&(s(c,r.slice(1)),"span"!==c.nodeName.toLowerCase()||c.attributes.length||i.Dom.unwrap(c))}}}(t,u),u===e)||(t.s.commitStyle(a(e)),function(t,e){var n,r=null==(n=e.classes)?void 0:n.filter(Boolean);if(r&&!(r.length<=1)){var o=l(t,e);if(o)for(var i=1;i<r.length;i++)o.classList.add(r[i])}}(t,e))}},69341:function(t,e,n){"use strict";n.d(e,{detectActiveStyle:function(){return l}});var r=n(82758),o=n(2748);function i(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;var n,r=null==(n=e.classes)?void 0:n.filter(Boolean);return null==r||!r.length||r.every(function(e){return t.classList.contains(e)})}function l(t,e){var n=t.s.current();if(!n)return null;var l=!0,s=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(l=(u=c.next()).done);l=!0){var f=u.value;if(r.IS_BLOCK.test(f.element)){var d=o.Dom.closest(n,o.Dom.isBlock,t.editor);if(d&&i(d,f))return f}else for(var v=o.Dom.isElement(n)?n:n.parentNode;v&&v!==t.editor;){if(o.Dom.isElement(v)&&i(v,f))return f;v=v.parentNode}}}catch(t){s=!0,a=t}finally{try{l||null==c.return||c.return()}finally{if(s)throw a}}return null}},75554:function(t,e,n){"use strict";n.r(e),n.d(e,{style:function(){return f}});var r=n(80294),o=n(20616),i=n(67709),l=n(82749),s=n(18766),a=n(23078);n(28609);var u=n(50911),c=n(2692),f=function(t){function e(){var t;return(0,o._)(this,e),t=(0,r._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,s._)(e,t),(0,i._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,a._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'}},function(t){return t(t.s=75554)}])});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
+
* Version: v4.9.33
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.jodit-templates-popup {
|
|
10
|
+
min-width: 300px;
|
|
11
|
+
max-height: 470px;
|
|
12
|
+
padding: 8px;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
.jodit-templates-popup__card {
|
|
16
|
+
display: flex;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
width: 100%;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: stretch;
|
|
21
|
+
padding: 0;
|
|
22
|
+
border: 1px solid #ddd;
|
|
23
|
+
border-radius: 6px;
|
|
24
|
+
margin-bottom: 8px;
|
|
25
|
+
background: none;
|
|
26
|
+
color: inherit;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
.jodit-templates-popup__card:last-child {
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
}
|
|
33
|
+
.jodit-templates-popup__card:hover {
|
|
34
|
+
border-color: var(--jd-color-border-active, #4a6cf6);
|
|
35
|
+
}
|
|
36
|
+
.jodit-templates-popup__card-preview {
|
|
37
|
+
position: relative;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
width: 140px;
|
|
40
|
+
height: 96px;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
background: #f8f8f8;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
.jodit-templates-popup__card-preview img {
|
|
46
|
+
display: block;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
object-fit: cover;
|
|
50
|
+
}
|
|
51
|
+
.jodit-templates-popup__card-preview-inner {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
width: 500px;
|
|
56
|
+
transform: scale(0.28);
|
|
57
|
+
transform-origin: top left;
|
|
58
|
+
}
|
|
59
|
+
.jodit-templates-popup__card-info {
|
|
60
|
+
display: flex;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
flex: 1;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
padding: 8px 12px;
|
|
66
|
+
}
|
|
67
|
+
.jodit-templates-popup__card-title {
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
font-size: 13px;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
line-height: 1.3;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
.jodit-templates-popup__card-description {
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
margin-top: 4px;
|
|
78
|
+
color: #888;
|
|
79
|
+
font-size: 11px;
|
|
80
|
+
line-height: 1.4;
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
+
* Version: v4.9.33
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else {
|
|
15
|
+
var a = factory();
|
|
16
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
})(self, function() {
|
|
19
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[945],{
|
|
20
|
+
|
|
21
|
+
/***/ 18993:
|
|
22
|
+
/***/ (function(module) {
|
|
23
|
+
|
|
24
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"1.5\"> <rect x=\"2\" y=\"2\" width=\"20\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"2\" y=\"14\" width=\"9\" height=\"8\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"14\" width=\"9\" height=\"8\" rx=\"1.5\" fill=\"currentColor\"/> </svg>"
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 54296:
|
|
29
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30
|
+
|
|
31
|
+
"use strict";
|
|
32
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33
|
+
/* harmony export */ buildTemplatesPopup: function() { return /* binding */ buildTemplatesPopup; }
|
|
34
|
+
/* harmony export */ });
|
|
35
|
+
/*!
|
|
36
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
37
|
+
* See LICENSE.md in the project root for license information.
|
|
38
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
39
|
+
*/ var CLASS_NAME = 'jodit-templates-popup';
|
|
40
|
+
function buildTemplatesPopup(editor, definitions, close) {
|
|
41
|
+
var container = editor.c.div(CLASS_NAME);
|
|
42
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
43
|
+
try {
|
|
44
|
+
var _loop = function() {
|
|
45
|
+
var def = _step.value;
|
|
46
|
+
var card = editor.c.element('button');
|
|
47
|
+
card.type = 'button';
|
|
48
|
+
card.className = "".concat(CLASS_NAME, "__card");
|
|
49
|
+
var preview = editor.c.div("".concat(CLASS_NAME, "__card-preview"));
|
|
50
|
+
if (def.image) {
|
|
51
|
+
var img = editor.c.element('img');
|
|
52
|
+
img.src = def.image;
|
|
53
|
+
img.alt = def.title;
|
|
54
|
+
preview.appendChild(img);
|
|
55
|
+
} else {
|
|
56
|
+
var inner = editor.c.div("".concat(CLASS_NAME, "__card-preview-inner"));
|
|
57
|
+
inner.innerHTML = def.html;
|
|
58
|
+
preview.appendChild(inner);
|
|
59
|
+
}
|
|
60
|
+
card.appendChild(preview);
|
|
61
|
+
var info = editor.c.div("".concat(CLASS_NAME, "__card-info"));
|
|
62
|
+
var title = editor.c.div("".concat(CLASS_NAME, "__card-title"));
|
|
63
|
+
title.textContent = def.title;
|
|
64
|
+
info.appendChild(title);
|
|
65
|
+
var description = editor.c.div("".concat(CLASS_NAME, "__card-description"));
|
|
66
|
+
description.textContent = def.description;
|
|
67
|
+
info.appendChild(description);
|
|
68
|
+
card.appendChild(info);
|
|
69
|
+
editor.e.on(card, 'click', function() {
|
|
70
|
+
editor.s.focus();
|
|
71
|
+
editor.s.insertHTML(def.html);
|
|
72
|
+
editor.synchronizeValues();
|
|
73
|
+
close();
|
|
74
|
+
});
|
|
75
|
+
container.appendChild(card);
|
|
76
|
+
};
|
|
77
|
+
for(var _iterator = definitions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
78
|
+
} catch (err) {
|
|
79
|
+
_didIteratorError = true;
|
|
80
|
+
_iteratorError = err;
|
|
81
|
+
} finally{
|
|
82
|
+
try {
|
|
83
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
84
|
+
_iterator.return();
|
|
85
|
+
}
|
|
86
|
+
} finally{
|
|
87
|
+
if (_didIteratorError) {
|
|
88
|
+
throw _iteratorError;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return container;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/***/ }),
|
|
97
|
+
|
|
98
|
+
/***/ 58475:
|
|
99
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
100
|
+
|
|
101
|
+
"use strict";
|
|
102
|
+
/* harmony import */ var _ui_templates_popup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54296);
|
|
103
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18993);
|
|
104
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icon_svg__WEBPACK_IMPORTED_MODULE_1__);
|
|
105
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6441);
|
|
106
|
+
/*!
|
|
107
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
108
|
+
* See LICENSE.md in the project root for license information.
|
|
109
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.contentTemplates = {
|
|
114
|
+
definitions: []
|
|
115
|
+
};
|
|
116
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.templates = {
|
|
117
|
+
tooltip: 'Templates',
|
|
118
|
+
icon: (_icon_svg__WEBPACK_IMPORTED_MODULE_1___default()),
|
|
119
|
+
isDisabled: function isDisabled(editor) {
|
|
120
|
+
return !editor.o.contentTemplates.definitions.length;
|
|
121
|
+
},
|
|
122
|
+
exec: function exec() {
|
|
123
|
+
return false;
|
|
124
|
+
},
|
|
125
|
+
popup: function popup(editor, _current, close) {
|
|
126
|
+
var definitions = editor.o.contentTemplates.definitions;
|
|
127
|
+
if (!definitions.length) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
if (!editor.s.current()) {
|
|
131
|
+
editor.s.focus();
|
|
132
|
+
}
|
|
133
|
+
editor.s.save();
|
|
134
|
+
var popup = (0,_ui_templates_popup__WEBPACK_IMPORTED_MODULE_0__.buildTemplatesPopup)(editor, definitions, function() {
|
|
135
|
+
editor.s.restore();
|
|
136
|
+
close();
|
|
137
|
+
});
|
|
138
|
+
editor.e.one('beforePopupClose', function() {
|
|
139
|
+
editor.s.restore();
|
|
140
|
+
});
|
|
141
|
+
return popup;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/***/ }),
|
|
147
|
+
|
|
148
|
+
/***/ 61886:
|
|
149
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
150
|
+
|
|
151
|
+
"use strict";
|
|
152
|
+
__webpack_require__.r(__webpack_exports__);
|
|
153
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
154
|
+
/* harmony export */ templates: function() { return /* binding */ templates; }
|
|
155
|
+
/* harmony export */ });
|
|
156
|
+
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
|
|
157
|
+
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
|
|
158
|
+
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
159
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
160
|
+
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
161
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23078);
|
|
162
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(58475);
|
|
163
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50911);
|
|
164
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2692);
|
|
165
|
+
/*!
|
|
166
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
167
|
+
* See LICENSE.md in the project root for license information.
|
|
168
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
var templates = /*#__PURE__*/ function(Plugin) {
|
|
180
|
+
"use strict";
|
|
181
|
+
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(templates, Plugin);
|
|
182
|
+
function templates() {
|
|
183
|
+
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, templates);
|
|
184
|
+
var _this;
|
|
185
|
+
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, templates, arguments), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "buttons", [
|
|
186
|
+
{
|
|
187
|
+
name: 'templates',
|
|
188
|
+
group: 'insert'
|
|
189
|
+
}
|
|
190
|
+
]);
|
|
191
|
+
return _this;
|
|
192
|
+
}
|
|
193
|
+
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(templates, [
|
|
194
|
+
{
|
|
195
|
+
key: "afterInit",
|
|
196
|
+
value: /** @override */ function afterInit(_jodit) {}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: "beforeDestruct",
|
|
200
|
+
value: /** @override */ function beforeDestruct(_jodit) {}
|
|
201
|
+
}
|
|
202
|
+
]);
|
|
203
|
+
return templates;
|
|
204
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin));
|
|
205
|
+
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(templates, "requires", [
|
|
206
|
+
'license'
|
|
207
|
+
]);
|
|
208
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__.JoditPro.plugins.add('templates', templates);
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/***/ })
|
|
212
|
+
|
|
213
|
+
},
|
|
214
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
215
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
216
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(61886));
|
|
217
|
+
/******/ return __webpack_exports__;
|
|
218
|
+
/******/ }
|
|
219
|
+
]);
|
|
220
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-templates-popup{max-height:470px;min-width:300px;overflow-y:auto;padding:8px}.jodit-templates-popup__card{align-items:stretch;background:none;border:1px solid #ddd;border-radius:6px;color:inherit;cursor:pointer;display:flex;flex-direction:row;margin-bottom:8px;overflow:hidden;padding:0;text-align:left;width:100%}.jodit-templates-popup__card:last-child{margin-bottom:0}.jodit-templates-popup__card:hover{border-color:var(--jd-color-border-active,#4a6cf6)}.jodit-templates-popup__card-preview{background:#f8f8f8;flex-shrink:0;height:96px;overflow:hidden;pointer-events:none;position:relative;width:140px}.jodit-templates-popup__card-preview img{display:block;height:100%;object-fit:cover;width:100%}.jodit-templates-popup__card-preview-inner{left:0;position:absolute;top:0;transform:scale(.28);transform-origin:top left;width:500px}.jodit-templates-popup__card-info{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;padding:8px 12px}.jodit-templates-popup__card-title{font-size:13px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jodit-templates-popup__card-description{color:#888;font-size:11px;line-height:1.4;margin-top:4px;overflow:hidden}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
+
* Version: v4.9.33
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
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 i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[945],{18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},54296:function(e,t,n){"use strict";n.d(t,{buildTemplatesPopup:function(){return r}});var i="jodit-templates-popup";function r(e,t,n){var r=e.c.div(i),o=!0,c=!1,s=void 0;try{for(var a,u=t[Symbol.iterator]();!(o=(a=u.next()).done);o=!0)!function(){var t=a.value,o=e.c.element("button");o.type="button",o.className="".concat(i,"__card");var c=e.c.div("".concat(i,"__card-preview"));if(t.image){var s=e.c.element("img");s.src=t.image,s.alt=t.title,c.appendChild(s)}else{var u=e.c.div("".concat(i,"__card-preview-inner"));u.innerHTML=t.html,c.appendChild(u)}o.appendChild(c);var l=e.c.div("".concat(i,"__card-info")),p=e.c.div("".concat(i,"__card-title"));p.textContent=t.title,l.appendChild(p);var d=e.c.div("".concat(i,"__card-description"));d.textContent=t.description,l.appendChild(d),o.appendChild(l),e.e.on(o,"click",function(){e.s.focus(),e.s.insertHTML(t.html),e.synchronizeValues(),n()}),r.appendChild(o)}()}catch(e){c=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(c)throw s}}return r}},58475:function(e,t,n){"use strict";var i=n(54296),r=n(18993),o=n.n(r),c=n(6441);c.Config.prototype.contentTemplates={definitions:[]},c.Config.prototype.controls.templates={tooltip:"Templates",icon:o(),isDisabled:function(e){return!e.o.contentTemplates.definitions.length},exec:function(){return!1},popup:function(e,t,n){var r=e.o.contentTemplates.definitions;if(!r.length)return!1;e.s.current()||e.s.focus(),e.s.save();var o=(0,i.buildTemplatesPopup)(e,r,function(){e.s.restore(),n()});return e.e.one("beforePopupClose",function(){e.s.restore()}),o}}},61886:function(e,t,n){"use strict";n.r(t),n.d(t,{templates:function(){return p}});var i=n(80294),r=n(20616),o=n(67709),c=n(82749),s=n(18766),a=n(23078);n(58475);var u=n(50911),l=n(2692),p=function(e){function t(){var e;return(0,r._)(this,t),e=(0,i._)(this,t,arguments),(0,c._)(e,"buttons",[{name:"templates",group:"insert"}]),e}return(0,s._)(t,e),(0,o._)(t,[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}}]),t}((0,a._)(u.Plugin));(0,c._)(p,"requires",["license"]),l.JoditPro.plugins.add("templates",p)}},function(e){return e(e.s=61886)}])});
|
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED
package/es5/polyfills.min.js
CHANGED
package/esm/config.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type { ILayoutKeys } from "./plugins/keyboard/interface";
|
|
|
20
20
|
import type { CanPromise } from "jodit/esm/types/index";
|
|
21
21
|
import type { IUIOption } from "jodit/esm/types/index";
|
|
22
22
|
import type { IStyleDefinition } from "./plugins/style/interface";
|
|
23
|
+
import type { ITemplateDefinition } from "./plugins/templates/interface";
|
|
23
24
|
import type { ITranslateProviderFactory } from "./plugins/translate/interface";
|
|
24
25
|
import type { IGoogleTranslateProviderOptions } from "./plugins/translate/interface";
|
|
25
26
|
import type { IControlType } from "jodit/esm/types/index";
|
|
@@ -198,6 +199,11 @@ interface Config {
|
|
|
198
199
|
definitions: IStyleDefinition[];
|
|
199
200
|
};
|
|
200
201
|
}
|
|
202
|
+
interface Config {
|
|
203
|
+
contentTemplates: {
|
|
204
|
+
definitions: ITemplateDefinition[];
|
|
205
|
+
};
|
|
206
|
+
}
|
|
201
207
|
interface Config {
|
|
202
208
|
todoList: {
|
|
203
209
|
className: string;
|
package/esm/plugins/all.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"jodit/esm/plugins/all.js";import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.js";import"jodit/esm/plugins/speech-recognize/speech-recognize.js";import"./ai-assistant-pro/ai-assistant-pro.js";import"./backup/backup.js";import"./button-generator/button-generator.js";import"./change-case/change-case.js";import"./color-picker/color-picker.js";import"./emoji/emoji.js";import"./export-docs/export-docs.js";import"./finder/finder.js";import"./google-maps/google-maps.js";import"./google-search/google-search.js";import"./highlight-signature/highlight-signature.js";import"./iframe-editor/iframe-editor.js";import"./keyboard/keyboard.js";import"./mobile-view/mobile-view.js";import"./page-break/page-break.js";import"./paste-code/paste-code.js";import"./show-blocks/show-blocks.js";import"./style/style.js";import"./todo-list/todo-list.js";import"./translate/translate.js";import"./tune-block/tune-block.js";
|
|
1
|
+
import"jodit/esm/plugins/all.js";import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.js";import"jodit/esm/plugins/speech-recognize/speech-recognize.js";import"./ai-assistant-pro/ai-assistant-pro.js";import"./backup/backup.js";import"./button-generator/button-generator.js";import"./change-case/change-case.js";import"./color-picker/color-picker.js";import"./emoji/emoji.js";import"./export-docs/export-docs.js";import"./finder/finder.js";import"./google-maps/google-maps.js";import"./google-search/google-search.js";import"./highlight-signature/highlight-signature.js";import"./iframe-editor/iframe-editor.js";import"./keyboard/keyboard.js";import"./mobile-view/mobile-view.js";import"./page-break/page-break.js";import"./paste-code/paste-code.js";import"./show-blocks/show-blocks.js";import"./style/style.js";import"./templates/templates.js";import"./todo-list/todo-list.js";import"./translate/translate.js";import"./tune-block/tune-block.js";
|