jodit-pro 4.18.9 → 4.18.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +127 -34
- package/es2015/jodit.min.js +7 -7
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +14 -7
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +26 -19
- package/es2015/plugins/button-generator/button-generator.min.js +3 -3
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/chart/chart.css +1 -1
- package/es2015/plugins/chart/chart.js +1 -1
- package/es2015/plugins/chart/chart.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/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 +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/math/math.css +1 -1
- package/es2015/plugins/math/math.js +1 -1
- package/es2015/plugins/math/math.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +15 -15
- package/es2018/jodit.min.js +7 -7
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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.js +3 -3
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/chart/chart.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/math/math.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +18 -18
- package/es2021/jodit.js +127 -34
- package/es2021/jodit.min.js +7 -7
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +14 -7
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +26 -19
- package/es2021/plugins/button-generator/button-generator.min.js +3 -3
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/chart/chart.css +1 -1
- package/es2021/plugins/chart/chart.js +1 -1
- package/es2021/plugins/chart/chart.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/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 +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/math/math.css +1 -1
- package/es2021/plugins/math/math.js +1 -1
- package/es2021/plugins/math/math.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +16 -16
- package/es2021.en/jodit.js +127 -34
- package/es2021.en/jodit.min.js +7 -7
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -26
- 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 +14 -7
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +26 -19
- package/es2021.en/plugins/button-generator/button-generator.min.js +3 -3
- 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/chart/chart.css +1 -1
- package/es2021.en/plugins/chart/chart.js +1 -1
- package/es2021.en/plugins/chart/chart.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/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 +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/math/math.css +1 -1
- package/es2021.en/plugins/math/math.js +1 -1
- package/es2021.en/plugins/math/math.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +131 -30
- 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 +19 -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 +14 -7
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +26 -19
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/chart/chart.css +1 -1
- package/es5/plugins/chart/chart.js +1 -1
- package/es5/plugins/chart/chart.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/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 +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/math/math.css +1 -1
- package/es5/plugins/math/math.js +1 -1
- package/es5/plugins/math/math.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 +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +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/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
- package/esm/plugins/ai-assistant-pro/core/panel-resize.js +1 -1
- package/esm/plugins/backup/ui/item.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.js +2 -2
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
package/es5/jodit.js
CHANGED
|
@@ -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.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2331,7 +2331,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2331
2331
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2332
2332
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2333
2333
|
}
|
|
2334
|
-
var APP_VERSION = "4.18.
|
|
2334
|
+
var APP_VERSION = "4.18.11";
|
|
2335
2335
|
// prettier-ignore
|
|
2336
2336
|
var ES = "es5";
|
|
2337
2337
|
var IS_ES_MODERN = false;
|
|
@@ -3139,6 +3139,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
3139
3139
|
*/ ;
|
|
3140
3140
|
|
|
3141
3141
|
var componentRegistry = new Map();
|
|
3142
|
+
var decoratedClasses = new WeakSet();
|
|
3143
|
+
var warnedClasses = new WeakSet();
|
|
3142
3144
|
/**
|
|
3143
3145
|
* Decorate components and set status isReady after constructor
|
|
3144
3146
|
* @param constructorFunction - Component constructor class
|
|
@@ -3162,11 +3164,18 @@ var componentRegistry = new Map();
|
|
|
3162
3164
|
Object.setPrototypeOf(_this, newConstructorFunction.prototype);
|
|
3163
3165
|
}
|
|
3164
3166
|
_this.setStatus('ready');
|
|
3167
|
+
} else if (!_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && !decoratedClasses.has(_this.constructor) && !warnedClasses.has(_this.constructor)) {
|
|
3168
|
+
// Only the outermost class's decorator sets `ready`, so a subclass
|
|
3169
|
+
// without its own decorator stays in `beforeInit`. See #1685
|
|
3170
|
+
warnedClasses.add(_this.constructor);
|
|
3171
|
+
console.warn('Component "'.concat(_this.constructor.name || (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(_this), '" extends a @component class without being decorated itself, so it never becomes ready and its @watch, @debounce, @throttle and @hook handlers never run'));
|
|
3165
3172
|
}
|
|
3166
3173
|
return _this;
|
|
3167
3174
|
}
|
|
3168
3175
|
return newConstructorFunction;
|
|
3169
3176
|
}(constructorFunction);
|
|
3177
|
+
decoratedClasses.add(constructorFunction);
|
|
3178
|
+
decoratedClasses.add(newConstructorFunction);
|
|
3170
3179
|
var name = (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
|
|
3171
3180
|
if (componentRegistry.has(name) && !_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
3172
3181
|
throw new Error('Component with name "'.concat(name, '" is already registered'));
|
|
@@ -24554,6 +24563,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
24554
24563
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24555
24564
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24556
24565
|
};
|
|
24566
|
+
var Popup_1;
|
|
24557
24567
|
|
|
24558
24568
|
|
|
24559
24569
|
|
|
@@ -24570,7 +24580,7 @@ var EVENTS_FOR_AUTOCLOSE = [
|
|
|
24570
24580
|
'backSpaceAfterDelete',
|
|
24571
24581
|
'beforeCommandDelete'
|
|
24572
24582
|
];
|
|
24573
|
-
var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
24583
|
+
var Popup = Popup_1 = /*#__PURE__*/ function(UIGroup) {
|
|
24574
24584
|
"use strict";
|
|
24575
24585
|
_inherits(Popup, UIGroup);
|
|
24576
24586
|
function Popup(jodit) {
|
|
@@ -24614,7 +24624,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
24614
24624
|
key: "updateParentElement",
|
|
24615
24625
|
value: function updateParentElement(target) {
|
|
24616
24626
|
var _this = this;
|
|
24617
|
-
if (target !== this && _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(target,
|
|
24627
|
+
if (target !== this && _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(target, Popup_1)) {
|
|
24618
24628
|
this.__childrenPopups.forEach(function(popup) {
|
|
24619
24629
|
if (!target.closest(popup) && popup.isOpened) {
|
|
24620
24630
|
popup.close();
|
|
@@ -24663,7 +24673,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
24663
24673
|
if (parentContainer) {
|
|
24664
24674
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append(parentContainer, this.container);
|
|
24665
24675
|
} else {
|
|
24666
|
-
var popupContainer = (0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.jodit,
|
|
24676
|
+
var popupContainer = (0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.jodit, Popup_1);
|
|
24667
24677
|
if (parentContainer !== this.container.parentElement) {
|
|
24668
24678
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append(popupContainer, this.container);
|
|
24669
24679
|
}
|
|
@@ -24799,11 +24809,11 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
24799
24809
|
};
|
|
24800
24810
|
var getMatchStrategy = function getMatchStrategy(inBox) {
|
|
24801
24811
|
var strategy;
|
|
24802
|
-
if (
|
|
24812
|
+
if (Popup_1.boxInView(getPointByStrategy(defaultStrategy), inBox)) {
|
|
24803
24813
|
strategy = defaultStrategy;
|
|
24804
24814
|
} else {
|
|
24805
24815
|
strategy = list.find(function(key) {
|
|
24806
|
-
if (
|
|
24816
|
+
if (Popup_1.boxInView(getPointByStrategy(key), inBox)) {
|
|
24807
24817
|
return key;
|
|
24808
24818
|
}
|
|
24809
24819
|
return;
|
|
@@ -24814,7 +24824,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
24814
24824
|
// Try to find match position inside Jodit.container
|
|
24815
24825
|
var strategy = getMatchStrategy((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(this.j.container, this.j));
|
|
24816
24826
|
// If not found or is not inside window view
|
|
24817
|
-
if (!strategy || !
|
|
24827
|
+
if (!strategy || !Popup_1.boxInView(getPointByStrategy(strategy), view)) {
|
|
24818
24828
|
// Find match strategy inside window view
|
|
24819
24829
|
strategy = getMatchStrategy(view) || strategy || defaultStrategy;
|
|
24820
24830
|
}
|
|
@@ -24869,7 +24879,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
24869
24879
|
if (!e.target) {
|
|
24870
24880
|
return false;
|
|
24871
24881
|
}
|
|
24872
|
-
var box = _element_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(e.target,
|
|
24882
|
+
var box = _element_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(e.target, Popup_1);
|
|
24873
24883
|
return Boolean(box && (this === box || box.closest(this)));
|
|
24874
24884
|
}
|
|
24875
24885
|
},
|
|
@@ -24952,6 +24962,10 @@ __decorate([
|
|
|
24952
24962
|
__decorate([
|
|
24953
24963
|
_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
24954
24964
|
], Popup.prototype, "__closeOnOutsideClick", null);
|
|
24965
|
+
Popup = Popup_1 = __decorate([
|
|
24966
|
+
_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.component
|
|
24967
|
+
], Popup);
|
|
24968
|
+
|
|
24955
24969
|
|
|
24956
24970
|
|
|
24957
24971
|
/***/ }),
|
|
@@ -26883,7 +26897,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26883
26897
|
commands.push(command);
|
|
26884
26898
|
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(command)) {
|
|
26885
26899
|
var hotkeys = this.o.commandToHotkeys[commandName] || this.o.commandToHotkeys[commandNameOriginal] || command.hotkeys;
|
|
26886
|
-
if (hotkeys) {
|
|
26900
|
+
if (hotkeys && hotkeys.length) {
|
|
26887
26901
|
this.registerHotkeyToCommand(hotkeys, commandName, options === null || options === void 0 ? void 0 : options.stopPropagation);
|
|
26888
26902
|
}
|
|
26889
26903
|
}
|
|
@@ -26897,6 +26911,10 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26897
26911
|
value: function registerHotkeyToCommand(hotkeys, commandName) {
|
|
26898
26912
|
var _this = this;
|
|
26899
26913
|
var shouldStop = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
|
|
26914
|
+
// An empty list (e.g. `commandToHotkeys: { cmd: [] }`) turns the key off
|
|
26915
|
+
if (!hotkeys || !hotkeys.length) {
|
|
26916
|
+
return;
|
|
26917
|
+
}
|
|
26900
26918
|
var shortcuts = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.asArray)(hotkeys).map(_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.normalizeKeyAliases).map(function(hotkey) {
|
|
26901
26919
|
return hotkey + '.hotkey';
|
|
26902
26920
|
}).join(' ');
|
|
@@ -38507,7 +38525,8 @@ var DEFAULT_SOURCE_NAME = 'default';
|
|
|
38507
38525
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38508
38526
|
/* harmony export */ FileBrowserFiles: function() { return /* binding */ FileBrowserFiles; }
|
|
38509
38527
|
/* harmony export */ });
|
|
38510
|
-
/* harmony import */ var
|
|
38528
|
+
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
38529
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67510);
|
|
38511
38530
|
function _assert_this_initialized(self) {
|
|
38512
38531
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38513
38532
|
return self;
|
|
@@ -38579,7 +38598,14 @@ function _type_of(obj) {
|
|
|
38579
38598
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38580
38599
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
38581
38600
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
38582
|
-
*/
|
|
38601
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
38602
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38603
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
38604
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
38605
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38606
|
+
};
|
|
38607
|
+
|
|
38608
|
+
|
|
38583
38609
|
var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
|
|
38584
38610
|
"use strict";
|
|
38585
38611
|
_inherits(FileBrowserFiles, UIGroup);
|
|
@@ -38596,7 +38622,11 @@ var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
|
|
|
38596
38622
|
}
|
|
38597
38623
|
]);
|
|
38598
38624
|
return FileBrowserFiles;
|
|
38599
|
-
}(
|
|
38625
|
+
}(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__.UIGroup);
|
|
38626
|
+
FileBrowserFiles = __decorate([
|
|
38627
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
38628
|
+
], FileBrowserFiles);
|
|
38629
|
+
|
|
38600
38630
|
|
|
38601
38631
|
|
|
38602
38632
|
/***/ }),
|
|
@@ -38628,7 +38658,8 @@ var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
|
|
|
38628
38658
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38629
38659
|
/* harmony export */ FileBrowserTree: function() { return /* binding */ FileBrowserTree; }
|
|
38630
38660
|
/* harmony export */ });
|
|
38631
|
-
/* harmony import */ var
|
|
38661
|
+
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
38662
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67510);
|
|
38632
38663
|
function _assert_this_initialized(self) {
|
|
38633
38664
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38634
38665
|
return self;
|
|
@@ -38700,7 +38731,14 @@ function _type_of(obj) {
|
|
|
38700
38731
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38701
38732
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
38702
38733
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
38703
|
-
*/
|
|
38734
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
38735
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38736
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
38737
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
38738
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38739
|
+
};
|
|
38740
|
+
|
|
38741
|
+
|
|
38704
38742
|
var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
|
|
38705
38743
|
"use strict";
|
|
38706
38744
|
_inherits(FileBrowserTree, UIGroup);
|
|
@@ -38717,7 +38755,11 @@ var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
|
|
|
38717
38755
|
}
|
|
38718
38756
|
]);
|
|
38719
38757
|
return FileBrowserTree;
|
|
38720
|
-
}(
|
|
38758
|
+
}(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__.UIGroup);
|
|
38759
|
+
FileBrowserTree = __decorate([
|
|
38760
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
38761
|
+
], FileBrowserTree);
|
|
38762
|
+
|
|
38721
38763
|
|
|
38722
38764
|
|
|
38723
38765
|
/***/ }),
|
|
@@ -47560,9 +47602,11 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
|
|
|
47560
47602
|
* ```html
|
|
47561
47603
|
* t|st
|
|
47562
47604
|
* ```
|
|
47605
|
+
* With `stopBeforeSpace`, nothing is removed when the next char is a space.
|
|
47563
47606
|
* @private
|
|
47564
47607
|
*/ // eslint-disable-next-line complexity
|
|
47565
47608
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
47609
|
+
var stopBeforeSpace = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
47566
47610
|
var _a, _b;
|
|
47567
47611
|
var step = backspace ? -1 : 1;
|
|
47568
47612
|
var anotherSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.sibling(fakeNode, !backspace);
|
|
@@ -47581,6 +47625,9 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
47581
47625
|
break;
|
|
47582
47626
|
}
|
|
47583
47627
|
if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
|
|
47628
|
+
if (stopBeforeSpace && isSpace(nextChar(sibling.nodeValue, backspace))) {
|
|
47629
|
+
break;
|
|
47630
|
+
}
|
|
47584
47631
|
removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
|
|
47585
47632
|
if (!sibling.nodeValue.length && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isInlineBlock(sibling.parentNode)) {
|
|
47586
47633
|
sibling.nodeValue = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
|
|
@@ -47688,10 +47735,26 @@ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
|
|
|
47688
47735
|
}
|
|
47689
47736
|
function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
|
|
47690
47737
|
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after : _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before, sibling, fakeNode);
|
|
47691
|
-
|
|
47692
|
-
|
|
47738
|
+
var wordChar = mode === 'word' && !isSpace(removed);
|
|
47739
|
+
// Backspace by word removes the spaces before the caret, then the word, and keeps the space in front of it
|
|
47740
|
+
if (mode === 'sentence' || wordChar || mode === 'word' && backspace) {
|
|
47741
|
+
checkRemoveChar(jodit, fakeNode, backspace, mode, wordChar && backspace);
|
|
47693
47742
|
}
|
|
47694
47743
|
}
|
|
47744
|
+
/**
|
|
47745
|
+
* The char tryRemoveChar would remove next
|
|
47746
|
+
*/ function nextChar(value, backspace) {
|
|
47747
|
+
var chars = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(value);
|
|
47748
|
+
var step = backspace ? -1 : 1;
|
|
47749
|
+
var index = backspace ? chars.length - 1 : 0;
|
|
47750
|
+
while(chars[index] === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE){
|
|
47751
|
+
index += step;
|
|
47752
|
+
}
|
|
47753
|
+
return chars[index];
|
|
47754
|
+
}
|
|
47755
|
+
function isSpace(char) {
|
|
47756
|
+
return char === ' ' || char === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
47757
|
+
}
|
|
47695
47758
|
|
|
47696
47759
|
|
|
47697
47760
|
/***/ }),
|
|
@@ -48103,7 +48166,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
48103
48166
|
/***/ 32496:
|
|
48104
48167
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
48105
48168
|
|
|
48106
|
-
/* harmony import */ var
|
|
48169
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
48170
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6441);
|
|
48107
48171
|
/*!
|
|
48108
48172
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48109
48173
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -48111,13 +48175,18 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
48111
48175
|
*/ /**
|
|
48112
48176
|
* @module plugins/backspace
|
|
48113
48177
|
*/
|
|
48114
|
-
|
|
48178
|
+
|
|
48179
|
+
_config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.delete = {
|
|
48115
48180
|
hotkeys: {
|
|
48116
|
-
delete: [
|
|
48181
|
+
delete: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [
|
|
48182
|
+
'delete'
|
|
48183
|
+
] : [
|
|
48117
48184
|
'delete',
|
|
48118
48185
|
'cmd+backspace'
|
|
48119
48186
|
],
|
|
48120
|
-
deleteWord: [
|
|
48187
|
+
deleteWord: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [
|
|
48188
|
+
'ctrl+delete'
|
|
48189
|
+
] : [
|
|
48121
48190
|
'ctrl+delete',
|
|
48122
48191
|
'cmd+alt+backspace',
|
|
48123
48192
|
'ctrl+alt+backspace'
|
|
@@ -48129,7 +48198,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.delete = {
|
|
|
48129
48198
|
backspace: [
|
|
48130
48199
|
'backspace'
|
|
48131
48200
|
],
|
|
48132
|
-
backspaceWord: [
|
|
48201
|
+
backspaceWord: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [] : [
|
|
48133
48202
|
'ctrl+backspace'
|
|
48134
48203
|
],
|
|
48135
48204
|
backspaceSentence: [
|
|
@@ -56663,8 +56732,12 @@ function _wrap_native_super(Class) {
|
|
|
56663
56732
|
dialog.close();
|
|
56664
56733
|
});
|
|
56665
56734
|
buttons.remove.onAction(function() {
|
|
56735
|
+
var caret = j.s.createRange();
|
|
56736
|
+
caret.setStartBefore(_this.state.sourceImage);
|
|
56737
|
+
caret.collapse(true);
|
|
56666
56738
|
j.s.removeNode(_this.state.sourceImage);
|
|
56667
56739
|
dialog.close();
|
|
56740
|
+
j.s.selectRange(caret);
|
|
56668
56741
|
});
|
|
56669
56742
|
buttons.cancel.onAction(function() {
|
|
56670
56743
|
dialog.close();
|
|
@@ -56678,10 +56751,20 @@ function _wrap_native_super(Class) {
|
|
|
56678
56751
|
],
|
|
56679
56752
|
buttons.check
|
|
56680
56753
|
]);
|
|
56681
|
-
|
|
56682
|
-
|
|
56683
|
-
|
|
56754
|
+
// The dialog fires `afterClose` on its own emitter, not the editor's
|
|
56755
|
+
dialog.e.on(dialog, 'afterClose', function() {
|
|
56756
|
+
var sourceImage = _this.state.sourceImage;
|
|
56757
|
+
if (j.isInDestruct || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(j.editor, sourceImage)) {
|
|
56758
|
+
return;
|
|
56684
56759
|
}
|
|
56760
|
+
if (j.o.image.selectImageAfterClose) {
|
|
56761
|
+
j.s.select(sourceImage);
|
|
56762
|
+
return;
|
|
56763
|
+
}
|
|
56764
|
+
var caret = j.s.createRange();
|
|
56765
|
+
caret.setStartAfter(sourceImage);
|
|
56766
|
+
caret.collapse(true);
|
|
56767
|
+
j.s.selectRange(caret);
|
|
56685
56768
|
});
|
|
56686
56769
|
dialog.setSize(j.o.image.dialogWidth);
|
|
56687
56770
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.markOwner)(j, dialog.container);
|
|
@@ -56719,6 +56802,7 @@ function _wrap_native_super(Class) {
|
|
|
56719
56802
|
this.activeTabState.activeTab = 'Image';
|
|
56720
56803
|
this.__lock();
|
|
56721
56804
|
this.dialog.open().setModal(true).setPosition();
|
|
56805
|
+
this.__focusFirstField();
|
|
56722
56806
|
this.async.promise(function(resolve, reject) {
|
|
56723
56807
|
return (0,_readers_index_js__WEBPACK_IMPORTED_MODULE_10__.readValuesFromImage)(_this.j, _this.state).then(resolve, reject);
|
|
56724
56808
|
}).catch(function(e) {
|
|
@@ -56731,6 +56815,21 @@ function _wrap_native_super(Class) {
|
|
|
56731
56815
|
return false;
|
|
56732
56816
|
}
|
|
56733
56817
|
},
|
|
56818
|
+
{
|
|
56819
|
+
/**
|
|
56820
|
+
* Keys typed while the dialog is open must not reach the editor behind it,
|
|
56821
|
+
* so focus the active tab's first field, or else the first field shown
|
|
56822
|
+
*/ key: "__focusFirstField",
|
|
56823
|
+
value: function __focusFirstField() {
|
|
56824
|
+
var _a;
|
|
56825
|
+
var fields = function fields(box) {
|
|
56826
|
+
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(box.querySelectorAll('input, select, textarea'));
|
|
56827
|
+
};
|
|
56828
|
+
(_a = fields(this.form.getElm('tabsBox')).concat(fields(this.form.container)).find(function(field) {
|
|
56829
|
+
return field.offsetParent != null;
|
|
56830
|
+
})) === null || _a === void 0 ? void 0 : _a.focus();
|
|
56831
|
+
}
|
|
56832
|
+
},
|
|
56734
56833
|
{
|
|
56735
56834
|
key: "__lock",
|
|
56736
56835
|
value: function __lock() {
|
|
@@ -63386,9 +63485,11 @@ var isButtonSeparator = function isButtonSeparator(item) {
|
|
|
63386
63485
|
return cleaned;
|
|
63387
63486
|
}
|
|
63388
63487
|
/**
|
|
63389
|
-
* The width that decides which breakpoint set the toolbar uses
|
|
63390
|
-
*
|
|
63391
|
-
*
|
|
63488
|
+
* The width that decides which breakpoint set the toolbar uses: the editor's
|
|
63489
|
+
* own width, or its parent's while the editor has none yet (for example
|
|
63490
|
+
* while hidden at init). A toolbar rendered into an external container
|
|
63491
|
+
* (`toolbar` set to an element or a selector) lays out in that container, so
|
|
63492
|
+
* its width is what matters there.
|
|
63392
63493
|
*/ function adaptiveWidth(editor) {
|
|
63393
63494
|
var _a;
|
|
63394
63495
|
var toolbar = editor.o.toolbar;
|
|
@@ -63398,7 +63499,7 @@ var isButtonSeparator = function isButtonSeparator(item) {
|
|
|
63398
63499
|
return width;
|
|
63399
63500
|
}
|
|
63400
63501
|
}
|
|
63401
|
-
return ((_a = editor.container.parentElement) !== null && _a !== void 0 ? _a : editor.container).offsetWidth;
|
|
63502
|
+
return editor.container.offsetWidth || ((_a = editor.container.parentElement) !== null && _a !== void 0 ? _a : editor.container).offsetWidth;
|
|
63402
63503
|
}
|
|
63403
63504
|
/**
|
|
63404
63505
|
* Rebuild toolbar in depends on editor's width
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit-pro - PRO Version of Jodit Editor
|
|
10
10
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
11
|
-
* Version: v4.18.
|
|
11
|
+
* Version: v4.18.11
|
|
12
12
|
* Url: https://xdsoft.net/jodit/pro/
|
|
13
13
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
14
14
|
*/
|