jodit-pro 4.19.11 → 4.20.1
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 +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +13 -13
- package/es2015/jodit.js +1789 -670
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +37 -37
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/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 +8 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +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.css +1 -1
- package/es2018/jodit.fat.min.js +13 -13
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +43 -43
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/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.css +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/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 +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +18 -18
- package/es2021/jodit.js +1743 -670
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +58 -58
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/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 +8 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +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 +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +18 -18
- package/es2021.en/jodit.js +1743 -670
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +58 -58
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/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 +8 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +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 +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2239 -793
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- 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 +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/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 +8 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.css +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/package.json +1 -1
package/es2021/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.
|
|
4
|
+
* Version: v4.20.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1768,7 +1768,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1768
1768
|
* ```
|
|
1769
1769
|
* @packageDocumentation
|
|
1770
1770
|
* @module constants
|
|
1771
|
-
*/ const APP_VERSION = "4.
|
|
1771
|
+
*/ const APP_VERSION = "4.20.1";
|
|
1772
1772
|
// prettier-ignore
|
|
1773
1773
|
const ES = "es2021";
|
|
1774
1774
|
const IS_ES_MODERN = true;
|
|
@@ -4659,16 +4659,18 @@ class EventHandlersStore {
|
|
|
4659
4659
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
4660
4660
|
/* harmony export */ });
|
|
4661
4661
|
/* harmony import */ var _helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19306);
|
|
4662
|
-
/* harmony import */ var
|
|
4663
|
-
/* harmony import */ var
|
|
4664
|
-
/* harmony import */ var
|
|
4665
|
-
/* harmony import */ var
|
|
4666
|
-
/* harmony import */ var
|
|
4667
|
-
/* harmony import */ var
|
|
4668
|
-
/* harmony import */ var
|
|
4669
|
-
/* harmony import */ var
|
|
4670
|
-
/* harmony import */ var
|
|
4671
|
-
/* harmony import */ var
|
|
4662
|
+
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
4663
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
4664
|
+
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39955);
|
|
4665
|
+
/* harmony import */ var _helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12475);
|
|
4666
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
4667
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
4668
|
+
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80568);
|
|
4669
|
+
/* harmony import */ var _helpers_utils_is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69175);
|
|
4670
|
+
/* harmony import */ var _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41876);
|
|
4671
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57012);
|
|
4672
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82758);
|
|
4673
|
+
/* harmony import */ var _dom_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22732);
|
|
4672
4674
|
/*!
|
|
4673
4675
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4674
4676
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4684,6 +4686,8 @@ class EventHandlersStore {
|
|
|
4684
4686
|
|
|
4685
4687
|
|
|
4686
4688
|
|
|
4689
|
+
|
|
4690
|
+
|
|
4687
4691
|
const instances = {};
|
|
4688
4692
|
let counter = 1;
|
|
4689
4693
|
const uuids = new Set();
|
|
@@ -4701,26 +4705,40 @@ const uuids = new Set();
|
|
|
4701
4705
|
uuids.add(uid);
|
|
4702
4706
|
return uid;
|
|
4703
4707
|
}
|
|
4704
|
-
const pluginSystem = new
|
|
4708
|
+
const pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_9__.PluginSystem({
|
|
4705
4709
|
getContainer
|
|
4706
4710
|
});
|
|
4707
4711
|
const modules = {};
|
|
4708
|
-
|
|
4712
|
+
// A CommonJS pack imported as a namespace carries the dictionary in `default`; a translation of the word is a string
|
|
4713
|
+
const unwrapModule = (pack)=>(0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack) && (0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack.default) ? pack.default : pack;
|
|
4714
|
+
/**
|
|
4715
|
+
* Merge language packs into the global `lang` registry
|
|
4716
|
+
*
|
|
4717
|
+
* `__proto__`, `constructor` and `prototype` are skipped on both levels, so a
|
|
4718
|
+
* pack parsed from untrusted JSON cannot reach `Object.prototype` (CWE-1321).
|
|
4719
|
+
*/ const extendLang = (langs)=>{
|
|
4709
4720
|
Object.keys(langs).forEach((key)=>{
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4721
|
+
const pack = unwrapModule(langs[key]);
|
|
4722
|
+
if ((0,_helpers_utils_is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(key) || !(0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack)) {
|
|
4723
|
+
return;
|
|
4724
|
+
}
|
|
4725
|
+
if (!Object.prototype.hasOwnProperty.call(_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang, key) || !(0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang[key])) {
|
|
4726
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang[key] = {};
|
|
4714
4727
|
}
|
|
4728
|
+
Object.keys(pack).forEach((name)=>{
|
|
4729
|
+
if (!(0,_helpers_utils_is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(name)) {
|
|
4730
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang[key][name] = pack[name];
|
|
4731
|
+
}
|
|
4732
|
+
});
|
|
4715
4733
|
});
|
|
4716
4734
|
};
|
|
4717
4735
|
const boxes = new WeakMap();
|
|
4718
4736
|
/**
|
|
4719
4737
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
4720
4738
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
4721
|
-
const name = (0,
|
|
4739
|
+
const name = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__.isString)(classFunc) ? classFunc : classFunc ? (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_7__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
4722
4740
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
4723
|
-
const view = (0,
|
|
4741
|
+
const view = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
4724
4742
|
let body;
|
|
4725
4743
|
if (!data[key]) {
|
|
4726
4744
|
let c = view.c;
|
|
@@ -4731,18 +4749,18 @@ const boxes = new WeakMap();
|
|
|
4731
4749
|
body = (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
4732
4750
|
}
|
|
4733
4751
|
const box = c.element(tag, {
|
|
4734
|
-
className: `jodit jodit-${(0,
|
|
4752
|
+
className: `jodit jodit-${(0,_helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
|
|
4735
4753
|
});
|
|
4736
4754
|
// Let a strict CSP accept the injected <style>/<script> box
|
|
4737
4755
|
if (view.o.nonce && (tag === 'style' || tag === 'script')) {
|
|
4738
|
-
(0,
|
|
4756
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(box, 'nonce', view.o.nonce);
|
|
4739
4757
|
}
|
|
4740
4758
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
4741
|
-
|
|
4759
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.append(body, box);
|
|
4742
4760
|
data[key] = box;
|
|
4743
4761
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
4744
4762
|
view.events.off(box);
|
|
4745
|
-
|
|
4763
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.safeRemove(box);
|
|
4746
4764
|
delete data[key];
|
|
4747
4765
|
if (Object.keys(data).length) {
|
|
4748
4766
|
boxes.delete(jodit);
|
|
@@ -4760,15 +4778,15 @@ const boxes = new WeakMap();
|
|
|
4760
4778
|
* @internal
|
|
4761
4779
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
4762
4780
|
var _a, _b, _c;
|
|
4763
|
-
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b :
|
|
4781
|
+
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b : _dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.closest(container, (parentElement)=>_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.isHTMLElement(parentElement) && (_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.isTag(parentElement, 'dialog') || [
|
|
4764
4782
|
'fixed',
|
|
4765
4783
|
'absolute'
|
|
4766
|
-
].includes((0,
|
|
4784
|
+
].includes((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(parentElement, 'position'))), defaultRoot)) !== null && _c !== void 0 ? _c : defaultRoot;
|
|
4767
4785
|
}
|
|
4768
4786
|
/**
|
|
4769
4787
|
* Global event emitter
|
|
4770
4788
|
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
4771
|
-
*/ const eventEmitter =
|
|
4789
|
+
*/ const eventEmitter = _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
|
|
4772
4790
|
|
|
4773
4791
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
4774
4792
|
/* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
|
|
@@ -6303,6 +6321,22 @@ function isSmuggledForeignHtml(elm) {
|
|
|
6303
6321
|
'background',
|
|
6304
6322
|
'xlink:href'
|
|
6305
6323
|
];
|
|
6324
|
+
/**
|
|
6325
|
+
* SVG animation elements can write a URL attribute at run time, as
|
|
6326
|
+
* `<animate attributeName="href" values="javascript:…">` does, and the
|
|
6327
|
+
* attributes below carry the values they write.
|
|
6328
|
+
*/ const ANIMATION_TAGS = new Set([
|
|
6329
|
+
'animate',
|
|
6330
|
+
'set',
|
|
6331
|
+
'animatemotion',
|
|
6332
|
+
'animatetransform'
|
|
6333
|
+
]);
|
|
6334
|
+
const ANIMATION_VALUE_ATTRIBUTES = [
|
|
6335
|
+
'values',
|
|
6336
|
+
'from',
|
|
6337
|
+
'to',
|
|
6338
|
+
'by'
|
|
6339
|
+
];
|
|
6306
6340
|
/**
|
|
6307
6341
|
* Tags that load their URL as a *document* (scripts inside run). An SVG data
|
|
6308
6342
|
* URL is only an XSS vector here — as an `<img>` source it renders inertly.
|
|
@@ -6376,6 +6410,19 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError, removeEve
|
|
|
6376
6410
|
effected = true;
|
|
6377
6411
|
}
|
|
6378
6412
|
}
|
|
6413
|
+
// SMIL sets the attribute on click time, after the static check above:
|
|
6414
|
+
// `<svg><a><animate attributeName="href" values="javascript:…">` ran
|
|
6415
|
+
// in Chromium and Safari. Drop the values that hold a dangerous
|
|
6416
|
+
// scheme; `values` is a `;` list. See GHSA-6wrw-v5gj-6xg7
|
|
6417
|
+
if (ANIMATION_TAGS.has(tagName)) {
|
|
6418
|
+
for (const name of ANIMATION_VALUE_ATTRIBUTES){
|
|
6419
|
+
const value = (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__.attrRaw)(elm, name);
|
|
6420
|
+
if (value && value.split(';').some((part)=>isDangerousUrl(part, 'a'))) {
|
|
6421
|
+
(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_1__.attr)(elm, name, null);
|
|
6422
|
+
effected = true;
|
|
6423
|
+
}
|
|
6424
|
+
}
|
|
6425
|
+
}
|
|
6379
6426
|
}
|
|
6380
6427
|
return effected;
|
|
6381
6428
|
}
|
|
@@ -6998,6 +7045,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6998
7045
|
/* harmony export */ fuzzySearchIndex: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.fuzzySearchIndex; },
|
|
6999
7046
|
/* harmony export */ get: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.get; },
|
|
7000
7047
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAlignClasses; },
|
|
7048
|
+
/* harmony export */ getAnchorName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAnchorName; },
|
|
7049
|
+
/* harmony export */ getAnchors: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAnchors; },
|
|
7001
7050
|
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionWrapper; },
|
|
7002
7051
|
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionedImage; },
|
|
7003
7052
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getClassName; },
|
|
@@ -7022,6 +7071,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7022
7071
|
/* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag; },
|
|
7023
7072
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
7024
7073
|
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
|
|
7074
|
+
/* harmony export */ isAnchor: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAnchor; },
|
|
7025
7075
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
7026
7076
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAtom; },
|
|
7027
7077
|
/* harmony export */ isBoolean: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isBoolean; },
|
|
@@ -8302,6 +8352,42 @@ function alignElement(command, box) {
|
|
|
8302
8352
|
}
|
|
8303
8353
|
|
|
8304
8354
|
|
|
8355
|
+
/***/ }),
|
|
8356
|
+
|
|
8357
|
+
/***/ 70442:
|
|
8358
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8359
|
+
|
|
8360
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8361
|
+
/* harmony export */ getAnchorName: function() { return /* binding */ getAnchorName; },
|
|
8362
|
+
/* harmony export */ getAnchors: function() { return /* binding */ getAnchors; },
|
|
8363
|
+
/* harmony export */ isAnchor: function() { return /* binding */ isAnchor; }
|
|
8364
|
+
/* harmony export */ });
|
|
8365
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
8366
|
+
/* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4510);
|
|
8367
|
+
/*!
|
|
8368
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8369
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8370
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8371
|
+
*/
|
|
8372
|
+
|
|
8373
|
+
/**
|
|
8374
|
+
* The name a link reaches an anchor by: its `id`, or in older content its
|
|
8375
|
+
* `name`
|
|
8376
|
+
*/ function getAnchorName(anchor) {
|
|
8377
|
+
return anchor.id || anchor.getAttribute('name') || '';
|
|
8378
|
+
}
|
|
8379
|
+
/**
|
|
8380
|
+
* An anchor: an `<a>` with a name, no `href` and nothing in it
|
|
8381
|
+
*/ function isAnchor(node) {
|
|
8382
|
+
return _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(node, 'a') && !node.hasAttribute('href') && !node.hasChildNodes() && getAnchorName(node) !== '';
|
|
8383
|
+
}
|
|
8384
|
+
/**
|
|
8385
|
+
* The anchors in `root`, in the order they come
|
|
8386
|
+
*/ function getAnchors(root) {
|
|
8387
|
+
return (0,_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll('a')).filter(isAnchor);
|
|
8388
|
+
}
|
|
8389
|
+
|
|
8390
|
+
|
|
8305
8391
|
/***/ }),
|
|
8306
8392
|
|
|
8307
8393
|
/***/ 63799:
|
|
@@ -9453,115 +9539,119 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9453
9539
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9454
9540
|
|
|
9455
9541
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9456
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
9457
|
-
/* harmony export */ AnswerError: function() { return /* reexport safe */
|
|
9458
|
-
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */
|
|
9459
|
-
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */
|
|
9460
|
-
/* harmony export */ ConfigMerge: function() { return /* reexport safe */
|
|
9461
|
-
/* harmony export */ ConfigProto: function() { return /* reexport safe */
|
|
9462
|
-
/* harmony export */ ConnectionError: function() { return /* reexport safe */
|
|
9463
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
9464
|
-
/* harmony export */ OptionsError: function() { return /* reexport safe */
|
|
9465
|
-
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */
|
|
9466
|
-
/* harmony export */ abort: function() { return /* reexport safe */
|
|
9542
|
+
/* harmony export */ $$: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.$$; },
|
|
9543
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.AnswerError; },
|
|
9544
|
+
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
|
|
9545
|
+
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
|
|
9546
|
+
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigMerge; },
|
|
9547
|
+
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigProto; },
|
|
9548
|
+
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.ConnectionError; },
|
|
9549
|
+
/* harmony export */ LimitedStack: function() { return /* reexport safe */ _stack_js__WEBPACK_IMPORTED_MODULE_30__.LimitedStack; },
|
|
9550
|
+
/* harmony export */ OptionsError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.OptionsError; },
|
|
9551
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */ _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__.UNSAFE_PROTO_KEYS; },
|
|
9552
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.abort; },
|
|
9467
9553
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9468
|
-
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */
|
|
9469
|
-
/* harmony export */ answer: function() { return /* reexport safe */
|
|
9470
|
-
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */
|
|
9471
|
-
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */
|
|
9472
|
-
/* harmony export */ assert: function() { return /* reexport safe */
|
|
9473
|
-
/* harmony export */ attr: function() { return /* reexport safe */
|
|
9474
|
-
/* harmony export */ attrRaw: function() { return /* reexport safe */
|
|
9475
|
-
/* harmony export */ browser: function() { return /* reexport safe */
|
|
9476
|
-
/* harmony export */ buildQuery: function() { return /* reexport safe */
|
|
9477
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
9478
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
9479
|
-
/* harmony export */ callThis: function() { return /* reexport safe */
|
|
9554
|
+
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.alreadyLoadedList; },
|
|
9555
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.answer; },
|
|
9556
|
+
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.appendScriptAsync; },
|
|
9557
|
+
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.appendStyleAsync; },
|
|
9558
|
+
/* harmony export */ assert: function() { return /* reexport safe */ _assert_js__WEBPACK_IMPORTED_MODULE_3__.assert; },
|
|
9559
|
+
/* harmony export */ attr: function() { return /* reexport safe */ _attr_js__WEBPACK_IMPORTED_MODULE_4__.attr; },
|
|
9560
|
+
/* harmony export */ attrRaw: function() { return /* reexport safe */ _attr_js__WEBPACK_IMPORTED_MODULE_4__.attrRaw; },
|
|
9561
|
+
/* harmony export */ browser: function() { return /* reexport safe */ _browser_js__WEBPACK_IMPORTED_MODULE_5__.browser; },
|
|
9562
|
+
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query_js__WEBPACK_IMPORTED_MODULE_6__.buildQuery; },
|
|
9563
|
+
/* harmony export */ call: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.call; },
|
|
9564
|
+
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.callPromise; },
|
|
9565
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.callThis; },
|
|
9480
9566
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
9481
|
-
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */
|
|
9567
|
+
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.clearCenterAlign; },
|
|
9482
9568
|
/* harmony export */ clearHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearHAlign; },
|
|
9483
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
9484
|
-
/* harmony export */ completeUrl: function() { return /* reexport safe */
|
|
9485
|
-
/* harmony export */ connection: function() { return /* reexport safe */
|
|
9486
|
-
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */
|
|
9487
|
-
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */
|
|
9488
|
-
/* harmony export */ css: function() { return /* reexport safe */
|
|
9489
|
-
/* harmony export */ cssInline: function() { return /* reexport safe */
|
|
9490
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
9491
|
-
/* harmony export */ ctrlKey: function() { return /* reexport safe */
|
|
9492
|
-
/* harmony export */ dataBind: function() { return /* reexport safe */
|
|
9493
|
-
/* harmony export */ defaultLanguage: function() { return /* reexport safe */
|
|
9494
|
-
/* harmony export */ error: function() { return /* reexport safe */
|
|
9495
|
-
/* harmony export */ fastClone: function() { return /* reexport safe */
|
|
9496
|
-
/* harmony export */ get: function() { return /* reexport safe */
|
|
9569
|
+
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__.cns; },
|
|
9570
|
+
/* harmony export */ completeUrl: function() { return /* reexport safe */ _complete_url_js__WEBPACK_IMPORTED_MODULE_7__.completeUrl; },
|
|
9571
|
+
/* harmony export */ connection: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.connection; },
|
|
9572
|
+
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */ _convert_media_url_to_video_embed_js__WEBPACK_IMPORTED_MODULE_9__.convertMediaUrlToVideoEmbed; },
|
|
9573
|
+
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.createMediaWrapper; },
|
|
9574
|
+
/* harmony export */ css: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.css; },
|
|
9575
|
+
/* harmony export */ cssInline: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.cssInline; },
|
|
9576
|
+
/* harmony export */ cssPath: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.cssPath; },
|
|
9577
|
+
/* harmony export */ ctrlKey: function() { return /* reexport safe */ _ctrl_key_js__WEBPACK_IMPORTED_MODULE_11__.ctrlKey; },
|
|
9578
|
+
/* harmony export */ dataBind: function() { return /* reexport safe */ _data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind; },
|
|
9579
|
+
/* harmony export */ defaultLanguage: function() { return /* reexport safe */ _default_language_js__WEBPACK_IMPORTED_MODULE_13__.defaultLanguage; },
|
|
9580
|
+
/* harmony export */ error: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.error; },
|
|
9581
|
+
/* harmony export */ fastClone: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.fastClone; },
|
|
9582
|
+
/* harmony export */ get: function() { return /* reexport safe */ _get_js__WEBPACK_IMPORTED_MODULE_16__.get; },
|
|
9497
9583
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getAlignClasses; },
|
|
9498
|
-
/* harmony export */
|
|
9499
|
-
/* harmony export */
|
|
9500
|
-
/* harmony export */
|
|
9501
|
-
/* harmony export */
|
|
9584
|
+
/* harmony export */ getAnchorName: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.getAnchorName; },
|
|
9585
|
+
/* harmony export */ getAnchors: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.getAnchors; },
|
|
9586
|
+
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getCaptionWrapper; },
|
|
9587
|
+
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getCaptionedImage; },
|
|
9588
|
+
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__.getClassName; },
|
|
9589
|
+
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.getDataTransfer; },
|
|
9502
9590
|
/* harmony export */ getHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getHAlign; },
|
|
9503
|
-
/* harmony export */ getImageCaption: function() { return /* reexport safe */
|
|
9504
|
-
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */
|
|
9505
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
9506
|
-
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */
|
|
9507
|
-
/* harmony export */ getXPathByElement: function() { return /* reexport safe */
|
|
9591
|
+
/* harmony export */ getImageCaption: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getImageCaption; },
|
|
9592
|
+
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.getMediaWrapper; },
|
|
9593
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.getPropertyDescriptor; },
|
|
9594
|
+
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.getWrappedMedia; },
|
|
9595
|
+
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.getXPathByElement; },
|
|
9508
9596
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
9509
|
-
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */
|
|
9510
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
9511
|
-
/* harmony export */
|
|
9512
|
-
/* harmony export */
|
|
9513
|
-
/* harmony export */
|
|
9514
|
-
/* harmony export */
|
|
9515
|
-
/* harmony export */
|
|
9516
|
-
/* harmony export */
|
|
9517
|
-
/* harmony export */
|
|
9518
|
-
/* harmony export */
|
|
9519
|
-
/* harmony export */
|
|
9520
|
-
/* harmony export */
|
|
9521
|
-
/* harmony export */
|
|
9522
|
-
/* harmony export */
|
|
9523
|
-
/* harmony export */
|
|
9524
|
-
/* harmony export */
|
|
9525
|
-
/* harmony export */
|
|
9526
|
-
/* harmony export */
|
|
9527
|
-
/* harmony export */
|
|
9528
|
-
/* harmony export */
|
|
9529
|
-
/* harmony export */
|
|
9530
|
-
/* harmony export */
|
|
9531
|
-
/* harmony export */
|
|
9532
|
-
/* harmony export */
|
|
9597
|
+
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_18__.humanSizeToBytes; },
|
|
9598
|
+
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__.inView; },
|
|
9599
|
+
/* harmony export */ isAnchor: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.isAnchor; },
|
|
9600
|
+
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.isAtom; },
|
|
9601
|
+
/* harmony export */ isUnsafeProtoKey: function() { return /* reexport safe */ _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__.isUnsafeProtoKey; },
|
|
9602
|
+
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__.keepNames; },
|
|
9603
|
+
/* harmony export */ keys: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.keys; },
|
|
9604
|
+
/* harmony export */ loadImage: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.loadImage; },
|
|
9605
|
+
/* harmony export */ loadNext: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.loadNext; },
|
|
9606
|
+
/* harmony export */ loadNextStyle: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.loadNextStyle; },
|
|
9607
|
+
/* harmony export */ markAsAtomic: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.markAsAtomic; },
|
|
9608
|
+
/* harmony export */ markDeprecated: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__.markDeprecated; },
|
|
9609
|
+
/* harmony export */ markOwner: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.markOwner; },
|
|
9610
|
+
/* harmony export */ memorizeExec: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.memorizeExec; },
|
|
9611
|
+
/* harmony export */ options: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.options; },
|
|
9612
|
+
/* harmony export */ parseQuery: function() { return /* reexport safe */ _parse_query_js__WEBPACK_IMPORTED_MODULE_23__.parseQuery; },
|
|
9613
|
+
/* harmony export */ prepareEmbedCode: function() { return /* reexport safe */ _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__.prepareEmbedCode; },
|
|
9614
|
+
/* harmony export */ prepareMedia: function() { return /* reexport safe */ _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__.prepareMedia; },
|
|
9615
|
+
/* harmony export */ previewBox: function() { return /* reexport safe */ _print_js__WEBPACK_IMPORTED_MODULE_25__.previewBox; },
|
|
9616
|
+
/* harmony export */ refs: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.refs; },
|
|
9617
|
+
/* harmony export */ reset: function() { return /* reexport safe */ _reset_js__WEBPACK_IMPORTED_MODULE_26__.reset; },
|
|
9618
|
+
/* harmony export */ resolveElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.resolveElement; },
|
|
9619
|
+
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__.scrollIntoViewIfNeeded; },
|
|
9620
|
+
/* harmony export */ set: function() { return /* reexport safe */ _set_js__WEBPACK_IMPORTED_MODULE_29__.set; },
|
|
9621
|
+
/* harmony export */ wrapMedia: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.wrapMedia; }
|
|
9533
9622
|
/* harmony export */ });
|
|
9534
9623
|
/* harmony import */ var _align_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25726);
|
|
9535
|
-
/* harmony import */ var
|
|
9536
|
-
/* harmony import */ var
|
|
9537
|
-
/* harmony import */ var
|
|
9538
|
-
/* harmony import */ var
|
|
9539
|
-
/* harmony import */ var
|
|
9540
|
-
/* harmony import */ var
|
|
9541
|
-
/* harmony import */ var
|
|
9542
|
-
/* harmony import */ var
|
|
9543
|
-
/* harmony import */ var
|
|
9544
|
-
/* harmony import */ var
|
|
9545
|
-
/* harmony import */ var
|
|
9546
|
-
/* harmony import */ var
|
|
9547
|
-
/* harmony import */ var
|
|
9548
|
-
/* harmony import */ var
|
|
9549
|
-
/* harmony import */ var
|
|
9550
|
-
/* harmony import */ var
|
|
9551
|
-
/* harmony import */ var
|
|
9552
|
-
/* harmony import */ var
|
|
9553
|
-
/* harmony import */ var
|
|
9554
|
-
/* harmony import */ var
|
|
9555
|
-
/* harmony import */ var
|
|
9556
|
-
/* harmony import */ var
|
|
9557
|
-
/* harmony import */ var
|
|
9558
|
-
/* harmony import */ var
|
|
9559
|
-
/* harmony import */ var
|
|
9560
|
-
/* harmony import */ var
|
|
9561
|
-
/* harmony import */ var
|
|
9562
|
-
/* harmony import */ var
|
|
9563
|
-
/* harmony import */ var
|
|
9564
|
-
/* harmony import */ var
|
|
9624
|
+
/* harmony import */ var _anchor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70442);
|
|
9625
|
+
/* harmony import */ var _append_script_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63799);
|
|
9626
|
+
/* harmony import */ var _assert_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38837);
|
|
9627
|
+
/* harmony import */ var _attr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29960);
|
|
9628
|
+
/* harmony import */ var _browser_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97639);
|
|
9629
|
+
/* harmony import */ var _build_query_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44710);
|
|
9630
|
+
/* harmony import */ var _complete_url_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66292);
|
|
9631
|
+
/* harmony import */ var _config_proto_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68934);
|
|
9632
|
+
/* harmony import */ var _convert_media_url_to_video_embed_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55877);
|
|
9633
|
+
/* harmony import */ var _css_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(41180);
|
|
9634
|
+
/* harmony import */ var _ctrl_key_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(15456);
|
|
9635
|
+
/* harmony import */ var _data_bind_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(86583);
|
|
9636
|
+
/* harmony import */ var _default_language_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(96325);
|
|
9637
|
+
/* harmony import */ var _error_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(89890);
|
|
9638
|
+
/* harmony import */ var _extend_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97735);
|
|
9639
|
+
/* harmony import */ var _get_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(94643);
|
|
9640
|
+
/* harmony import */ var _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(80568);
|
|
9641
|
+
/* harmony import */ var _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(38420);
|
|
9642
|
+
/* harmony import */ var _image_caption_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(68645);
|
|
9643
|
+
/* harmony import */ var _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(69175);
|
|
9644
|
+
/* harmony import */ var _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(95942);
|
|
9645
|
+
/* harmony import */ var _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(61477);
|
|
9646
|
+
/* harmony import */ var _parse_query_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(82501);
|
|
9647
|
+
/* harmony import */ var _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(96437);
|
|
9648
|
+
/* harmony import */ var _print_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(11628);
|
|
9649
|
+
/* harmony import */ var _reset_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(58844);
|
|
9650
|
+
/* harmony import */ var _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(26395);
|
|
9651
|
+
/* harmony import */ var _selector_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(76078);
|
|
9652
|
+
/* harmony import */ var _set_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(3703);
|
|
9653
|
+
/* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(50535);
|
|
9654
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(37790);
|
|
9565
9655
|
/*!
|
|
9566
9656
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9567
9657
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9599,6 +9689,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9599
9689
|
|
|
9600
9690
|
|
|
9601
9691
|
|
|
9692
|
+
|
|
9602
9693
|
|
|
9603
9694
|
|
|
9604
9695
|
/***/ }),
|
|
@@ -15708,6 +15799,18 @@ let UITooltip = UITooltip_1 = class UITooltip extends _element_js__WEBPACK_IMPOR
|
|
|
15708
15799
|
render() {
|
|
15709
15800
|
return '<div><div class="&__content"></div></div>';
|
|
15710
15801
|
}
|
|
15802
|
+
get __isEnabled() {
|
|
15803
|
+
const { o } = this.j;
|
|
15804
|
+
return !o.textIcons && Boolean(o.showTooltip) && !o.useNativeTooltip;
|
|
15805
|
+
}
|
|
15806
|
+
/**
|
|
15807
|
+
* Show tooltips for the buttons in an element outside the editor's
|
|
15808
|
+
* container, such as a toolbar placed by the `toolbar` option
|
|
15809
|
+
*/ attach(container) {
|
|
15810
|
+
if (this.__isEnabled) {
|
|
15811
|
+
this.__onAttach(container);
|
|
15812
|
+
}
|
|
15813
|
+
}
|
|
15711
15814
|
__onAttach(container) {
|
|
15712
15815
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
15713
15816
|
_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append((0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.j, UITooltip_1), this.container);
|
|
@@ -15848,7 +15951,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends _element_js__WEBPACK_IMPOR
|
|
|
15848
15951
|
this.__currentTarget = null;
|
|
15849
15952
|
this.__delayShowTimeout = 0;
|
|
15850
15953
|
this.__hideTimeout = 0;
|
|
15851
|
-
if (
|
|
15954
|
+
if (this.__isEnabled) {
|
|
15852
15955
|
this.j.e.on('getContainer', (box)=>{
|
|
15853
15956
|
this.__onAttach(box);
|
|
15854
15957
|
});
|
|
@@ -17967,6 +18070,10 @@ let Popup = Popup_1 = class Popup extends _group_group_js__WEBPACK_IMPORTED_MODU
|
|
|
17967
18070
|
this.smart = smart;
|
|
17968
18071
|
this.isOpened = false;
|
|
17969
18072
|
this.strategy = 'leftBottom';
|
|
18073
|
+
/**
|
|
18074
|
+
* The popup stays open after one of its buttons runs: the button closes
|
|
18075
|
+
* only the lists it opened. See #1741
|
|
18076
|
+
*/ this.keepOpen = false;
|
|
17970
18077
|
this.viewBound = ()=>({
|
|
17971
18078
|
left: 0,
|
|
17972
18079
|
top: 0,
|
|
@@ -18175,7 +18282,12 @@ class ViewWithToolbar extends _view_js__WEBPACK_IMPORTED_MODULE_9__.View {
|
|
|
18175
18282
|
return;
|
|
18176
18283
|
}
|
|
18177
18284
|
const buttons = this.o.buttons ? (0,_helpers_array_index_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(this.o.buttons) : [];
|
|
18178
|
-
|
|
18285
|
+
const container = this.toolbarContainer;
|
|
18286
|
+
(_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(container);
|
|
18287
|
+
// The toolbar's own element, as editors can share the one it is placed in
|
|
18288
|
+
if (this.toolbar && !_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__.Dom.isOrContains(this.container, container)) {
|
|
18289
|
+
this.__tooltip.attach(this.toolbar.container);
|
|
18290
|
+
}
|
|
18179
18291
|
}
|
|
18180
18292
|
getRegisteredButtonGroups() {
|
|
18181
18293
|
return this.groupToButtons;
|
|
@@ -18682,6 +18794,7 @@ class CommitMode {
|
|
|
18682
18794
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(70231);
|
|
18683
18795
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6441);
|
|
18684
18796
|
/* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41409);
|
|
18797
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2073);
|
|
18685
18798
|
/*!
|
|
18686
18799
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18687
18800
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18704,6 +18817,7 @@ var Jodit_1;
|
|
|
18704
18817
|
|
|
18705
18818
|
|
|
18706
18819
|
|
|
18820
|
+
|
|
18707
18821
|
const FOCUS_EVENTS = new Set([
|
|
18708
18822
|
'focus',
|
|
18709
18823
|
'blur',
|
|
@@ -18969,17 +19083,15 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
|
|
|
18969
19083
|
theme: jodit.o.theme,
|
|
18970
19084
|
shadowRoot: jodit.o.shadowRoot,
|
|
18971
19085
|
defaultCallback (data) {
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
|
|
18975
|
-
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
}
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
});
|
|
18982
|
-
}
|
|
19086
|
+
const { baseurl } = data;
|
|
19087
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__.getItems)(data).forEach(({ file, isImage })=>{
|
|
19088
|
+
const url = baseurl + file;
|
|
19089
|
+
if (isImage) {
|
|
19090
|
+
jodit.s.insertImage(url, null, jodit.o.imageDefaultWidth);
|
|
19091
|
+
} else {
|
|
19092
|
+
jodit.s.insertNode(jodit.createInside.fromHTML(`<a href='${url}' title='${url}'>${url}</a>`));
|
|
19093
|
+
}
|
|
19094
|
+
});
|
|
18983
19095
|
}
|
|
18984
19096
|
}, this.o.filebrowser);
|
|
18985
19097
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -19982,6 +20094,9 @@ Jodit.decorators = {};
|
|
|
19982
20094
|
Jodit.constants = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__;
|
|
19983
20095
|
Jodit.instances = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances;
|
|
19984
20096
|
Jodit.lang = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
20097
|
+
/**
|
|
20098
|
+
* Merge language packs into `Jodit.lang`; prototype keys are ignored
|
|
20099
|
+
*/ Jodit.extendLang = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.extendLang;
|
|
19985
20100
|
Jodit.core = {
|
|
19986
20101
|
Plugin: _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Plugin
|
|
19987
20102
|
};
|
|
@@ -20059,6 +20174,11 @@ function addClassNames(className, elm) {
|
|
|
20059
20174
|
'Insert file': 'ادخال الملف',
|
|
20060
20175
|
'Insert youtube/vimeo video': 'إدراج فيديو يوتيوب/فيميو ',
|
|
20061
20176
|
'Insert link': 'إدراج رابط',
|
|
20177
|
+
'Insert anchor': 'إدراج مرساة',
|
|
20178
|
+
'Link to an anchor': 'ربط بمرساة',
|
|
20179
|
+
'On this page': 'في هذه الصفحة',
|
|
20180
|
+
'The name cannot contain spaces': 'لا يمكن أن يحتوي الاسم على مسافات',
|
|
20181
|
+
'This name is already in use': 'هذا الاسم مستخدم بالفعل',
|
|
20062
20182
|
'Font size': 'حجم الخط',
|
|
20063
20183
|
'Font family': 'نوع الخط',
|
|
20064
20184
|
'Insert format block': 'إدراج كتلة تنسيق',
|
|
@@ -20301,6 +20421,11 @@ function addClassNames(className, elm) {
|
|
|
20301
20421
|
'Insert file': 'Fayl əlavə et',
|
|
20302
20422
|
'Insert youtube/vimeo video': 'Youtube/vimeo video əlavə et',
|
|
20303
20423
|
'Insert link': 'Keçid əlavə et',
|
|
20424
|
+
'Insert anchor': 'Lövbər əlavə et',
|
|
20425
|
+
'Link to an anchor': 'Lövbərə keçid',
|
|
20426
|
+
'On this page': 'Bu səhifədə',
|
|
20427
|
+
'The name cannot contain spaces': 'Adda boşluq ola bilməz',
|
|
20428
|
+
'This name is already in use': 'Bu ad artıq istifadə olunur',
|
|
20304
20429
|
'Font size': 'Şrift ölçüsü',
|
|
20305
20430
|
'Font family': 'Şrift ailəsi',
|
|
20306
20431
|
'Line height': 'Sətir hündürlüyü',
|
|
@@ -20528,7 +20653,7 @@ function addClassNames(className, elm) {
|
|
|
20528
20653
|
'For information about the license, please go to our website:': 'Pro informace o licenci, prosím, přejděte na naši stránku:',
|
|
20529
20654
|
'Buy full version': 'Koupit plnou verzi',
|
|
20530
20655
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.',
|
|
20531
|
-
Anchor: '
|
|
20656
|
+
Anchor: 'Kotva',
|
|
20532
20657
|
'Open in new tab': 'Otevřít v nové záložce',
|
|
20533
20658
|
'Open in fullsize': 'Otevřít v celoobrazovkovém režimu',
|
|
20534
20659
|
'Clear Formatting': 'Vyčistit formátování',
|
|
@@ -20548,6 +20673,11 @@ function addClassNames(className, elm) {
|
|
|
20548
20673
|
'Insert file': 'Vložit soubor',
|
|
20549
20674
|
'Insert youtube/vimeo video': 'Vložit video (YT/Vimeo)',
|
|
20550
20675
|
'Insert link': 'Vložit odkaz',
|
|
20676
|
+
'Insert anchor': 'Vložit kotvu',
|
|
20677
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
20678
|
+
'On this page': 'Na této stránce',
|
|
20679
|
+
'The name cannot contain spaces': 'Název nesmí obsahovat mezery',
|
|
20680
|
+
'This name is already in use': 'Tento název se již používá',
|
|
20551
20681
|
'Font size': 'Velikost písma',
|
|
20552
20682
|
'Font family': 'Typ písma',
|
|
20553
20683
|
'Insert format block': 'Formátovat blok',
|
|
@@ -20787,6 +20917,11 @@ function addClassNames(className, elm) {
|
|
|
20787
20917
|
'Insert file': 'Datei einfügen',
|
|
20788
20918
|
'Insert youtube/vimeo video': 'Youtube/vimeo Video einfügen',
|
|
20789
20919
|
'Insert link': 'Link einfügen',
|
|
20920
|
+
'Insert anchor': 'Anker einfügen',
|
|
20921
|
+
'Link to an anchor': 'Mit einem Anker verlinken',
|
|
20922
|
+
'On this page': 'Auf dieser Seite',
|
|
20923
|
+
'The name cannot contain spaces': 'Der Name darf keine Leerzeichen enthalten',
|
|
20924
|
+
'This name is already in use': 'Dieser Name wird bereits verwendet',
|
|
20790
20925
|
'Font size': 'Schriftgröße',
|
|
20791
20926
|
'Font family': 'Schriftfamilie',
|
|
20792
20927
|
'Insert format block': 'Formatblock einfügen',
|
|
@@ -21027,7 +21162,7 @@ function addClassNames(className, elm) {
|
|
|
21027
21162
|
'For information about the license, please go to our website:': 'Para información sobre la licencia, por favor visite nuestro sitio:',
|
|
21028
21163
|
'Buy full version': 'Compre la versión completa',
|
|
21029
21164
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.',
|
|
21030
|
-
Anchor: '
|
|
21165
|
+
Anchor: 'Ancla',
|
|
21031
21166
|
'Open in new tab': 'Abrir en nueva pestaña',
|
|
21032
21167
|
'Open in fullsize': 'Abrir editor en pantalla completa',
|
|
21033
21168
|
'Clear Formatting': 'Limpiar formato',
|
|
@@ -21047,6 +21182,11 @@ function addClassNames(className, elm) {
|
|
|
21047
21182
|
'Insert file': 'Insertar archivo',
|
|
21048
21183
|
'Insert youtube/vimeo video': 'Insertar video de Youtube/vimeo',
|
|
21049
21184
|
'Insert link': 'Insertar vínculo',
|
|
21185
|
+
'Insert anchor': 'Insertar ancla',
|
|
21186
|
+
'Link to an anchor': 'Enlazar a un ancla',
|
|
21187
|
+
'On this page': 'En esta página',
|
|
21188
|
+
'The name cannot contain spaces': 'El nombre no puede contener espacios',
|
|
21189
|
+
'This name is already in use': 'Este nombre ya está en uso',
|
|
21050
21190
|
'Font size': 'Tamaño de letra',
|
|
21051
21191
|
'Font family': 'Familia de letra',
|
|
21052
21192
|
'Insert format block': 'Insertar bloque',
|
|
@@ -21270,7 +21410,7 @@ function addClassNames(className, elm) {
|
|
|
21270
21410
|
'For information about the license, please go to our website:': 'برای کسب اطلاعات در رابطه با لایسنس لطفا به وب سایت مراجعه کنید:',
|
|
21271
21411
|
'Buy full version': 'خرید نسخه کامل',
|
|
21272
21412
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.',
|
|
21273
|
-
Anchor: '
|
|
21413
|
+
Anchor: 'لنگر',
|
|
21274
21414
|
'Open in new tab': 'بازکردن در تب جدید',
|
|
21275
21415
|
'Open in fullsize': 'تمام صفحه کردن ویرایشگر',
|
|
21276
21416
|
'Clear Formatting': 'پاک کردن قالب ها',
|
|
@@ -21290,6 +21430,11 @@ function addClassNames(className, elm) {
|
|
|
21290
21430
|
'Insert file': 'افزودن فایل',
|
|
21291
21431
|
'Insert youtube/vimeo video': 'افزودن ویدیو از یوتیوب و وایمو',
|
|
21292
21432
|
'Insert link': 'افزودن لینک',
|
|
21433
|
+
'Insert anchor': 'افزودن لنگر',
|
|
21434
|
+
'Link to an anchor': 'پیوند به لنگر',
|
|
21435
|
+
'On this page': 'در این صفحه',
|
|
21436
|
+
'The name cannot contain spaces': 'نام نمیتواند فاصله داشته باشد',
|
|
21437
|
+
'This name is already in use': 'این نام قبلاً استفاده شده است',
|
|
21293
21438
|
'Font size': 'اندازه فونت',
|
|
21294
21439
|
'Font family': 'فونت',
|
|
21295
21440
|
'Insert format block': 'افزودن بلاک',
|
|
@@ -21528,6 +21673,11 @@ function addClassNames(className, elm) {
|
|
|
21528
21673
|
'Insert file': 'Lisää tiedosto',
|
|
21529
21674
|
'Insert youtube/vimeo video': 'Lisää Youtube-/vimeo- video',
|
|
21530
21675
|
'Insert link': 'Lisää linkki',
|
|
21676
|
+
'Insert anchor': 'Lisää ankkuri',
|
|
21677
|
+
'Link to an anchor': 'Linkitä ankkuriin',
|
|
21678
|
+
'On this page': 'Tällä sivulla',
|
|
21679
|
+
'The name cannot contain spaces': 'Nimessä ei voi olla välilyöntejä',
|
|
21680
|
+
'This name is already in use': 'Tämä nimi on jo käytössä',
|
|
21531
21681
|
'Font size': 'Kirjasimen koko',
|
|
21532
21682
|
'Font family': 'Kirjasimen nimi',
|
|
21533
21683
|
'Insert format block': 'Lisää muotoilualue',
|
|
@@ -21771,6 +21921,11 @@ function addClassNames(className, elm) {
|
|
|
21771
21921
|
'Insert file': 'Insérer un fichier',
|
|
21772
21922
|
'Insert youtube/vimeo video': 'Insérer une vidéo',
|
|
21773
21923
|
'Insert link': 'Insérer un lien',
|
|
21924
|
+
'Insert anchor': 'Insérer une ancre',
|
|
21925
|
+
'Link to an anchor': 'Lier à une ancre',
|
|
21926
|
+
'On this page': 'Sur cette page',
|
|
21927
|
+
'The name cannot contain spaces': "Le nom ne peut pas contenir d'espaces",
|
|
21928
|
+
'This name is already in use': 'Ce nom est déjà utilisé',
|
|
21774
21929
|
'Font size': 'Taille des caractères',
|
|
21775
21930
|
'Font family': 'Famille des caractères',
|
|
21776
21931
|
'Insert format block': 'Bloc formatté',
|
|
@@ -21990,7 +22145,7 @@ function addClassNames(className, elm) {
|
|
|
21990
22145
|
'For information about the license, please go to our website:': 'For information about the license, please go to our website:',
|
|
21991
22146
|
'Buy full version': 'Buy full version',
|
|
21992
22147
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
21993
|
-
Anchor: '
|
|
22148
|
+
Anchor: 'עוגן',
|
|
21994
22149
|
'Open in new tab': 'פתח בכרטיסיה חדשה',
|
|
21995
22150
|
'Open in fullsize': 'פתח את העורך בחלון חדש',
|
|
21996
22151
|
'Clear Formatting': 'נקה עיצוב',
|
|
@@ -22010,6 +22165,11 @@ function addClassNames(className, elm) {
|
|
|
22010
22165
|
'Insert file': 'הכנס קובץ',
|
|
22011
22166
|
'Insert youtube/vimeo video': 'הכנס סרטון וידאו מYouTube/Vimeo',
|
|
22012
22167
|
'Insert link': 'הכנס קישור',
|
|
22168
|
+
'Insert anchor': 'הכנס עוגן',
|
|
22169
|
+
'Link to an anchor': 'קישור לעוגן',
|
|
22170
|
+
'On this page': 'בדף זה',
|
|
22171
|
+
'The name cannot contain spaces': 'השם לא יכול להכיל רווחים',
|
|
22172
|
+
'This name is already in use': 'השם הזה כבר בשימוש',
|
|
22013
22173
|
'Font size': 'גודל גופן',
|
|
22014
22174
|
'Font family': 'גופן',
|
|
22015
22175
|
'Insert format block': 'מעוצב מראש',
|
|
@@ -22249,6 +22409,11 @@ function addClassNames(className, elm) {
|
|
|
22249
22409
|
'Insert file': 'Fájl beszúrás',
|
|
22250
22410
|
'Insert youtube/vimeo video': 'Youtube videó beszúrása',
|
|
22251
22411
|
'Insert link': 'Link beszúrás',
|
|
22412
|
+
'Insert anchor': 'Horgony beszúrás',
|
|
22413
|
+
'Link to an anchor': 'Hivatkozás horgonyra',
|
|
22414
|
+
'On this page': 'Ezen az oldalon',
|
|
22415
|
+
'The name cannot contain spaces': 'A név nem tartalmazhat szóközt',
|
|
22416
|
+
'This name is already in use': 'Ez a név már foglalt',
|
|
22252
22417
|
'Font size': 'Betűméret',
|
|
22253
22418
|
'Font family': 'Betűtípus',
|
|
22254
22419
|
'Insert format block': 'Formázott blokk beszúrása',
|
|
@@ -22468,7 +22633,7 @@ function addClassNames(className, elm) {
|
|
|
22468
22633
|
'For information about the license, please go to our website:': 'Untuk informasi tentang lisensi, silakan kunjungi website:',
|
|
22469
22634
|
'Buy full version': 'Beli versi lengkap',
|
|
22470
22635
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.',
|
|
22471
|
-
Anchor: '
|
|
22636
|
+
Anchor: 'Jangkar',
|
|
22472
22637
|
'Open in new tab': 'Buka di tab baru',
|
|
22473
22638
|
'Open in fullsize': 'Buka editor dalam ukuran penuh',
|
|
22474
22639
|
'Clear Formatting': 'Hapus Pemformatan',
|
|
@@ -22488,6 +22653,11 @@ function addClassNames(className, elm) {
|
|
|
22488
22653
|
'Insert file': 'Sisipkan Berkas',
|
|
22489
22654
|
'Insert youtube/vimeo video': 'Sisipkan video youtube/vimeo',
|
|
22490
22655
|
'Insert link': 'Sisipkan tautan',
|
|
22656
|
+
'Insert anchor': 'Sisipkan jangkar',
|
|
22657
|
+
'Link to an anchor': 'Tautkan ke jangkar',
|
|
22658
|
+
'On this page': 'Di halaman ini',
|
|
22659
|
+
'The name cannot contain spaces': 'Nama tidak boleh mengandung spasi',
|
|
22660
|
+
'This name is already in use': 'Nama ini sudah digunakan',
|
|
22491
22661
|
'Font size': 'Ukuran font',
|
|
22492
22662
|
'Font family': 'Keluarga font',
|
|
22493
22663
|
'Insert format block': 'Sisipkan blok format',
|
|
@@ -22707,7 +22877,7 @@ function addClassNames(className, elm) {
|
|
|
22707
22877
|
'For information about the license, please go to our website:': 'Per informazioni sulla licenza, si prega di visitare il nostro sito web:',
|
|
22708
22878
|
'Buy full version': 'Acquista la versione completa',
|
|
22709
22879
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.',
|
|
22710
|
-
Anchor: '
|
|
22880
|
+
Anchor: 'Ancora',
|
|
22711
22881
|
'Open in new tab': 'Apri in una nuova scheda',
|
|
22712
22882
|
'Open in fullsize': "Apri l'editor a schermo intero",
|
|
22713
22883
|
'Clear Formatting': 'Pulisci Formattazione',
|
|
@@ -22727,6 +22897,11 @@ function addClassNames(className, elm) {
|
|
|
22727
22897
|
'Insert file': 'Inserisci un file',
|
|
22728
22898
|
'Insert youtube/vimeo video': 'Inserisci video Youtube/Vimeo',
|
|
22729
22899
|
'Insert link': 'Inserisci link',
|
|
22900
|
+
'Insert anchor': 'Inserisci ancora',
|
|
22901
|
+
'Link to an anchor': "Collega a un'ancora",
|
|
22902
|
+
'On this page': 'In questa pagina',
|
|
22903
|
+
'The name cannot contain spaces': 'Il nome non può contenere spazi',
|
|
22904
|
+
'This name is already in use': 'Questo nome è già in uso',
|
|
22730
22905
|
'Font size': 'Dimensione carattere',
|
|
22731
22906
|
'Font family': 'Tipo di font',
|
|
22732
22907
|
'Insert format block': 'Inserisci blocco',
|
|
@@ -22950,7 +23125,7 @@ function addClassNames(className, elm) {
|
|
|
22950
23125
|
'For information about the license, please go to our website:': 'ライセンス詳細についてはJodit Webサイトを確認ください:',
|
|
22951
23126
|
'Buy full version': 'フルバージョンを購入',
|
|
22952
23127
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
22953
|
-
Anchor: '
|
|
23128
|
+
Anchor: 'アンカー',
|
|
22954
23129
|
'Open in new tab': '新しいタブで開く',
|
|
22955
23130
|
'Open in fullsize': 'エディターのサイズ(フル/ノーマル)',
|
|
22956
23131
|
'Clear Formatting': '書式をクリア',
|
|
@@ -22970,6 +23145,11 @@ function addClassNames(className, elm) {
|
|
|
22970
23145
|
'Insert file': 'ファイルを挿入',
|
|
22971
23146
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 動画',
|
|
22972
23147
|
'Insert link': 'リンクを挿入',
|
|
23148
|
+
'Insert anchor': 'アンカーを挿入',
|
|
23149
|
+
'Link to an anchor': 'アンカーにリンク',
|
|
23150
|
+
'On this page': 'このページ内',
|
|
23151
|
+
'The name cannot contain spaces': '名前にスペースは使えません',
|
|
23152
|
+
'This name is already in use': 'この名前はすでに使われています',
|
|
22973
23153
|
'Font size': 'フォントサイズ',
|
|
22974
23154
|
'Font family': 'フォント',
|
|
22975
23155
|
'Insert format block': 'テキストのスタイル',
|
|
@@ -23204,7 +23384,7 @@ function addClassNames(className, elm) {
|
|
|
23204
23384
|
'For information about the license, please go to our website:': '라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:',
|
|
23205
23385
|
'Buy full version': '풀 버전 구입하기',
|
|
23206
23386
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': '© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.',
|
|
23207
|
-
Anchor: '
|
|
23387
|
+
Anchor: '앵커',
|
|
23208
23388
|
'Open in new tab': '새 탭에서 열기',
|
|
23209
23389
|
'Open in fullsize': '전체 크기로 보기',
|
|
23210
23390
|
'Clear Formatting': '서식 지우기',
|
|
@@ -23224,6 +23404,11 @@ function addClassNames(className, elm) {
|
|
|
23224
23404
|
'Insert file': '파일 넣기',
|
|
23225
23405
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 동영상',
|
|
23226
23406
|
'Insert link': '링크 넣기',
|
|
23407
|
+
'Insert anchor': '앵커 넣기',
|
|
23408
|
+
'Link to an anchor': '앵커에 연결',
|
|
23409
|
+
'On this page': '이 페이지에서',
|
|
23410
|
+
'The name cannot contain spaces': '이름에 공백을 넣을 수 없습니다',
|
|
23411
|
+
'This name is already in use': '이미 사용 중인 이름입니다',
|
|
23227
23412
|
'Font size': '글꼴 크기',
|
|
23228
23413
|
'Font family': '글꼴',
|
|
23229
23414
|
'Insert format block': '블록 요소 넣기',
|
|
@@ -23442,7 +23627,7 @@ function addClassNames(className, elm) {
|
|
|
23442
23627
|
'For information about the license, please go to our website:': 'Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:',
|
|
23443
23628
|
'Buy full version': 'Бүрэн хувилбар худалдан авах',
|
|
23444
23629
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.',
|
|
23445
|
-
Anchor: '
|
|
23630
|
+
Anchor: 'Зангуу',
|
|
23446
23631
|
'Open in new tab': 'Шинэ табаар нээх',
|
|
23447
23632
|
'Open in fullsize': 'Бүтэн дэлгэцээр нээх',
|
|
23448
23633
|
'Clear Formatting': 'Форматыг арилгах',
|
|
@@ -23462,6 +23647,11 @@ function addClassNames(className, elm) {
|
|
|
23462
23647
|
'Insert file': 'Файл нэмэх',
|
|
23463
23648
|
'Insert youtube/vimeo video': 'Youtube/Vimeo видео нэмэх',
|
|
23464
23649
|
'Insert link': 'Холбоос нэмэх',
|
|
23650
|
+
'Insert anchor': 'Зангуу нэмэх',
|
|
23651
|
+
'Link to an anchor': 'Зангуу руу холбох',
|
|
23652
|
+
'On this page': 'Энэ хуудсанд',
|
|
23653
|
+
'The name cannot contain spaces': 'Нэрэнд хоосон зай байж болохгүй',
|
|
23654
|
+
'This name is already in use': 'Энэ нэр аль хэдийн ашиглагдаж байна',
|
|
23465
23655
|
'Font size': 'Фонтын хэмжээ',
|
|
23466
23656
|
'Font family': 'Фонтын бүл',
|
|
23467
23657
|
'Insert format block': 'Блок нэмэх',
|
|
@@ -23701,6 +23891,11 @@ function addClassNames(className, elm) {
|
|
|
23701
23891
|
'Insert file': 'Bestand invoegen',
|
|
23702
23892
|
'Insert youtube/vimeo video': 'Youtube/Vimeo video invoegen',
|
|
23703
23893
|
'Insert link': 'Link toevoegen',
|
|
23894
|
+
'Insert anchor': 'Anker toevoegen',
|
|
23895
|
+
'Link to an anchor': 'Naar een anker linken',
|
|
23896
|
+
'On this page': 'Op deze pagina',
|
|
23897
|
+
'The name cannot contain spaces': 'De naam mag geen spaties bevatten',
|
|
23898
|
+
'This name is already in use': 'Deze naam is al in gebruik',
|
|
23704
23899
|
'Font size': 'Tekstgrootte',
|
|
23705
23900
|
'Font family': 'Lettertype',
|
|
23706
23901
|
'Insert format block': 'Format blok invoegen',
|
|
@@ -23938,6 +24133,11 @@ function addClassNames(className, elm) {
|
|
|
23938
24133
|
'Insert file': 'Sett inn fil',
|
|
23939
24134
|
'Insert youtube/vimeo video': 'Sett inn YouTube/Vimeo-video',
|
|
23940
24135
|
'Insert link': 'Sett inn lenke',
|
|
24136
|
+
'Insert anchor': 'Sett inn anker',
|
|
24137
|
+
'Link to an anchor': 'Lenke til et anker',
|
|
24138
|
+
'On this page': 'På denne siden',
|
|
24139
|
+
'The name cannot contain spaces': 'Navnet kan ikke inneholde mellomrom',
|
|
24140
|
+
'This name is already in use': 'Dette navnet er allerede i bruk',
|
|
23941
24141
|
'Font size': 'Skriftstørrelse',
|
|
23942
24142
|
'Font family': 'Skriftfamilie',
|
|
23943
24143
|
'Insert format block': 'Sett inn formateringsblokk',
|
|
@@ -24186,6 +24386,11 @@ function addClassNames(className, elm) {
|
|
|
24186
24386
|
'Insert file': 'Wstaw plik',
|
|
24187
24387
|
'Insert youtube/vimeo video': 'Wstaw film Youtube/vimeo',
|
|
24188
24388
|
'Insert link': 'Wstaw link',
|
|
24389
|
+
'Insert anchor': 'Wstaw kotwicę',
|
|
24390
|
+
'Link to an anchor': 'Link do kotwicy',
|
|
24391
|
+
'On this page': 'Na tej stronie',
|
|
24392
|
+
'The name cannot contain spaces': 'Nazwa nie może zawierać spacji',
|
|
24393
|
+
'This name is already in use': 'Ta nazwa jest już używana',
|
|
24189
24394
|
'Font size': 'Rozmiar tekstu',
|
|
24190
24395
|
'Font family': 'Krój czcionki',
|
|
24191
24396
|
'Insert format block': 'Wstaw formatowanie',
|
|
@@ -24404,7 +24609,7 @@ function addClassNames(className, elm) {
|
|
|
24404
24609
|
'For information about the license, please go to our website:': 'Para informação sobre a licença, por favor visite nosso site:',
|
|
24405
24610
|
'Buy full version': 'Compre a versão completa',
|
|
24406
24611
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.',
|
|
24407
|
-
Anchor: '
|
|
24612
|
+
Anchor: 'Âncora',
|
|
24408
24613
|
'Open in new tab': 'Abrir em nova aba',
|
|
24409
24614
|
'Open in fullsize': 'Abrir editor em tela cheia',
|
|
24410
24615
|
'Clear Formatting': 'Limpar formatação',
|
|
@@ -24424,6 +24629,11 @@ function addClassNames(className, elm) {
|
|
|
24424
24629
|
'Insert file': 'Inserir arquivo',
|
|
24425
24630
|
'Insert youtube/vimeo video': 'Inserir vídeo do Youtube/vimeo',
|
|
24426
24631
|
'Insert link': 'Inserir link',
|
|
24632
|
+
'Insert anchor': 'Inserir âncora',
|
|
24633
|
+
'Link to an anchor': 'Vincular a uma âncora',
|
|
24634
|
+
'On this page': 'Nesta página',
|
|
24635
|
+
'The name cannot contain spaces': 'O nome não pode conter espaços',
|
|
24636
|
+
'This name is already in use': 'Este nome já está em uso',
|
|
24427
24637
|
'Font size': 'Tamanho da letra',
|
|
24428
24638
|
'Font family': 'Fonte',
|
|
24429
24639
|
'Insert format block': 'Inserir bloco',
|
|
@@ -24646,7 +24856,7 @@ function addClassNames(className, elm) {
|
|
|
24646
24856
|
'For information about the license, please go to our website:': 'Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:',
|
|
24647
24857
|
'Buy full version': 'Купить полную версию',
|
|
24648
24858
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.',
|
|
24649
|
-
Anchor: '
|
|
24859
|
+
Anchor: 'Якорь',
|
|
24650
24860
|
'Open in new tab': 'Открывать ссылку в новой вкладке',
|
|
24651
24861
|
'Open in fullsize': 'Открыть редактор в полном размере',
|
|
24652
24862
|
'Clear Formatting': 'Очистить форматирование',
|
|
@@ -24666,6 +24876,11 @@ function addClassNames(className, elm) {
|
|
|
24666
24876
|
'Insert file': 'Вставить файл',
|
|
24667
24877
|
'Insert youtube/vimeo video': 'Вставьте видео',
|
|
24668
24878
|
'Insert link': 'Вставить ссылку',
|
|
24879
|
+
'Insert anchor': 'Вставить якорь',
|
|
24880
|
+
'Link to an anchor': 'Ссылка на якорь',
|
|
24881
|
+
'On this page': 'На этой странице',
|
|
24882
|
+
'The name cannot contain spaces': 'Имя не может содержать пробелы',
|
|
24883
|
+
'This name is already in use': 'Это имя уже используется',
|
|
24669
24884
|
'Font size': 'Размер шрифта',
|
|
24670
24885
|
'Font family': 'Шрифт',
|
|
24671
24886
|
'Insert format block': 'Вставить блочный элемент',
|
|
@@ -24904,6 +25119,11 @@ function addClassNames(className, elm) {
|
|
|
24904
25119
|
'Insert file': 'Vložiť súbor',
|
|
24905
25120
|
'Insert youtube/vimeo video': 'Vložiť video YouTube/Vimeo',
|
|
24906
25121
|
'Insert link': 'Vložiť odkaz',
|
|
25122
|
+
'Insert anchor': 'Vložiť kotvu',
|
|
25123
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
25124
|
+
'On this page': 'Na tejto stránke',
|
|
25125
|
+
'The name cannot contain spaces': 'Názov nesmie obsahovať medzery',
|
|
25126
|
+
'This name is already in use': 'Tento názov sa už používa',
|
|
24907
25127
|
'Font size': 'Veľkosť písma',
|
|
24908
25128
|
'Font family': 'Typ písma',
|
|
24909
25129
|
'Insert format block': 'Vložiť formátovaný blok',
|
|
@@ -25148,6 +25368,11 @@ function addClassNames(className, elm) {
|
|
|
25148
25368
|
'Insert file': 'Infoga fil',
|
|
25149
25369
|
'Insert youtube/vimeo video': 'Infoga YouTube/Vimeo-video',
|
|
25150
25370
|
'Insert link': 'Infoga länk',
|
|
25371
|
+
'Insert anchor': 'Infoga ankare',
|
|
25372
|
+
'Link to an anchor': 'Länka till ett ankare',
|
|
25373
|
+
'On this page': 'På den här sidan',
|
|
25374
|
+
'The name cannot contain spaces': 'Namnet får inte innehålla mellanslag',
|
|
25375
|
+
'This name is already in use': 'Det här namnet används redan',
|
|
25151
25376
|
'Font size': 'Teckenstorlek',
|
|
25152
25377
|
'Font family': 'Teckensnitt',
|
|
25153
25378
|
'Insert format block': 'Infoga formateringsblock',
|
|
@@ -25375,7 +25600,7 @@ function addClassNames(className, elm) {
|
|
|
25375
25600
|
'For information about the license, please go to our website:': 'Lisans hakkında bilgi için lütfen web sitemize gidin:',
|
|
25376
25601
|
'Buy full version': 'Tam versiyonunu satın al',
|
|
25377
25602
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.',
|
|
25378
|
-
Anchor: '
|
|
25603
|
+
Anchor: 'Çapa',
|
|
25379
25604
|
'Open in new tab': 'Yeni sekmede aç',
|
|
25380
25605
|
'Open in fullsize': 'Editörü tam ekranda aç',
|
|
25381
25606
|
'Clear Formatting': 'Stili temizle',
|
|
@@ -25395,6 +25620,11 @@ function addClassNames(className, elm) {
|
|
|
25395
25620
|
'Insert file': 'Dosya Ekle',
|
|
25396
25621
|
'Insert youtube/vimeo video': 'Youtube/Vimeo Videosu Ekle',
|
|
25397
25622
|
'Insert link': 'Bağlantı Ekle',
|
|
25623
|
+
'Insert anchor': 'Çapa Ekle',
|
|
25624
|
+
'Link to an anchor': 'Çapaya bağlantı',
|
|
25625
|
+
'On this page': 'Bu sayfada',
|
|
25626
|
+
'The name cannot contain spaces': 'Ad boşluk içeremez',
|
|
25627
|
+
'This name is already in use': 'Bu ad zaten kullanılıyor',
|
|
25398
25628
|
'Font size': 'Font Boyutu',
|
|
25399
25629
|
'Font family': 'Font Ailesi',
|
|
25400
25630
|
'Insert format block': 'Blok Ekle',
|
|
@@ -25612,7 +25842,7 @@ function addClassNames(className, elm) {
|
|
|
25612
25842
|
'For information about the license, please go to our website:': 'Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:',
|
|
25613
25843
|
'Buy full version': 'Купити повну версію',
|
|
25614
25844
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.',
|
|
25615
|
-
Anchor: '
|
|
25845
|
+
Anchor: 'Якір',
|
|
25616
25846
|
'Open in new tab': 'Відкрити у новій вкладці',
|
|
25617
25847
|
'Open in fullsize': 'Відкрити редактор в повному розмірі',
|
|
25618
25848
|
'Clear Formatting': 'Очистити форматування',
|
|
@@ -25632,6 +25862,11 @@ function addClassNames(className, elm) {
|
|
|
25632
25862
|
'Insert file': 'Вставити файл',
|
|
25633
25863
|
'Insert youtube/vimeo video': 'Вставити відео',
|
|
25634
25864
|
'Insert link': 'Вставити посилання',
|
|
25865
|
+
'Insert anchor': 'Вставити якір',
|
|
25866
|
+
'Link to an anchor': 'Посилання на якір',
|
|
25867
|
+
'On this page': 'На цій сторінці',
|
|
25868
|
+
'The name cannot contain spaces': "Ім'я не може містити пробілів",
|
|
25869
|
+
'This name is already in use': "Це ім'я вже використовується",
|
|
25635
25870
|
'Font size': 'Розмір шрифту',
|
|
25636
25871
|
'Font family': 'Шрифт',
|
|
25637
25872
|
'Insert format block': 'Вставити блочний елемент',
|
|
@@ -25851,7 +26086,7 @@ function addClassNames(className, elm) {
|
|
|
25851
26086
|
'For information about the license, please go to our website:': '有关许可证的信息,请访问我们的网站:',
|
|
25852
26087
|
'Buy full version': '购买完整版本',
|
|
25853
26088
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有',
|
|
25854
|
-
Anchor: '
|
|
26089
|
+
Anchor: '锚点',
|
|
25855
26090
|
'Open in new tab': '在新窗口打开',
|
|
25856
26091
|
'Open in fullsize': '全屏编辑',
|
|
25857
26092
|
'Clear Formatting': '清除样式',
|
|
@@ -25871,6 +26106,11 @@ function addClassNames(className, elm) {
|
|
|
25871
26106
|
'Insert file': '文件',
|
|
25872
26107
|
'Insert youtube/vimeo video': '视频',
|
|
25873
26108
|
'Insert link': '链接',
|
|
26109
|
+
'Insert anchor': '插入锚点',
|
|
26110
|
+
'Link to an anchor': '链接到锚点',
|
|
26111
|
+
'On this page': '在本页',
|
|
26112
|
+
'The name cannot contain spaces': '名称不能包含空格',
|
|
26113
|
+
'This name is already in use': '此名称已被使用',
|
|
25874
26114
|
'Font size': '字号',
|
|
25875
26115
|
'Font family': '字体',
|
|
25876
26116
|
'Insert format block': '格式块',
|
|
@@ -26109,6 +26349,11 @@ function addClassNames(className, elm) {
|
|
|
26109
26349
|
'Insert file': '檔案',
|
|
26110
26350
|
'Insert youtube/vimeo video': '插入 youtube/vimeo 影片',
|
|
26111
26351
|
'Insert link': '插入連結',
|
|
26352
|
+
'Insert anchor': '插入錨點',
|
|
26353
|
+
'Link to an anchor': '連結到錨點',
|
|
26354
|
+
'On this page': '在本頁',
|
|
26355
|
+
'The name cannot contain spaces': '名稱不能包含空格',
|
|
26356
|
+
'This name is already in use': '此名稱已被使用',
|
|
26112
26357
|
'Font size': '文字大小',
|
|
26113
26358
|
'Font family': '字型',
|
|
26114
26359
|
'Insert format block': '格式化區塊',
|
|
@@ -26313,34 +26558,35 @@ function addClassNames(className, elm) {
|
|
|
26313
26558
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
26314
26559
|
|
|
26315
26560
|
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
26316
|
-
/* harmony import */ var
|
|
26317
|
-
/* harmony import */ var
|
|
26318
|
-
/* harmony import */ var
|
|
26319
|
-
/* harmony import */ var
|
|
26320
|
-
/* harmony import */ var
|
|
26321
|
-
/* harmony import */ var
|
|
26322
|
-
/* harmony import */ var
|
|
26323
|
-
/* harmony import */ var
|
|
26324
|
-
/* harmony import */ var
|
|
26325
|
-
/* harmony import */ var
|
|
26326
|
-
/* harmony import */ var
|
|
26327
|
-
/* harmony import */ var
|
|
26328
|
-
/* harmony import */ var
|
|
26329
|
-
/* harmony import */ var
|
|
26330
|
-
/* harmony import */ var
|
|
26331
|
-
/* harmony import */ var
|
|
26332
|
-
/* harmony import */ var
|
|
26333
|
-
/* harmony import */ var
|
|
26334
|
-
/* harmony import */ var
|
|
26335
|
-
/* harmony import */ var
|
|
26336
|
-
/* harmony import */ var
|
|
26337
|
-
/* harmony import */ var
|
|
26338
|
-
/* harmony import */ var
|
|
26339
|
-
/* harmony import */ var
|
|
26340
|
-
/* harmony import */ var
|
|
26341
|
-
/* harmony import */ var
|
|
26342
|
-
/* harmony import */ var
|
|
26343
|
-
/* harmony import */ var
|
|
26561
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
26562
|
+
/* harmony import */ var _langs_ar_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79910);
|
|
26563
|
+
/* harmony import */ var _langs_az_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95342);
|
|
26564
|
+
/* harmony import */ var _langs_cs_cz_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4795);
|
|
26565
|
+
/* harmony import */ var _langs_de_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62770);
|
|
26566
|
+
/* harmony import */ var _langs_en_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1830);
|
|
26567
|
+
/* harmony import */ var _langs_es_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86273);
|
|
26568
|
+
/* harmony import */ var _langs_fa_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97552);
|
|
26569
|
+
/* harmony import */ var _langs_fi_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82168);
|
|
26570
|
+
/* harmony import */ var _langs_fr_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(85017);
|
|
26571
|
+
/* harmony import */ var _langs_he_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(32726);
|
|
26572
|
+
/* harmony import */ var _langs_hu_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67078);
|
|
26573
|
+
/* harmony import */ var _langs_id_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(92648);
|
|
26574
|
+
/* harmony import */ var _langs_it_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(62232);
|
|
26575
|
+
/* harmony import */ var _langs_ja_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62700);
|
|
26576
|
+
/* harmony import */ var _langs_keys_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(75445);
|
|
26577
|
+
/* harmony import */ var _langs_ko_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(97519);
|
|
26578
|
+
/* harmony import */ var _langs_mn_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(80926);
|
|
26579
|
+
/* harmony import */ var _langs_nl_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(52995);
|
|
26580
|
+
/* harmony import */ var _langs_no_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59526);
|
|
26581
|
+
/* harmony import */ var _langs_pl_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(40565);
|
|
26582
|
+
/* harmony import */ var _langs_pt_br_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(19292);
|
|
26583
|
+
/* harmony import */ var _langs_ru_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(83160);
|
|
26584
|
+
/* harmony import */ var _langs_sk_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(57571);
|
|
26585
|
+
/* harmony import */ var _langs_sv_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(66824);
|
|
26586
|
+
/* harmony import */ var _langs_tr_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(28923);
|
|
26587
|
+
/* harmony import */ var _langs_ua_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(19007);
|
|
26588
|
+
/* harmony import */ var _langs_zh_cn_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(60175);
|
|
26589
|
+
/* harmony import */ var _langs_zh_tw_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(69159);
|
|
26344
26590
|
/*!
|
|
26345
26591
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26346
26592
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26372,41 +26618,43 @@ function addClassNames(className, elm) {
|
|
|
26372
26618
|
|
|
26373
26619
|
|
|
26374
26620
|
|
|
26621
|
+
|
|
26375
26622
|
|
|
26376
26623
|
|
|
26377
26624
|
let exp = {};
|
|
26378
26625
|
exp = {
|
|
26379
|
-
ar:
|
|
26380
|
-
az:
|
|
26381
|
-
cs_cz:
|
|
26382
|
-
de:
|
|
26383
|
-
en:
|
|
26384
|
-
es:
|
|
26385
|
-
fa:
|
|
26386
|
-
fi:
|
|
26387
|
-
fr:
|
|
26388
|
-
he:
|
|
26389
|
-
hu:
|
|
26390
|
-
id:
|
|
26391
|
-
it:
|
|
26392
|
-
ja:
|
|
26393
|
-
ko:
|
|
26394
|
-
mn:
|
|
26395
|
-
nl:
|
|
26396
|
-
no:
|
|
26397
|
-
pl:
|
|
26398
|
-
pt_br:
|
|
26399
|
-
ru:
|
|
26400
|
-
sk:
|
|
26401
|
-
sv:
|
|
26402
|
-
tr:
|
|
26403
|
-
ua:
|
|
26404
|
-
zh_cn:
|
|
26405
|
-
zh_tw:
|
|
26406
|
-
};
|
|
26407
|
-
/* Unpack array to hash */
|
|
26408
|
-
|
|
26409
|
-
|
|
26626
|
+
ar: _langs_ar_js__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
26627
|
+
az: _langs_az_js__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
26628
|
+
cs_cz: _langs_cs_cz_js__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
26629
|
+
de: _langs_de_js__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
26630
|
+
en: _langs_en_js__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
26631
|
+
es: _langs_es_js__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
26632
|
+
fa: _langs_fa_js__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
26633
|
+
fi: _langs_fi_js__WEBPACK_IMPORTED_MODULE_9__["default"],
|
|
26634
|
+
fr: _langs_fr_js__WEBPACK_IMPORTED_MODULE_10__["default"],
|
|
26635
|
+
he: _langs_he_js__WEBPACK_IMPORTED_MODULE_11__["default"],
|
|
26636
|
+
hu: _langs_hu_js__WEBPACK_IMPORTED_MODULE_12__["default"],
|
|
26637
|
+
id: _langs_id_js__WEBPACK_IMPORTED_MODULE_13__["default"],
|
|
26638
|
+
it: _langs_it_js__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
26639
|
+
ja: _langs_ja_js__WEBPACK_IMPORTED_MODULE_15__["default"],
|
|
26640
|
+
ko: _langs_ko_js__WEBPACK_IMPORTED_MODULE_17__["default"],
|
|
26641
|
+
mn: _langs_mn_js__WEBPACK_IMPORTED_MODULE_18__["default"],
|
|
26642
|
+
nl: _langs_nl_js__WEBPACK_IMPORTED_MODULE_19__["default"],
|
|
26643
|
+
no: _langs_no_js__WEBPACK_IMPORTED_MODULE_20__["default"],
|
|
26644
|
+
pl: _langs_pl_js__WEBPACK_IMPORTED_MODULE_21__["default"],
|
|
26645
|
+
pt_br: _langs_pt_br_js__WEBPACK_IMPORTED_MODULE_22__["default"],
|
|
26646
|
+
ru: _langs_ru_js__WEBPACK_IMPORTED_MODULE_23__["default"],
|
|
26647
|
+
sk: _langs_sk_js__WEBPACK_IMPORTED_MODULE_24__["default"],
|
|
26648
|
+
sv: _langs_sv_js__WEBPACK_IMPORTED_MODULE_25__["default"],
|
|
26649
|
+
tr: _langs_tr_js__WEBPACK_IMPORTED_MODULE_26__["default"],
|
|
26650
|
+
ua: _langs_ua_js__WEBPACK_IMPORTED_MODULE_27__["default"],
|
|
26651
|
+
zh_cn: _langs_zh_cn_js__WEBPACK_IMPORTED_MODULE_28__["default"],
|
|
26652
|
+
zh_tw: _langs_zh_tw_js__WEBPACK_IMPORTED_MODULE_29__["default"]
|
|
26653
|
+
};
|
|
26654
|
+
/* Unpack array to hash */ // Unwrap a module (`default` is the dictionary or the packed array), but keep a dictionary whose `default` is a translation (`no.js`)
|
|
26655
|
+
const get = (value)=>value ? (0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(value.default) || (0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value.default) ? value.default : value : {}, hashLang = {};
|
|
26656
|
+
if ((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(get(_langs_keys_js__WEBPACK_IMPORTED_MODULE_16__["default"]))) {
|
|
26657
|
+
get(_langs_keys_js__WEBPACK_IMPORTED_MODULE_16__["default"]).forEach((key, index)=>{
|
|
26410
26658
|
hashLang[index] = key;
|
|
26411
26659
|
});
|
|
26412
26660
|
}
|
|
@@ -28698,15 +28946,16 @@ function makeContextMenu(parent) {
|
|
|
28698
28946
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70231);
|
|
28699
28947
|
/* harmony import */ var _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84075);
|
|
28700
28948
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6441);
|
|
28701
|
-
/* harmony import */ var
|
|
28702
|
-
/* harmony import */ var
|
|
28703
|
-
/* harmony import */ var
|
|
28704
|
-
/* harmony import */ var
|
|
28705
|
-
/* harmony import */ var
|
|
28706
|
-
/* harmony import */ var
|
|
28707
|
-
/* harmony import */ var
|
|
28708
|
-
/* harmony import */ var
|
|
28709
|
-
/* harmony import */ var
|
|
28949
|
+
/* harmony import */ var _uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2073);
|
|
28950
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(61251);
|
|
28951
|
+
/* harmony import */ var _fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(30465);
|
|
28952
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20201);
|
|
28953
|
+
/* harmony import */ var _listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(73948);
|
|
28954
|
+
/* harmony import */ var _listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(33281);
|
|
28955
|
+
/* harmony import */ var _listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94538);
|
|
28956
|
+
/* harmony import */ var _data_provider_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(11787);
|
|
28957
|
+
/* harmony import */ var _factories_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(63399);
|
|
28958
|
+
/* harmony import */ var _ui_index_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8172);
|
|
28710
28959
|
/*!
|
|
28711
28960
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28712
28961
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28737,6 +28986,7 @@ function makeContextMenu(parent) {
|
|
|
28737
28986
|
|
|
28738
28987
|
|
|
28739
28988
|
|
|
28989
|
+
|
|
28740
28990
|
|
|
28741
28991
|
|
|
28742
28992
|
let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__.ViewWithToolbar {
|
|
@@ -28744,26 +28994,26 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28744
28994
|
return 'FileBrowser';
|
|
28745
28995
|
}
|
|
28746
28996
|
get dataProvider() {
|
|
28747
|
-
return (0,
|
|
28997
|
+
return (0,_factories_js__WEBPACK_IMPORTED_MODULE_20__.makeDataProvider)(this, this.options);
|
|
28748
28998
|
}
|
|
28749
28999
|
onSelect(callback) {
|
|
28750
29000
|
return ()=>{
|
|
28751
29001
|
if (this.state.activeElements.length) {
|
|
28752
|
-
const
|
|
28753
|
-
const isImages = [];
|
|
29002
|
+
const items = [];
|
|
28754
29003
|
this.state.activeElements.forEach((elm)=>{
|
|
28755
29004
|
const url = elm.fileURL;
|
|
28756
29005
|
if (url) {
|
|
28757
|
-
|
|
28758
|
-
|
|
29006
|
+
items.push({
|
|
29007
|
+
file: url,
|
|
29008
|
+
isImage: elm.isImage || false
|
|
29009
|
+
});
|
|
28759
29010
|
}
|
|
28760
29011
|
});
|
|
28761
29012
|
this.close();
|
|
28762
|
-
const data = {
|
|
29013
|
+
const data = (0,_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__.normalizeUploaderData)({
|
|
28763
29014
|
baseurl: '',
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
};
|
|
29015
|
+
items
|
|
29016
|
+
});
|
|
28767
29017
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.isFunction)(callback)) {
|
|
28768
29018
|
callback(data);
|
|
28769
29019
|
}
|
|
@@ -28829,10 +29079,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28829
29079
|
* ```javascript
|
|
28830
29080
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
28831
29081
|
* fb.open(function (data) {
|
|
28832
|
-
*
|
|
28833
|
-
*
|
|
28834
|
-
*
|
|
28835
|
-
* }
|
|
29082
|
+
* data.items.forEach(function (item) {
|
|
29083
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
29084
|
+
* });
|
|
28836
29085
|
* });
|
|
28837
29086
|
* ```
|
|
28838
29087
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -28855,7 +29104,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28855
29104
|
this.__updateToolbarButtons();
|
|
28856
29105
|
this._dialog.open(this.browser, header);
|
|
28857
29106
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
28858
|
-
(0,
|
|
29107
|
+
(0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
28859
29108
|
var _a;
|
|
28860
29109
|
if (this.isInDestruct) {
|
|
28861
29110
|
return;
|
|
@@ -28889,7 +29138,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28889
29138
|
initUploader(editor) {
|
|
28890
29139
|
var _a;
|
|
28891
29140
|
const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_11__.Config.defaultOptions.uploader);
|
|
28892
|
-
const uploadHandler = ()=>(0,
|
|
29141
|
+
const uploadHandler = ()=>(0,_fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__.loadItems)(this);
|
|
28893
29142
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
28894
29143
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
28895
29144
|
this.state.on([
|
|
@@ -28925,11 +29174,11 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28925
29174
|
super(options);
|
|
28926
29175
|
this.browser = this.c.div(this.componentName);
|
|
28927
29176
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
28928
|
-
this.tree = new
|
|
28929
|
-
this.files = new
|
|
29177
|
+
this.tree = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserTree(this);
|
|
29178
|
+
this.files = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserFiles(this);
|
|
28930
29179
|
this.state = (0,_core_event_emitter_index_js__WEBPACK_IMPORTED_MODULE_5__.observable)({
|
|
28931
29180
|
currentPath: '',
|
|
28932
|
-
currentSource:
|
|
29181
|
+
currentSource: _data_provider_js__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_SOURCE_NAME,
|
|
28933
29182
|
currentBaseUrl: '',
|
|
28934
29183
|
activeElements: [],
|
|
28935
29184
|
elements: [],
|
|
@@ -28965,9 +29214,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
28965
29214
|
}
|
|
28966
29215
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.files.container);
|
|
28967
29216
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.status_line);
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
29217
|
+
_listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__.selfListeners.call(self);
|
|
29218
|
+
_listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__.nativeListeners.call(self);
|
|
29219
|
+
_listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__.stateListeners.call(self);
|
|
28971
29220
|
const keys = [
|
|
28972
29221
|
'getLocalFileByUrl',
|
|
28973
29222
|
'crop',
|
|
@@ -31968,29 +32217,30 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
31968
32217
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
31969
32218
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
31970
32219
|
/* harmony export */ });
|
|
31971
|
-
/* harmony import */ var
|
|
31972
|
-
/* harmony import */ var
|
|
31973
|
-
/* harmony import */ var
|
|
31974
|
-
/* harmony import */ var
|
|
31975
|
-
/* harmony import */ var
|
|
31976
|
-
/* harmony import */ var
|
|
31977
|
-
/* harmony import */ var
|
|
31978
|
-
/* harmony import */ var
|
|
31979
|
-
/* harmony import */ var
|
|
31980
|
-
/* harmony import */ var
|
|
31981
|
-
/* harmony import */ var
|
|
31982
|
-
/* harmony import */ var
|
|
31983
|
-
/* harmony import */ var
|
|
31984
|
-
/* harmony import */ var
|
|
31985
|
-
/* harmony import */ var
|
|
31986
|
-
/* harmony import */ var
|
|
31987
|
-
/* harmony import */ var
|
|
31988
|
-
/* harmony import */ var
|
|
31989
|
-
/* harmony import */ var
|
|
31990
|
-
/* harmony import */ var
|
|
31991
|
-
/* harmony import */ var
|
|
31992
|
-
/* harmony import */ var
|
|
31993
|
-
/* harmony import */ var
|
|
32220
|
+
/* harmony import */ var _core_component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4012);
|
|
32221
|
+
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78213);
|
|
32222
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
32223
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45219);
|
|
32224
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33433);
|
|
32225
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87325);
|
|
32226
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37133);
|
|
32227
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2748);
|
|
32228
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68345);
|
|
32229
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23282);
|
|
32230
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(19306);
|
|
32231
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72430);
|
|
32232
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70799);
|
|
32233
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(56175);
|
|
32234
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(87058);
|
|
32235
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38837);
|
|
32236
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(29960);
|
|
32237
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37790);
|
|
32238
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(62843);
|
|
32239
|
+
/* harmony import */ var _core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(20014);
|
|
32240
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(72157);
|
|
32241
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(12153);
|
|
32242
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(56917);
|
|
32243
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(21491);
|
|
31994
32244
|
/*!
|
|
31995
32245
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
31996
32246
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32001,6 +32251,8 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
32001
32251
|
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;
|
|
32002
32252
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32003
32253
|
};
|
|
32254
|
+
var ToolbarButton_1;
|
|
32255
|
+
|
|
32004
32256
|
|
|
32005
32257
|
|
|
32006
32258
|
|
|
@@ -32038,7 +32290,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
32038
32290
|
'textarea:not([disabled])',
|
|
32039
32291
|
'[tabindex]:not([tabindex="-1"])'
|
|
32040
32292
|
].join(',');
|
|
32041
|
-
let ToolbarButton = class ToolbarButton extends
|
|
32293
|
+
let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButton {
|
|
32042
32294
|
className() {
|
|
32043
32295
|
return 'ToolbarButton';
|
|
32044
32296
|
}
|
|
@@ -32049,13 +32301,13 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32049
32301
|
super.updateAriaLabel();
|
|
32050
32302
|
if (this.trigger) {
|
|
32051
32303
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
32052
|
-
(0,
|
|
32304
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
32053
32305
|
}
|
|
32054
32306
|
}
|
|
32055
32307
|
/**
|
|
32056
32308
|
* Get parent toolbar
|
|
32057
32309
|
*/ get toolbar() {
|
|
32058
|
-
const ToolbarCollection = (0,
|
|
32310
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.getComponentClass)('ToolbarCollection');
|
|
32059
32311
|
return this.closest(ToolbarCollection);
|
|
32060
32312
|
}
|
|
32061
32313
|
update() {
|
|
@@ -32077,7 +32329,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32077
32329
|
* Calculates whether the button is active
|
|
32078
32330
|
*/ __calculateActivatedStatus(tc) {
|
|
32079
32331
|
var _a, _b;
|
|
32080
|
-
if ((0,
|
|
32332
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
32081
32333
|
return false;
|
|
32082
32334
|
}
|
|
32083
32335
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -32101,11 +32353,11 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32101
32353
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
32102
32354
|
}
|
|
32103
32355
|
onChangeActivated() {
|
|
32104
|
-
;(0,
|
|
32356
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
32105
32357
|
super.onChangeActivated();
|
|
32106
32358
|
}
|
|
32107
32359
|
onChangeText() {
|
|
32108
|
-
if ((0,
|
|
32360
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
32109
32361
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
32110
32362
|
} else {
|
|
32111
32363
|
super.onChangeText();
|
|
@@ -32113,8 +32365,8 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32113
32365
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
32114
32366
|
}
|
|
32115
32367
|
onChangeTabIndex() {
|
|
32116
|
-
;(0,
|
|
32117
|
-
(0,
|
|
32368
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
32369
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
32118
32370
|
}
|
|
32119
32371
|
createContainer() {
|
|
32120
32372
|
const cn = this.componentName;
|
|
@@ -32126,29 +32378,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32126
32378
|
value: this,
|
|
32127
32379
|
configurable: true
|
|
32128
32380
|
});
|
|
32129
|
-
|
|
32130
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
32381
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(container, button);
|
|
32382
|
+
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_21__.Icon.get('chevron')}</span>`);
|
|
32131
32383
|
// For caching
|
|
32132
|
-
|
|
32384
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(button, trigger);
|
|
32133
32385
|
return container;
|
|
32134
32386
|
}
|
|
32135
32387
|
/** @override */ focus() {
|
|
32136
32388
|
var _a;
|
|
32137
|
-
(_a =
|
|
32389
|
+
(_a = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.first(this.container, (node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.isTag(node, 'button'))) === null || _a === void 0 ? void 0 : _a.focus();
|
|
32138
32390
|
}
|
|
32139
32391
|
onChangeHasTrigger() {
|
|
32140
32392
|
if (this.state.hasTrigger) {
|
|
32141
|
-
|
|
32393
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(this.container, this.trigger);
|
|
32142
32394
|
} else {
|
|
32143
|
-
|
|
32395
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(this.trigger);
|
|
32144
32396
|
}
|
|
32145
32397
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
32146
32398
|
}
|
|
32147
32399
|
/** @override */ onChangeDisabled() {
|
|
32148
32400
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
32149
|
-
(0,
|
|
32150
|
-
(0,
|
|
32151
|
-
(0,
|
|
32401
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'disabled', disabled);
|
|
32402
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'disabled', disabled);
|
|
32403
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', disabled);
|
|
32152
32404
|
}
|
|
32153
32405
|
/**
|
|
32154
32406
|
* Init constant data from control
|
|
@@ -32158,7 +32410,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32158
32410
|
state.name = ctr.name;
|
|
32159
32411
|
this.__initIconFromControl();
|
|
32160
32412
|
if (ctr.tooltip) {
|
|
32161
|
-
state.tooltip = (0,
|
|
32413
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
32162
32414
|
}
|
|
32163
32415
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
32164
32416
|
}
|
|
@@ -32166,12 +32418,12 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32166
32418
|
var _a;
|
|
32167
32419
|
const { control: ctr, state } = this;
|
|
32168
32420
|
const { textIcons } = this.j.o;
|
|
32169
|
-
if (textIcons === true || (0,
|
|
32170
|
-
state.icon = (0,
|
|
32421
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
32422
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)().icon;
|
|
32171
32423
|
state.text = ctr.text || ctr.name;
|
|
32172
32424
|
return;
|
|
32173
32425
|
}
|
|
32174
|
-
if (!(0,
|
|
32426
|
+
if (!(0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(ctr.icon) && ctr.icon != null) {
|
|
32175
32427
|
state.icon = {
|
|
32176
32428
|
name: ctr.icon.name || ctr.name,
|
|
32177
32429
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -32184,7 +32436,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32184
32436
|
state.icon.iconURL = ctr.iconURL;
|
|
32185
32437
|
} else {
|
|
32186
32438
|
const name = ctr.icon || ctr.name;
|
|
32187
|
-
state.icon.name =
|
|
32439
|
+
state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_21__.Icon.exists(name) || ((_a = this.j.o.extraIcons) === null || _a === void 0 ? void 0 : _a[name]) ? name : '';
|
|
32188
32440
|
}
|
|
32189
32441
|
if (!ctr.iconURL && !state.icon.name) {
|
|
32190
32442
|
state.text = ctr.text || ctr.name;
|
|
@@ -32199,25 +32451,25 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32199
32451
|
return;
|
|
32200
32452
|
}
|
|
32201
32453
|
const { control: ctr } = this;
|
|
32202
|
-
(0,
|
|
32454
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', true);
|
|
32203
32455
|
e.buffer = {
|
|
32204
32456
|
actionTrigger: this
|
|
32205
32457
|
};
|
|
32206
32458
|
if (ctr.list) {
|
|
32207
32459
|
return this.__openControlList(ctr);
|
|
32208
32460
|
}
|
|
32209
|
-
if ((0,
|
|
32461
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
32210
32462
|
const popup = this.openPopup();
|
|
32211
32463
|
popup.parentElement = this;
|
|
32212
32464
|
try {
|
|
32213
|
-
if (this.j.e.fire((0,
|
|
32465
|
+
if (this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
32214
32466
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
32215
32467
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
32216
32468
|
if (elm) {
|
|
32217
|
-
popup.setContent((0,
|
|
32469
|
+
popup.setContent((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_13__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
32218
32470
|
// The focus stays in the content for a list, which
|
|
32219
32471
|
// typing searches, but goes to a form, as in a dialog
|
|
32220
|
-
(0,
|
|
32472
|
+
(0,_core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__.focusFormField)(popup.container);
|
|
32221
32473
|
} else {
|
|
32222
32474
|
this.__closePopup();
|
|
32223
32475
|
}
|
|
@@ -32230,20 +32482,20 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32230
32482
|
* Fired after the popup was opened for some control button
|
|
32231
32483
|
*/ /**
|
|
32232
32484
|
* Close all opened popups
|
|
32233
|
-
*/ this.j.e.fire((0,
|
|
32485
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
32234
32486
|
}
|
|
32235
32487
|
}
|
|
32236
32488
|
onTriggerKeyDown(e) {
|
|
32237
32489
|
if (this.state.disabled) {
|
|
32238
32490
|
return;
|
|
32239
32491
|
}
|
|
32240
|
-
if (e.key ===
|
|
32492
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN) {
|
|
32241
32493
|
this.onButtonKeyDown(e);
|
|
32242
32494
|
return;
|
|
32243
32495
|
}
|
|
32244
32496
|
if (![
|
|
32245
|
-
|
|
32246
|
-
|
|
32497
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ENTER,
|
|
32498
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_SPACE,
|
|
32247
32499
|
' '
|
|
32248
32500
|
].includes(e.key)) {
|
|
32249
32501
|
return;
|
|
@@ -32256,7 +32508,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32256
32508
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
32257
32509
|
*/ onButtonKeyDown(e) {
|
|
32258
32510
|
var _a;
|
|
32259
|
-
if (e.key !==
|
|
32511
|
+
if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
32260
32512
|
return;
|
|
32261
32513
|
}
|
|
32262
32514
|
e.preventDefault();
|
|
@@ -32275,22 +32527,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32275
32527
|
}
|
|
32276
32528
|
const target = e.target;
|
|
32277
32529
|
// A text field keeps the arrow keys for itself
|
|
32278
|
-
if (
|
|
32530
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.isTag(target, INPUT_TAGS) && e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
32279
32531
|
return;
|
|
32280
32532
|
}
|
|
32281
32533
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
32282
32534
|
switch(e.key){
|
|
32283
|
-
case
|
|
32535
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC:
|
|
32284
32536
|
this.__closePopup();
|
|
32285
32537
|
break;
|
|
32286
|
-
case
|
|
32538
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_UP:
|
|
32287
32539
|
if (index <= 0) {
|
|
32288
32540
|
this.__closePopup();
|
|
32289
32541
|
} else {
|
|
32290
32542
|
items[index - 1].focus();
|
|
32291
32543
|
}
|
|
32292
32544
|
break;
|
|
32293
|
-
case
|
|
32545
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN:
|
|
32294
32546
|
if (!items.length) {
|
|
32295
32547
|
return;
|
|
32296
32548
|
}
|
|
@@ -32360,7 +32612,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32360
32612
|
* Create an open popup list
|
|
32361
32613
|
*/ __openControlList(control) {
|
|
32362
32614
|
var _a, _b, _c, _d, _e;
|
|
32363
|
-
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,
|
|
32615
|
+
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_20__.findControlType)(key, controls);
|
|
32364
32616
|
const list = control.list;
|
|
32365
32617
|
const menu = this.openPopup();
|
|
32366
32618
|
menu.parentElement = this;
|
|
@@ -32368,18 +32620,18 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32368
32620
|
if (content) {
|
|
32369
32621
|
return this.__openMenu(menu, content);
|
|
32370
32622
|
}
|
|
32371
|
-
const toolbar = (0,
|
|
32623
|
+
const toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_23__.makeCollection)(this.j);
|
|
32372
32624
|
toolbar.parentElement = menu;
|
|
32373
32625
|
toolbar.mode = 'vertical';
|
|
32374
|
-
const isListItem = (key)=>(0,
|
|
32626
|
+
const isListItem = (key)=>(0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
32375
32627
|
const getButton = (key, value)=>{
|
|
32376
|
-
if ((0,
|
|
32628
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value) && getControl(value)) {
|
|
32377
32629
|
return {
|
|
32378
32630
|
name: value.toString(),
|
|
32379
32631
|
...getControl(value)
|
|
32380
32632
|
};
|
|
32381
32633
|
}
|
|
32382
|
-
if ((0,
|
|
32634
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(key) && getControl(key)) {
|
|
32383
32635
|
return {
|
|
32384
32636
|
name: key.toString(),
|
|
32385
32637
|
...getControl(key),
|
|
@@ -32413,29 +32665,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32413
32665
|
value
|
|
32414
32666
|
]
|
|
32415
32667
|
};
|
|
32416
|
-
if ((0,
|
|
32668
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value)) {
|
|
32417
32669
|
childControl.text = value;
|
|
32418
32670
|
}
|
|
32419
32671
|
return childControl;
|
|
32420
32672
|
};
|
|
32421
|
-
toolbar.build((0,
|
|
32673
|
+
toolbar.build((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(list) ? list.map(getButton) : (0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_17__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
|
|
32422
32674
|
this.__openMenu(menu, toolbar);
|
|
32423
32675
|
}
|
|
32424
32676
|
__openMenu(menu, content) {
|
|
32425
|
-
menu.setContent(content).open(()=>(0,
|
|
32677
|
+
menu.setContent(content).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_13__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
32426
32678
|
this.state.activated = true;
|
|
32427
32679
|
}
|
|
32428
32680
|
onOutsideClick(e) {
|
|
32429
32681
|
if (!this.openedPopup) {
|
|
32430
32682
|
return;
|
|
32431
32683
|
}
|
|
32432
|
-
if (!e || !
|
|
32684
|
+
if (!e || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.isNode(e.target) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
32433
32685
|
this.__closePopup();
|
|
32434
32686
|
}
|
|
32435
32687
|
}
|
|
32436
32688
|
openPopup() {
|
|
32437
32689
|
this.__closePopup();
|
|
32438
|
-
this.openedPopup = new
|
|
32690
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__.Popup(this.j, false);
|
|
32439
32691
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick).on('keydown', this.__onEditorKeyDown).on(this.openedPopup.container, 'keydown', this.__onPopupKeyDown);
|
|
32440
32692
|
return this.openedPopup;
|
|
32441
32693
|
}
|
|
@@ -32455,14 +32707,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32455
32707
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
32456
32708
|
// the button, otherwise it would fall out to the document. A form
|
|
32457
32709
|
// gives it back to the content, with the selection it was opened for
|
|
32458
|
-
const { activeElement } = this.od, hadFocus = activeElement &&
|
|
32710
|
+
const { activeElement } = this.od, hadFocus = activeElement && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(popup.container, activeElement), inForm = hadFocus && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.closest(activeElement, 'form', popup.container);
|
|
32459
32711
|
this.state.activated = false;
|
|
32460
32712
|
popup.close();
|
|
32461
32713
|
popup.destruct();
|
|
32462
32714
|
if (this.trigger) {
|
|
32463
|
-
(0,
|
|
32715
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', false);
|
|
32464
32716
|
}
|
|
32465
|
-
if (inForm && (0,
|
|
32717
|
+
if (inForm && (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j)) {
|
|
32466
32718
|
this.j.s.focus();
|
|
32467
32719
|
} else if (hadFocus) {
|
|
32468
32720
|
this.focus();
|
|
@@ -32473,7 +32725,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32473
32725
|
*/ onClick(originalEvent) {
|
|
32474
32726
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
32475
32727
|
const { control: ctr } = this;
|
|
32476
|
-
if ((0,
|
|
32728
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.exec)) {
|
|
32477
32729
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
32478
32730
|
const result = ctr.exec(this.j, target, {
|
|
32479
32731
|
control: ctr,
|
|
@@ -32486,9 +32738,10 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32486
32738
|
if (this.parentElement) {
|
|
32487
32739
|
this.parentElement.update();
|
|
32488
32740
|
}
|
|
32741
|
+
this.__closePopups();
|
|
32489
32742
|
/**
|
|
32490
32743
|
* Fired after calling `button.exec` function
|
|
32491
|
-
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('
|
|
32744
|
+
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('afterExec');
|
|
32492
32745
|
}
|
|
32493
32746
|
if (result !== false) {
|
|
32494
32747
|
return;
|
|
@@ -32497,14 +32750,36 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32497
32750
|
if (ctr.list) {
|
|
32498
32751
|
return this.__openControlList(ctr);
|
|
32499
32752
|
}
|
|
32500
|
-
if ((0,
|
|
32753
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
32501
32754
|
return this.onTriggerClick(originalEvent);
|
|
32502
32755
|
}
|
|
32503
32756
|
if (ctr.command || ctr.name) {
|
|
32504
|
-
(0,
|
|
32505
|
-
this.
|
|
32757
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_17__.call)((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
32758
|
+
this.__closePopups();
|
|
32506
32759
|
}
|
|
32507
32760
|
}
|
|
32761
|
+
/**
|
|
32762
|
+
* After the button's action, a popup that stays open (an element's)
|
|
32763
|
+
* keeps its place beside the element, and only the lists the button is
|
|
32764
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
32765
|
+
* popup closes
|
|
32766
|
+
*/ __closePopups() {
|
|
32767
|
+
var _a, _b;
|
|
32768
|
+
const openers = [
|
|
32769
|
+
this
|
|
32770
|
+
];
|
|
32771
|
+
for(let pe = this.parentElement; pe; pe = pe.parentElement){
|
|
32772
|
+
if (_core_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(pe, _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__.Popup) && pe.keepOpen && (!this.target || this.target.isConnected)) {
|
|
32773
|
+
openers.forEach((button)=>button.__closePopup());
|
|
32774
|
+
pe.updatePosition();
|
|
32775
|
+
return;
|
|
32776
|
+
}
|
|
32777
|
+
if (_core_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(pe, ToolbarButton_1)) {
|
|
32778
|
+
openers.push(pe);
|
|
32779
|
+
}
|
|
32780
|
+
}
|
|
32781
|
+
(_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.e) === null || _b === void 0 ? void 0 : _b.fire('closeAllPopups');
|
|
32782
|
+
}
|
|
32508
32783
|
destruct() {
|
|
32509
32784
|
this.__closePopup();
|
|
32510
32785
|
return super.destruct();
|
|
@@ -32514,7 +32789,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32514
32789
|
this.control = control;
|
|
32515
32790
|
this.target = target;
|
|
32516
32791
|
this.state = {
|
|
32517
|
-
...(0,
|
|
32792
|
+
...(0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)(),
|
|
32518
32793
|
theme: 'toolbar',
|
|
32519
32794
|
currentValue: '',
|
|
32520
32795
|
hasTrigger: false
|
|
@@ -32524,14 +32799,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32524
32799
|
this.__typedTo = null;
|
|
32525
32800
|
this.openedPopup = null;
|
|
32526
32801
|
const button = this.getElm('button');
|
|
32527
|
-
(0,
|
|
32802
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(button, 'Element button should exists');
|
|
32528
32803
|
this.button = button;
|
|
32529
32804
|
Object.defineProperty(button, 'component', {
|
|
32530
32805
|
value: this,
|
|
32531
32806
|
configurable: true
|
|
32532
32807
|
});
|
|
32533
32808
|
const trigger = this.getElm('trigger');
|
|
32534
|
-
(0,
|
|
32809
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(trigger, 'Element trigger should exists');
|
|
32535
32810
|
this.trigger = trigger;
|
|
32536
32811
|
trigger.remove();
|
|
32537
32812
|
// Prevent lost focus
|
|
@@ -32540,7 +32815,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32540
32815
|
this.trigger
|
|
32541
32816
|
], 'mousedown', (e)=>e.preventDefault());
|
|
32542
32817
|
this.onAction(this.onClick);
|
|
32543
|
-
this.hookStatus(
|
|
32818
|
+
this.hookStatus(_core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__.STATUSES.ready, ()=>{
|
|
32544
32819
|
this.__initFromControl();
|
|
32545
32820
|
this.update();
|
|
32546
32821
|
});
|
|
@@ -32552,36 +32827,36 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
32552
32827
|
}
|
|
32553
32828
|
};
|
|
32554
32829
|
__decorate([
|
|
32555
|
-
|
|
32830
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__.cacheHTML
|
|
32556
32831
|
], ToolbarButton.prototype, "createContainer", null);
|
|
32557
32832
|
__decorate([
|
|
32558
|
-
(0,
|
|
32833
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('state.hasTrigger', {
|
|
32559
32834
|
immediately: false
|
|
32560
32835
|
})
|
|
32561
32836
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
32562
32837
|
__decorate([
|
|
32563
|
-
(0,
|
|
32838
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:click')
|
|
32564
32839
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
32565
32840
|
__decorate([
|
|
32566
|
-
(0,
|
|
32841
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:keydown')
|
|
32567
32842
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
32568
32843
|
__decorate([
|
|
32569
|
-
(0,
|
|
32844
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('button:keydown')
|
|
32570
32845
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
32571
32846
|
__decorate([
|
|
32572
|
-
|
|
32847
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
32573
32848
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
32574
32849
|
__decorate([
|
|
32575
|
-
|
|
32850
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
32576
32851
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
32577
32852
|
__decorate([
|
|
32578
|
-
|
|
32853
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
32579
32854
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
32580
32855
|
__decorate([
|
|
32581
|
-
|
|
32856
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
32582
32857
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
32583
|
-
ToolbarButton = __decorate([
|
|
32584
|
-
|
|
32858
|
+
ToolbarButton = ToolbarButton_1 = __decorate([
|
|
32859
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.component
|
|
32585
32860
|
], ToolbarButton);
|
|
32586
32861
|
|
|
32587
32862
|
|
|
@@ -33091,6 +33366,7 @@ function makeSelect(view, control, target = null) {
|
|
|
33091
33366
|
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19306);
|
|
33092
33367
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
33093
33368
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
33369
|
+
/* harmony import */ var _helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
33094
33370
|
/*!
|
|
33095
33371
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33096
33372
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33099,6 +33375,7 @@ function makeSelect(view, control, target = null) {
|
|
|
33099
33375
|
|
|
33100
33376
|
|
|
33101
33377
|
|
|
33378
|
+
|
|
33102
33379
|
/**
|
|
33103
33380
|
* Module for processing download documents and images by Drag and Drop
|
|
33104
33381
|
* Drag and Drop files
|
|
@@ -33159,27 +33436,26 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
33159
33436
|
if (!(0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
33160
33437
|
return;
|
|
33161
33438
|
}
|
|
33162
|
-
|
|
33163
|
-
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33172
|
-
|
|
33173
|
-
|
|
33174
|
-
|
|
33175
|
-
|
|
33176
|
-
|
|
33177
|
-
|
|
33178
|
-
|
|
33179
|
-
|
|
33180
|
-
|
|
33181
|
-
|
|
33182
|
-
}
|
|
33439
|
+
const { baseurl } = resp;
|
|
33440
|
+
(0,_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(resp).forEach(({ file, isImage })=>{
|
|
33441
|
+
const [tagName, attrName] = isImage ? [
|
|
33442
|
+
'img',
|
|
33443
|
+
'src'
|
|
33444
|
+
] : [
|
|
33445
|
+
'a',
|
|
33446
|
+
'href'
|
|
33447
|
+
];
|
|
33448
|
+
const elm = j.createInside.element(tagName);
|
|
33449
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, attrName, baseurl + file);
|
|
33450
|
+
if (tagName === 'a') {
|
|
33451
|
+
elm.textContent = j.o.uploader.getDisplayName.call(this, baseurl, file);
|
|
33452
|
+
}
|
|
33453
|
+
if (tagName === 'img') {
|
|
33454
|
+
j.s.insertImage(elm, null, j.o.imageDefaultWidth);
|
|
33455
|
+
} else {
|
|
33456
|
+
j.s.insertNode(elm);
|
|
33457
|
+
}
|
|
33458
|
+
});
|
|
33183
33459
|
},
|
|
33184
33460
|
defaultHandlerError (e) {
|
|
33185
33461
|
this.j.message.error(e.message);
|
|
@@ -33269,17 +33545,19 @@ function buildData(uploader, data) {
|
|
|
33269
33545
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
33270
33546
|
|
|
33271
33547
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33272
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
33548
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
33273
33549
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
33274
33550
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
33275
|
-
/* harmony export */
|
|
33276
|
-
/* harmony export */
|
|
33277
|
-
/* harmony export */
|
|
33551
|
+
/* harmony export */ normalizeUploaderData: function() { return /* reexport safe */ _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__.normalizeUploaderData; },
|
|
33552
|
+
/* harmony export */ processOldBrowserDrag: function() { return /* reexport safe */ _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__.processOldBrowserDrag; },
|
|
33553
|
+
/* harmony export */ send: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.send; },
|
|
33554
|
+
/* harmony export */ sendFiles: function() { return /* reexport safe */ _send_files_js__WEBPACK_IMPORTED_MODULE_4__.sendFiles; }
|
|
33278
33555
|
/* harmony export */ });
|
|
33279
33556
|
/* harmony import */ var _build_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83987);
|
|
33280
|
-
/* harmony import */ var
|
|
33281
|
-
/* harmony import */ var
|
|
33282
|
-
/* harmony import */ var
|
|
33557
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2073);
|
|
33558
|
+
/* harmony import */ var _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50373);
|
|
33559
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71686);
|
|
33560
|
+
/* harmony import */ var _send_files_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80020);
|
|
33283
33561
|
/*!
|
|
33284
33562
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33285
33563
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33289,6 +33567,7 @@ function buildData(uploader, data) {
|
|
|
33289
33567
|
|
|
33290
33568
|
|
|
33291
33569
|
|
|
33570
|
+
|
|
33292
33571
|
function hasFiles(data) {
|
|
33293
33572
|
return Boolean(data && data.files && data.files.length > 0);
|
|
33294
33573
|
}
|
|
@@ -33297,6 +33576,77 @@ function hasItems(data) {
|
|
|
33297
33576
|
}
|
|
33298
33577
|
|
|
33299
33578
|
|
|
33579
|
+
/***/ }),
|
|
33580
|
+
|
|
33581
|
+
/***/ 2073:
|
|
33582
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
33583
|
+
|
|
33584
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33585
|
+
/* harmony export */ getItems: function() { return /* binding */ getItems; },
|
|
33586
|
+
/* harmony export */ normalizeUploaderData: function() { return /* binding */ normalizeUploaderData; }
|
|
33587
|
+
/* harmony export */ });
|
|
33588
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
33589
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70799);
|
|
33590
|
+
/*!
|
|
33591
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33592
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
33593
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
33594
|
+
*/
|
|
33595
|
+
|
|
33596
|
+
/**
|
|
33597
|
+
* The files in upload or file browser data, one object each. While the
|
|
33598
|
+
* deprecated `files` array is set, it and `isImages` and `fileNames` win
|
|
33599
|
+
* over `items`, so a handler that edits them and passes the data on to a
|
|
33600
|
+
* default handler still gets its edits inserted. A file browser that
|
|
33601
|
+
* passes only the arrays works too.
|
|
33602
|
+
*/ function getItems(data) {
|
|
33603
|
+
const { files, isImages, fileNames, items } = data;
|
|
33604
|
+
if (!(0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files)) {
|
|
33605
|
+
return items !== null && items !== void 0 ? items : [];
|
|
33606
|
+
}
|
|
33607
|
+
return files.map((file, i)=>{
|
|
33608
|
+
const name = fileNames === null || fileNames === void 0 ? void 0 : fileNames[i];
|
|
33609
|
+
return {
|
|
33610
|
+
file,
|
|
33611
|
+
isImage: Boolean(isImages === null || isImages === void 0 ? void 0 : isImages[i]),
|
|
33612
|
+
...name !== undefined ? {
|
|
33613
|
+
name
|
|
33614
|
+
} : {}
|
|
33615
|
+
};
|
|
33616
|
+
});
|
|
33617
|
+
}
|
|
33618
|
+
/**
|
|
33619
|
+
* Gives the data both `items` and the deprecated `files`, `isImages` and
|
|
33620
|
+
* `fileNames` arrays, building whichever is missing, so a handler can read
|
|
33621
|
+
* either. When both are given, `items` is rebuilt from the arrays, as in
|
|
33622
|
+
* [[getItems]], unless `files` is empty and `items` isn't, as from a
|
|
33623
|
+
* `process` that spreads the server's answer and adds `items`. Anything but
|
|
33624
|
+
* an object, such as the `null` a custom `process` may return, is passed on
|
|
33625
|
+
* as it is.
|
|
33626
|
+
*/ function normalizeUploaderData(data) {
|
|
33627
|
+
if (!data || typeof data !== 'object') {
|
|
33628
|
+
return data;
|
|
33629
|
+
}
|
|
33630
|
+
const { files, items } = data;
|
|
33631
|
+
if (!items || (0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files) && (files.length || !items.length)) {
|
|
33632
|
+
return {
|
|
33633
|
+
...data,
|
|
33634
|
+
items: getItems(data)
|
|
33635
|
+
};
|
|
33636
|
+
}
|
|
33637
|
+
const names = items.map(({ name })=>name);
|
|
33638
|
+
return {
|
|
33639
|
+
...data,
|
|
33640
|
+
files: items.map(({ file })=>file),
|
|
33641
|
+
isImages: items.map(({ isImage })=>isImage),
|
|
33642
|
+
...names.every(_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__.isString) ? {
|
|
33643
|
+
fileNames: names
|
|
33644
|
+
} : {},
|
|
33645
|
+
items
|
|
33646
|
+
};
|
|
33647
|
+
}
|
|
33648
|
+
|
|
33649
|
+
|
|
33300
33650
|
/***/ }),
|
|
33301
33651
|
|
|
33302
33652
|
/***/ 50373:
|
|
@@ -33358,8 +33708,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
33358
33708
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
33359
33709
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
33360
33710
|
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
33361
|
-
/* harmony import */ var
|
|
33362
|
-
/* harmony import */ var
|
|
33711
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
33712
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71686);
|
|
33713
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76198);
|
|
33363
33714
|
/*!
|
|
33364
33715
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33365
33716
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33370,6 +33721,7 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
33370
33721
|
|
|
33371
33722
|
|
|
33372
33723
|
|
|
33724
|
+
|
|
33373
33725
|
/**
|
|
33374
33726
|
* Send files to server
|
|
33375
33727
|
*/ async function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -33456,13 +33808,13 @@ retryOf) {
|
|
|
33456
33808
|
});
|
|
33457
33809
|
}
|
|
33458
33810
|
o.prepareData.call(uploader, form);
|
|
33459
|
-
promises.push((0,
|
|
33811
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
33460
33812
|
if (o.isSuccess.call(uploader, resp)) {
|
|
33461
33813
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
33462
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
33814
|
+
handler.call(uploader, (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
33463
33815
|
return resp;
|
|
33464
33816
|
}
|
|
33465
|
-
const err = new
|
|
33817
|
+
const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_6__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
|
|
33466
33818
|
var _a;
|
|
33467
33819
|
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
33468
33820
|
data: {
|
|
@@ -33539,18 +33891,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
33539
33891
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
33540
33892
|
reader.onerror = reject;
|
|
33541
33893
|
reader.onloadend = ()=>{
|
|
33542
|
-
const resp = {
|
|
33894
|
+
const resp = (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
33543
33895
|
baseurl: '',
|
|
33544
|
-
|
|
33545
|
-
|
|
33546
|
-
|
|
33547
|
-
|
|
33548
|
-
|
|
33549
|
-
|
|
33550
|
-
fileNames: [
|
|
33551
|
-
name
|
|
33896
|
+
items: [
|
|
33897
|
+
{
|
|
33898
|
+
file: reader.result,
|
|
33899
|
+
isImage: true,
|
|
33900
|
+
name
|
|
33901
|
+
}
|
|
33552
33902
|
]
|
|
33553
|
-
};
|
|
33903
|
+
});
|
|
33554
33904
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
33555
33905
|
handler.call(uploader, resp);
|
|
33556
33906
|
resolve(resp);
|
|
@@ -33752,11 +34102,10 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
33752
34102
|
* ```javascript
|
|
33753
34103
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
33754
34104
|
* jQuery('body').append($form);
|
|
33755
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
33756
|
-
*
|
|
33757
|
-
*
|
|
33758
|
-
*
|
|
33759
|
-
* }
|
|
34105
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (data) {
|
|
34106
|
+
* data.items.forEach(function (item) {
|
|
34107
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
34108
|
+
* });
|
|
33760
34109
|
* });
|
|
33761
34110
|
* ```
|
|
33762
34111
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -33855,7 +34204,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
33855
34204
|
var _a;
|
|
33856
34205
|
if (o.isSuccess.call(uploader, resp)) {
|
|
33857
34206
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
33858
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
34207
|
+
handler.call(uploader, (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
33859
34208
|
return;
|
|
33860
34209
|
}
|
|
33861
34210
|
handlerE.call(uploader, (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.answer)(o.getMessage.call(uploader, resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code));
|
|
@@ -33873,6 +34222,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
33873
34222
|
if (!settled) {
|
|
33874
34223
|
resolve({
|
|
33875
34224
|
baseurl: '',
|
|
34225
|
+
items: [],
|
|
33876
34226
|
files: [],
|
|
33877
34227
|
isImages: []
|
|
33878
34228
|
});
|
|
@@ -34496,6 +34846,17 @@ const ns = 'addnewline';
|
|
|
34496
34846
|
editor.editor
|
|
34497
34847
|
], 'scroll' + '.' + ns, this.__hideForce).on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce).on(editor.editor, 'click' + '.' + ns, this.__hide).on(editor.container, 'mouseleave' + '.' + ns, this.__hide).on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
|
|
34498
34848
|
}
|
|
34849
|
+
/**
|
|
34850
|
+
* An empty line with a `<br>`, as Enter makes, so it keeps its height
|
|
34851
|
+
* without clean-html's fillEmptyParagraph (#1807)
|
|
34852
|
+
*/ __newLine() {
|
|
34853
|
+
const { j } = this;
|
|
34854
|
+
const line = j.createInside.element(j.o.enter);
|
|
34855
|
+
if (!_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.isTag(line, 'br')) {
|
|
34856
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.append(line, j.createInside.element('br'));
|
|
34857
|
+
}
|
|
34858
|
+
return line;
|
|
34859
|
+
}
|
|
34499
34860
|
/**
|
|
34500
34861
|
* A paragraph holding only an embed has no place for the caret, so the
|
|
34501
34862
|
* arrow keys can't get past one that ends the content, or before one that
|
|
@@ -34508,6 +34869,11 @@ const ns = 'addnewline';
|
|
|
34508
34869
|
return;
|
|
34509
34870
|
}
|
|
34510
34871
|
const { startContainer, startOffset } = editor.s.range;
|
|
34872
|
+
// A caret in the editor itself, as beside a horizontal line, is in no
|
|
34873
|
+
// paragraph, and the browsers can leave it there with text beyond (#1803)
|
|
34874
|
+
if (startContainer === editor.editor) {
|
|
34875
|
+
return;
|
|
34876
|
+
}
|
|
34511
34877
|
// Once the browser has moved the caret, if it could. With a 0 timeout
|
|
34512
34878
|
// Jodit would run this at once, before the browser moves it
|
|
34513
34879
|
editor.async.setTimeout(()=>{
|
|
@@ -34516,7 +34882,7 @@ const ns = 'addnewline';
|
|
|
34516
34882
|
if (e.defaultPrevented || !editor.s.isInsideArea || !range.collapsed || range.startContainer !== startContainer || range.startOffset !== startOffset || !block || !_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.findNotEmptyNeighbor(block, !forward, editor.editor)) {
|
|
34517
34883
|
return;
|
|
34518
34884
|
}
|
|
34519
|
-
const p =
|
|
34885
|
+
const p = this.__newLine();
|
|
34520
34886
|
forward ? _modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.append(editor.editor, p) : _modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.prepend(editor.editor, p);
|
|
34521
34887
|
editor.s.setCursorIn(p);
|
|
34522
34888
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.scrollIntoViewIfNeeded)(p, editor.editor, editor.ed);
|
|
@@ -34528,7 +34894,7 @@ const ns = 'addnewline';
|
|
|
34528
34894
|
if (!editor.o.readonly && editor.o.addNewLineOnDBLClick && e.target === editor.editor && editor.s.isCollapsed()) {
|
|
34529
34895
|
const editorBound = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.offset)(editor.editor, editor, editor.ed);
|
|
34530
34896
|
const top = e.pageY - editor.ew.scrollX;
|
|
34531
|
-
const p =
|
|
34897
|
+
const p = this.__newLine();
|
|
34532
34898
|
if (Math.abs(top - editorBound.top) < Math.abs(top - (editorBound.height + editorBound.top)) && editor.editor.firstChild) {
|
|
34533
34899
|
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.prepend(editor.editor, p);
|
|
34534
34900
|
} else {
|
|
@@ -34621,7 +34987,7 @@ const ns = 'addnewline';
|
|
|
34621
34987
|
};
|
|
34622
34988
|
this.__onClickLine = (e)=>{
|
|
34623
34989
|
const editor = this.j;
|
|
34624
|
-
const p =
|
|
34990
|
+
const p = this.__newLine();
|
|
34625
34991
|
if (this.__isBeforeContent && this.__current && this.__current.parentNode) {
|
|
34626
34992
|
if (this.__current === editor.editor) {
|
|
34627
34993
|
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.prepend(editor.editor, p);
|
|
@@ -35261,40 +35627,41 @@ UiAiAssistant = __decorate([
|
|
|
35261
35627
|
/* harmony import */ var _limit_limit_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(91071);
|
|
35262
35628
|
/* harmony import */ var _line_height_line_height_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(61019);
|
|
35263
35629
|
/* harmony import */ var _link_link_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(65517);
|
|
35264
|
-
/* harmony import */ var
|
|
35265
|
-
/* harmony import */ var
|
|
35266
|
-
/* harmony import */ var
|
|
35267
|
-
/* harmony import */ var
|
|
35268
|
-
/* harmony import */ var
|
|
35269
|
-
/* harmony import */ var
|
|
35270
|
-
/* harmony import */ var
|
|
35271
|
-
/* harmony import */ var
|
|
35272
|
-
/* harmony import */ var
|
|
35273
|
-
/* harmony import */ var
|
|
35274
|
-
/* harmony import */ var
|
|
35275
|
-
/* harmony import */ var
|
|
35276
|
-
/* harmony import */ var
|
|
35277
|
-
/* harmony import */ var
|
|
35278
|
-
/* harmony import */ var
|
|
35279
|
-
/* harmony import */ var
|
|
35280
|
-
/* harmony import */ var
|
|
35281
|
-
/* harmony import */ var
|
|
35282
|
-
/* harmony import */ var
|
|
35283
|
-
/* harmony import */ var
|
|
35284
|
-
/* harmony import */ var
|
|
35285
|
-
/* harmony import */ var
|
|
35286
|
-
/* harmony import */ var
|
|
35287
|
-
/* harmony import */ var
|
|
35288
|
-
/* harmony import */ var
|
|
35289
|
-
/* harmony import */ var
|
|
35290
|
-
/* harmony import */ var
|
|
35291
|
-
/* harmony import */ var
|
|
35292
|
-
/* harmony import */ var
|
|
35293
|
-
/* harmony import */ var
|
|
35294
|
-
/* harmony import */ var
|
|
35295
|
-
/* harmony import */ var
|
|
35296
|
-
/* harmony import */ var
|
|
35297
|
-
/* harmony import */ var
|
|
35630
|
+
/* harmony import */ var _anchor_anchor_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(36911);
|
|
35631
|
+
/* harmony import */ var _media_media_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(20071);
|
|
35632
|
+
/* harmony import */ var _mobile_mobile_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(32309);
|
|
35633
|
+
/* harmony import */ var _ordered_list_ordered_list_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(64837);
|
|
35634
|
+
/* harmony import */ var _paste_paste_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(79799);
|
|
35635
|
+
/* harmony import */ var _paste_from_word_paste_from_word_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(31571);
|
|
35636
|
+
/* harmony import */ var _paste_storage_paste_storage_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(85407);
|
|
35637
|
+
/* harmony import */ var _placeholder_placeholder_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(59451);
|
|
35638
|
+
/* harmony import */ var _powered_by_jodit_powered_by_jodit_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(18363);
|
|
35639
|
+
/* harmony import */ var _preview_preview_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(8355);
|
|
35640
|
+
/* harmony import */ var _print_print_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(58519);
|
|
35641
|
+
/* harmony import */ var _redo_undo_redo_undo_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(6687);
|
|
35642
|
+
/* harmony import */ var _resize_cells_resize_cells_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(56113);
|
|
35643
|
+
/* harmony import */ var _resize_handler_resize_handler_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(9159);
|
|
35644
|
+
/* harmony import */ var _resizer_resizer_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(12019);
|
|
35645
|
+
/* harmony import */ var _search_search_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(36125);
|
|
35646
|
+
/* harmony import */ var _select_select_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(9881);
|
|
35647
|
+
/* harmony import */ var _select_cells_select_cells_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(28545);
|
|
35648
|
+
/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(45927);
|
|
35649
|
+
/* harmony import */ var _source_source_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(52951);
|
|
35650
|
+
/* harmony import */ var _spellcheck_spellcheck_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(43809);
|
|
35651
|
+
/* harmony import */ var _stat_stat_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(7309);
|
|
35652
|
+
/* harmony import */ var _sticky_sticky_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(68687);
|
|
35653
|
+
/* harmony import */ var _symbols_symbols_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(59495);
|
|
35654
|
+
/* harmony import */ var _ai_assistant_ai_assistant_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(39627);
|
|
35655
|
+
/* harmony import */ var _tab_tab_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(767);
|
|
35656
|
+
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(43003);
|
|
35657
|
+
/* harmony import */ var _table_keyboard_navigation_table_keyboard_navigation_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(72439);
|
|
35658
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(94529);
|
|
35659
|
+
/* harmony import */ var _video_video_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(26551);
|
|
35660
|
+
/* harmony import */ var _video_properties_video_properties_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(96139);
|
|
35661
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(72253);
|
|
35662
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(65735);
|
|
35663
|
+
/* harmony import */ var _xpath_xpath_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(83671);
|
|
35664
|
+
/* harmony import */ var _speech_recognize_speech_recognize_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(3115);
|
|
35298
35665
|
/*!
|
|
35299
35666
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35300
35667
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35367,12 +35734,333 @@ UiAiAssistant = __decorate([
|
|
|
35367
35734
|
|
|
35368
35735
|
|
|
35369
35736
|
|
|
35737
|
+
|
|
35370
35738
|
|
|
35371
35739
|
|
|
35372
35740
|
// JODIT-START:FAT
|
|
35373
35741
|
// JODIT-END:FAT
|
|
35374
35742
|
|
|
35375
35743
|
|
|
35744
|
+
/***/ }),
|
|
35745
|
+
|
|
35746
|
+
/***/ 36911:
|
|
35747
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
35748
|
+
|
|
35749
|
+
/* unused harmony export anchor */
|
|
35750
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
35751
|
+
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
35752
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
35753
|
+
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
35754
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
35755
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
35756
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
35757
|
+
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
35758
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50712);
|
|
35759
|
+
/*!
|
|
35760
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35761
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
35762
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
35763
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
35764
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35765
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35766
|
+
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;
|
|
35767
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35768
|
+
};
|
|
35769
|
+
|
|
35770
|
+
|
|
35771
|
+
|
|
35772
|
+
|
|
35773
|
+
|
|
35774
|
+
|
|
35775
|
+
|
|
35776
|
+
|
|
35777
|
+
|
|
35778
|
+
const ICON = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E\")";
|
|
35779
|
+
const MARKER = [
|
|
35780
|
+
'id',
|
|
35781
|
+
'name'
|
|
35782
|
+
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
35783
|
+
/**
|
|
35784
|
+
* Each anchor's marker, in the editing area only
|
|
35785
|
+
*/ const MARKER_STYLE = `${MARKER}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background:${ICON} center/contain no-repeat;cursor:pointer;content:''}`;
|
|
35786
|
+
/**
|
|
35787
|
+
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
35788
|
+
*/ const MARK = ' contenteditable="false"';
|
|
35789
|
+
/**
|
|
35790
|
+
* Inserts anchors, empty `<a id>` that links in the document reach as
|
|
35791
|
+
* `#name`, and renames and removes them
|
|
35792
|
+
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
35793
|
+
/** @override */ afterInit(jodit) {
|
|
35794
|
+
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
35795
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
|
|
35796
|
+
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
35797
|
+
top: true
|
|
35798
|
+
});
|
|
35799
|
+
}
|
|
35800
|
+
/**
|
|
35801
|
+
* An anchor gets its own popup, in place of the link's
|
|
35802
|
+
*/ __onClickA(target, e) {
|
|
35803
|
+
var _a;
|
|
35804
|
+
const { j } = this;
|
|
35805
|
+
if (j.o.readonly || !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target)) {
|
|
35806
|
+
return;
|
|
35807
|
+
}
|
|
35808
|
+
j.e.stopPropagation((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(((_a = e === null || e === void 0 ? void 0 : e.type) !== null && _a !== void 0 ? _a : 'click') + '_a'));
|
|
35809
|
+
// Afresh, so a form left with a change unsaved shows the name it has
|
|
35810
|
+
j.e.fire('showPopup', target, ()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(target, j), 'anchor', true);
|
|
35811
|
+
return false;
|
|
35812
|
+
}
|
|
35813
|
+
/**
|
|
35814
|
+
* Anchors are uneditable in the editor, so typing beside one never goes
|
|
35815
|
+
* into it and it's deleted as a whole
|
|
35816
|
+
*/ onChange() {
|
|
35817
|
+
const { j } = this;
|
|
35818
|
+
if (j.isInDestruct || j.getMode() === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
|
|
35819
|
+
return;
|
|
35820
|
+
}
|
|
35821
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(j.editor).forEach(markAnchor);
|
|
35822
|
+
}
|
|
35823
|
+
/**
|
|
35824
|
+
* The editor's own attribute stays out of the value
|
|
35825
|
+
*/ onAfterGetValueFromEditor(data) {
|
|
35826
|
+
data.value = unmarkAnchors(data.value);
|
|
35827
|
+
}
|
|
35828
|
+
/**
|
|
35829
|
+
* The form that names a new anchor, or renames or removes `target`
|
|
35830
|
+
*/ __generateForm(target, close) {
|
|
35831
|
+
const { j } = this;
|
|
35832
|
+
const current = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target) ? target : null;
|
|
35833
|
+
const input = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIInput(j, {
|
|
35834
|
+
name: 'name',
|
|
35835
|
+
ref: 'name_input',
|
|
35836
|
+
label: 'Anchor',
|
|
35837
|
+
required: true
|
|
35838
|
+
});
|
|
35839
|
+
const buttons = [
|
|
35840
|
+
new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
35841
|
+
name: 'insert',
|
|
35842
|
+
type: 'submit',
|
|
35843
|
+
variant: 'primary',
|
|
35844
|
+
text: current ? 'Update' : 'Insert'
|
|
35845
|
+
})
|
|
35846
|
+
];
|
|
35847
|
+
if (current) {
|
|
35848
|
+
input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
35849
|
+
buttons.unshift(new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
35850
|
+
name: 'remove',
|
|
35851
|
+
variant: 'default',
|
|
35852
|
+
text: 'Remove'
|
|
35853
|
+
}).onAction(()=>{
|
|
35854
|
+
if (!j.o.readonly) {
|
|
35855
|
+
j.s.restore();
|
|
35856
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove(current);
|
|
35857
|
+
j.synchronizeValues();
|
|
35858
|
+
}
|
|
35859
|
+
close();
|
|
35860
|
+
}));
|
|
35861
|
+
}
|
|
35862
|
+
const form = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIForm(j, [
|
|
35863
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, [
|
|
35864
|
+
input
|
|
35865
|
+
]),
|
|
35866
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, buttons, {
|
|
35867
|
+
align: 'full'
|
|
35868
|
+
})
|
|
35869
|
+
]);
|
|
35870
|
+
if (current) {
|
|
35871
|
+
this.__dropForm();
|
|
35872
|
+
this.__form = form;
|
|
35873
|
+
// The toolbar's popup closes on Escape by itself; the anchor's own doesn't
|
|
35874
|
+
j.e.on(form.container, 'keydown', (e)=>{
|
|
35875
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
35876
|
+
close();
|
|
35877
|
+
j.s.restore();
|
|
35878
|
+
}
|
|
35879
|
+
});
|
|
35880
|
+
}
|
|
35881
|
+
form.onSubmit(()=>{
|
|
35882
|
+
// The editor can turn readonly while the form is open
|
|
35883
|
+
if (j.o.readonly) {
|
|
35884
|
+
close();
|
|
35885
|
+
return false;
|
|
35886
|
+
}
|
|
35887
|
+
const name = input.value.trim().replace(/^#/, '');
|
|
35888
|
+
const error = !name ? 'Please fill out this field' : /\s/.test(name) ? 'The name cannot contain spaces' : this.__isTaken(name, current) ? 'This name is already in use' : '';
|
|
35889
|
+
if (error) {
|
|
35890
|
+
input.error = error;
|
|
35891
|
+
input.focus();
|
|
35892
|
+
return false;
|
|
35893
|
+
}
|
|
35894
|
+
j.s.restore();
|
|
35895
|
+
if (current) {
|
|
35896
|
+
this.__rename(current, name);
|
|
35897
|
+
} else {
|
|
35898
|
+
this.__insert(name);
|
|
35899
|
+
}
|
|
35900
|
+
j.synchronizeValues();
|
|
35901
|
+
close();
|
|
35902
|
+
return false;
|
|
35903
|
+
});
|
|
35904
|
+
j.async.requestIdleCallback(()=>input.focus());
|
|
35905
|
+
return form;
|
|
35906
|
+
}
|
|
35907
|
+
__dropForm() {
|
|
35908
|
+
const form = this.__form;
|
|
35909
|
+
this.__form = null;
|
|
35910
|
+
if (form && !form.isInDestruct) {
|
|
35911
|
+
this.j.e.off(form.container, 'keydown');
|
|
35912
|
+
form.destruct();
|
|
35913
|
+
}
|
|
35914
|
+
}
|
|
35915
|
+
/**
|
|
35916
|
+
* Another element in the document has the name as its `id`, or another
|
|
35917
|
+
* anchor as its `name`
|
|
35918
|
+
*/ __isTaken(name, current) {
|
|
35919
|
+
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.j.editor.querySelectorAll('[id], a[name]')).some((elm)=>elm !== current && (elm.id === name || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(elm) && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name') === name));
|
|
35920
|
+
}
|
|
35921
|
+
/**
|
|
35922
|
+
* At the caret, or at the start of the selection. An anchor can't go in
|
|
35923
|
+
* a link, so in one it goes just before it
|
|
35924
|
+
*/ __insert(name) {
|
|
35925
|
+
const { j } = this;
|
|
35926
|
+
const anchor = j.createInside.element('a', {
|
|
35927
|
+
id: name
|
|
35928
|
+
});
|
|
35929
|
+
const range = j.s.range;
|
|
35930
|
+
markAnchor(anchor);
|
|
35931
|
+
if (!range.collapsed) {
|
|
35932
|
+
range.collapse(true);
|
|
35933
|
+
j.s.selectRange(range);
|
|
35934
|
+
}
|
|
35935
|
+
const link = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(range.startContainer, 'a', j.editor);
|
|
35936
|
+
if (link) {
|
|
35937
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.before(link, anchor);
|
|
35938
|
+
j.s.setCursorAfter(anchor);
|
|
35939
|
+
} else {
|
|
35940
|
+
j.s.insertNode(anchor, true, false);
|
|
35941
|
+
}
|
|
35942
|
+
}
|
|
35943
|
+
/**
|
|
35944
|
+
* Gives the anchor the new name in whichever of `id` and `name` it has,
|
|
35945
|
+
* and the links to it the new `#name`, unless they still reach
|
|
35946
|
+
* something else by the old one, as they do after a copy is pasted
|
|
35947
|
+
*/ __rename(current, name) {
|
|
35948
|
+
const old = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
35949
|
+
const shared = this.__isTaken(old, current);
|
|
35950
|
+
[
|
|
35951
|
+
'id',
|
|
35952
|
+
'name'
|
|
35953
|
+
].forEach((key)=>{
|
|
35954
|
+
if (current.hasAttribute(key)) {
|
|
35955
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(current, key, name);
|
|
35956
|
+
}
|
|
35957
|
+
});
|
|
35958
|
+
if (shared) {
|
|
35959
|
+
return;
|
|
35960
|
+
}
|
|
35961
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.j.editor.querySelectorAll('a[href]')).forEach((link)=>{
|
|
35962
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') === '#' + old) {
|
|
35963
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + name);
|
|
35964
|
+
}
|
|
35965
|
+
});
|
|
35966
|
+
}
|
|
35967
|
+
/** @override */ beforeDestruct(jodit) {
|
|
35968
|
+
this.__dropForm();
|
|
35969
|
+
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
35970
|
+
}
|
|
35971
|
+
constructor(){
|
|
35972
|
+
super(...arguments);
|
|
35973
|
+
/** @override */ this.buttons = [
|
|
35974
|
+
{
|
|
35975
|
+
name: 'anchor',
|
|
35976
|
+
group: 'insert'
|
|
35977
|
+
}
|
|
35978
|
+
];
|
|
35979
|
+
/**
|
|
35980
|
+
* The form in the anchor's own popup. The popup takes it out without
|
|
35981
|
+
* destructing it when it shows something else, so it goes when the next
|
|
35982
|
+
* one is made
|
|
35983
|
+
*/ this.__form = null;
|
|
35984
|
+
}
|
|
35985
|
+
}
|
|
35986
|
+
__decorate([
|
|
35987
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
35988
|
+
], anchor.prototype, "__onClickA", null);
|
|
35989
|
+
__decorate([
|
|
35990
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
35991
|
+
':change',
|
|
35992
|
+
':afterInit',
|
|
35993
|
+
':afterSetMode'
|
|
35994
|
+
]),
|
|
35995
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
35996
|
+
], anchor.prototype, "onChange", null);
|
|
35997
|
+
__decorate([
|
|
35998
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
35999
|
+
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
36000
|
+
__decorate([
|
|
36001
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
36002
|
+
], anchor.prototype, "__generateForm", null);
|
|
36003
|
+
function markAnchor(anchor) {
|
|
36004
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable') !== 'false') {
|
|
36005
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable', false);
|
|
36006
|
+
}
|
|
36007
|
+
}
|
|
36008
|
+
/**
|
|
36009
|
+
* Takes `MARK` off each anchor in one pass over the tags, as a regex with
|
|
36010
|
+
* `[^>]*` backtracks quadratically on a long run of `<a` (CWE-1333)
|
|
36011
|
+
*/ function unmarkAnchors(html) {
|
|
36012
|
+
if (!html.includes(MARK)) {
|
|
36013
|
+
return html;
|
|
36014
|
+
}
|
|
36015
|
+
let result = '';
|
|
36016
|
+
let copied = 0;
|
|
36017
|
+
let cursor = 0;
|
|
36018
|
+
for(;;){
|
|
36019
|
+
const start = html.indexOf('<', cursor);
|
|
36020
|
+
if (start === -1) {
|
|
36021
|
+
break;
|
|
36022
|
+
}
|
|
36023
|
+
const end = html.indexOf('>', start);
|
|
36024
|
+
if (end === -1) {
|
|
36025
|
+
break;
|
|
36026
|
+
}
|
|
36027
|
+
if (html.startsWith('<a', start) && /\s/.test(html.charAt(start + 2)) && html.startsWith('</a>', end + 1)) {
|
|
36028
|
+
const tag = html.slice(start, end);
|
|
36029
|
+
const at = tag.indexOf(MARK);
|
|
36030
|
+
if (at !== -1 && !/\shref=/.test(tag)) {
|
|
36031
|
+
result += html.slice(copied, start + at);
|
|
36032
|
+
copied = start + at + MARK.length;
|
|
36033
|
+
}
|
|
36034
|
+
}
|
|
36035
|
+
// Past the whole tag, so an `<a` inside one of its attributes is never read as a tag
|
|
36036
|
+
cursor = end + 1;
|
|
36037
|
+
}
|
|
36038
|
+
return copied === 0 ? html : result + html.slice(copied);
|
|
36039
|
+
}
|
|
36040
|
+
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('anchor', anchor);
|
|
36041
|
+
|
|
36042
|
+
|
|
36043
|
+
/***/ }),
|
|
36044
|
+
|
|
36045
|
+
/***/ 50712:
|
|
36046
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
36047
|
+
|
|
36048
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
36049
|
+
/* harmony import */ var _inline_popup_config_config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24526);
|
|
36050
|
+
/*!
|
|
36051
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36052
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
36053
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
36054
|
+
*/
|
|
36055
|
+
// The anchor's popup goes in its list
|
|
36056
|
+
|
|
36057
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.anchor = {
|
|
36058
|
+
popup: (editor, current, close)=>editor.e.fire('generateAnchorForm.anchor', null, close),
|
|
36059
|
+
tooltip: 'Insert anchor'
|
|
36060
|
+
};
|
|
36061
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.anchor = (editor, target, close)=>editor.e.fire('generateAnchorForm.anchor', target, close);
|
|
36062
|
+
|
|
36063
|
+
|
|
35376
36064
|
/***/ }),
|
|
35377
36065
|
|
|
35378
36066
|
/***/ 93183:
|
|
@@ -39500,6 +40188,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
39500
40188
|
}
|
|
39501
40189
|
jodit.s.expandSelection();
|
|
39502
40190
|
const range = jodit.s.range;
|
|
40191
|
+
this.__moveEdgesIntoCells(range);
|
|
39503
40192
|
const caret = this.__clearSelectedCells(range);
|
|
39504
40193
|
if (caret && range.collapsed) {
|
|
39505
40194
|
jodit.s.selectRange(caret);
|
|
@@ -39521,6 +40210,22 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
39521
40210
|
jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
|
|
39522
40211
|
return false;
|
|
39523
40212
|
}
|
|
40213
|
+
/**
|
|
40214
|
+
* Firefox selects cells whole from their row, as after a drag into or out
|
|
40215
|
+
* of a table nested in a cell, and `deleteContents` would remove them. The
|
|
40216
|
+
* edges move into the cells, so their content is cleared instead, as in
|
|
40217
|
+
* Firefox's own delete
|
|
40218
|
+
*/ __moveEdgesIntoCells(range) {
|
|
40219
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
40220
|
+
const first = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(startContainer, 'tr') ? startContainer.childNodes[startOffset] : null;
|
|
40221
|
+
const last = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(endContainer, 'tr') ? endContainer.childNodes[endOffset - 1] : null;
|
|
40222
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(first)) {
|
|
40223
|
+
range.setStart(first, 0);
|
|
40224
|
+
}
|
|
40225
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(last)) {
|
|
40226
|
+
range.setEnd(last, last.childNodes.length);
|
|
40227
|
+
}
|
|
40228
|
+
}
|
|
39524
40229
|
/**
|
|
39525
40230
|
* A selection that starts or ends in a table cell clears the selected part
|
|
39526
40231
|
* of each cell it covers and keeps the cells, as the browsers do.
|
|
@@ -41019,7 +41724,8 @@ function brBefore(start) {
|
|
|
41019
41724
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
|
|
41020
41725
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
41021
41726
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
41022
|
-
/* harmony import */ var
|
|
41727
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
41728
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92762);
|
|
41023
41729
|
/*!
|
|
41024
41730
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41025
41731
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41029,6 +41735,7 @@ function brBefore(start) {
|
|
|
41029
41735
|
|
|
41030
41736
|
|
|
41031
41737
|
|
|
41738
|
+
|
|
41032
41739
|
/**
|
|
41033
41740
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
41034
41741
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -41050,16 +41757,16 @@ function brBefore(start) {
|
|
|
41050
41757
|
return true;
|
|
41051
41758
|
}
|
|
41052
41759
|
function insertLinks(data) {
|
|
41053
|
-
|
|
41054
|
-
(
|
|
41055
|
-
const href =
|
|
41760
|
+
const { baseurl } = data;
|
|
41761
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>{
|
|
41762
|
+
const href = baseurl + file;
|
|
41056
41763
|
if (wrapSelectionInLink(this, href)) {
|
|
41057
41764
|
return;
|
|
41058
41765
|
}
|
|
41059
41766
|
const link = this.createInside.element('a', {
|
|
41060
41767
|
href
|
|
41061
41768
|
});
|
|
41062
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
41769
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
41063
41770
|
this.s.insertNode(link);
|
|
41064
41771
|
});
|
|
41065
41772
|
}
|
|
@@ -41087,9 +41794,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
41087
41794
|
if (current && (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'a') || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, 'a', editor.editor))) {
|
|
41088
41795
|
sourceAnchor = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'a') ? current : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, 'a', editor.editor);
|
|
41089
41796
|
}
|
|
41090
|
-
return (0,
|
|
41797
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
41091
41798
|
filebrowser: (data)=>{
|
|
41092
|
-
|
|
41799
|
+
;(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
41093
41800
|
close();
|
|
41094
41801
|
},
|
|
41095
41802
|
upload: (data)=>{
|
|
@@ -42612,6 +43319,11 @@ function hr(editor) {
|
|
|
42612
43319
|
return false;
|
|
42613
43320
|
}
|
|
42614
43321
|
const p = editor.createInside.element(editor.o.enter);
|
|
43322
|
+
// As Enter's new line has, so it keeps its height without clean-html's
|
|
43323
|
+
// fillEmptyParagraph (#1807)
|
|
43324
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(p, 'br')) {
|
|
43325
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(p, editor.createInside.element('br'));
|
|
43326
|
+
}
|
|
42615
43327
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.after(elm, p);
|
|
42616
43328
|
editor.s.setCursorIn(p);
|
|
42617
43329
|
return false;
|
|
@@ -43333,10 +44045,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
43333
44045
|
const fresh = this.__freshCaption(wrapper);
|
|
43334
44046
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
43335
44047
|
// The click opened the image's popup below the caption, so it
|
|
43336
|
-
//
|
|
44048
|
+
// moves below the image, as after the popup's Caption button
|
|
43337
44049
|
if (clicked) {
|
|
43338
44050
|
j.e.fire('recalcPositionPopup');
|
|
43339
|
-
j.e.fire('closeAllPopups');
|
|
43340
44051
|
}
|
|
43341
44052
|
}, 1);
|
|
43342
44053
|
}
|
|
@@ -45219,9 +45930,9 @@ UIImagePositionTab = __decorate([
|
|
|
45219
45930
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45220
45931
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
45221
45932
|
/* harmony export */ });
|
|
45222
|
-
/* harmony import */ var
|
|
45223
|
-
/* harmony import */ var
|
|
45224
|
-
/* harmony import */ var
|
|
45933
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5700);
|
|
45934
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56917);
|
|
45935
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2073);
|
|
45225
45936
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34793);
|
|
45226
45937
|
/*!
|
|
45227
45938
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -45232,25 +45943,27 @@ UIImagePositionTab = __decorate([
|
|
|
45232
45943
|
|
|
45233
45944
|
|
|
45234
45945
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
45235
|
-
const popup = new
|
|
45946
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
45236
45947
|
const closePopup = ()=>{
|
|
45237
45948
|
popup.close();
|
|
45238
45949
|
popup.destruct();
|
|
45239
45950
|
};
|
|
45240
45951
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
45241
45952
|
upload: (data)=>{
|
|
45242
|
-
|
|
45243
|
-
|
|
45953
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data);
|
|
45954
|
+
if (item) {
|
|
45955
|
+
state.values.imageSrc = data.baseurl + item.file;
|
|
45244
45956
|
}
|
|
45245
45957
|
closePopup();
|
|
45246
45958
|
},
|
|
45247
45959
|
filebrowser: async (data)=>{
|
|
45248
|
-
|
|
45249
|
-
|
|
45960
|
+
const [item] = data ? (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data) : [];
|
|
45961
|
+
if (item) {
|
|
45962
|
+
state.values.imageSrc = item.file;
|
|
45250
45963
|
closePopup();
|
|
45251
45964
|
}
|
|
45252
45965
|
}
|
|
45253
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
45966
|
+
}, state.image, closePopup)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
45254
45967
|
}
|
|
45255
45968
|
|
|
45256
45969
|
|
|
@@ -45541,8 +46254,9 @@ UIImagePositionTab = __decorate([
|
|
|
45541
46254
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
45542
46255
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
45543
46256
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
45544
|
-
/* harmony import */ var
|
|
45545
|
-
/* harmony import */ var
|
|
46257
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2073);
|
|
46258
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92762);
|
|
46259
|
+
/* harmony import */ var _image_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25179);
|
|
45546
46260
|
/*!
|
|
45547
46261
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45548
46262
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -45555,7 +46269,8 @@ UIImagePositionTab = __decorate([
|
|
|
45555
46269
|
|
|
45556
46270
|
|
|
45557
46271
|
|
|
45558
|
-
|
|
46272
|
+
|
|
46273
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', _image_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]);
|
|
45559
46274
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
45560
46275
|
popup: (editor, current, close)=>{
|
|
45561
46276
|
let sourceImage = null;
|
|
@@ -45563,10 +46278,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
45563
46278
|
sourceImage = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'img') ? current : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
45564
46279
|
}
|
|
45565
46280
|
editor.s.save();
|
|
45566
|
-
return (0,
|
|
46281
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
45567
46282
|
filebrowser: (data)=>{
|
|
45568
46283
|
editor.s.restore();
|
|
45569
|
-
|
|
46284
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_6__.getItems)(data).forEach(({ file })=>editor.s.insertImage(data.baseurl + file, null, editor.o.imageDefaultWidth));
|
|
45570
46285
|
close();
|
|
45571
46286
|
},
|
|
45572
46287
|
upload: true,
|
|
@@ -45916,6 +46631,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
45916
46631
|
|
|
45917
46632
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
45918
46633
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
46634
|
+
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
45919
46635
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
45920
46636
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
45921
46637
|
'source'
|
|
@@ -45999,8 +46715,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
45999
46715
|
|
|
46000
46716
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
46001
46717
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27613);
|
|
46002
|
-
/* harmony import */ var
|
|
46003
|
-
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41180);
|
|
46718
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41180);
|
|
46004
46719
|
/*!
|
|
46005
46720
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
46006
46721
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46008,7 +46723,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
46008
46723
|
*/
|
|
46009
46724
|
|
|
46010
46725
|
|
|
46011
|
-
|
|
46012
46726
|
const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
46013
46727
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
46014
46728
|
'brushCell',
|
|
@@ -46024,7 +46738,7 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
46024
46738
|
exec: (editor, table, { control })=>{
|
|
46025
46739
|
const command = cmd(control);
|
|
46026
46740
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
46027
|
-
(0,
|
|
46741
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
46028
46742
|
});
|
|
46029
46743
|
},
|
|
46030
46744
|
tooltip: 'Vertical align'
|
|
@@ -46090,13 +46804,6 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
46090
46804
|
return;
|
|
46091
46805
|
}
|
|
46092
46806
|
editor.execCommand('tableheaderrow', false, table);
|
|
46093
|
-
const [cell] = editor.getInstance('Table', editor.o).getAllSelectedCells();
|
|
46094
|
-
// Beside the cell that replaced the one it opened for
|
|
46095
|
-
if (cell) {
|
|
46096
|
-
editor.e.fire('showPopup', table, ()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_2__.position)(cell, editor), 'cells');
|
|
46097
|
-
}
|
|
46098
|
-
// The popup stays open, so the button shows the new state
|
|
46099
|
-
return true;
|
|
46100
46807
|
},
|
|
46101
46808
|
isActive: (editor, button)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') && editor.getInstance('Table', editor.o).hasHeaderRow(button.target),
|
|
46102
46809
|
isDisabled: (editor, button)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') || !editor.getInstance('Table', editor.o).canToggleHeaderRow(button.target),
|
|
@@ -46288,7 +46995,7 @@ const align = {
|
|
|
46288
46995
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
46289
46996
|
editor.synchronizeValues();
|
|
46290
46997
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
46291
|
-
editor.e.fire('hideResizer');
|
|
46998
|
+
editor.e.fire('hidePopup hideResizer');
|
|
46292
46999
|
editor.s.setCursorIn(caption);
|
|
46293
47000
|
} else {
|
|
46294
47001
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -46487,7 +47194,9 @@ const align = {
|
|
|
46487
47194
|
* Plugin for show inline popup dialog
|
|
46488
47195
|
*/ class inlinePopup extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
|
|
46489
47196
|
get popup() {
|
|
46490
|
-
|
|
47197
|
+
const popup = new _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.jodit, false);
|
|
47198
|
+
popup.keepOpen = this.j.o.toolbarInlineKeepOpen;
|
|
47199
|
+
return popup;
|
|
46491
47200
|
}
|
|
46492
47201
|
get toolbar() {
|
|
46493
47202
|
return (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__.makeCollection)(this.jodit, this.popup);
|
|
@@ -46500,8 +47209,8 @@ const align = {
|
|
|
46500
47209
|
const isMedia = type === 'jodit-media';
|
|
46501
47210
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
46502
47211
|
// the line, and below a captioned image's caption, so it stays in view
|
|
46503
|
-
const bound = mediaWrapper && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getWrappedMedia)(this.j, mediaWrapper) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getCaptionWrapper)(this.j, target) || target;
|
|
46504
|
-
this.showPopup(()=>this.__bound(bound, isMedia), type, target);
|
|
47212
|
+
const bound = ()=>mediaWrapper && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getWrappedMedia)(this.j, mediaWrapper) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getCaptionWrapper)(this.j, target) || target;
|
|
47213
|
+
this.showPopup(()=>this.__bound(bound(), isMedia), type, target);
|
|
46505
47214
|
return false;
|
|
46506
47215
|
}
|
|
46507
47216
|
}
|
|
@@ -46525,13 +47234,18 @@ const align = {
|
|
|
46525
47234
|
* Show inline popup with some toolbar
|
|
46526
47235
|
*
|
|
46527
47236
|
* @param type - selection, img, a etc.
|
|
46528
|
-
|
|
47237
|
+
* @param force - make the popup again for the same target
|
|
47238
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
46529
47239
|
type = type.toLowerCase();
|
|
46530
47240
|
if (!this.canShowPopupForType(type)) {
|
|
46531
47241
|
return false;
|
|
46532
47242
|
}
|
|
46533
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
47243
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
46534
47244
|
this.previousTarget = target;
|
|
47245
|
+
// What it showed is taken out, not destructed: an element a
|
|
47246
|
+
// function returns is its own, and may be shown again
|
|
47247
|
+
this.popup.elements.slice().forEach((elm)=>this.popup.remove(elm));
|
|
47248
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(this.popup.getElm('content'));
|
|
46535
47249
|
const data = this.j.o.popup[type];
|
|
46536
47250
|
let content;
|
|
46537
47251
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(data)) {
|
|
@@ -46614,59 +47328,28 @@ const align = {
|
|
|
46614
47328
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
46615
47329
|
});
|
|
46616
47330
|
}
|
|
46617
|
-
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type)=>{
|
|
46618
|
-
this.showPopup(rect, type || ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? elm : elm.nodeName), (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? undefined : elm);
|
|
47331
|
+
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type, force)=>{
|
|
47332
|
+
this.showPopup(rect, type || ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? elm : elm.nodeName), (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? undefined : elm, force);
|
|
46619
47333
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
46620
|
-
if (this.popup.isOpened
|
|
47334
|
+
if (!this.popup.isOpened) {
|
|
47335
|
+
return;
|
|
47336
|
+
}
|
|
47337
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
46621
47338
|
this.hidePopup();
|
|
46622
47339
|
this.previousTarget = undefined;
|
|
47340
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
47341
|
+
this.hidePopup();
|
|
46623
47342
|
}
|
|
46624
47343
|
}).on([
|
|
46625
47344
|
this.j.ew,
|
|
46626
47345
|
this.j.ow
|
|
46627
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
46628
|
-
this.j.ew,
|
|
46629
|
-
this.j.ow
|
|
46630
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).on('closeAllPopups', this.__onCloseAllPopups);
|
|
47346
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
46631
47347
|
this.addListenersForElements();
|
|
46632
47348
|
}
|
|
46633
|
-
|
|
46634
|
-
|
|
46635
|
-
|
|
46636
|
-
|
|
46637
|
-
}
|
|
46638
|
-
__onDocumentMouseDown(e) {
|
|
46639
|
-
this.__reopenFor = null;
|
|
46640
|
-
if (this.popup.isOpened && this.type === 'selection' && e.target && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(e.target, _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup)) {
|
|
46641
|
-
this.__reopenSelectionPopup = true;
|
|
46642
|
-
}
|
|
46643
|
-
}
|
|
46644
|
-
__onCloseAllPopups() {
|
|
46645
|
-
const target = this.__reopenFor;
|
|
46646
|
-
if (target) {
|
|
46647
|
-
this.__reopenFor = null;
|
|
46648
|
-
// After the popup's own `closeAllPopups` handler, as below
|
|
46649
|
-
this.j.async.setTimeout(()=>{
|
|
46650
|
-
if (this.j.editor.contains(target)) {
|
|
46651
|
-
this.onClick(target);
|
|
46652
|
-
}
|
|
46653
|
-
}, 1);
|
|
46654
|
-
}
|
|
46655
|
-
if (!this.__reopenSelectionPopup) {
|
|
46656
|
-
return;
|
|
46657
|
-
}
|
|
46658
|
-
this.__reopenSelectionPopup = false;
|
|
46659
|
-
if (!this.j.o.toolbarInlineForSelection) {
|
|
46660
|
-
return;
|
|
46661
|
-
}
|
|
46662
|
-
// a zero timeout would run synchronously — before the popup's own
|
|
46663
|
-
// `closeAllPopups` handler closes it; defer to the next macrotask
|
|
46664
|
-
this.j.async.setTimeout(()=>{
|
|
46665
|
-
const sel = this.j.s.sel;
|
|
46666
|
-
if (sel && !sel.isCollapsed) {
|
|
46667
|
-
this.showPopup(()=>this.__selectionBound(), 'selection');
|
|
46668
|
-
}
|
|
46669
|
-
}, 1);
|
|
47349
|
+
/**
|
|
47350
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
47351
|
+
*/ onRecalcPositionPopup() {
|
|
47352
|
+
this.popup.updatePosition();
|
|
46670
47353
|
}
|
|
46671
47354
|
/**
|
|
46672
47355
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -46712,9 +47395,8 @@ const align = {
|
|
|
46712
47395
|
return;
|
|
46713
47396
|
}
|
|
46714
47397
|
const type = 'selection';
|
|
46715
|
-
const sel = this.j.s.sel;
|
|
46716
47398
|
const range = this.j.s.range;
|
|
46717
|
-
if ((
|
|
47399
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
46718
47400
|
if (this.type === type && this.popup.isOpened) {
|
|
46719
47401
|
this.hidePopup();
|
|
46720
47402
|
}
|
|
@@ -46726,6 +47408,28 @@ const align = {
|
|
|
46726
47408
|
}
|
|
46727
47409
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
46728
47410
|
}
|
|
47411
|
+
/**
|
|
47412
|
+
* The selection holds more than a line break. A double click past the end
|
|
47413
|
+
* of a line, or a drag from there into the next, selects only the break,
|
|
47414
|
+
* with any rule, video or empty line it crosses: it starts at the end of a
|
|
47415
|
+
* line, after everything in it, and holds no text that shows
|
|
47416
|
+
*/ __hasSelectedContent() {
|
|
47417
|
+
const { sel, range } = this.j.s;
|
|
47418
|
+
if (!sel || sel.isCollapsed) {
|
|
47419
|
+
return false;
|
|
47420
|
+
}
|
|
47421
|
+
// HTML collapses ASCII white space, but not
|
|
47422
|
+
const showsText = (r)=>/[^\t\n\f\r \uFEFF\u200B]/.test(r.toString());
|
|
47423
|
+
const line = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, this.j.editor);
|
|
47424
|
+
if (!line || line === this.j.editor || showsText(range)) {
|
|
47425
|
+
return true;
|
|
47426
|
+
}
|
|
47427
|
+
// The rest of the line after the selection's start
|
|
47428
|
+
const rest = this.j.s.createRange();
|
|
47429
|
+
rest.setStart(range.startContainer, range.startOffset);
|
|
47430
|
+
rest.setEnd(line, line.childNodes.length);
|
|
47431
|
+
return showsText(rest) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(line.querySelectorAll(':not(br):empty')).some((elm)=>rest.intersectsNode(elm));
|
|
47432
|
+
}
|
|
46729
47433
|
/**
|
|
46730
47434
|
* In not collapsed selection - only one image
|
|
46731
47435
|
*/ isSelectedTarget(r) {
|
|
@@ -46741,10 +47445,7 @@ const align = {
|
|
|
46741
47445
|
jodit.e.off('showPopup').off([
|
|
46742
47446
|
this.j.ew,
|
|
46743
47447
|
this.j.ow
|
|
46744
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
46745
|
-
this.j.ew,
|
|
46746
|
-
this.j.ow
|
|
46747
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).off('closeAllPopups', this.__onCloseAllPopups);
|
|
47448
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
46748
47449
|
this.removeListenersForElements();
|
|
46749
47450
|
}
|
|
46750
47451
|
_eventsList() {
|
|
@@ -46776,16 +47477,6 @@ const align = {
|
|
|
46776
47477
|
constructor(){
|
|
46777
47478
|
super(...arguments);
|
|
46778
47479
|
this.type = null;
|
|
46779
|
-
/**
|
|
46780
|
-
* The user pressed a button inside the selection toolbar — after the
|
|
46781
|
-
* command fires `closeAllPopups`, the toolbar should be shown again
|
|
46782
|
-
* while the selection is still there. See #1238
|
|
46783
|
-
*/ this.__reopenSelectionPopup = false;
|
|
46784
|
-
/**
|
|
46785
|
-
* The alignment controls fire `recalcPositionPopup` once they have moved
|
|
46786
|
-
* the element, and their button then fires `closeAllPopups`. The popup
|
|
46787
|
-
* opens again beside the element, as the selection toolbar does
|
|
46788
|
-
*/ this.__reopenFor = null;
|
|
46789
47480
|
this.snapRange = null;
|
|
46790
47481
|
this.__keyDownElement = null;
|
|
46791
47482
|
this.elmsList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.keys)(this.j.o.popup, false).filter((s)=>!this.isExcludedTarget(s));
|
|
@@ -46823,12 +47514,6 @@ __decorate([
|
|
|
46823
47514
|
__decorate([
|
|
46824
47515
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.watch)(':recalcPositionPopup')
|
|
46825
47516
|
], inlinePopup.prototype, "onRecalcPositionPopup", null);
|
|
46826
|
-
__decorate([
|
|
46827
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
46828
|
-
], inlinePopup.prototype, "__onDocumentMouseDown", null);
|
|
46829
|
-
__decorate([
|
|
46830
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
46831
|
-
], inlinePopup.prototype, "__onCloseAllPopups", null);
|
|
46832
47517
|
__decorate([
|
|
46833
47518
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
46834
47519
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -47855,8 +48540,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
47855
48540
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
47856
48541
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
47857
48542
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
47858
|
-
/* harmony import */ var
|
|
47859
|
-
/* harmony import */ var
|
|
48543
|
+
/* harmony import */ var _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48538);
|
|
48544
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12153);
|
|
48545
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56917);
|
|
48546
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5827);
|
|
48547
|
+
/* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58970);
|
|
47860
48548
|
/*!
|
|
47861
48549
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
47862
48550
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -47875,6 +48563,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
47875
48563
|
|
|
47876
48564
|
|
|
47877
48565
|
|
|
48566
|
+
|
|
48567
|
+
|
|
48568
|
+
|
|
47878
48569
|
/**
|
|
47879
48570
|
* Process link. Insert, dblclick or remove format
|
|
47880
48571
|
*/ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
@@ -48019,6 +48710,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
48019
48710
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
48020
48711
|
}
|
|
48021
48712
|
}
|
|
48713
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
48022
48714
|
jodit.editor.normalize();
|
|
48023
48715
|
const snapshot = jodit.history.snapshot.make();
|
|
48024
48716
|
if (unlink) {
|
|
@@ -48181,7 +48873,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
48181
48873
|
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
|
|
48182
48874
|
return;
|
|
48183
48875
|
}
|
|
48184
|
-
const found = (0,
|
|
48876
|
+
const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
48185
48877
|
if (!found) {
|
|
48186
48878
|
return;
|
|
48187
48879
|
}
|
|
@@ -48276,6 +48968,142 @@ const MODIFIER_KEYS = new Set([
|
|
|
48276
48968
|
'CapsLock'
|
|
48277
48969
|
]);
|
|
48278
48970
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
48971
|
+
/**
|
|
48972
|
+
* A dropdown arrow in the URL field that lists the document's anchors by the
|
|
48973
|
+
* words after them, and fills in the one picked. The list opens in a popup of
|
|
48974
|
+
* its own, from the arrow or the down arrow key, and closes once an address is
|
|
48975
|
+
* typed
|
|
48976
|
+
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
48977
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(jodit.editor);
|
|
48978
|
+
const field = url === null || url === void 0 ? void 0 : url.closest('.jodit-ui-input__wrapper');
|
|
48979
|
+
const input = field && _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(field, _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement);
|
|
48980
|
+
if (!field || !input || !anchors.length) {
|
|
48981
|
+
return;
|
|
48982
|
+
}
|
|
48983
|
+
const { c } = jodit;
|
|
48984
|
+
const label = jodit.i18n('Link to an anchor');
|
|
48985
|
+
const toggle = c.element('button', {
|
|
48986
|
+
type: 'button',
|
|
48987
|
+
class: 'jodit-link-anchors__toggle',
|
|
48988
|
+
title: label,
|
|
48989
|
+
'aria-label': label
|
|
48990
|
+
});
|
|
48991
|
+
const heading = c.div('jodit-link-anchors__heading', {
|
|
48992
|
+
id: 'jodit-link-anchors-' + (0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.uniqueUid)()
|
|
48993
|
+
});
|
|
48994
|
+
const list = c.div('jodit-link-anchors', {
|
|
48995
|
+
role: 'group',
|
|
48996
|
+
'aria-labelledby': heading.id
|
|
48997
|
+
});
|
|
48998
|
+
const icon = (name)=>{
|
|
48999
|
+
var _a;
|
|
49000
|
+
return (_a = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__.Icon.makeIcon(jodit, {
|
|
49001
|
+
name,
|
|
49002
|
+
iconURL: '',
|
|
49003
|
+
fill: '',
|
|
49004
|
+
scale: undefined
|
|
49005
|
+
})) !== null && _a !== void 0 ? _a : c.span();
|
|
49006
|
+
};
|
|
49007
|
+
const dropdown = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__.Popup(jodit).setMod('padding', false);
|
|
49008
|
+
const items = [];
|
|
49009
|
+
let filled = '';
|
|
49010
|
+
const open = ()=>{
|
|
49011
|
+
var _a;
|
|
49012
|
+
if (dropdown.isOpened) {
|
|
49013
|
+
return;
|
|
49014
|
+
}
|
|
49015
|
+
// Clicks in the list then count as the form's, which stays open
|
|
49016
|
+
dropdown.parentElement || (dropdown.parentElement = input);
|
|
49017
|
+
list.style.minWidth = field.offsetWidth + 'px';
|
|
49018
|
+
dropdown.open(()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(field));
|
|
49019
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', true);
|
|
49020
|
+
items.forEach((item, index)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(item, 'aria-current', url.value === '#' + (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchors[index])));
|
|
49021
|
+
(_a = list.querySelector('[aria-current=true]')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
49022
|
+
block: 'nearest'
|
|
49023
|
+
});
|
|
49024
|
+
};
|
|
49025
|
+
toggle.append(icon('chevron'));
|
|
49026
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', false);
|
|
49027
|
+
heading.textContent = jodit.i18n('On this page');
|
|
49028
|
+
list.appendChild(heading);
|
|
49029
|
+
dropdown.setContent(list);
|
|
49030
|
+
anchors.forEach((anchor)=>{
|
|
49031
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
49032
|
+
const text = textAfter(jodit, anchor) || name;
|
|
49033
|
+
const item = c.element('button', {
|
|
49034
|
+
type: 'button',
|
|
49035
|
+
tabindex: -1,
|
|
49036
|
+
class: 'jodit-link-anchors__item'
|
|
49037
|
+
});
|
|
49038
|
+
items.push(item);
|
|
49039
|
+
const textBox = c.span('jodit-link-anchors__text');
|
|
49040
|
+
textBox.textContent = text;
|
|
49041
|
+
const nameBox = c.span('jodit-link-anchors__name');
|
|
49042
|
+
nameBox.textContent = '#' + name;
|
|
49043
|
+
item.append(icon('anchor'), textBox, nameBox);
|
|
49044
|
+
list.appendChild(item);
|
|
49045
|
+
jodit.e.on(item, 'click', ()=>{
|
|
49046
|
+
dropdown.close();
|
|
49047
|
+
url.value = '#' + name;
|
|
49048
|
+
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
49049
|
+
content.value = filled = text;
|
|
49050
|
+
}
|
|
49051
|
+
url.focus();
|
|
49052
|
+
});
|
|
49053
|
+
});
|
|
49054
|
+
// A press on the arrow closes the open list before the click
|
|
49055
|
+
let wasOpen = false;
|
|
49056
|
+
jodit.e.on(dropdown, 'beforeClose', ()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', false)).on(toggle, 'mousedown', ()=>wasOpen = dropdown.isOpened).on(toggle, 'click', ()=>{
|
|
49057
|
+
wasOpen || dropdown.isOpened ? dropdown.close() : open();
|
|
49058
|
+
wasOpen = false;
|
|
49059
|
+
}).on(url, 'input.anchors', ()=>{
|
|
49060
|
+
if (url.value && !url.value.startsWith('#')) {
|
|
49061
|
+
dropdown.close();
|
|
49062
|
+
}
|
|
49063
|
+
}).on(url, 'keydown.anchors', (e)=>{
|
|
49064
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN) {
|
|
49065
|
+
e.preventDefault();
|
|
49066
|
+
open();
|
|
49067
|
+
items[0].focus();
|
|
49068
|
+
}
|
|
49069
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC && dropdown.isOpened) {
|
|
49070
|
+
e.stopPropagation();
|
|
49071
|
+
dropdown.close();
|
|
49072
|
+
}
|
|
49073
|
+
}).on(list, 'keydown', (e)=>{
|
|
49074
|
+
var _a;
|
|
49075
|
+
const index = items.indexOf(e.target);
|
|
49076
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
|
|
49077
|
+
e.preventDefault();
|
|
49078
|
+
(_a = items[index + (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN ? 1 : -1)]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
49079
|
+
}
|
|
49080
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
49081
|
+
e.stopPropagation();
|
|
49082
|
+
dropdown.close();
|
|
49083
|
+
url.focus();
|
|
49084
|
+
}
|
|
49085
|
+
});
|
|
49086
|
+
// The URL input is destructed when the form closes
|
|
49087
|
+
input.hookStatus('destructed', ()=>{
|
|
49088
|
+
dropdown.destruct();
|
|
49089
|
+
jodit.e.off([
|
|
49090
|
+
toggle,
|
|
49091
|
+
list,
|
|
49092
|
+
...items
|
|
49093
|
+
]).off(url, '.anchors');
|
|
49094
|
+
});
|
|
49095
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.after(url, toggle);
|
|
49096
|
+
}
|
|
49097
|
+
/**
|
|
49098
|
+
* The words after an anchor in its block, which say where it is
|
|
49099
|
+
*/ function textAfter(jodit, anchor) {
|
|
49100
|
+
var _a;
|
|
49101
|
+
const range = jodit.ed.createRange();
|
|
49102
|
+
range.selectNodeContents((_a = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.up(anchor, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, jodit.editor)) !== null && _a !== void 0 ? _a : jodit.editor);
|
|
49103
|
+
range.setStartAfter(anchor);
|
|
49104
|
+
const text = range.toString().replace(/\s+/g, ' ').trim();
|
|
49105
|
+
return text.length > 50 ? text.slice(0, 50).replace(/\s+\S*$/, '') + '…' : text;
|
|
49106
|
+
}
|
|
48279
49107
|
/**
|
|
48280
49108
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
48281
49109
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -48290,7 +49118,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
|
48290
49118
|
return value;
|
|
48291
49119
|
}
|
|
48292
49120
|
// email address -> mailto:
|
|
48293
|
-
if (
|
|
49121
|
+
if (_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.EMAIL.test(value)) {
|
|
48294
49122
|
return `mailto:${value}`;
|
|
48295
49123
|
}
|
|
48296
49124
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -48680,11 +49508,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
|
|
|
48680
49508
|
});
|
|
48681
49509
|
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(wrapper, 'style', (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'style'));
|
|
48682
49510
|
// The wrapper fits the media, whose size changes as its metadata loads
|
|
48683
|
-
// and as it's resized.
|
|
49511
|
+
// and as it's resized. It's inline, as the media is by default, so the
|
|
49512
|
+
// line's text-align still places it, or a block when the media is one.
|
|
49513
|
+
// A percentage width is of the line, so the wrapper is a block that
|
|
49514
|
+
// takes the line, and the media in it follows the text-align it inherits
|
|
48684
49515
|
const fit = ()=>{
|
|
49516
|
+
const ofLine = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(media, 'width').endsWith('%');
|
|
48685
49517
|
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(wrapper, {
|
|
48686
|
-
display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.
|
|
48687
|
-
width:
|
|
49518
|
+
display: !ofLine && /^inline/.test((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(media, 'display').toString()) ? 'inline-block' : 'block',
|
|
49519
|
+
width: ofLine ? '' : 'fit-content',
|
|
48688
49520
|
height: ''
|
|
48689
49521
|
});
|
|
48690
49522
|
};
|
|
@@ -51691,8 +52523,11 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
51691
52523
|
// is nothing measurable at all, let the wrapper size itself.
|
|
51692
52524
|
const width = element.offsetWidth || attrPixelSize(element, 'width');
|
|
51693
52525
|
const height = element.offsetHeight || attrPixelSize(element, 'height');
|
|
52526
|
+
// The wrapper takes the iframe's place in its line: inline, as an
|
|
52527
|
+
// iframe is by default, so the line's text-align still places it,
|
|
52528
|
+
// or a block when the iframe is one
|
|
51694
52529
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, {
|
|
51695
|
-
display: (0,
|
|
52530
|
+
display: /^inline/.test((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(element, 'display').toString()) ? 'inline-block' : 'block'
|
|
51696
52531
|
});
|
|
51697
52532
|
if (width) {
|
|
51698
52533
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, 'width', width);
|
|
@@ -52825,8 +53660,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
52825
53660
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
52826
53661
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
52827
53662
|
/* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(45124);
|
|
52828
|
-
/* harmony import */ var
|
|
52829
|
-
/* harmony import */ var
|
|
53663
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
|
|
53664
|
+
/* harmony import */ var _modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76014);
|
|
53665
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55311);
|
|
52830
53666
|
/*!
|
|
52831
53667
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
52832
53668
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -52846,12 +53682,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
52846
53682
|
|
|
52847
53683
|
|
|
52848
53684
|
|
|
53685
|
+
|
|
52849
53686
|
const key = 'table_processor_observer';
|
|
52850
53687
|
class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
52851
53688
|
/**
|
|
52852
53689
|
* Shortcut for Jodit.modules.Table
|
|
52853
53690
|
*/ get __tableModule() {
|
|
52854
|
-
return this.j.getInstance(
|
|
53691
|
+
return this.j.getInstance(_modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__.Table, this.j.o);
|
|
52855
53692
|
}
|
|
52856
53693
|
afterInit(jodit) {
|
|
52857
53694
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -52939,7 +53776,28 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
52939
53776
|
// As after a click, the first change to the cell keeps the mark
|
|
52940
53777
|
this.__selectedCell = cell;
|
|
52941
53778
|
this.__tableModule.addSelection(cell);
|
|
52942
|
-
this.j.e.fire('showPopup', table,
|
|
53779
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
53780
|
+
}
|
|
53781
|
+
/**
|
|
53782
|
+
* The box round the marked cells, which their popup opens beside and
|
|
53783
|
+
* follows when its commands add, merge or replace cells
|
|
53784
|
+
*/ __markedBound() {
|
|
53785
|
+
const bounds = this.__tableModule.getAllSelectedCells().filter((cell)=>cell.isConnected).map((cell)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(cell, this.j));
|
|
53786
|
+
if (!bounds.length) {
|
|
53787
|
+
return {
|
|
53788
|
+
left: 0,
|
|
53789
|
+
top: 0,
|
|
53790
|
+
width: 0,
|
|
53791
|
+
height: 0
|
|
53792
|
+
};
|
|
53793
|
+
}
|
|
53794
|
+
const left = Math.min(...bounds.map((b)=>b.left)), top = Math.min(...bounds.map((b)=>b.top)), right = Math.max(...bounds.map((b)=>b.left + b.width)), bottom = Math.max(...bounds.map((b)=>b.top + b.height));
|
|
53795
|
+
return {
|
|
53796
|
+
left,
|
|
53797
|
+
top,
|
|
53798
|
+
width: right - left,
|
|
53799
|
+
height: bottom - top
|
|
53800
|
+
};
|
|
52943
53801
|
}
|
|
52944
53802
|
/**
|
|
52945
53803
|
* Mouse click inside the table
|
|
@@ -52964,7 +53822,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
52964
53822
|
this.__selectedCell = cell;
|
|
52965
53823
|
(_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
52966
53824
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
52967
|
-
this.j.e.fire('showPopup', table,
|
|
53825
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
52968
53826
|
} else {
|
|
52969
53827
|
this.j.e.fire('hidePopup', 'cells');
|
|
52970
53828
|
}
|
|
@@ -53012,28 +53870,25 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53012
53870
|
return false;
|
|
53013
53871
|
}
|
|
53014
53872
|
}
|
|
53873
|
+
onPress(e) {
|
|
53874
|
+
this.__inPopup = Boolean(e && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isNode(e.target) && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(e.target, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup));
|
|
53875
|
+
}
|
|
53015
53876
|
onChange() {
|
|
53016
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
53877
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
53017
53878
|
this.__onRemoveSelection();
|
|
53018
53879
|
}
|
|
53019
53880
|
}
|
|
53020
53881
|
/**
|
|
53021
53882
|
* Mouse move inside the table
|
|
53022
53883
|
*/ __onMove(table, e) {
|
|
53023
|
-
var _a
|
|
53884
|
+
var _a;
|
|
53024
53885
|
if (this.j.o.readonly && !this.j.isLocked) {
|
|
53025
53886
|
return;
|
|
53026
53887
|
}
|
|
53027
53888
|
if (this.j.isLockedNotBy(key)) {
|
|
53028
53889
|
return;
|
|
53029
53890
|
}
|
|
53030
|
-
|
|
53031
|
-
// host, so the lookup must start from the shadow root
|
|
53032
|
-
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
53033
|
-
const cell = node && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
|
|
53034
|
-
'td',
|
|
53035
|
-
'th'
|
|
53036
|
-
], table);
|
|
53891
|
+
const cell = this.__cellUnder(e, table);
|
|
53037
53892
|
if (!cell || !this.__selectedCell) {
|
|
53038
53893
|
return;
|
|
53039
53894
|
}
|
|
@@ -53059,7 +53914,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53059
53914
|
}
|
|
53060
53915
|
const cellsCount = this.__tableModule.getAllSelectedCells().length;
|
|
53061
53916
|
if (cellsCount > 1) {
|
|
53062
|
-
(
|
|
53917
|
+
(_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
53063
53918
|
}
|
|
53064
53919
|
this.j.e.fire('hidePopup');
|
|
53065
53920
|
e.stopPropagation();
|
|
@@ -53077,32 +53932,26 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53077
53932
|
this.__isSelectionMode = false;
|
|
53078
53933
|
this.__selectedCell = null;
|
|
53079
53934
|
}
|
|
53935
|
+
// The cell of this table under the pointer; over a table nested in a cell, the mouse is still in that cell
|
|
53936
|
+
__cellUnder(e, table) {
|
|
53937
|
+
var _a;
|
|
53938
|
+
// Inside Shadow DOM `document.elementFromPoint` returns the shadow
|
|
53939
|
+
// host, so the lookup must start from the shadow root
|
|
53940
|
+
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
53941
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, (elm)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isCell(elm) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(elm, 'table', table), table);
|
|
53942
|
+
}
|
|
53080
53943
|
/**
|
|
53081
53944
|
* Stop a selection process
|
|
53082
53945
|
*/ __onStopSelection(table, e) {
|
|
53083
|
-
var _a;
|
|
53084
53946
|
if (!this.__selectedCell) {
|
|
53085
53947
|
return;
|
|
53086
53948
|
}
|
|
53087
53949
|
this.__isSelectionMode = false;
|
|
53088
53950
|
this.j.unlock();
|
|
53089
|
-
|
|
53090
|
-
// host, so the lookup must start from the shadow root
|
|
53091
|
-
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
53092
|
-
if (!node) {
|
|
53093
|
-
return;
|
|
53094
|
-
}
|
|
53095
|
-
const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
|
|
53096
|
-
'td',
|
|
53097
|
-
'th'
|
|
53098
|
-
], table);
|
|
53951
|
+
const cell = this.__cellUnder(e, table);
|
|
53099
53952
|
if (!cell) {
|
|
53100
53953
|
return;
|
|
53101
53954
|
}
|
|
53102
|
-
const ownTable = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(cell, 'table', table);
|
|
53103
|
-
if (ownTable && ownTable !== table) {
|
|
53104
|
-
return; // Nested tables
|
|
53105
|
-
}
|
|
53106
53955
|
this.__showCellsPopup(table, [
|
|
53107
53956
|
cell,
|
|
53108
53957
|
this.__selectedCell
|
|
@@ -53140,15 +53989,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53140
53989
|
if (!min || !max) {
|
|
53141
53990
|
return;
|
|
53142
53991
|
}
|
|
53143
|
-
this.j.e.fire('showPopup', table,
|
|
53144
|
-
const minOffset = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(min, this.j), maxOffset = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(max, this.j);
|
|
53145
|
-
return {
|
|
53146
|
-
left: minOffset.left,
|
|
53147
|
-
top: minOffset.top,
|
|
53148
|
-
width: maxOffset.left - minOffset.left + maxOffset.width,
|
|
53149
|
-
height: maxOffset.top - minOffset.top + maxOffset.height
|
|
53150
|
-
};
|
|
53151
|
-
}, 'cells');
|
|
53992
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
53152
53993
|
}
|
|
53153
53994
|
__stopListening() {
|
|
53154
53995
|
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -53261,6 +54102,11 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53261
54102
|
this.__toggleHeaderRow(table, cells);
|
|
53262
54103
|
break;
|
|
53263
54104
|
}
|
|
54105
|
+
// A split unmarks the cells. They stay marked, as after the
|
|
54106
|
+
// other commands, so their popup stays beside them
|
|
54107
|
+
if (/^split/.test(command)) {
|
|
54108
|
+
cells.forEach((cell)=>this.__tableModule.addSelection(cell));
|
|
54109
|
+
}
|
|
53264
54110
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
53265
54111
|
this.__removeTable(table);
|
|
53266
54112
|
}
|
|
@@ -53272,7 +54118,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53272
54118
|
* Turns the table's header row on or off. The caret and the marked cells
|
|
53273
54119
|
* move to the cells that replace them
|
|
53274
54120
|
*/ __toggleHeaderRow(table, cells) {
|
|
53275
|
-
var _a, _b;
|
|
53276
54121
|
const module = this.__tableModule;
|
|
53277
54122
|
this.j.s.save();
|
|
53278
54123
|
const replaced = module.toggleHeaderRow(table);
|
|
@@ -53284,10 +54129,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53284
54129
|
module.addSelection(next);
|
|
53285
54130
|
}
|
|
53286
54131
|
});
|
|
53287
|
-
// As after the click that marked it, the command's own change keeps
|
|
53288
|
-
// the marks, so the popup can stay open for another toggle
|
|
53289
|
-
const anchor = (_a = this.__selectedCell) !== null && _a !== void 0 ? _a : cells[0];
|
|
53290
|
-
this.__selectedCell = (_b = replaced.get(anchor)) !== null && _b !== void 0 ? _b : anchor;
|
|
53291
54132
|
}
|
|
53292
54133
|
/**
|
|
53293
54134
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -53354,6 +54195,10 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
53354
54195
|
* A drag let go outside the table ends in a click on the editor, which
|
|
53355
54196
|
* would unmark its cells
|
|
53356
54197
|
*/ this.__keepMarks = false;
|
|
54198
|
+
/**
|
|
54199
|
+
* The last press or key went to a popup, as to the cell popup's own
|
|
54200
|
+
* controls, whose changes keep the cells marked
|
|
54201
|
+
*/ this.__inPopup = false;
|
|
53357
54202
|
}
|
|
53358
54203
|
}
|
|
53359
54204
|
selectCells.requires = [
|
|
@@ -53365,6 +54210,9 @@ __decorate([
|
|
|
53365
54210
|
__decorate([
|
|
53366
54211
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':keyup')
|
|
53367
54212
|
], selectCells.prototype, "onKeyUp", null);
|
|
54213
|
+
__decorate([
|
|
54214
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54215
|
+
], selectCells.prototype, "__markedBound", null);
|
|
53368
54216
|
__decorate([
|
|
53369
54217
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
53370
54218
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -53380,6 +54228,16 @@ __decorate([
|
|
|
53380
54228
|
__decorate([
|
|
53381
54229
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
53382
54230
|
], selectCells.prototype, "__onClickAfterDrag", null);
|
|
54231
|
+
__decorate([
|
|
54232
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
54233
|
+
'ow:mousedown',
|
|
54234
|
+
'ow:touchstart',
|
|
54235
|
+
'ow:keydown',
|
|
54236
|
+
':mousedown',
|
|
54237
|
+
':touchstart',
|
|
54238
|
+
':keydown'
|
|
54239
|
+
])
|
|
54240
|
+
], selectCells.prototype, "onPress", null);
|
|
53383
54241
|
__decorate([
|
|
53384
54242
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
53385
54243
|
], selectCells.prototype, "onChange", null);
|
|
@@ -53429,9 +54287,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53429
54287
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
53430
54288
|
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
|
|
53431
54289
|
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
|
|
53432
|
-
/* harmony import */ var
|
|
53433
|
-
/* harmony import */ var
|
|
53434
|
-
/* harmony import */ var
|
|
54290
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49055);
|
|
54291
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
54292
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50911);
|
|
54293
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67510);
|
|
54294
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67215);
|
|
53435
54295
|
/*!
|
|
53436
54296
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
53437
54297
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -53451,6 +54311,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53451
54311
|
|
|
53452
54312
|
|
|
53453
54313
|
|
|
54314
|
+
|
|
54315
|
+
|
|
54316
|
+
const MEDIA = 'video, iframe, audio, object, embed';
|
|
54317
|
+
// The shade the browsers lay over a selected image: #b5d6fd on white
|
|
54318
|
+
const SHADE = `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'>" + "<filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'>" + "<feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/>" + '</filter></svg>')}#s")`;
|
|
53454
54319
|
/**
|
|
53455
54320
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
53456
54321
|
*
|
|
@@ -53461,7 +54326,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53461
54326
|
* console.log(img.src);
|
|
53462
54327
|
* })
|
|
53463
54328
|
* ```
|
|
53464
|
-
*/ class select extends
|
|
54329
|
+
*/ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__.Plugin {
|
|
53465
54330
|
afterInit(jodit) {
|
|
53466
54331
|
this.proxyEventsList.forEach((eventName)=>{
|
|
53467
54332
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -53469,6 +54334,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53469
54334
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
53470
54335
|
top: true
|
|
53471
54336
|
});
|
|
54337
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
53472
54338
|
}
|
|
53473
54339
|
beforeDestruct(jodit) {
|
|
53474
54340
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -53476,6 +54342,39 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53476
54342
|
});
|
|
53477
54343
|
this.__endPressBesideRow();
|
|
53478
54344
|
jodit.e.off('dblclick', this.__onDblClickBesideRow);
|
|
54345
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
54346
|
+
}
|
|
54347
|
+
/**
|
|
54348
|
+
* The browsers shade an image in the selection, but Chrome doesn't shade
|
|
54349
|
+
* a video with controls, or one in a `jodit-media` wrapper, so a selection
|
|
54350
|
+
* that took one in didn't show it, and typing deleted it unseen (#1768).
|
|
54351
|
+
* The media gets the same shade from a filter, in place of the tint Safari
|
|
54352
|
+
* gives a block wrapper's whole line. It's a style in the editing
|
|
54353
|
+
* document, as selected cells get their border, so the content, and with
|
|
54354
|
+
* it the value, the history and a copy, doesn't change. Media a click
|
|
54355
|
+
* selected whole is left alone, as its resize frame shows it (#1528). A
|
|
54356
|
+
* change, read-only and the source mode redo or drop the style, as the
|
|
54357
|
+
* selection may not change with them, and the style's paths could then
|
|
54358
|
+
* fit other elements
|
|
54359
|
+
*/ __markSelectedMedia() {
|
|
54360
|
+
var _a;
|
|
54361
|
+
const { s, editor, o } = this.j;
|
|
54362
|
+
const range = ((_a = s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount) ? s.sel.getRangeAt(0) : null;
|
|
54363
|
+
const rules = [];
|
|
54364
|
+
if (range && !range.collapsed && !o.readonly && this.j.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && !isElementSelection(range) && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(editor, range.commonAncestorContainer)) {
|
|
54365
|
+
uneditableIn(range, editor).forEach((elm)=>{
|
|
54366
|
+
const media = elm.querySelector(MEDIA);
|
|
54367
|
+
const wrapper = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(elm);
|
|
54368
|
+
if (media && wrapper) {
|
|
54369
|
+
rules.push(`${wrapper}::selection,${wrapper} ::selection{background:transparent}`, `${(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(media)}{filter:${SHADE}}`);
|
|
54370
|
+
}
|
|
54371
|
+
});
|
|
54372
|
+
}
|
|
54373
|
+
const style = rules.join('');
|
|
54374
|
+
if (style !== this.__selectedMediaStyle) {
|
|
54375
|
+
this.__selectedMediaStyle = style;
|
|
54376
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.j, select, 'style', true).textContent = style;
|
|
54377
|
+
}
|
|
53479
54378
|
}
|
|
53480
54379
|
onStartSelection(e) {
|
|
53481
54380
|
const { j } = this;
|
|
@@ -53501,10 +54400,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53501
54400
|
}
|
|
53502
54401
|
// Selecting the text of a popup input with the mouse and releasing
|
|
53503
54402
|
// the button past the popup's edge is not a click outside of it.
|
|
53504
|
-
if (pressed &&
|
|
54403
|
+
if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup)) {
|
|
53505
54404
|
return;
|
|
53506
54405
|
}
|
|
53507
|
-
|
|
54406
|
+
// An item of a list that closed once it was chosen was in a popup
|
|
54407
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isNode(node) && !node.isConnected) {
|
|
54408
|
+
return;
|
|
54409
|
+
}
|
|
54410
|
+
const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup);
|
|
53508
54411
|
if (!box) {
|
|
53509
54412
|
this.j.e.fire('outsideClick', e);
|
|
53510
54413
|
}
|
|
@@ -53712,6 +54615,79 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53712
54615
|
s.select(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(startContainer, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, this.j.editor) || startContainer, true);
|
|
53713
54616
|
}
|
|
53714
54617
|
}
|
|
54618
|
+
/**
|
|
54619
|
+
* A double click past the end of a line selects only its line break, up
|
|
54620
|
+
* to the start of the next line a caret can go on. The browsers show no
|
|
54621
|
+
* caret for it, and typing replaces the break, joining the lines and
|
|
54622
|
+
* taking any video in between with it (#1768). Put the caret at the end
|
|
54623
|
+
* of the line instead
|
|
54624
|
+
*/ onDblClickPastLineEnd() {
|
|
54625
|
+
const { s, editor, o } = this.j;
|
|
54626
|
+
const range = s.range;
|
|
54627
|
+
if (o.readonly || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(editor, range.commonAncestorContainer) || !isLineBreak(range, editor)) {
|
|
54628
|
+
return;
|
|
54629
|
+
}
|
|
54630
|
+
range.collapse(true);
|
|
54631
|
+
s.selectRange(range);
|
|
54632
|
+
}
|
|
54633
|
+
/**
|
|
54634
|
+
* The browsers have no caret position beside an uneditable block alone
|
|
54635
|
+
* on its line, such as a video, so a drag that ends on its line runs on
|
|
54636
|
+
* past it, and typing deletes it (#1768). Until the pointer has passed
|
|
54637
|
+
* the block, the selection stops at the last caret place in the block
|
|
54638
|
+
* before its line, or for a drag upwards at the first in the block after
|
|
54639
|
+
*/ onMouseUpOnUneditableLine(e) {
|
|
54640
|
+
var _a, _b;
|
|
54641
|
+
const { s, editor, o } = this.j;
|
|
54642
|
+
const { sel } = s;
|
|
54643
|
+
if (o.readonly || !(sel === null || sel === void 0 ? void 0 : sel.rangeCount) || sel.isCollapsed) {
|
|
54644
|
+
return;
|
|
54645
|
+
}
|
|
54646
|
+
const range = sel.getRangeAt(0).cloneRange();
|
|
54647
|
+
// A video or image Jodit selected itself on the press
|
|
54648
|
+
if (isElementSelection(range)) {
|
|
54649
|
+
return;
|
|
54650
|
+
}
|
|
54651
|
+
const forward = sel.anchorNode === range.startContainer && sel.anchorOffset === range.startOffset;
|
|
54652
|
+
const lines = uneditableIn(range, editor).map((elm)=>{
|
|
54653
|
+
var _a;
|
|
54654
|
+
return (_a = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(elm, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor)) !== null && _a !== void 0 ? _a : elm;
|
|
54655
|
+
}).filter((line)=>!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__.trim)(ownText(line)));
|
|
54656
|
+
const isAhead = (line)=>{
|
|
54657
|
+
const box = line.getBoundingClientRect();
|
|
54658
|
+
return forward ? e.clientY < box.bottom : e.clientY > box.top;
|
|
54659
|
+
};
|
|
54660
|
+
const line = forward ? lines.find(isAhead) : lines.reverse().find(isAhead);
|
|
54661
|
+
if (!line) {
|
|
54662
|
+
return;
|
|
54663
|
+
}
|
|
54664
|
+
// Where a caret can go: in text, or before a <br>
|
|
54665
|
+
const isCaretPlace = (node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(node) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'br');
|
|
54666
|
+
// Only the block beside the line, not one further on
|
|
54667
|
+
const beside = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.findNotEmptySibling(line, forward);
|
|
54668
|
+
const place = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(beside) ? forward ? _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.last(beside, isCaretPlace) : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(beside, isCaretPlace) : null;
|
|
54669
|
+
if (!place) {
|
|
54670
|
+
return;
|
|
54671
|
+
}
|
|
54672
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(place)) {
|
|
54673
|
+
if (forward) {
|
|
54674
|
+
range.setEnd(place, (_b = (_a = place.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
54675
|
+
} else {
|
|
54676
|
+
range.setStart(place, 0);
|
|
54677
|
+
}
|
|
54678
|
+
} else if (forward) {
|
|
54679
|
+
range.setEndBefore(place);
|
|
54680
|
+
} else {
|
|
54681
|
+
range.setStartBefore(place);
|
|
54682
|
+
}
|
|
54683
|
+
// The drag's start stays the anchor
|
|
54684
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
54685
|
+
if (forward) {
|
|
54686
|
+
sel.setBaseAndExtent(startContainer, startOffset, endContainer, endOffset);
|
|
54687
|
+
} else {
|
|
54688
|
+
sel.setBaseAndExtent(endContainer, endOffset, startContainer, startOffset);
|
|
54689
|
+
}
|
|
54690
|
+
}
|
|
53715
54691
|
onCopyNormalizeSelectionBound(e) {
|
|
53716
54692
|
const { s, editor, o } = this.j;
|
|
53717
54693
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -53731,6 +54707,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53731
54707
|
'mouseup',
|
|
53732
54708
|
'touchend'
|
|
53733
54709
|
];
|
|
54710
|
+
this.__selectedMediaStyle = '';
|
|
53734
54711
|
/**
|
|
53735
54712
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
53736
54713
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
@@ -53742,6 +54719,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
53742
54719
|
*/ this.__pressBesideRow = null;
|
|
53743
54720
|
}
|
|
53744
54721
|
}
|
|
54722
|
+
__decorate([
|
|
54723
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
54724
|
+
':change',
|
|
54725
|
+
':readonly',
|
|
54726
|
+
':afterSetMode'
|
|
54727
|
+
]),
|
|
54728
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54729
|
+
], select.prototype, "__markSelectedMedia", null);
|
|
53745
54730
|
__decorate([
|
|
53746
54731
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
53747
54732
|
], select.prototype, "onStartSelection", null);
|
|
@@ -53791,12 +54776,85 @@ __decorate([
|
|
|
53791
54776
|
':click'
|
|
53792
54777
|
])
|
|
53793
54778
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|
|
54779
|
+
__decorate([
|
|
54780
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
54781
|
+
':dblclick'
|
|
54782
|
+
])
|
|
54783
|
+
], select.prototype, "onDblClickPastLineEnd", null);
|
|
54784
|
+
__decorate([
|
|
54785
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
54786
|
+
':mouseup'
|
|
54787
|
+
])
|
|
54788
|
+
], select.prototype, "onMouseUpOnUneditableLine", null);
|
|
53794
54789
|
__decorate([
|
|
53795
54790
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
53796
54791
|
':copy',
|
|
53797
54792
|
':cut'
|
|
53798
54793
|
])
|
|
53799
54794
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
|
54795
|
+
const isUneditable = (node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(node) && node.getAttribute('contenteditable') === 'false';
|
|
54796
|
+
/**
|
|
54797
|
+
* The text a node shows outside its uneditable elements, whose own text, as
|
|
54798
|
+
* a video's fallback text, isn't on the line
|
|
54799
|
+
*/ const ownText = (node)=>{
|
|
54800
|
+
var _a;
|
|
54801
|
+
return isUneditable(node) ? '' : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) ? (_a = node.nodeValue) !== null && _a !== void 0 ? _a : '' : (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes).map(ownText).join('');
|
|
54802
|
+
};
|
|
54803
|
+
/**
|
|
54804
|
+
* The uneditable elements the range holds whole, without those inside
|
|
54805
|
+
* another. Only those under the range's common ancestor can be, and none
|
|
54806
|
+
* when that's a text node, as along one line of a drag
|
|
54807
|
+
*/ function uneditableIn(range, root) {
|
|
54808
|
+
const box = range.commonAncestorContainer;
|
|
54809
|
+
if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(box)) {
|
|
54810
|
+
return [];
|
|
54811
|
+
}
|
|
54812
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(box.querySelectorAll('[contenteditable="false"]')).filter((elm)=>{
|
|
54813
|
+
if (!range.intersectsNode(elm)) {
|
|
54814
|
+
return false;
|
|
54815
|
+
}
|
|
54816
|
+
const own = elm.ownerDocument.createRange();
|
|
54817
|
+
own.selectNode(elm);
|
|
54818
|
+
return range.compareBoundaryPoints(Range.START_TO_START, own) <= 0 && range.compareBoundaryPoints(Range.END_TO_END, own) >= 0 && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(elm.parentNode, isUneditable, root);
|
|
54819
|
+
});
|
|
54820
|
+
}
|
|
54821
|
+
/**
|
|
54822
|
+
* The range holds one element and nothing else, as a selected image does
|
|
54823
|
+
*/ function isElementSelection(range) {
|
|
54824
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
54825
|
+
return startContainer === endContainer && endOffset - startOffset === 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(startContainer.childNodes[startOffset]);
|
|
54826
|
+
}
|
|
54827
|
+
/**
|
|
54828
|
+
* The range holds a line end and nothing else: no characters but
|
|
54829
|
+
* whitespace, and no element whole but a `<br>` or a line a caret can't go
|
|
54830
|
+
* on, as a video's. It ends in another block, or holds the `<br>`
|
|
54831
|
+
*/ function isLineBreak(range, root) {
|
|
54832
|
+
const { startContainer, endContainer } = range;
|
|
54833
|
+
if (range.collapsed || (0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__.trim)(range.toString()) && (0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__.trim)(ownText(range.cloneContents()))) {
|
|
54834
|
+
return false;
|
|
54835
|
+
}
|
|
54836
|
+
let crossesLineEnd = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(startContainer, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, root) !== _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(endContainer, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, root);
|
|
54837
|
+
const holdsBreaksOnly = (node)=>{
|
|
54838
|
+
if (!range.intersectsNode(node)) {
|
|
54839
|
+
return true;
|
|
54840
|
+
}
|
|
54841
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(node, startContainer) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(node, endContainer)) {
|
|
54842
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes).every(holdsBreaksOnly);
|
|
54843
|
+
}
|
|
54844
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'br')) {
|
|
54845
|
+
crossesLineEnd = true;
|
|
54846
|
+
return true;
|
|
54847
|
+
}
|
|
54848
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) || isCaretless(node);
|
|
54849
|
+
};
|
|
54850
|
+
return holdsBreaksOnly(range.commonAncestorContainer) && crossesLineEnd;
|
|
54851
|
+
}
|
|
54852
|
+
/**
|
|
54853
|
+
* An uneditable element, or a block holding one and nothing else
|
|
54854
|
+
*/ function isCaretless(node) {
|
|
54855
|
+
const children = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes);
|
|
54856
|
+
return isUneditable(node) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(node) && children.some(isCaretless) && children.every((child)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(child) || isCaretless(child));
|
|
54857
|
+
}
|
|
53800
54858
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('select', select);
|
|
53801
54859
|
|
|
53802
54860
|
|
|
@@ -59232,12 +60290,12 @@ UIVideoPropertiesForm = __decorate([
|
|
|
59232
60290
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
59233
60291
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
59234
60292
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
59235
|
-
/* harmony import */ var
|
|
59236
|
-
/* harmony import */ var
|
|
59237
|
-
/* harmony import */ var
|
|
59238
|
-
/* harmony import */ var
|
|
59239
|
-
/* harmony import */ var
|
|
59240
|
-
/* harmony import */ var
|
|
60293
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5700);
|
|
60294
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37790);
|
|
60295
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20356);
|
|
60296
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
60297
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(56917);
|
|
60298
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2073);
|
|
59241
60299
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(34793);
|
|
59242
60300
|
/* harmony import */ var _ui_ui_video_form_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27828);
|
|
59243
60301
|
/* harmony import */ var _readers_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54426);
|
|
@@ -59276,7 +60334,7 @@ UIVideoPropertiesForm = __decorate([
|
|
|
59276
60334
|
* ```javascript
|
|
59277
60335
|
* editor.events.fire('openVideoProperties', video);
|
|
59278
60336
|
* ```
|
|
59279
|
-
*/ class videoProperties extends
|
|
60337
|
+
*/ class videoProperties extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
59280
60338
|
get __size() {
|
|
59281
60339
|
const { width, height } = this.state.values;
|
|
59282
60340
|
return `${width}x${height}`;
|
|
@@ -59315,15 +60373,15 @@ UIVideoPropertiesForm = __decorate([
|
|
|
59315
60373
|
],
|
|
59316
60374
|
buttons.check
|
|
59317
60375
|
]);
|
|
59318
|
-
(0,
|
|
60376
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__.markOwner)(j, dialog.container);
|
|
59319
60377
|
return dialog;
|
|
59320
60378
|
}
|
|
59321
60379
|
get __buttons() {
|
|
59322
60380
|
const { j } = this;
|
|
59323
60381
|
return {
|
|
59324
|
-
check: (0,
|
|
59325
|
-
remove: (0,
|
|
59326
|
-
cancel: (0,
|
|
60382
|
+
check: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'ok', 'Apply', 'primary'),
|
|
60383
|
+
remove: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'bin', 'Delete'),
|
|
60384
|
+
cancel: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'cancel', 'Cancel')
|
|
59327
60385
|
};
|
|
59328
60386
|
}
|
|
59329
60387
|
/**
|
|
@@ -59348,25 +60406,27 @@ UIVideoPropertiesForm = __decorate([
|
|
|
59348
60406
|
}
|
|
59349
60407
|
__openPosterPopup(button) {
|
|
59350
60408
|
const { j, state } = this;
|
|
59351
|
-
const popup = new
|
|
60409
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.dialog);
|
|
59352
60410
|
const close = ()=>{
|
|
59353
60411
|
popup.close();
|
|
59354
60412
|
popup.destruct();
|
|
59355
60413
|
};
|
|
59356
60414
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__.FileSelectorWidget)(j, {
|
|
59357
60415
|
upload: (data)=>{
|
|
59358
|
-
|
|
59359
|
-
|
|
60416
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
60417
|
+
if (item) {
|
|
60418
|
+
state.values.poster = data.baseurl + item.file;
|
|
59360
60419
|
}
|
|
59361
60420
|
close();
|
|
59362
60421
|
},
|
|
59363
60422
|
filebrowser: (data)=>{
|
|
59364
|
-
|
|
59365
|
-
|
|
60423
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
60424
|
+
if (item) {
|
|
60425
|
+
state.values.poster = item.file;
|
|
59366
60426
|
close();
|
|
59367
60427
|
}
|
|
59368
60428
|
}
|
|
59369
|
-
}, null, close)).open(()=>(0,
|
|
60429
|
+
}, null, close)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__.position)(button));
|
|
59370
60430
|
}
|
|
59371
60431
|
/** @override */ afterInit() {}
|
|
59372
60432
|
/** @override */ beforeDestruct() {
|
|
@@ -59516,8 +60576,9 @@ function setFlag(media, name, on) {
|
|
|
59516
60576
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2525);
|
|
59517
60577
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12153);
|
|
59518
60578
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6441);
|
|
59519
|
-
/* harmony import */ var
|
|
59520
|
-
/* harmony import */ var
|
|
60579
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2073);
|
|
60580
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92762);
|
|
60581
|
+
/* harmony import */ var _video_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37775);
|
|
59521
60582
|
/*!
|
|
59522
60583
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
59523
60584
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -59529,12 +60590,13 @@ function setFlag(media, name, on) {
|
|
|
59529
60590
|
|
|
59530
60591
|
|
|
59531
60592
|
|
|
60593
|
+
|
|
59532
60594
|
function insertVideos(data) {
|
|
59533
|
-
|
|
59534
|
-
(
|
|
60595
|
+
const { baseurl } = data;
|
|
60596
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
59535
60597
|
this.s.insertNode((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
59536
60598
|
controls: '',
|
|
59537
|
-
src:
|
|
60599
|
+
src: baseurl + file
|
|
59538
60600
|
})));
|
|
59539
60601
|
});
|
|
59540
60602
|
}
|
|
@@ -59544,7 +60606,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
59544
60606
|
defaultHeight: 345,
|
|
59545
60607
|
defaultHandlerSuccess: insertVideos
|
|
59546
60608
|
};
|
|
59547
|
-
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video',
|
|
60609
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
|
59548
60610
|
/**
|
|
59549
60611
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
59550
60612
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -59590,7 +60652,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
59590
60652
|
const { uploader } = jodit.o;
|
|
59591
60653
|
// Base64 alone would put whole video files into the content
|
|
59592
60654
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
59593
|
-
tabs.push((0,
|
|
60655
|
+
tabs.push((0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
59594
60656
|
run(()=>{
|
|
59595
60657
|
var _a, _b;
|
|
59596
60658
|
return ((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.defaultHandlerSuccess) !== null && _b !== void 0 ? _b : insertVideos).call(jodit, data);
|
|
@@ -59619,7 +60681,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
59619
60681
|
formCode.onSubmit((data)=>{
|
|
59620
60682
|
insertCode(data.code);
|
|
59621
60683
|
});
|
|
59622
|
-
const box = (0,
|
|
60684
|
+
const box = (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
59623
60685
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
59624
60686
|
// "Upload" doesn't fit a third of the popup
|
|
59625
60687
|
box.classList.add('jodit-file-selector');
|
|
@@ -60009,6 +61071,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.showXPathInStatusbar =
|
|
|
60009
61071
|
_core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
60010
61072
|
|
|
60011
61073
|
|
|
61074
|
+
/***/ }),
|
|
61075
|
+
|
|
61076
|
+
/***/ 25850:
|
|
61077
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
61078
|
+
|
|
61079
|
+
/* harmony default export */ __webpack_exports__["default"] = ("<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=\"M6 3h12v18l-6-4-6 4z\"/> </g> </svg> ");
|
|
61080
|
+
|
|
61081
|
+
|
|
60012
61082
|
/***/ }),
|
|
60013
61083
|
|
|
60014
61084
|
/***/ 78173:
|
|
@@ -60136,65 +61206,67 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
|
60136
61206
|
|
|
60137
61207
|
__webpack_require__.r(__webpack_exports__);
|
|
60138
61208
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60139
|
-
/* harmony export */
|
|
60140
|
-
/* harmony export */
|
|
60141
|
-
/* harmony export */
|
|
60142
|
-
/* harmony export */
|
|
60143
|
-
/* harmony export */
|
|
60144
|
-
/* harmony export */
|
|
60145
|
-
/* harmony export */
|
|
60146
|
-
/* harmony export */
|
|
60147
|
-
/* harmony export */
|
|
60148
|
-
/* harmony export */
|
|
60149
|
-
/* harmony export */
|
|
60150
|
-
/* harmony export */
|
|
60151
|
-
/* harmony export */
|
|
60152
|
-
/* harmony export */
|
|
60153
|
-
/* harmony export */
|
|
60154
|
-
/* harmony export */
|
|
60155
|
-
/* harmony export */
|
|
60156
|
-
/* harmony export */
|
|
60157
|
-
/* harmony export */
|
|
60158
|
-
/* harmony export */
|
|
60159
|
-
/* harmony export */
|
|
60160
|
-
/* harmony export */
|
|
60161
|
-
/* harmony export */
|
|
60162
|
-
/* harmony export */
|
|
60163
|
-
/* harmony export */
|
|
60164
|
-
/* harmony export */
|
|
60165
|
-
/* harmony export */
|
|
60166
|
-
/* harmony export */
|
|
60167
|
-
/* harmony export */
|
|
60168
|
-
/* harmony export */
|
|
60169
|
-
/* harmony
|
|
60170
|
-
/* harmony import */ var
|
|
60171
|
-
/* harmony import */ var
|
|
60172
|
-
/* harmony import */ var
|
|
60173
|
-
/* harmony import */ var
|
|
60174
|
-
/* harmony import */ var
|
|
60175
|
-
/* harmony import */ var
|
|
60176
|
-
/* harmony import */ var
|
|
60177
|
-
/* harmony import */ var
|
|
60178
|
-
/* harmony import */ var
|
|
60179
|
-
/* harmony import */ var
|
|
60180
|
-
/* harmony import */ var
|
|
60181
|
-
/* harmony import */ var
|
|
60182
|
-
/* harmony import */ var
|
|
60183
|
-
/* harmony import */ var
|
|
60184
|
-
/* harmony import */ var
|
|
60185
|
-
/* harmony import */ var
|
|
60186
|
-
/* harmony import */ var
|
|
60187
|
-
/* harmony import */ var
|
|
60188
|
-
/* harmony import */ var
|
|
60189
|
-
/* harmony import */ var
|
|
60190
|
-
/* harmony import */ var
|
|
60191
|
-
/* harmony import */ var
|
|
60192
|
-
/* harmony import */ var
|
|
60193
|
-
/* harmony import */ var
|
|
60194
|
-
/* harmony import */ var
|
|
60195
|
-
/* harmony import */ var
|
|
60196
|
-
/* harmony import */ var
|
|
60197
|
-
/* harmony import */ var
|
|
61209
|
+
/* harmony export */ anchor: function() { return /* reexport safe */ _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__["default"]; },
|
|
61210
|
+
/* harmony export */ angle_down: function() { return /* reexport safe */ _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__["default"]; },
|
|
61211
|
+
/* harmony export */ angle_left: function() { return /* reexport safe */ _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__["default"]; },
|
|
61212
|
+
/* harmony export */ angle_right: function() { return /* reexport safe */ _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]; },
|
|
61213
|
+
/* harmony export */ angle_up: function() { return /* reexport safe */ _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]; },
|
|
61214
|
+
/* harmony export */ bin: function() { return /* reexport safe */ _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__["default"]; },
|
|
61215
|
+
/* harmony export */ cancel: function() { return /* reexport safe */ _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]; },
|
|
61216
|
+
/* harmony export */ center: function() { return /* reexport safe */ _center_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]; },
|
|
61217
|
+
/* harmony export */ check: function() { return /* reexport safe */ _check_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]; },
|
|
61218
|
+
/* harmony export */ chevron: function() { return /* reexport safe */ _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__["default"]; },
|
|
61219
|
+
/* harmony export */ dots: function() { return /* reexport safe */ _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__["default"]; },
|
|
61220
|
+
/* harmony export */ download: function() { return /* reexport safe */ _download_svg_js__WEBPACK_IMPORTED_MODULE_11__["default"]; },
|
|
61221
|
+
/* harmony export */ eraser: function() { return /* reexport safe */ _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__["default"]; },
|
|
61222
|
+
/* harmony export */ eye: function() { return /* reexport safe */ _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__["default"]; },
|
|
61223
|
+
/* harmony export */ file: function() { return /* reexport safe */ _file_svg_js__WEBPACK_IMPORTED_MODULE_14__["default"]; },
|
|
61224
|
+
/* harmony export */ folder: function() { return /* reexport safe */ _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__["default"]; },
|
|
61225
|
+
/* harmony export */ info_circle: function() { return /* reexport safe */ _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__["default"]; },
|
|
61226
|
+
/* harmony export */ left: function() { return /* reexport safe */ _left_svg_js__WEBPACK_IMPORTED_MODULE_17__["default"]; },
|
|
61227
|
+
/* harmony export */ lock: function() { return /* reexport safe */ _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__["default"]; },
|
|
61228
|
+
/* harmony export */ ok: function() { return /* reexport safe */ _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__["default"]; },
|
|
61229
|
+
/* harmony export */ pencil: function() { return /* reexport safe */ _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__["default"]; },
|
|
61230
|
+
/* harmony export */ plus: function() { return /* reexport safe */ _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__["default"]; },
|
|
61231
|
+
/* harmony export */ resize_handler: function() { return /* reexport safe */ _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__["default"]; },
|
|
61232
|
+
/* harmony export */ right: function() { return /* reexport safe */ _right_svg_js__WEBPACK_IMPORTED_MODULE_23__["default"]; },
|
|
61233
|
+
/* harmony export */ save: function() { return /* reexport safe */ _save_svg_js__WEBPACK_IMPORTED_MODULE_24__["default"]; },
|
|
61234
|
+
/* harmony export */ settings: function() { return /* reexport safe */ _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__["default"]; },
|
|
61235
|
+
/* harmony export */ unlock: function() { return /* reexport safe */ _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__["default"]; },
|
|
61236
|
+
/* harmony export */ update: function() { return /* reexport safe */ _update_svg_js__WEBPACK_IMPORTED_MODULE_27__["default"]; },
|
|
61237
|
+
/* harmony export */ upload: function() { return /* reexport safe */ _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__["default"]; },
|
|
61238
|
+
/* harmony export */ valign: function() { return /* reexport safe */ _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }
|
|
61239
|
+
/* harmony export */ });
|
|
61240
|
+
/* harmony import */ var _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25850);
|
|
61241
|
+
/* harmony import */ var _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78173);
|
|
61242
|
+
/* harmony import */ var _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16260);
|
|
61243
|
+
/* harmony import */ var _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37663);
|
|
61244
|
+
/* harmony import */ var _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51036);
|
|
61245
|
+
/* harmony import */ var _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31554);
|
|
61246
|
+
/* harmony import */ var _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18309);
|
|
61247
|
+
/* harmony import */ var _center_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99762);
|
|
61248
|
+
/* harmony import */ var _check_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7903);
|
|
61249
|
+
/* harmony import */ var _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(58032);
|
|
61250
|
+
/* harmony import */ var _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(52507);
|
|
61251
|
+
/* harmony import */ var _download_svg_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1647);
|
|
61252
|
+
/* harmony import */ var _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(98535);
|
|
61253
|
+
/* harmony import */ var _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(43478);
|
|
61254
|
+
/* harmony import */ var _file_svg_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(60097);
|
|
61255
|
+
/* harmony import */ var _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(49155);
|
|
61256
|
+
/* harmony import */ var _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(17176);
|
|
61257
|
+
/* harmony import */ var _left_svg_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57882);
|
|
61258
|
+
/* harmony import */ var _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(58908);
|
|
61259
|
+
/* harmony import */ var _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(24829);
|
|
61260
|
+
/* harmony import */ var _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4038);
|
|
61261
|
+
/* harmony import */ var _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(45575);
|
|
61262
|
+
/* harmony import */ var _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(84858);
|
|
61263
|
+
/* harmony import */ var _right_svg_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(445);
|
|
61264
|
+
/* harmony import */ var _save_svg_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(36886);
|
|
61265
|
+
/* harmony import */ var _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(10766);
|
|
61266
|
+
/* harmony import */ var _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(33651);
|
|
61267
|
+
/* harmony import */ var _update_svg_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(20362);
|
|
61268
|
+
/* harmony import */ var _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(12202);
|
|
61269
|
+
/* harmony import */ var _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(80152);
|
|
60198
61270
|
/*!
|
|
60199
61271
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
60200
61272
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -60233,6 +61305,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60233
61305
|
|
|
60234
61306
|
|
|
60235
61307
|
|
|
61308
|
+
|
|
60236
61309
|
|
|
60237
61310
|
|
|
60238
61311
|
/***/ }),
|