jodit-pro 4.14.10 → 4.15.2
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 +8 -0
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +15 -15
- package/es2015/jodit.js +83 -83
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +12 -12
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +36 -36
- 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 +2 -2
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +2 -2
- package/es2015/plugins/button-generator/button-generator.js +2 -2
- package/es2015/plugins/button-generator/button-generator.min.css +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +2 -2
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- 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 +2 -2
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +2 -2
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +4 -4
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +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 +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +7 -7
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +2 -2
- package/es2015/plugins/page-break/page-break.min.js +3 -3
- package/es2015/plugins/paste-code/paste-code.css +2 -2
- package/es2015/plugins/paste-code/paste-code.js +2 -2
- package/es2015/plugins/paste-code/paste-code.min.css +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +3 -3
- 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 +2 -2
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +2 -2
- package/es2015/plugins/style/style.min.js +2 -2
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +2 -2
- package/es2015/plugins/templates/templates.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +2 -2
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +3 -3
- package/es2015/plugins/translate/translate.min.js +2 -2
- 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 +25 -25
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +12 -12
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.min.css +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.min.js +13 -13
- 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 +2 -2
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.min.js +3 -3
- package/es2018/plugins/paste-code/paste-code.min.css +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +3 -3
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/style/style.min.js +2 -2
- package/es2018/plugins/templates/templates.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.min.js +4 -4
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +23 -23
- package/es2021/jodit.js +83 -83
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +17 -17
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
- 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 +2 -2
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +2 -2
- package/es2021/plugins/button-generator/button-generator.js +2 -2
- package/es2021/plugins/button-generator/button-generator.min.css +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +2 -2
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- 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 +2 -2
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +2 -2
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +4 -4
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +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 +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +7 -7
- package/es2021/plugins/keyboard/keyboard.min.js +3 -3
- package/es2021/plugins/mobile-view/mobile-view.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +2 -2
- package/es2021/plugins/page-break/page-break.min.js +3 -3
- package/es2021/plugins/paste-code/paste-code.css +2 -2
- package/es2021/plugins/paste-code/paste-code.js +2 -2
- package/es2021/plugins/paste-code/paste-code.min.css +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +3 -3
- 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 +2 -2
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +2 -2
- package/es2021/plugins/style/style.min.js +2 -2
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +2 -2
- package/es2021/plugins/templates/templates.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +2 -2
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +3 -3
- package/es2021/plugins/translate/translate.min.js +4 -4
- 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 +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +23 -23
- package/es2021.en/jodit.js +83 -83
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +17 -17
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
- 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 +2 -2
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +2 -2
- package/es2021.en/plugins/button-generator/button-generator.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.min.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +2 -2
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- 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 +2 -2
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +4 -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 +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +7 -7
- package/es2021.en/plugins/keyboard/keyboard.min.js +3 -3
- package/es2021.en/plugins/mobile-view/mobile-view.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +2 -2
- package/es2021.en/plugins/page-break/page-break.min.js +3 -3
- package/es2021.en/plugins/paste-code/paste-code.css +2 -2
- package/es2021.en/plugins/paste-code/paste-code.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.min.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +3 -3
- 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 +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +4 -4
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +2 -2
- package/es2021.en/plugins/style/style.min.js +2 -2
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +2 -2
- package/es2021.en/plugins/templates/templates.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +3 -3
- package/es2021.en/plugins/translate/translate.min.js +4 -4
- 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 +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +83 -83
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +50 -45
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- 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 +2 -2
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +2 -2
- package/es5/plugins/button-generator/button-generator.js +2 -2
- package/es5/plugins/button-generator/button-generator.min.css +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +2 -2
- package/es5/plugins/change-case/change-case.min.js +2 -2
- 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 +2 -2
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +2 -2
- 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 -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 +2 -2
- 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 +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +7 -7
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +2 -2
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +2 -2
- package/es5/plugins/paste-code/paste-code.js +2 -2
- package/es5/plugins/paste-code/paste-code.min.css +1 -1
- 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 +2 -2
- 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 +2 -2
- package/es5/plugins/style/style.min.js +2 -2
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +2 -2
- package/es5/plugins/templates/templates.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +2 -2
- 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 +3 -3
- 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 +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/config.js +1 -1
- package/esm/plugins/ai-assistant-pro/core/conversation.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/core/conversation.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/add-context.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/ai-commands.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/chevron-right.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/send.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/shield.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/icons/tool-bolt.svg.js +1 -1
- package/esm/plugins/ai-assistant-pro/voice/voice-input-button.js +1 -1
- package/esm/plugins/backup/assets/restore.svg.js +1 -1
- package/esm/plugins/button-generator/assets/check.svg.js +1 -1
- package/esm/plugins/button-generator/icon.svg.js +1 -1
- package/esm/plugins/change-case/icon.svg.js +1 -1
- package/esm/plugins/emoji/emoji.svg.js +1 -1
- package/esm/plugins/export-docs/assets/export.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -1
- package/esm/plugins/iframe-editor/icon.svg.js +1 -1
- package/esm/plugins/keyboard/icon.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -1
- package/esm/plugins/mobile-view/icon.svg.js +1 -1
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -1
- package/esm/plugins/paste-code/icon.svg.js +1 -1
- package/esm/plugins/paste-code/ui/code-tuner/drag.svg.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -1
- package/esm/plugins/style/icon.svg.js +1 -1
- package/esm/plugins/templates/icon.svg.js +1 -1
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -1
- package/esm/plugins/translate/assets/swap.svg.js +1 -1
- package/esm/plugins/translate/assets/translate.svg.js +1 -1
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/conversation.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/icons/microphone.svg.js +0 -1
|
@@ -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.
|
|
4
|
+
* Version: v4.15.2
|
|
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([[782],{27222:function(e){e.exports='<svg
|
|
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([[782],{27222:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 5h4M12 18h0"/> </g> </svg>'},29606:function(e,t,o){"use strict";var i=o(27222),n=o.n(i),r=o(6441),d=o(29807),l=o(86583);r.Config.prototype.mobileView={mode:"default"};let a="buttonmobileSView",s="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:n(),command:"mobileView",isActive:e=>(0,l.dataBind)(e,s)&&"default"!==(0,l.dataBind)(e,s),isChildActive:(e,t)=>{var o,i;let n=null==(i=t.control)||null==(o=i.args)?void 0:o[0];return(0,d.isNumeric)(n)&&(n=Number(n)),((0,l.dataBind)(e,s)||"default")===n},exec:e=>!!(0,l.dataBind)(e,a)&&void e.execCommand("mobileView",!1,(0,l.dataBind)(e,a)),childExec:(e,t,{button:o})=>{var i,n;let r=null==(n=o.control)||null==(i=n.args)?void 0:i[0];e.execCommand("mobileView",!1,(0,d.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}},o.d(t,["dataBindCurrentKey",0,s,"dataBindStoredKey",0,a])},74398:function(e,t,o){"use strict";o.r(t);var i=o(82749),n=o(31635),r=o(29606),d=o(65478),l=o(43555),a=o(50911),s=o(2692);class u extends a.Plugin{className(){return"MobileView"}afterInit(e){e.registerCommand("mobileView",{exec:(t,o,i)=>{this.__currentMode===i&&(i="default"),this.__currentMode=i,(0,l.dataBind)(e,r.dataBindCurrentKey,i),"default"!==this.__currentMode&&(0,l.dataBind)(e,r.dataBindStoredKey,i),"default"===i?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}constructor(...e){super(...e),(0,i._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,i._)(this,"__currentMode","default")}}(0,i._)(u,"requires",["license"]),(0,n.__decorate)([(0,d.watch)(":beforeSetMode.mobileView")],u.prototype,"__beforeSetMode",null),u=(0,n.__decorate)([d.component],u),s.JoditPro.plugins.add("mobileView",u)}},function(e){return e(74398)}])});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.15.2
|
|
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
|
|
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 r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{17405:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M5 8V3h14v5M5 16v5h14v-5M2 12h3m4 0h3m4 0h3m3 0h0"/> </g> </svg>'},13109:function(e,t,r){"use strict";var o=r(17405),a=r.n(o),n=r(64889),i=r(6441);i.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:a(),command:"insertPageBreak"},i.Config.prototype.iframeStyle=`${i.Config.prototype.iframeStyle};${n.default.replace(/[\n\t]/g,"")}`},64889:function(e,t){"use strict";t.default=`[data-jodit-page-break] {
|
|
9
9
|
display: flex;
|
|
10
10
|
height: 24px;
|
|
11
11
|
box-sizing: border-box;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
|
|
23
23
|
[data-jodit-page-break]:active {
|
|
24
24
|
border-color: #818181;
|
|
25
|
-
}`},79850:function(e,t,
|
|
25
|
+
}`},79850:function(e,t,r){"use strict";r.r(t),r.d(t,{PageBreak:function(){return c}});var o=r(82749),a=r(31635);r(13109);var n=r(64889),i=r(65478),s=r(22732),d=r(21537),p=r(50911),l=r(2692);class c extends p.Plugin{className(){return"PageBreak"}afterInit(e){this.onChange(),e.registerCommand("insertPageBreak",()=>{let t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=new Set(["td","th","tr","tbody","thead","tfoot","caption","colgroup","table"]),o=t.parentNode;for(;o&&o!==e.editor&&(s.Dom.after(o,t),!s.Dom.isBlock(o)||s.Dom.isTag(o,r));)o=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){(0,d.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,d.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{s.Dom.isEmpty(e)&&!(0,d.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}constructor(...e){super(...e),(0,o._)(this,"styles",n.default),(0,o._)(this,"buttons",[{name:"pageBreak",group:"insert"}])}}(0,o._)(c,"requires",["license"]),(0,a.__decorate)([(0,i.watch)([":change",":afterSetMode"]),(0,i.debounce)()],c.prototype,"onChange",null),(0,a.__decorate)([(0,i.watch)(":afterGetValueFromEditor")],c.prototype,"onAfterGetValueFromEditor",null),l.JoditPro.plugins.add("pageBreak",c)}},function(e){return e(79850)}])});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.jodit-ui-code-tuner{left:0;position:fixed;top:0;z-index:10}.jodit-ui-code-tuner__anchor{background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%
|
|
1
|
+
.jodit-ui-code-tuner{left:0;position:fixed;top:0;z-index:10}.jodit-ui-code-tuner__anchor{background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20stroke-width%3D%223%22%20d%3D%22M8%204zm8%200zm-8%208zm8%200zm-8%208zm8%200z%22%2F%3E%3C%2Fsvg%3E");background-position:50%;background-repeat:no-repeat;background-size:11px;border:1px solid rgba(0,0,0,.12);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.15);cursor:grab;height:26px;opacity:.9;width:16px}.jodit-ui-code-tuner__anchor:hover{opacity:1}.jodit-ui-code-tuner__anchor:active{cursor:grabbing}.jodit-paste-code{display:flex;flex-direction:column;height:100%;justify-content:stretch;padding:16px}.jodit-paste-code__textarea{flex:1;height:100%;justify-content:stretch}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.15.2
|
|
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 i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(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,i){"use strict";var o=i(35960),s=i(75689),a=i.n(s),n=i(6441),r=i(22732),l=i(53326);n.Config.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},n.Config.prototype.controls.codeBlock={edit:{icon:"pencil",tooltip:"Edit code",exec:(e,t)=>{e.e.fire("editPreInPasteCode",t)}},copy:{icon:"copy",tooltip:"Copy code",exec:(e,t)=>{r.Dom.isTag(t,"pre")&&(0,o.copyCodeToClipboard)(e,t)}},remove:{icon:"bin",tooltip:"Delete",exec:(e,t)=>{r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("hideCodeTuner.pasteCode")}}},n.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,l.htmlspecialchars)(e)},isLangLoaded(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:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,i)=>`<pre class="language-${t}">${(0,l.htmlspecialchars)(i)}</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,i){"use strict";i.d(t,{copyCodeToClipboard:function(){return l},languageTitle:function(){return n},parseLanguage:function(){return a},setPreLanguage:function(){return r}});var o=i(22732);function s(e){return e.firstElementChild===e.lastElementChild&&o.Dom.isTag(e.firstElementChild,"code")?e.firstElementChild:e}function a(e,t){let i=null,o=e=>e.classList.forEach(e=>{let t=/^language-(.+)/.exec(e);t&&t[1]&&(i=t[1])});o(t);let a=s(t);return null==i&&a!==t&&o(a),e.o.pasteCode.canonicalLanguageCode(i||"html")}function n(e,t){let i=e.o.pasteCode.languages.find(e=>String(e.value)===t);return e.i18n(String(i?i.text:t))}function r(e,t,i){let o=e=>Array.from(e.classList).forEach(t=>{/^language-/.test(t)&&e.classList.remove(t)});o(t);let a=s(t);a!==t&&o(a),a.classList.add(`language-${i}`),e.e.fire("rehighlightPasteCode",t),e.e.fire("synchro")}function l(e,t){let i=t.innerText,{navigator:s}=e.ow;if(s&&s.clipboard&&s.clipboard.writeText)s.clipboard.writeText(i).catch(()=>null);else{let t=e.create.element("textarea");t.value=i,t.style.position="fixed",t.style.opacity="0",e.od.body.appendChild(t),t.select();try{e.od.execCommand("copy")}catch(e){}o.Dom.safeRemove(t)}e.e.fire("afterCopyCode.pasteCode",i)}},41406:function(e,t,i){"use strict";i.r(t),i.d(t,{pasteCode:function(){return m}});var o=i(82749),s=i(31635);i(83967);var a=i(24397),n=i(35960),r=i(82758),l=i(65478),c=i(21537),h=i(87612),d=i(53326),u=i(50911),p=i(67510),g=i(41409),_=i(2692);class m extends u.Plugin{className(){return"pasteCode"}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),this.__codeTuner=new a.UICodeTuner(e),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){let o=this.j,s=this.__createForm(),{code:a,language:n}=(0,c.refs)(s.container);e&&(n.value=e),t&&(a.value=t),o.async.requestIdleCallback(()=>{a.focus()}),o.s.save(),this.__createDialog(()=>{if(s.validate()){o.s.restore();let e=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,n.value,a.value));if(i)g.Dom.replace(i,e,o.createInside,!1,!0);else{let t=o.s.current(),i=g.Dom.up(t,g.Dom.isBlock,o.editor);i&&!g.Dom.isCell(i)?g.Dom.after(i,e):o.s.insertNode(e)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(s.container).open(!0)}beforeDestruct(e){var t;null==(t=this.__codeTuner)||t.destruct()}onRehighlightPasteCode(e){g.Dom.isTag(e,"pre")&&((0,c.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))}__createForm(){let{jodit:e}=this;return new p.UIForm(e,[new p.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new p.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){let i=new g.Dialog({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,p.Button)(i,"","Cancel","default").onAction(()=>{i.close(),t()}),(0,p.Button)(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,c.$$)("pre",this.j.editor).forEach(e=>{(0,c.attr)(e,"contenteditable")||((0,c.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){let t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t),o=e;e.firstElementChild===e.lastElementChild&&g.Dom.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){let t=g.Dom.isNode(e)&&g.Dom.isTag(e,"pre")?e:g.Dom.closest(e.target,"pre",this.j.editor);if(t){let e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){return(0,n.parseLanguage)(this.jodit,e)}onAfterGetValueFromEditor(e){let t=(e,t,i,o,s,a)=>`${t.trim()}${o}${(0,d.htmlspecialchars)((0,c.stripTags)(s,this.j.ed,new Set(["br"])))}${a}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,o._)(this,"__codeTuner",void 0),(0,o._)(this,"__highlightLibJSIsLoaded",!1),(0,o._)(this,"__loadLanguage",new Map),(0,o._)(this,"__initHighlightLibLoading",async e=>{let{globalHighlightLib:t,highlightLib:{css:i,js:o,langUrl:s,highlight:a,isLangLoaded:n,beforeLibLoad:l,afterLibLoad:d}}=this.j.o.pasteCode;return this.__highlightLibJSIsLoaded||t||(this.__highlightLibJSIsLoaded=Promise.resolve(null==l?void 0:l()).then(()=>f(this.async,Promise.allSettled([(0,c.loadNextStyle)(this.jodit,i).catch(()=>null),(0,c.loadNext)(this.jodit,o).catch(()=>null)]))).then(()=>null==d?void 0:d())),(0,h.isBoolean)(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,!e||n(e)||t||(this.__loadLanguage.has(e)||(r.IS_PROD,this.__loadLanguage.set(e,f(this.async,(0,c.appendScriptAsync)(this.jodit,s(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:a}})}}function f(e,t){return e.promise((e,i)=>{t.then(e).catch(i)}).catch(()=>null)}(0,o._)(m,"requires",["license"]),(0,s.__decorate)([l.autobind],m.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,l.watch)("?:rehighlightPasteCode")],m.prototype,"onRehighlightPasteCode",null),(0,s.__decorate)([(0,l.watch)(["?:change","?:afterInit"]),(0,l.debounce)()],m.prototype,"__onChange",null),(0,s.__decorate)([(0,l.watch)(["?:dblclick","?:editPreInPasteCode"])],m.prototype,"onPreEdit",null),(0,s.__decorate)([(0,l.watch)("?:afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),m=(0,s.__decorate)([l.component],m),_.JoditPro.plugins.add("paste-code",m)},24397:function(e,t,i){"use strict";i.d(t,{UICodeTuner:function(){return d}});var o=i(82749),s=i(31635),a=i(35960),n=i(65478),r=i(22732),l=i(21537),c=i(67510),h=i(21491);class d extends c.UIElement{className(){return"UICodeTuner"}render(){return`<div>
|
|
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 i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{75689:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/><path d="m9 11-3 3 3 3m6-6 3 3-3 3"/> </g> </svg>'},83967:function(e,t,i){"use strict";var o=i(35960),s=i(75689),a=i.n(s),n=i(6441),r=i(22732),l=i(53326);n.Config.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},n.Config.prototype.controls.codeBlock={edit:{icon:"pencil",tooltip:"Edit code",exec:(e,t)=>{e.e.fire("editPreInPasteCode",t)}},copy:{icon:"copy",tooltip:"Copy code",exec:(e,t)=>{r.Dom.isTag(t,"pre")&&(0,o.copyCodeToClipboard)(e,t)}},remove:{icon:"bin",tooltip:"Delete",exec:(e,t)=>{r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("hideCodeTuner.pasteCode")}}},n.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,l.htmlspecialchars)(e)},isLangLoaded(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:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,i)=>`<pre class="language-${t}">${(0,l.htmlspecialchars)(i)}</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,i){"use strict";i.d(t,{copyCodeToClipboard:function(){return l},languageTitle:function(){return n},parseLanguage:function(){return a},setPreLanguage:function(){return r}});var o=i(22732);function s(e){return e.firstElementChild===e.lastElementChild&&o.Dom.isTag(e.firstElementChild,"code")?e.firstElementChild:e}function a(e,t){let i=null,o=e=>e.classList.forEach(e=>{let t=/^language-(.+)/.exec(e);t&&t[1]&&(i=t[1])});o(t);let a=s(t);return null==i&&a!==t&&o(a),e.o.pasteCode.canonicalLanguageCode(i||"html")}function n(e,t){let i=e.o.pasteCode.languages.find(e=>String(e.value)===t);return e.i18n(String(i?i.text:t))}function r(e,t,i){let o=e=>Array.from(e.classList).forEach(t=>{/^language-/.test(t)&&e.classList.remove(t)});o(t);let a=s(t);a!==t&&o(a),a.classList.add(`language-${i}`),e.e.fire("rehighlightPasteCode",t),e.e.fire("synchro")}function l(e,t){let i=t.innerText,{navigator:s}=e.ow;if(s&&s.clipboard&&s.clipboard.writeText)s.clipboard.writeText(i).catch(()=>null);else{let t=e.create.element("textarea");t.value=i,t.style.position="fixed",t.style.opacity="0",e.od.body.appendChild(t),t.select();try{e.od.execCommand("copy")}catch(e){}o.Dom.safeRemove(t)}e.e.fire("afterCopyCode.pasteCode",i)}},41406:function(e,t,i){"use strict";i.r(t),i.d(t,{pasteCode:function(){return m}});var o=i(82749),s=i(31635);i(83967);var a=i(24397),n=i(35960),r=i(82758),l=i(65478),h=i(21537),c=i(87612),d=i(53326),u=i(50911),p=i(67510),g=i(41409),_=i(2692);class m extends u.Plugin{className(){return"pasteCode"}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),this.__codeTuner=new a.UICodeTuner(e),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){let o=this.j,s=this.__createForm(),{code:a,language:n}=(0,h.refs)(s.container);e&&(n.value=e),t&&(a.value=t),o.async.requestIdleCallback(()=>{a.focus()}),o.s.save(),this.__createDialog(()=>{if(s.validate()){o.s.restore();let e=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,n.value,a.value));if(i)g.Dom.replace(i,e,o.createInside,!1,!0);else{let t=o.s.current(),i=g.Dom.up(t,g.Dom.isBlock,o.editor);i&&!g.Dom.isCell(i)?g.Dom.after(i,e):o.s.insertNode(e)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(s.container).open(!0)}beforeDestruct(e){var t;null==(t=this.__codeTuner)||t.destruct()}onRehighlightPasteCode(e){g.Dom.isTag(e,"pre")&&((0,h.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))}__createForm(){let{jodit:e}=this;return new p.UIForm(e,[new p.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new p.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){let i=new g.Dialog({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,p.Button)(i,"","Cancel","default").onAction(()=>{i.close(),t()}),(0,p.Button)(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,h.$$)("pre",this.j.editor).forEach(e=>{(0,h.attr)(e,"contenteditable")||((0,h.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){let t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t),o=e;e.firstElementChild===e.lastElementChild&&g.Dom.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){let t=g.Dom.isNode(e)&&g.Dom.isTag(e,"pre")?e:g.Dom.closest(e.target,"pre",this.j.editor);if(t){let e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){return(0,n.parseLanguage)(this.jodit,e)}onAfterGetValueFromEditor(e){let t=(e,t,i,o,s,a)=>`${t.trim()}${o}${(0,d.htmlspecialchars)((0,h.stripTags)(s,this.j.ed,new Set(["br"])))}${a}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,o._)(this,"__codeTuner",void 0),(0,o._)(this,"__highlightLibJSIsLoaded",!1),(0,o._)(this,"__loadLanguage",new Map),(0,o._)(this,"__initHighlightLibLoading",async e=>{let{globalHighlightLib:t,highlightLib:{css:i,js:o,langUrl:s,highlight:a,isLangLoaded:n,beforeLibLoad:l,afterLibLoad:d}}=this.j.o.pasteCode;return this.__highlightLibJSIsLoaded||t||(this.__highlightLibJSIsLoaded=Promise.resolve(null==l?void 0:l()).then(()=>f(this.async,Promise.allSettled([(0,h.loadNextStyle)(this.jodit,i).catch(()=>null),(0,h.loadNext)(this.jodit,o).catch(()=>null)]))).then(()=>null==d?void 0:d())),(0,c.isBoolean)(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,!e||n(e)||t||(this.__loadLanguage.has(e)||(r.IS_PROD,this.__loadLanguage.set(e,f(this.async,(0,h.appendScriptAsync)(this.jodit,s(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:a}})}}function f(e,t){return e.promise((e,i)=>{t.then(e).catch(i)}).catch(()=>null)}(0,o._)(m,"requires",["license"]),(0,s.__decorate)([l.autobind],m.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,l.watch)("?:rehighlightPasteCode")],m.prototype,"onRehighlightPasteCode",null),(0,s.__decorate)([(0,l.watch)(["?:change","?:afterInit"]),(0,l.debounce)()],m.prototype,"__onChange",null),(0,s.__decorate)([(0,l.watch)(["?:dblclick","?:editPreInPasteCode"])],m.prototype,"onPreEdit",null),(0,s.__decorate)([(0,l.watch)("?:afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),m=(0,s.__decorate)([l.component],m),_.JoditPro.plugins.add("paste-code",m)},24397:function(e,t,i){"use strict";i.d(t,{UICodeTuner:function(){return d}});var o=i(82749),s=i(31635),a=i(35960),n=i(65478),r=i(22732),l=i(21537),h=i(67510),c=i(21491);class d extends h.UIElement{className(){return"UICodeTuner"}render(){return`<div>
|
|
9
9
|
<div class="&__anchor" title="~Drag to move the code block~"></div>
|
|
10
|
-
</div>`}onEditorMouseMove(e){let t=r.Dom.closest(e.target,"pre",this.j.editor);t&&(this.__cancelHide(),this.show(t))}onEditorClick(e){let t=r.Dom.closest(e.target,"pre",this.j.editor);t?(this.__cancelHide(),this.show(t),this.openToolbar()):this.forceHide()}show(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()}hide(){this.popup.isOpened||this.forceHide()}onOutsideClick(e){e&&r.Dom.isOrContains(this.container,e.target)||this.forceHide()}forceHide(){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(),r.Dom.safeRemove(this.container))}__onPointerMove(e){this.isShown&&!this.popup.isOpened&&(this.__inActiveZone(e.clientX,e.clientY)?this.__cancelHide():this.__scheduleHide())}__inActiveZone(e,t){let i=(0,l.position)(this.currentBlock,this.j);return e>=i.left-16-6-6&&e<=i.left+i.width&&t>=i.top-6&&t<=i.top+i.height+6}__scheduleHide(){this.__hideTimer||(this.__hideTimer=this.j.async.setTimeout(()=>{this.__hideTimer=0,this.hide()},150))}__cancelHide(){this.__hideTimer&&(this.j.async.clearTimeout(this.__hideTimer),this.__hideTimer=0)}__onReposition(){if(this.isShown){if(!this.j.editor.contains(this.currentBlock))return void this.forceHide();this.calcPosition()}}onEditorChange(){this.__onReposition()}calcPosition(){let e=(0,l.position)(this.currentBlock,this.j);(0,l.css)(this.container,{left:Math.round(e.left-16-6),top:Math.round(e.top+4)}),this.popup.isOpened&&this.popup.updatePosition()}openToolbar(){this.toolbar.build([this.__languageControl(),...this.j.o.pasteCode.popup],this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened?this.popup.updatePosition():this.popup.open(()=>(0,l.position)(this.currentBlock,this.j))}__languageControl(){let e={};return this.j.o.pasteCode.languages.forEach(t=>{e[String(t.value)]=String(t.text)}),{name:"language",list:e,tooltip:"Language",text:(0,a.languageTitle)(this.j,(0,a.parseLanguage)(this.j,this.currentBlock)),childTemplate:(e,t,i)=>this.j.i18n(i),update:(e,t)=>{let i=t.target;r.Dom.isTag(i,"pre")&&t.setState({text:(0,a.languageTitle)(this.j,(0,a.parseLanguage)(this.j,i)),icon:{name:""}})},childExec:(e,t,{control:i})=>{let o=String(i.args&&i.args[0]||"plaintext");r.Dom.isTag(t,"pre")&&((0,a.setPreLanguage)(this.j,t,o),this.j.e.fire("hideCodeTuner.pasteCode"))}}}onAnchorMouseDown(e){e.preventDefault(),this.popup.close(),this.j.e.fire("startDragElement",this.currentBlock,e)}destruct(){this.forceHide(),this.popup.destruct(),super.destruct()}constructor(...e){super(...e),(0,o._)(this,"toolbar",(0,
|
|
10
|
+
</div>`}onEditorMouseMove(e){let t=r.Dom.closest(e.target,"pre",this.j.editor);t&&(this.__cancelHide(),this.show(t))}onEditorClick(e){let t=r.Dom.closest(e.target,"pre",this.j.editor);t?(this.__cancelHide(),this.show(t),this.openToolbar()):this.forceHide()}show(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()}hide(){this.popup.isOpened||this.forceHide()}onOutsideClick(e){e&&r.Dom.isOrContains(this.container,e.target)||this.forceHide()}forceHide(){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(),r.Dom.safeRemove(this.container))}__onPointerMove(e){this.isShown&&!this.popup.isOpened&&(this.__inActiveZone(e.clientX,e.clientY)?this.__cancelHide():this.__scheduleHide())}__inActiveZone(e,t){let i=(0,l.position)(this.currentBlock,this.j);return e>=i.left-16-6-6&&e<=i.left+i.width&&t>=i.top-6&&t<=i.top+i.height+6}__scheduleHide(){this.__hideTimer||(this.__hideTimer=this.j.async.setTimeout(()=>{this.__hideTimer=0,this.hide()},150))}__cancelHide(){this.__hideTimer&&(this.j.async.clearTimeout(this.__hideTimer),this.__hideTimer=0)}__onReposition(){if(this.isShown){if(!this.j.editor.contains(this.currentBlock))return void this.forceHide();this.calcPosition()}}onEditorChange(){this.__onReposition()}calcPosition(){let e=(0,l.position)(this.currentBlock,this.j);(0,l.css)(this.container,{left:Math.round(e.left-16-6),top:Math.round(e.top+4)}),this.popup.isOpened&&this.popup.updatePosition()}openToolbar(){this.toolbar.build([this.__languageControl(),...this.j.o.pasteCode.popup],this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened?this.popup.updatePosition():this.popup.open(()=>(0,l.position)(this.currentBlock,this.j))}__languageControl(){let e={};return this.j.o.pasteCode.languages.forEach(t=>{e[String(t.value)]=String(t.text)}),{name:"language",list:e,tooltip:"Language",text:(0,a.languageTitle)(this.j,(0,a.parseLanguage)(this.j,this.currentBlock)),childTemplate:(e,t,i)=>this.j.i18n(i),update:(e,t)=>{let i=t.target;r.Dom.isTag(i,"pre")&&t.setState({text:(0,a.languageTitle)(this.j,(0,a.parseLanguage)(this.j,i)),icon:{name:""}})},childExec:(e,t,{control:i})=>{let o=String(i.args&&i.args[0]||"plaintext");r.Dom.isTag(t,"pre")&&((0,a.setPreLanguage)(this.j,t,o),this.j.e.fire("hideCodeTuner.pasteCode"))}}}onAnchorMouseDown(e){e.preventDefault(),this.popup.close(),this.j.e.fire("startDragElement",this.currentBlock,e)}destruct(){this.forceHide(),this.popup.destruct(),super.destruct()}constructor(...e){super(...e),(0,o._)(this,"toolbar",(0,c.makeCollection)(this.j,this)),(0,o._)(this,"popup",new h.Popup(this.j,!1)),(0,o._)(this,"isShown",!1),(0,o._)(this,"__hideTimer",0),(0,o._)(this,"currentBlock",void 0)}}(0,s.__decorate)([(0,n.watch)("j.editor:mousemove"),(0,n.throttle)(50)],d.prototype,"onEditorMouseMove",null),(0,s.__decorate)([(0,n.watch)("j.editor:click")],d.prototype,"onEditorClick",null),(0,s.__decorate)([(0,n.watch)(":outsideClick")],d.prototype,"onOutsideClick",null),(0,s.__decorate)([(0,n.watch)(":hideCodeTuner.pasteCode")],d.prototype,"forceHide",null),(0,s.__decorate)([n.autobind],d.prototype,"__onPointerMove",null),(0,s.__decorate)([n.autobind],d.prototype,"__onReposition",null),(0,s.__decorate)([(0,n.watch)(":change :resize :afterSetMode"),(0,n.throttle)(10)],d.prototype,"onEditorChange",null),(0,s.__decorate)([(0,n.watch)("anchor:mousedown")],d.prototype,"onAnchorMouseDown",null),d=(0,s.__decorate)([n.component],d)}},function(e){return e(41406)}])});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.15.2
|
|
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 e=t();for(var n in e)("object"==typeof exports?exports:o)[n]=e[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg
|
|
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 e=t();for(var n in e)("object"==typeof exports?exports:o)[n]=e[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7V3h4m4 0h3m4 0h3v4m0 4v3m0 4v3h-4m-4 0h-3m-4 0H3v-4m0-4v-3M7 8h10M7 12h10M7 16h6"/> </g> </svg>'},12324:function(o,t,e){"use strict";var n=e(6441);n.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"]},n.Config.prototype.controls.showBlocks={isActive(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,e){"use strict";e.r(t),e.d(t,{ar:function(){return n},cs_cz:function(){return s},de:function(){return r},es:function(){return i},fa:function(){return l},fr:function(){return c},he:function(){return u},hu:function(){return a},id:function(){return h},it:function(){return f},ja:function(){return d},ko:function(){return p},nl:function(){return k},pl:function(){return g},pt_br:function(){return b},ru:function(){return w},tr:function(){return B},zh_cn:function(){return m},zh_tw:function(){return x}});var n=e(7085),s=e(42350),r=e(53189),i=e(48154),l=e(59551),c=e(41858),u=e(78777),a=e(25321),h=e(27847),f=e(23287),d=e(73035),p=e(97028),k=e(26436),g=e(6602),b=e(86401),w=e(54023),B=e(8432),m=e(58366),x=e(46954)},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,e){"use strict";e.r(t),e.d(t,{showBlocks:function(){return p}});var n=e(82749),s=e(31635);e(12324);var r=e(45198),i=e(78879),l=e.n(i),c=e(65478),u=e(2748),a=e(580),h=e(50911),f=e(12153),d=e(2692);class p extends h.Plugin{get style(){return(0,a.getContainer)(this.jodit,p,"style",!0)}enable(){this.isEnabled=!0;let o=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:t,color:e}=this.j.o.showBlocks;this.style.innerHTML=t.map(t=>{var n;return`${o} ${t}{
|
|
9
9
|
outline: 1px dashed ${e};
|
|
10
10
|
background-image: url("${n='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+e+';font: 10px sans-serif" x="50px" y="0">'+t+"</text></svg>",`data:image/svg+xml;utf8,${escape(n)}`}");
|
|
11
11
|
background-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;
|
|
@@ -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.
|
|
4
|
+
* Version: v4.15.2
|
|
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 l in n)("object"==typeof exports?exports:e)[l]=n[l]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg"
|
|
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 l in n)("object"==typeof exports?exports:e)[l]=n[l]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 6h7m-7 4h4m-4 7h7m-7 4h4"/> </g> </svg>'},28609:function(e,t,n){"use strict";var l=n(69341),i=n(5440),o=n(78955),r=n.n(o),s=n(6441);s.Config.prototype.customStyles={definitions:[]},s.Config.prototype.controls.style={tooltip:"Styles",icon:r(),isDisabled(e){return!e.o.customStyles.definitions.length},isActive(e){let t=e.o.customStyles.definitions;return!!t.length&&null!=(0,l.detectActiveStyle)(e,t)},update(e,t){var n;let i=e.o.customStyles.definitions;if(!i.length)return;let o=(0,l.detectActiveStyle)(e,i),r=(null==(n=t.control)?void 0:n.component)==="select";(e.o.textIcons||r)&&(o?t.state.text=o.name:t.state.text=r?e.i18n("Styles"):"")},exec(){return!1},popup(e,t,n){let l=e.o.customStyles.definitions;if(!l.length)return!1;e.s.current()||e.s.focus(),e.s.save();let o=(0,i.buildStylePopup)(e,l,()=>{e.s.restore(),n()});return e.e.one("beforePopupClose",()=>{e.s.restore()}),o}}},31105:function(e,t,n){"use strict";n.d(t,{applyStyle:function(){return a}});var l=n(69341),i=n(82758),o=n(2748),r=n(29960),s=n(41180);function u(e,t){let n=e.s.current();if(!n)return null;if(i.IS_BLOCK.test(t.element))return o.Dom.closest(n,o.Dom.isBlock,e.editor);let l=o.Dom.isElement(n)?n:n.parentNode;for(;l&&l!==e.editor;){if(o.Dom.isElement(l)&&l.nodeName.toLowerCase()===t.element)return l;l=l.parentNode}return null}function c(e,t){for(let n of t)e.classList.remove(n);""===e.className&&e.removeAttribute("class")}function f(e){var t;if(e.attributes)return{element:e.element,attributes:e.attributes};let n=null==(t=e.classes)?void 0:t.filter(Boolean)[0];return n?{element:e.element,attributes:{class:n}}:{element:e.element}}function a(e,t,n){let a=(0,l.detectActiveStyle)(e,n),d=i.IS_BLOCK.test(t.element);if(d&&function(e){let t=e.s.current();if(!t)return;let n=o.Dom.closest(t,o.Dom.isBlock,e.editor);o.Dom.isTag(n,"pre")&&"false"===(0,r.attr)(n,"contenteditable")&&(0,r.attr)(n,"contenteditable",null)}(e),a&&i.IS_BLOCK.test(a.element)===d){if(d&&a!==t)!function(e,t){var n;let l=e.s.current();if(!l)return;let i=o.Dom.closest(l,o.Dom.isBlock,e.editor);if(!i||i.nodeName.toLowerCase()!==t.element)return;let u=null==(n=t.classes)?void 0:n.filter(Boolean);if((null==u?void 0:u.length)&&c(i,u),t.attributes){for(let[e,n]of Object.entries(t.attributes))if(null!=n)if("class"===e&&"string"==typeof n)c(i,n.split(/\s+/));else if("style"===e&&"object"==typeof n)for(let e of Object.keys(n))(0,s.css)(i,e,null);else(0,r.attr)(i,e)===String(n)&&(0,r.attr)(i,e,null)}}(e,a);else if(e.s.commitStyle(f(a)),a.attributes||function(e,t){var n;let l=null==(n=t.classes)?void 0:n.filter(Boolean);if(!l||l.length<=1)return;let r=e.s.current();if(r)if(i.IS_BLOCK.test(t.element)){let t=o.Dom.closest(r,o.Dom.isBlock,e.editor);t&&c(t,l.slice(1))}else{let n=u(e,t);n&&(c(n,l.slice(1)),"span"!==n.nodeName.toLowerCase()||n.attributes.length||o.Dom.unwrap(n))}}(e,a),a===t)return}e.s.commitStyle(f(t)),t.attributes||function(e,t){var n;let l=null==(n=t.classes)?void 0:n.filter(Boolean);if(!l||l.length<=1)return;let i=u(e,t);if(i)for(let e=1;e<l.length;e++)i.classList.add(l[e])}(e,t)}},8060:function(e,t,n){"use strict";n.d(t,{classifyDefinitions:function(){return i}});var l=n(82758);function i(e){let t=[],n=[];for(let i of e)l.IS_BLOCK.test(i.element)?t.push(i):n.push(i);let i=[];return t.length&&i.push({title:"Block styles",definitions:t}),n.length&&i.push({title:"Text styles",definitions:n}),i}},69341:function(e,t,n){"use strict";n.d(t,{detectActiveStyle:function(){return u}});var l=n(82758),i=n(2748),o=n(29960),r=n(41180);function s(e,t){var n;if(e.nodeName.toLowerCase()!==t.element)return!1;if(t.attributes){for(let[n,l]of Object.entries(t.attributes))if(null!=l){if("class"===n){if("string"==typeof l&&!e.classList.contains(l))return!1}else if("style"===n){if("object"==typeof l&&null!=l){for(let[t,n]of Object.entries(l))if(null!=n&&(0,r.css)(e,t,!0)!==String(n))return!1}}else if((0,o.attr)(e,n)!==String(l))return!1}return!0}let l=null==(n=t.classes)?void 0:n.filter(Boolean);return null==l||!l.length||l.every(t=>e.classList.contains(t))}function u(e,t){let n=e.s.current();if(!n)return null;for(let o of t)if(l.IS_BLOCK.test(o.element)){let t=i.Dom.closest(n,i.Dom.isBlock,e.editor);if(t&&s(t,o))return o}else{let t=i.Dom.isElement(n)?n:n.parentNode;for(;t&&t!==e.editor;){if(i.Dom.isElement(t)&&s(t,o))return o;t=t.parentNode}}return null}},75554:function(e,t,n){"use strict";n.r(t),n.d(t,{style:function(){return r}});var l=n(82749);n(28609);var i=n(50911),o=n(2692);class r extends i.Plugin{afterInit(e){}beforeDestruct(e){}constructor(...e){super(...e),(0,l._)(this,"buttons",[{name:"style",group:"font"}])}}(0,l._)(r,"requires",["license"]),o.JoditPro.plugins.add("style",r)},5440:function(e,t,n){"use strict";n.d(t,{buildStylePopup:function(){return u}});var l=n(31105),i=n(8060),o=n(69341),r=n(29960);let s="jodit-style-popup";function u(e,t,n){let u=(0,i.classifyDefinitions)(t),c=(0,o.detectActiveStyle)(e,t),f=e.c.div(s);for(let i of u){let o=e.c.div(`${s}__group-title`);o.textContent=e.i18n(i.title),f.appendChild(o);let u=e.c.div(`${s}__grid`);for(let o of i.definitions){let i=e.c.element("button");i.type="button",i.className=`${s}__card`+(c===o?` ${s}__card_active_true`:"");let f=e.c.div(`${s}__card-preview`),p=e.c.element(o.element);if(o.attributes)(0,r.attr)(p,o.attributes);else{var a,d;for(let e of null!=(a=null==(d=o.classes)?void 0:d.filter(Boolean))?a:[])p.classList.add(e)}p.textContent=o.name,f.appendChild(p),i.appendChild(f);let m=e.c.div(`${s}__card-label`);m.textContent=o.name,i.appendChild(m),e.e.on(i,"click",()=>{e.s.focus(),(0,l.applyStyle)(e,o,t),e.synchronizeValues(),n()}),u.appendChild(i)}f.appendChild(u)}return f}}},function(e){return e(75554)}])});
|
|
@@ -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.
|
|
4
|
+
* Version: v4.15.2
|
|
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
|
|
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([[945],{18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M10 9v12M14 13h3m-3 4h3"/> </g> </svg>'},58475:function(e,t,n){"use strict";var o=n(54296),i=n(18993),r=n.n(i),s=n(6441);s.Config.prototype.contentTemplates={definitions:[]},s.Config.prototype.controls.templates={tooltip:"Templates",icon:r(),isDisabled(e){return!e.o.contentTemplates.definitions.length},exec(){return!1},popup(e,t,n){let i=e.o.contentTemplates.definitions;if(!i.length)return!1;e.s.current()||e.s.focus(),e.s.save();let r=(0,o.buildTemplatesPopup)(e,i,()=>{e.s.restore(),n()});return e.e.one("beforePopupClose",()=>{e.s.restore()}),r}}},61886:function(e,t,n){"use strict";n.r(t),n.d(t,{templates:function(){return s}});var o=n(82749);n(58475);var i=n(50911),r=n(2692);class s extends i.Plugin{afterInit(e){}beforeDestruct(e){}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"templates",group:"insert"}])}}(0,o._)(s,"requires",["license"]),r.JoditPro.plugins.add("templates",s)},54296:function(e,t,n){"use strict";n.d(t,{buildTemplatesPopup:function(){return i}});let o="jodit-templates-popup";function i(e,t,n){let i=e.c.div(o);for(let r of t){let t=e.c.element("button");t.type="button",t.className=`${o}__card`;let s=e.c.div(`${o}__card-preview`);if(r.image){let t=e.c.element("img");t.src=r.image,t.alt=r.title,s.appendChild(t)}else{let t=e.c.div(`${o}__card-preview-inner`);t.innerHTML=r.html,s.appendChild(t)}t.appendChild(s);let l=e.c.div(`${o}__card-info`),p=e.c.div(`${o}__card-title`);p.textContent=r.title,l.appendChild(p);let c=e.c.div(`${o}__card-description`);c.textContent=r.description,l.appendChild(c),t.appendChild(l),e.e.on(t,"click",()=>{e.s.focus(),e.s.insertHTML(r.html),e.synchronizeValues(),n()}),i.appendChild(t)}return i}}},function(e){return e(61886)}])});
|
|
@@ -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.
|
|
4
|
+
* Version: v4.15.2
|
|
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
|
|
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 s in o)("object"==typeof exports?exports:e)[s]=o[s]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[502],{11373:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 6 2 2 3-4M12 6h9m-18 7 2 2 3-4m4 2h9M3 20h4m5 0h9"/> </g> </svg>'},64839:function(e,t,o){"use strict";var s=o(11373),i=o.n(s),r=o(6441),a=o(2748),l=o(12153);r.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:e=>e.createInside.element("input",{type:"checkbox",tabindex:-1})},r.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(e){let t=e.s.current();return!!(t&&a.Dom.closest(t,e=>a.Dom.isElement(e)&&a.Dom.isTag(e,"ul")&&e.classList.contains("todo-list"),e.editor))}},l.Icon.set("todo-list",i())},19374:function(e,t,o){"use strict";o.r(t),o.d(t,{TodoList:function(){return _}});var s=o(82749),i=o(31635);o(64839);var r=o(82758),a=o(65478),l=o(2748),n=o(43555),c=o(50911),p=o(59242),d=o(2692);class _ extends c.Plugin{afterInit(e){e.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(e){let{jodit:t}=this,{labelClassName:o,inputFactory:s}=this.j.o.todoList;if(e.querySelector("label."+o))return;1===e.children.length&&l.Dom.isTag(e.firstElementChild,"p")&&l.Dom.unwrap(e.firstElementChild);let i=t.createInside.element("label",{contenteditable:"false",class:o}),r=s(t);i.appendChild(r),l.Dom.prepend(e,i)}__afterToggleList(e,t){return(e===p.CHANGE||e===p.REPLACE)&&this.__isOwnCommand?this.__appendInputs(t):e===p.UNWRAP||e===p.REPLACE||e===p.CHANGE?this.__removeInputs(t):void 0}__appendInputs(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(e){let{labelClassName:t}=this.j.o.todoList;e.querySelectorAll("label."+t).forEach(l.Dom.safeRemove)}__beforeToggleOrderedList(e,t,o){var s;let i="__beforeToggleOrderedList";if(e!==p.REPLACE&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,i))&&("ul"===o.element||"ol"===o.element)&&(null==(s=o.options.attributes)?void 0:s.class)!==this.j.o.todoList.className){let e=l.Dom.replace(t,o.element,this.jodit.createInside);return o.setApplied(e,i),this.__removeInputs(e),e}}__afterEnter(){(0,n.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){(0,n.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(l.Dom.safeRemove)}__changeSelection(e){let t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}__isEmptyListLeaf(e){return l.Dom.isEmpty(e,e=>!("input"===e.nodeName.toLowerCase()&&this.isTodoLeafLabel(e.parentElement))&&r.NO_EMPTY_TAGS.has(e.tagName.toLowerCase()))}__backSpaceBeforeCases(e,t){if(e){let e=l.Dom.findNotEmptySibling(t,!0);this.isTodoLeafLabel(e)&&l.Dom.safeRemove(e)}}__isInvisibleForCursor(e){if(this.isTodoLeafLabel(e))return!0}__backSpaceAfterDelete(){let{labelClassName:e}=this.j.o.todoList;(0,n.$$)("label."+e,this.jodit.editor).forEach(e=>{e.closest("ul."+this.j.o.todoList.className)?e.previousSibling&&e.parentElement&&l.Dom.prepend(e.parentElement,e):l.Dom.safeRemove(e)})}__afterWrapList(e,t){e===p.WRAP&&this.__appendInputs(t)}__onClickInput(e){let t=e.target;t&&l.Dom.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&(0,n.attr)(t,"checked",t.checked?"checked":null)}isTodoLeafLabel(e){let{labelClassName:t}=this.j.o.todoList;return l.Dom.isHTMLElement(e)&&e.classList.contains(t)}beforeDestruct(e){}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"todoList",group:"list"}]),(0,s._)(this,"__isOwnCommand",!1)}}(0,s._)(_,"requires",["license"]),(0,i.__decorate)([a.autobind],_.prototype,"onCommand",null),(0,i.__decorate)([a.autobind],_.prototype,"__prependInputLabel",null),(0,i.__decorate)([(0,a.watch)(":commitStyleAfterToggleList")],_.prototype,"__afterToggleList",null),(0,i.__decorate)([(0,a.watch)(":commitStyleBeforeUnwrapList")],_.prototype,"__beforeToggleOrderedList",null),(0,i.__decorate)([(0,a.watch)(":afterEnter")],_.prototype,"__afterEnter",null),(0,i.__decorate)([(0,a.watch)(":afterTab")],_.prototype,"__afterTab",null),(0,i.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.watch)(":afterEnter")],_.prototype,"__changeSelection",null),(0,i.__decorate)([(0,a.watch)(":enterIsEmptyListLeaf")],_.prototype,"__isEmptyListLeaf",null),(0,i.__decorate)([(0,a.watch)(":backSpaceBeforeCases")],_.prototype,"__backSpaceBeforeCases",null),(0,i.__decorate)([(0,a.watch)(":backSpaceIsMovedIgnore"),(0,a.watch)(":isInvisibleForCursor")],_.prototype,"__isInvisibleForCursor",null),(0,i.__decorate)([(0,a.watch)(":backSpaceAfterDelete")],_.prototype,"__backSpaceAfterDelete",null),(0,i.__decorate)([a.autobind],_.prototype,"__afterWrapList",null),(0,i.__decorate)([(0,a.watch)(":click")],_.prototype,"__onClickInput",null),(0,i.__decorate)([a.autobind],_.prototype,"isTodoLeafLabel",null),d.JoditPro.plugins.add("todo-list",_)}},function(e){return e(19374)}])});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.15.2
|
|
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 a=e();for(var
|
|
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 a=e();for(var n in a)("object"==typeof exports?exports:t)[n]=a[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{74922:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4"/> </g> </svg>'},34575:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 5h11M8 3v2m4 0c-1 6-4 10-9 12M5 8c1 3 3 5 6 7m2 7 4-11 4 11m-6-4h4"/> </g> </svg>'},20104:function(t,e,a){"use strict";var n=a(74922),s=a.n(n),i=a(34575),o=a.n(i),r=a(6441),l=a(12153);r.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},r.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.Icon.set("translate",o()).set("translate-swap",s())},50090:function(t,e,a){"use strict";a.d(e,{CloudTranslateProvider:function(){return r}});var n=a(82749),s=a(82758),i=a(38837),o=a(80942);class r{__fetch(t,e={}){let a=this.jodit.o.translate.cloudProviderOptions;return(0,i.assert)(a,"Set cloudProviderOptions"),this.jodit.fetch(a.url+t+"?key="+a.key,{method:"POST",data:e,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){s.IS_PROD}})}translate(t,e,a){let n={text:t,targetLanguageCode:a};return e&&(n.sourceLanguageCode=e),this.__fetch("/v1/translate",n).then(t=>({text:t.text}))}supportedLanguages(){return Promise.resolve({langs:o.languages})}constructor(t){(0,n._)(this,"jodit",void 0),this.jodit=t}}},27834:function(t,e,a){"use strict";a.d(e,{GoogleTranslateProvider:function(){return r}});var n=a(82749),s=a(82758),i=a(38837),o=a(80942);class r{__fetch(t,e={}){let a=this.jodit.o.translate.googleProviderOptions;return(0,i.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:{...e,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){s.IS_PROD}})}translate(t,e,a){let n={q:t,target:a,format:"html"};return e&&(n.source=e),this.__fetch("translate",n).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:o.languages})}constructor(t){(0,n._)(this,"jodit",void 0),this.jodit=t}}},80942:function(t,e,a){"use strict";a.d(e,["languages",0,{"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}])},73534:function(t,e,a){"use strict";a.d(e,{getSelectionFragments:function(){return s}});var n=a(2748);function s(t){let e=[],a=t.s.expandSelection().sel;if(!a||0===a.rangeCount||a.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();let s=t.s.range,{commonAncestorContainer:l,startContainer:c,endContainer:u,startOffset:h,endOffset:d}=s;if(c===u){if(n.Dom.isText(c))return[o(c,h,d)];if(d-h==1){let t=c.childNodes[h];return n.Dom.isText(t)?[o(t,0,t.nodeValue.length)]:[r(t)]}if(0===h&&c.childNodes.length===d)return[r(c)];for(let t=h;t<d;t++){let a=c.childNodes[t];n.Dom.isText(a)?e.push(o(a,0,a.nodeValue.length)):e.push(r(a))}return e}let g=new Set,p=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:t=>!s.intersectsNode(t)||n.Dom.closest(t,t=>t&&g.has(t),l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),m=p.nextNode();for(;m;){if(n.Dom.isElement(m)&&i(s,m))g.add(m),e.push(r(m));else if(n.Dom.isText(m)&&i(s,m))e.push(o(m,0,m.nodeValue.length));else if(n.Dom.isText(m)){let t=0,a=m.nodeValue.length;m===c&&(t=h),m===u&&(a=d),e.push(o(m,t,a))}m=p.nextNode()}return e}let i=(t,e)=>{let a=document.createRange();try{a.selectNodeContents(e)}catch(t){a.selectNode(e)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,a)&&t.compareBoundaryPoints(Range.END_TO_END,a)>=0};function o(t,e,a){return{text:t.nodeValue.slice(e,a),replace:n=>{t.nodeValue=t.nodeValue.slice(0,e)+n+t.nodeValue.slice(a)}}}function r(t){return{text:t.innerHTML,replace:e=>{t.innerHTML=e}}}},73098:function(t,e,a){"use strict";a.r(e),a.d(e,{Translate:function(){return _}});var n=a(82749),s=a(31635);a(20104);var i=a(50090),o=a(27834),r=a(33124),l=a(73534),c=a(65478),u=a(23282),h=a(70799),d=a(38837),g=a(50911),p=a(10830),m=a(2692);class _ extends g.Plugin{__getProvider(){let{provider:t}=this.jodit.options.translate;if((0,h.isString)(t))switch(t){case"google":return new o.GoogleTranslateProvider(this.j);case"cloud":return new i.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,d.assert)((0,u.isFunction)(t),"Provider must be a function"),t(this.jodit)}afterInit(t){let e=this.__getProvider();t.registerCommand("translateOptions",{exec:async()=>{let a=this.state,n=t.dlg();n.setHeader("Translate options");let s=await e.supportedLanguages(),i="source"in s?s.source.langs:s.langs,o="target"in s?s.target.langs:s.langs,l=new r.UITranslateSettings(n,this.state,{sourceList:i,targetList:o,onChange(t){a=t}});n.setContent(l),n.setFooter([(0,p.Button)(t,"cancel","Cancel").onAction(()=>n.close()),(0,p.Button)(t,"ok","Save","primary").onAction(()=>{this.state=a,n.close()})]),l.bindDestruct(n),n.setSize(500,400).open(!0)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{let a=(0,l.getSelectionFragments)(t).filter(t=>t.text.trim().length>0);if(!a.length)return void t.message.error("Select text for translate");let n=this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:"",s=this.state.targetLang;return Promise.all(a.map(a=>{e.translate(a.text,n,s).then(t=>{a.replace(t.text)}).catch(e=>{t.message.error((0,h.isString)(e)?e:e.message)})})).then(()=>{t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}constructor(...t){super(...t),(0,n._)(this,"buttons",[{name:"translate.translate",group:"insert"}]),(0,n._)(this,"state",{sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang})}}(0,n._)(_,"requires",["license"]),(0,s.__decorate)([c.persistent],_.prototype,"state",void 0),m.JoditPro.plugins.add("translate",_)},67082:function(t,e,a){"use strict";a.d(e,{UITranslateList:function(){return d}});var n=a(82749),s=a(31635),i=a(82758),o=a(65478),r=a(2748),l=a(21537),c=a(29960),u=a(48538),h=a(80256);class d extends u.UIElement{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){let e=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(e=>({title:e,code:t.list[e]}))).forEach(t=>{let a=t.code;e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${a}'>
|
|
9
9
|
<span class='&__item-key'>${a}</span>
|
|
10
10
|
<span class='&__item-title'>${this.j.i18n(t.title)}</span>
|
|
11
11
|
</a>`)}),`<div class='&'>
|
|
12
12
|
<div class='&__input'></div>
|
|
13
13
|
<div class='&__list'>${e.join("")}</div>
|
|
14
|
-
</div>`}__onChangeFilter(t){this.items.forEach(e=>{var a,
|
|
14
|
+
</div>`}__onChangeFilter(t){this.items.forEach(e=>{var a,n;let s=null!=(a=null==(n=e.textContent)?void 0:n.toLowerCase())?a:"";(0,c.attr)(e,"data-hidden","true"!==(0,c.attr)(e,"data-active")&&!s.includes(t.toLowerCase()))})}__scrollToActive(){let t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,l.scrollIntoViewIfNeeded)(t,e,this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==i.KEY_ENTER)return;let e=t.target;if(r.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){let t=(0,c.attr)(e,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach(t=>(0,c.attr)(t,"data-active",(0,c.attr)(t,"data-lang")===this.state.active)),this.__scrollToActive()}constructor(t,e){var a;super(t,e),(0,n._)(this,"options",void 0),(0,n._)(this,"state",void 0),this.options=e,this.state={active:""},this.state.active=e.active;let s=new h.UIInput(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});null==(a=this.getElm("input"))||a.appendChild(s.container),this.__onActiveChange()}}(0,s.__decorate)([(0,o.debounce)()],d.prototype,"__onChangeFilter",null),(0,s.__decorate)([(0,o.watch)(":afterOpen")],d.prototype,"__scrollToActive",null),(0,s.__decorate)([(0,o.watch)(["container:click","container:keydown"])],d.prototype,"onClickItem",null),(0,s.__decorate)([(0,o.watch)("state.active"),(0,o.debounce)()],d.prototype,"__onActiveChange",null),d=(0,s.__decorate)([o.component],d)},33124:function(t,e,a){"use strict";a.d(e,{UITranslateSettings:function(){return l}});var n=a(82749),s=a(31635),i=a(65478),o=a(67510),r=a(67082);class l extends o.UIElement{className(){return"UITranslateSettings"}render(){return`<div>
|
|
15
15
|
<div class='&__list &__source-list'></div>
|
|
16
16
|
<div class='&__arrow'>
|
|
17
17
|
<a class='&__arrow-swap'>*translate-swap*</a>
|
|
18
18
|
</div>
|
|
19
19
|
<div class='&__list &__target-list'></div>
|
|
20
|
-
</div>`}__onSwap(){let t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}constructor(t,e,a){var
|
|
20
|
+
</div>`}__onSwap(){let t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}constructor(t,e,a){var s,i;super(t),(0,n._)(this,"state",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__sourceList",void 0),(0,n._)(this,"__targetList",void 0),this.state=e,this.options=a,this.__sourceList=new r.UITranslateList(t,{list:a.sourceList,active:e.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),null==(s=this.getElm("source-list"))||s.appendChild(this.__sourceList.container),this.__targetList=new r.UITranslateList(t,{list:a.targetList,active:e.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),null==(i=this.getElm("target-list"))||i.appendChild(this.__targetList.container)}}(0,s.__decorate)([(0,i.watch)("arrow-swap:click")],l.prototype,"__onSwap",null),l=(0,s.__decorate)([i.component],l)}},function(t){return t(73098)}])});
|