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/es2015/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
|
*/
|
|
@@ -1816,7 +1816,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1816
1816
|
* ```
|
|
1817
1817
|
* @packageDocumentation
|
|
1818
1818
|
* @module constants
|
|
1819
|
-
*/ const APP_VERSION = "4.
|
|
1819
|
+
*/ const APP_VERSION = "4.20.1";
|
|
1820
1820
|
// prettier-ignore
|
|
1821
1821
|
const ES = "es2015";
|
|
1822
1822
|
const IS_ES_MODERN = true;
|
|
@@ -4707,16 +4707,18 @@ class EventHandlersStore {
|
|
|
4707
4707
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
4708
4708
|
/* harmony export */ });
|
|
4709
4709
|
/* harmony import */ var _helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19306);
|
|
4710
|
-
/* harmony import */ var
|
|
4711
|
-
/* harmony import */ var
|
|
4712
|
-
/* harmony import */ var
|
|
4713
|
-
/* harmony import */ var
|
|
4714
|
-
/* harmony import */ var
|
|
4715
|
-
/* harmony import */ var
|
|
4716
|
-
/* harmony import */ var
|
|
4717
|
-
/* harmony import */ var
|
|
4718
|
-
/* harmony import */ var
|
|
4719
|
-
/* harmony import */ var
|
|
4710
|
+
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
4711
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
4712
|
+
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39955);
|
|
4713
|
+
/* harmony import */ var _helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12475);
|
|
4714
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
4715
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
4716
|
+
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80568);
|
|
4717
|
+
/* harmony import */ var _helpers_utils_is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69175);
|
|
4718
|
+
/* harmony import */ var _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41876);
|
|
4719
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57012);
|
|
4720
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82758);
|
|
4721
|
+
/* harmony import */ var _dom_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22732);
|
|
4720
4722
|
/*!
|
|
4721
4723
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4722
4724
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4732,6 +4734,8 @@ class EventHandlersStore {
|
|
|
4732
4734
|
|
|
4733
4735
|
|
|
4734
4736
|
|
|
4737
|
+
|
|
4738
|
+
|
|
4735
4739
|
const instances = {};
|
|
4736
4740
|
let counter = 1;
|
|
4737
4741
|
const uuids = new Set();
|
|
@@ -4749,26 +4753,40 @@ const uuids = new Set();
|
|
|
4749
4753
|
uuids.add(uid);
|
|
4750
4754
|
return uid;
|
|
4751
4755
|
}
|
|
4752
|
-
const pluginSystem = new
|
|
4756
|
+
const pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_9__.PluginSystem({
|
|
4753
4757
|
getContainer
|
|
4754
4758
|
});
|
|
4755
4759
|
const modules = {};
|
|
4756
|
-
|
|
4760
|
+
// A CommonJS pack imported as a namespace carries the dictionary in `default`; a translation of the word is a string
|
|
4761
|
+
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;
|
|
4762
|
+
/**
|
|
4763
|
+
* Merge language packs into the global `lang` registry
|
|
4764
|
+
*
|
|
4765
|
+
* `__proto__`, `constructor` and `prototype` are skipped on both levels, so a
|
|
4766
|
+
* pack parsed from untrusted JSON cannot reach `Object.prototype` (CWE-1321).
|
|
4767
|
+
*/ const extendLang = (langs)=>{
|
|
4757
4768
|
Object.keys(langs).forEach((key)=>{
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
_constants_js__WEBPACK_IMPORTED_MODULE_9__.lang[key] = langs[key];
|
|
4769
|
+
const pack = unwrapModule(langs[key]);
|
|
4770
|
+
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)) {
|
|
4771
|
+
return;
|
|
4762
4772
|
}
|
|
4773
|
+
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])) {
|
|
4774
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang[key] = {};
|
|
4775
|
+
}
|
|
4776
|
+
Object.keys(pack).forEach((name)=>{
|
|
4777
|
+
if (!(0,_helpers_utils_is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(name)) {
|
|
4778
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_11__.lang[key][name] = pack[name];
|
|
4779
|
+
}
|
|
4780
|
+
});
|
|
4763
4781
|
});
|
|
4764
4782
|
};
|
|
4765
4783
|
const boxes = new WeakMap();
|
|
4766
4784
|
/**
|
|
4767
4785
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
4768
4786
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
4769
|
-
const name = (0,
|
|
4787
|
+
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';
|
|
4770
4788
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
4771
|
-
const view = (0,
|
|
4789
|
+
const view = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
4772
4790
|
let body;
|
|
4773
4791
|
if (!data[key]) {
|
|
4774
4792
|
let c = view.c;
|
|
@@ -4779,18 +4797,18 @@ const boxes = new WeakMap();
|
|
|
4779
4797
|
body = (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
4780
4798
|
}
|
|
4781
4799
|
const box = c.element(tag, {
|
|
4782
|
-
className: `jodit jodit-${(0,
|
|
4800
|
+
className: `jodit jodit-${(0,_helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
|
|
4783
4801
|
});
|
|
4784
4802
|
// Let a strict CSP accept the injected <style>/<script> box
|
|
4785
4803
|
if (view.o.nonce && (tag === 'style' || tag === 'script')) {
|
|
4786
|
-
(0,
|
|
4804
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(box, 'nonce', view.o.nonce);
|
|
4787
4805
|
}
|
|
4788
4806
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
4789
|
-
|
|
4807
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.append(body, box);
|
|
4790
4808
|
data[key] = box;
|
|
4791
4809
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
4792
4810
|
view.events.off(box);
|
|
4793
|
-
|
|
4811
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_12__.Dom.safeRemove(box);
|
|
4794
4812
|
delete data[key];
|
|
4795
4813
|
if (Object.keys(data).length) {
|
|
4796
4814
|
boxes.delete(jodit);
|
|
@@ -4808,15 +4826,15 @@ const boxes = new WeakMap();
|
|
|
4808
4826
|
* @internal
|
|
4809
4827
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
4810
4828
|
var _a, _b, _c;
|
|
4811
|
-
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b :
|
|
4829
|
+
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') || [
|
|
4812
4830
|
'fixed',
|
|
4813
4831
|
'absolute'
|
|
4814
|
-
].includes((0,
|
|
4832
|
+
].includes((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(parentElement, 'position'))), defaultRoot)) !== null && _c !== void 0 ? _c : defaultRoot;
|
|
4815
4833
|
}
|
|
4816
4834
|
/**
|
|
4817
4835
|
* Global event emitter
|
|
4818
4836
|
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
4819
|
-
*/ const eventEmitter =
|
|
4837
|
+
*/ const eventEmitter = _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
|
|
4820
4838
|
|
|
4821
4839
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
4822
4840
|
/* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
|
|
@@ -6351,6 +6369,22 @@ function isSmuggledForeignHtml(elm) {
|
|
|
6351
6369
|
'background',
|
|
6352
6370
|
'xlink:href'
|
|
6353
6371
|
];
|
|
6372
|
+
/**
|
|
6373
|
+
* SVG animation elements can write a URL attribute at run time, as
|
|
6374
|
+
* `<animate attributeName="href" values="javascript:…">` does, and the
|
|
6375
|
+
* attributes below carry the values they write.
|
|
6376
|
+
*/ const ANIMATION_TAGS = new Set([
|
|
6377
|
+
'animate',
|
|
6378
|
+
'set',
|
|
6379
|
+
'animatemotion',
|
|
6380
|
+
'animatetransform'
|
|
6381
|
+
]);
|
|
6382
|
+
const ANIMATION_VALUE_ATTRIBUTES = [
|
|
6383
|
+
'values',
|
|
6384
|
+
'from',
|
|
6385
|
+
'to',
|
|
6386
|
+
'by'
|
|
6387
|
+
];
|
|
6354
6388
|
/**
|
|
6355
6389
|
* Tags that load their URL as a *document* (scripts inside run). An SVG data
|
|
6356
6390
|
* URL is only an XSS vector here — as an `<img>` source it renders inertly.
|
|
@@ -6424,6 +6458,19 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError, removeEve
|
|
|
6424
6458
|
effected = true;
|
|
6425
6459
|
}
|
|
6426
6460
|
}
|
|
6461
|
+
// SMIL sets the attribute on click time, after the static check above:
|
|
6462
|
+
// `<svg><a><animate attributeName="href" values="javascript:…">` ran
|
|
6463
|
+
// in Chromium and Safari. Drop the values that hold a dangerous
|
|
6464
|
+
// scheme; `values` is a `;` list. See GHSA-6wrw-v5gj-6xg7
|
|
6465
|
+
if (ANIMATION_TAGS.has(tagName)) {
|
|
6466
|
+
for (const name of ANIMATION_VALUE_ATTRIBUTES){
|
|
6467
|
+
const value = (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__.attrRaw)(elm, name);
|
|
6468
|
+
if (value && value.split(';').some((part)=>isDangerousUrl(part, 'a'))) {
|
|
6469
|
+
(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_1__.attr)(elm, name, null);
|
|
6470
|
+
effected = true;
|
|
6471
|
+
}
|
|
6472
|
+
}
|
|
6473
|
+
}
|
|
6427
6474
|
}
|
|
6428
6475
|
return effected;
|
|
6429
6476
|
}
|
|
@@ -7071,6 +7118,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7071
7118
|
/* harmony export */ fuzzySearchIndex: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.fuzzySearchIndex; },
|
|
7072
7119
|
/* harmony export */ get: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.get; },
|
|
7073
7120
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAlignClasses; },
|
|
7121
|
+
/* harmony export */ getAnchorName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAnchorName; },
|
|
7122
|
+
/* harmony export */ getAnchors: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getAnchors; },
|
|
7074
7123
|
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionWrapper; },
|
|
7075
7124
|
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionedImage; },
|
|
7076
7125
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getClassName; },
|
|
@@ -7095,6 +7144,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7095
7144
|
/* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag; },
|
|
7096
7145
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
7097
7146
|
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
|
|
7147
|
+
/* harmony export */ isAnchor: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAnchor; },
|
|
7098
7148
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
7099
7149
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAtom; },
|
|
7100
7150
|
/* harmony export */ isBoolean: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isBoolean; },
|
|
@@ -8375,6 +8425,42 @@ function alignElement(command, box) {
|
|
|
8375
8425
|
}
|
|
8376
8426
|
|
|
8377
8427
|
|
|
8428
|
+
/***/ }),
|
|
8429
|
+
|
|
8430
|
+
/***/ 70442:
|
|
8431
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8432
|
+
|
|
8433
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8434
|
+
/* harmony export */ getAnchorName: function() { return /* binding */ getAnchorName; },
|
|
8435
|
+
/* harmony export */ getAnchors: function() { return /* binding */ getAnchors; },
|
|
8436
|
+
/* harmony export */ isAnchor: function() { return /* binding */ isAnchor; }
|
|
8437
|
+
/* harmony export */ });
|
|
8438
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
8439
|
+
/* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4510);
|
|
8440
|
+
/*!
|
|
8441
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8442
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8443
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8444
|
+
*/
|
|
8445
|
+
|
|
8446
|
+
/**
|
|
8447
|
+
* The name a link reaches an anchor by: its `id`, or in older content its
|
|
8448
|
+
* `name`
|
|
8449
|
+
*/ function getAnchorName(anchor) {
|
|
8450
|
+
return anchor.id || anchor.getAttribute('name') || '';
|
|
8451
|
+
}
|
|
8452
|
+
/**
|
|
8453
|
+
* An anchor: an `<a>` with a name, no `href` and nothing in it
|
|
8454
|
+
*/ function isAnchor(node) {
|
|
8455
|
+
return _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(node, 'a') && !node.hasAttribute('href') && !node.hasChildNodes() && getAnchorName(node) !== '';
|
|
8456
|
+
}
|
|
8457
|
+
/**
|
|
8458
|
+
* The anchors in `root`, in the order they come
|
|
8459
|
+
*/ function getAnchors(root) {
|
|
8460
|
+
return (0,_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll('a')).filter(isAnchor);
|
|
8461
|
+
}
|
|
8462
|
+
|
|
8463
|
+
|
|
8378
8464
|
/***/ }),
|
|
8379
8465
|
|
|
8380
8466
|
/***/ 63799:
|
|
@@ -9526,115 +9612,119 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9526
9612
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9527
9613
|
|
|
9528
9614
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9529
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
9530
|
-
/* harmony export */ AnswerError: function() { return /* reexport safe */
|
|
9531
|
-
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */
|
|
9532
|
-
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */
|
|
9533
|
-
/* harmony export */ ConfigMerge: function() { return /* reexport safe */
|
|
9534
|
-
/* harmony export */ ConfigProto: function() { return /* reexport safe */
|
|
9535
|
-
/* harmony export */ ConnectionError: function() { return /* reexport safe */
|
|
9536
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
9537
|
-
/* harmony export */ OptionsError: function() { return /* reexport safe */
|
|
9538
|
-
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */
|
|
9539
|
-
/* harmony export */ abort: function() { return /* reexport safe */
|
|
9615
|
+
/* harmony export */ $$: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.$$; },
|
|
9616
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.AnswerError; },
|
|
9617
|
+
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
|
|
9618
|
+
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
|
|
9619
|
+
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigMerge; },
|
|
9620
|
+
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_8__.ConfigProto; },
|
|
9621
|
+
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.ConnectionError; },
|
|
9622
|
+
/* harmony export */ LimitedStack: function() { return /* reexport safe */ _stack_js__WEBPACK_IMPORTED_MODULE_30__.LimitedStack; },
|
|
9623
|
+
/* harmony export */ OptionsError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.OptionsError; },
|
|
9624
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */ _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__.UNSAFE_PROTO_KEYS; },
|
|
9625
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.abort; },
|
|
9540
9626
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9541
|
-
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */
|
|
9542
|
-
/* harmony export */ answer: function() { return /* reexport safe */
|
|
9543
|
-
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */
|
|
9544
|
-
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */
|
|
9545
|
-
/* harmony export */ assert: function() { return /* reexport safe */
|
|
9546
|
-
/* harmony export */ attr: function() { return /* reexport safe */
|
|
9547
|
-
/* harmony export */ attrRaw: function() { return /* reexport safe */
|
|
9548
|
-
/* harmony export */ browser: function() { return /* reexport safe */
|
|
9549
|
-
/* harmony export */ buildQuery: function() { return /* reexport safe */
|
|
9550
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
9551
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
9552
|
-
/* harmony export */ callThis: function() { return /* reexport safe */
|
|
9627
|
+
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.alreadyLoadedList; },
|
|
9628
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.answer; },
|
|
9629
|
+
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.appendScriptAsync; },
|
|
9630
|
+
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.appendStyleAsync; },
|
|
9631
|
+
/* harmony export */ assert: function() { return /* reexport safe */ _assert_js__WEBPACK_IMPORTED_MODULE_3__.assert; },
|
|
9632
|
+
/* harmony export */ attr: function() { return /* reexport safe */ _attr_js__WEBPACK_IMPORTED_MODULE_4__.attr; },
|
|
9633
|
+
/* harmony export */ attrRaw: function() { return /* reexport safe */ _attr_js__WEBPACK_IMPORTED_MODULE_4__.attrRaw; },
|
|
9634
|
+
/* harmony export */ browser: function() { return /* reexport safe */ _browser_js__WEBPACK_IMPORTED_MODULE_5__.browser; },
|
|
9635
|
+
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query_js__WEBPACK_IMPORTED_MODULE_6__.buildQuery; },
|
|
9636
|
+
/* harmony export */ call: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.call; },
|
|
9637
|
+
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.callPromise; },
|
|
9638
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.callThis; },
|
|
9553
9639
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
9554
|
-
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */
|
|
9640
|
+
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.clearCenterAlign; },
|
|
9555
9641
|
/* harmony export */ clearHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearHAlign; },
|
|
9556
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
9557
|
-
/* harmony export */ completeUrl: function() { return /* reexport safe */
|
|
9558
|
-
/* harmony export */ connection: function() { return /* reexport safe */
|
|
9559
|
-
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */
|
|
9560
|
-
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */
|
|
9561
|
-
/* harmony export */ css: function() { return /* reexport safe */
|
|
9562
|
-
/* harmony export */ cssInline: function() { return /* reexport safe */
|
|
9563
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
9564
|
-
/* harmony export */ ctrlKey: function() { return /* reexport safe */
|
|
9565
|
-
/* harmony export */ dataBind: function() { return /* reexport safe */
|
|
9566
|
-
/* harmony export */ defaultLanguage: function() { return /* reexport safe */
|
|
9567
|
-
/* harmony export */ error: function() { return /* reexport safe */
|
|
9568
|
-
/* harmony export */ fastClone: function() { return /* reexport safe */
|
|
9569
|
-
/* harmony export */ get: function() { return /* reexport safe */
|
|
9642
|
+
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__.cns; },
|
|
9643
|
+
/* harmony export */ completeUrl: function() { return /* reexport safe */ _complete_url_js__WEBPACK_IMPORTED_MODULE_7__.completeUrl; },
|
|
9644
|
+
/* harmony export */ connection: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.connection; },
|
|
9645
|
+
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */ _convert_media_url_to_video_embed_js__WEBPACK_IMPORTED_MODULE_9__.convertMediaUrlToVideoEmbed; },
|
|
9646
|
+
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.createMediaWrapper; },
|
|
9647
|
+
/* harmony export */ css: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.css; },
|
|
9648
|
+
/* harmony export */ cssInline: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.cssInline; },
|
|
9649
|
+
/* harmony export */ cssPath: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.cssPath; },
|
|
9650
|
+
/* harmony export */ ctrlKey: function() { return /* reexport safe */ _ctrl_key_js__WEBPACK_IMPORTED_MODULE_11__.ctrlKey; },
|
|
9651
|
+
/* harmony export */ dataBind: function() { return /* reexport safe */ _data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind; },
|
|
9652
|
+
/* harmony export */ defaultLanguage: function() { return /* reexport safe */ _default_language_js__WEBPACK_IMPORTED_MODULE_13__.defaultLanguage; },
|
|
9653
|
+
/* harmony export */ error: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.error; },
|
|
9654
|
+
/* harmony export */ fastClone: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.fastClone; },
|
|
9655
|
+
/* harmony export */ get: function() { return /* reexport safe */ _get_js__WEBPACK_IMPORTED_MODULE_16__.get; },
|
|
9570
9656
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getAlignClasses; },
|
|
9571
|
-
/* harmony export */
|
|
9572
|
-
/* harmony export */
|
|
9573
|
-
/* harmony export */
|
|
9574
|
-
/* harmony export */
|
|
9657
|
+
/* harmony export */ getAnchorName: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.getAnchorName; },
|
|
9658
|
+
/* harmony export */ getAnchors: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.getAnchors; },
|
|
9659
|
+
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getCaptionWrapper; },
|
|
9660
|
+
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getCaptionedImage; },
|
|
9661
|
+
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__.getClassName; },
|
|
9662
|
+
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.getDataTransfer; },
|
|
9575
9663
|
/* harmony export */ getHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getHAlign; },
|
|
9576
|
-
/* harmony export */ getImageCaption: function() { return /* reexport safe */
|
|
9577
|
-
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */
|
|
9578
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
9579
|
-
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */
|
|
9580
|
-
/* harmony export */ getXPathByElement: function() { return /* reexport safe */
|
|
9664
|
+
/* harmony export */ getImageCaption: function() { return /* reexport safe */ _image_caption_js__WEBPACK_IMPORTED_MODULE_19__.getImageCaption; },
|
|
9665
|
+
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.getMediaWrapper; },
|
|
9666
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.getPropertyDescriptor; },
|
|
9667
|
+
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.getWrappedMedia; },
|
|
9668
|
+
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.getXPathByElement; },
|
|
9581
9669
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
9582
|
-
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */
|
|
9583
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
9584
|
-
/* harmony export */
|
|
9585
|
-
/* harmony export */
|
|
9586
|
-
/* harmony export */
|
|
9587
|
-
/* harmony export */
|
|
9588
|
-
/* harmony export */
|
|
9589
|
-
/* harmony export */
|
|
9590
|
-
/* harmony export */
|
|
9591
|
-
/* harmony export */
|
|
9592
|
-
/* harmony export */
|
|
9593
|
-
/* harmony export */
|
|
9594
|
-
/* harmony export */
|
|
9595
|
-
/* harmony export */
|
|
9596
|
-
/* harmony export */
|
|
9597
|
-
/* harmony export */
|
|
9598
|
-
/* harmony export */
|
|
9599
|
-
/* harmony export */
|
|
9600
|
-
/* harmony export */
|
|
9601
|
-
/* harmony export */
|
|
9602
|
-
/* harmony export */
|
|
9603
|
-
/* harmony export */
|
|
9604
|
-
/* harmony export */
|
|
9605
|
-
/* harmony export */
|
|
9670
|
+
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_18__.humanSizeToBytes; },
|
|
9671
|
+
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__.inView; },
|
|
9672
|
+
/* harmony export */ isAnchor: function() { return /* reexport safe */ _anchor_js__WEBPACK_IMPORTED_MODULE_1__.isAnchor; },
|
|
9673
|
+
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.isAtom; },
|
|
9674
|
+
/* harmony export */ isUnsafeProtoKey: function() { return /* reexport safe */ _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__.isUnsafeProtoKey; },
|
|
9675
|
+
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__.keepNames; },
|
|
9676
|
+
/* harmony export */ keys: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.keys; },
|
|
9677
|
+
/* harmony export */ loadImage: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.loadImage; },
|
|
9678
|
+
/* harmony export */ loadNext: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.loadNext; },
|
|
9679
|
+
/* harmony export */ loadNextStyle: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_2__.loadNextStyle; },
|
|
9680
|
+
/* harmony export */ markAsAtomic: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_15__.markAsAtomic; },
|
|
9681
|
+
/* harmony export */ markDeprecated: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__.markDeprecated; },
|
|
9682
|
+
/* harmony export */ markOwner: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.markOwner; },
|
|
9683
|
+
/* harmony export */ memorizeExec: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_31__.memorizeExec; },
|
|
9684
|
+
/* harmony export */ options: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_14__.options; },
|
|
9685
|
+
/* harmony export */ parseQuery: function() { return /* reexport safe */ _parse_query_js__WEBPACK_IMPORTED_MODULE_23__.parseQuery; },
|
|
9686
|
+
/* harmony export */ prepareEmbedCode: function() { return /* reexport safe */ _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__.prepareEmbedCode; },
|
|
9687
|
+
/* harmony export */ prepareMedia: function() { return /* reexport safe */ _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__.prepareMedia; },
|
|
9688
|
+
/* harmony export */ previewBox: function() { return /* reexport safe */ _print_js__WEBPACK_IMPORTED_MODULE_25__.previewBox; },
|
|
9689
|
+
/* harmony export */ refs: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.refs; },
|
|
9690
|
+
/* harmony export */ reset: function() { return /* reexport safe */ _reset_js__WEBPACK_IMPORTED_MODULE_26__.reset; },
|
|
9691
|
+
/* harmony export */ resolveElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_28__.resolveElement; },
|
|
9692
|
+
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__.scrollIntoViewIfNeeded; },
|
|
9693
|
+
/* harmony export */ set: function() { return /* reexport safe */ _set_js__WEBPACK_IMPORTED_MODULE_29__.set; },
|
|
9694
|
+
/* harmony export */ wrapMedia: function() { return /* reexport safe */ _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__.wrapMedia; }
|
|
9606
9695
|
/* harmony export */ });
|
|
9607
9696
|
/* harmony import */ var _align_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25726);
|
|
9608
|
-
/* harmony import */ var
|
|
9609
|
-
/* harmony import */ var
|
|
9610
|
-
/* harmony import */ var
|
|
9611
|
-
/* harmony import */ var
|
|
9612
|
-
/* harmony import */ var
|
|
9613
|
-
/* harmony import */ var
|
|
9614
|
-
/* harmony import */ var
|
|
9615
|
-
/* harmony import */ var
|
|
9616
|
-
/* harmony import */ var
|
|
9617
|
-
/* harmony import */ var
|
|
9618
|
-
/* harmony import */ var
|
|
9619
|
-
/* harmony import */ var
|
|
9620
|
-
/* harmony import */ var
|
|
9621
|
-
/* harmony import */ var
|
|
9622
|
-
/* harmony import */ var
|
|
9623
|
-
/* harmony import */ var
|
|
9624
|
-
/* harmony import */ var
|
|
9625
|
-
/* harmony import */ var
|
|
9626
|
-
/* harmony import */ var
|
|
9627
|
-
/* harmony import */ var
|
|
9628
|
-
/* harmony import */ var
|
|
9629
|
-
/* harmony import */ var
|
|
9630
|
-
/* harmony import */ var
|
|
9631
|
-
/* harmony import */ var
|
|
9632
|
-
/* harmony import */ var
|
|
9633
|
-
/* harmony import */ var
|
|
9634
|
-
/* harmony import */ var
|
|
9635
|
-
/* harmony import */ var
|
|
9636
|
-
/* harmony import */ var
|
|
9637
|
-
/* harmony import */ var
|
|
9697
|
+
/* harmony import */ var _anchor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70442);
|
|
9698
|
+
/* harmony import */ var _append_script_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63799);
|
|
9699
|
+
/* harmony import */ var _assert_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38837);
|
|
9700
|
+
/* harmony import */ var _attr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29960);
|
|
9701
|
+
/* harmony import */ var _browser_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97639);
|
|
9702
|
+
/* harmony import */ var _build_query_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44710);
|
|
9703
|
+
/* harmony import */ var _complete_url_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66292);
|
|
9704
|
+
/* harmony import */ var _config_proto_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68934);
|
|
9705
|
+
/* harmony import */ var _convert_media_url_to_video_embed_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55877);
|
|
9706
|
+
/* harmony import */ var _css_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(41180);
|
|
9707
|
+
/* harmony import */ var _ctrl_key_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(15456);
|
|
9708
|
+
/* harmony import */ var _data_bind_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(86583);
|
|
9709
|
+
/* harmony import */ var _default_language_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(96325);
|
|
9710
|
+
/* harmony import */ var _error_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(89890);
|
|
9711
|
+
/* harmony import */ var _extend_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97735);
|
|
9712
|
+
/* harmony import */ var _get_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(94643);
|
|
9713
|
+
/* harmony import */ var _get_class_name_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(80568);
|
|
9714
|
+
/* harmony import */ var _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(38420);
|
|
9715
|
+
/* harmony import */ var _image_caption_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(68645);
|
|
9716
|
+
/* harmony import */ var _is_unsafe_proto_key_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(69175);
|
|
9717
|
+
/* harmony import */ var _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(95942);
|
|
9718
|
+
/* harmony import */ var _media_wrapper_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(61477);
|
|
9719
|
+
/* harmony import */ var _parse_query_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(82501);
|
|
9720
|
+
/* harmony import */ var _prepare_media_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(96437);
|
|
9721
|
+
/* harmony import */ var _print_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(11628);
|
|
9722
|
+
/* harmony import */ var _reset_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(58844);
|
|
9723
|
+
/* harmony import */ var _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(26395);
|
|
9724
|
+
/* harmony import */ var _selector_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(76078);
|
|
9725
|
+
/* harmony import */ var _set_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(3703);
|
|
9726
|
+
/* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(50535);
|
|
9727
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(37790);
|
|
9638
9728
|
/*!
|
|
9639
9729
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9640
9730
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9672,6 +9762,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9672
9762
|
|
|
9673
9763
|
|
|
9674
9764
|
|
|
9765
|
+
|
|
9675
9766
|
|
|
9676
9767
|
|
|
9677
9768
|
/***/ }),
|
|
@@ -16112,6 +16203,18 @@ let UITooltip = UITooltip_1 = class UITooltip extends _element_js__WEBPACK_IMPOR
|
|
|
16112
16203
|
render() {
|
|
16113
16204
|
return '<div><div class="&__content"></div></div>';
|
|
16114
16205
|
}
|
|
16206
|
+
get __isEnabled() {
|
|
16207
|
+
const { o } = this.j;
|
|
16208
|
+
return !o.textIcons && Boolean(o.showTooltip) && !o.useNativeTooltip;
|
|
16209
|
+
}
|
|
16210
|
+
/**
|
|
16211
|
+
* Show tooltips for the buttons in an element outside the editor's
|
|
16212
|
+
* container, such as a toolbar placed by the `toolbar` option
|
|
16213
|
+
*/ attach(container) {
|
|
16214
|
+
if (this.__isEnabled) {
|
|
16215
|
+
this.__onAttach(container);
|
|
16216
|
+
}
|
|
16217
|
+
}
|
|
16115
16218
|
__onAttach(container) {
|
|
16116
16219
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
16117
16220
|
_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append((0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.j, UITooltip_1), this.container);
|
|
@@ -16252,7 +16355,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends _element_js__WEBPACK_IMPOR
|
|
|
16252
16355
|
this.__currentTarget = null;
|
|
16253
16356
|
this.__delayShowTimeout = 0;
|
|
16254
16357
|
this.__hideTimeout = 0;
|
|
16255
|
-
if (
|
|
16358
|
+
if (this.__isEnabled) {
|
|
16256
16359
|
this.j.e.on('getContainer', (box)=>{
|
|
16257
16360
|
this.__onAttach(box);
|
|
16258
16361
|
});
|
|
@@ -18650,6 +18753,10 @@ let Popup = Popup_1 = class Popup extends _group_group_js__WEBPACK_IMPORTED_MODU
|
|
|
18650
18753
|
this.smart = smart;
|
|
18651
18754
|
this.isOpened = false;
|
|
18652
18755
|
this.strategy = 'leftBottom';
|
|
18756
|
+
/**
|
|
18757
|
+
* The popup stays open after one of its buttons runs: the button closes
|
|
18758
|
+
* only the lists it opened. See #1741
|
|
18759
|
+
*/ this.keepOpen = false;
|
|
18653
18760
|
this.viewBound = ()=>({
|
|
18654
18761
|
left: 0,
|
|
18655
18762
|
top: 0,
|
|
@@ -18858,7 +18965,12 @@ class ViewWithToolbar extends _view_js__WEBPACK_IMPORTED_MODULE_9__.View {
|
|
|
18858
18965
|
return;
|
|
18859
18966
|
}
|
|
18860
18967
|
const buttons = this.o.buttons ? (0,_helpers_array_index_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(this.o.buttons) : [];
|
|
18861
|
-
|
|
18968
|
+
const container = this.toolbarContainer;
|
|
18969
|
+
(_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(container);
|
|
18970
|
+
// The toolbar's own element, as editors can share the one it is placed in
|
|
18971
|
+
if (this.toolbar && !_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__.Dom.isOrContains(this.container, container)) {
|
|
18972
|
+
this.__tooltip.attach(this.toolbar.container);
|
|
18973
|
+
}
|
|
18862
18974
|
}
|
|
18863
18975
|
getRegisteredButtonGroups() {
|
|
18864
18976
|
return this.groupToButtons;
|
|
@@ -19365,6 +19477,7 @@ class CommitMode {
|
|
|
19365
19477
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(70231);
|
|
19366
19478
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6441);
|
|
19367
19479
|
/* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41409);
|
|
19480
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2073);
|
|
19368
19481
|
function _define_property(obj, key, value) {
|
|
19369
19482
|
if (key in obj) {
|
|
19370
19483
|
Object.defineProperty(obj, key, {
|
|
@@ -19413,6 +19526,7 @@ var Jodit_1;
|
|
|
19413
19526
|
|
|
19414
19527
|
|
|
19415
19528
|
|
|
19529
|
+
|
|
19416
19530
|
const FOCUS_EVENTS = new Set([
|
|
19417
19531
|
'focus',
|
|
19418
19532
|
'blur',
|
|
@@ -19678,17 +19792,15 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
|
|
|
19678
19792
|
theme: jodit.o.theme,
|
|
19679
19793
|
shadowRoot: jodit.o.shadowRoot,
|
|
19680
19794
|
defaultCallback (data) {
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
|
|
19687
|
-
}
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
});
|
|
19691
|
-
}
|
|
19795
|
+
const { baseurl } = data;
|
|
19796
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__.getItems)(data).forEach(({ file, isImage })=>{
|
|
19797
|
+
const url = baseurl + file;
|
|
19798
|
+
if (isImage) {
|
|
19799
|
+
jodit.s.insertImage(url, null, jodit.o.imageDefaultWidth);
|
|
19800
|
+
} else {
|
|
19801
|
+
jodit.s.insertNode(jodit.createInside.fromHTML(`<a href='${url}' title='${url}'>${url}</a>`));
|
|
19802
|
+
}
|
|
19803
|
+
});
|
|
19692
19804
|
}
|
|
19693
19805
|
}, this.o.filebrowser);
|
|
19694
19806
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -20690,6 +20802,9 @@ Jodit.decorators = {};
|
|
|
20690
20802
|
Jodit.constants = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__;
|
|
20691
20803
|
Jodit.instances = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances;
|
|
20692
20804
|
Jodit.lang = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
20805
|
+
/**
|
|
20806
|
+
* Merge language packs into `Jodit.lang`; prototype keys are ignored
|
|
20807
|
+
*/ Jodit.extendLang = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.extendLang;
|
|
20693
20808
|
Jodit.core = {
|
|
20694
20809
|
Plugin: _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Plugin
|
|
20695
20810
|
};
|
|
@@ -20767,6 +20882,11 @@ function addClassNames(className, elm) {
|
|
|
20767
20882
|
'Insert file': 'ادخال الملف',
|
|
20768
20883
|
'Insert youtube/vimeo video': 'إدراج فيديو يوتيوب/فيميو ',
|
|
20769
20884
|
'Insert link': 'إدراج رابط',
|
|
20885
|
+
'Insert anchor': 'إدراج مرساة',
|
|
20886
|
+
'Link to an anchor': 'ربط بمرساة',
|
|
20887
|
+
'On this page': 'في هذه الصفحة',
|
|
20888
|
+
'The name cannot contain spaces': 'لا يمكن أن يحتوي الاسم على مسافات',
|
|
20889
|
+
'This name is already in use': 'هذا الاسم مستخدم بالفعل',
|
|
20770
20890
|
'Font size': 'حجم الخط',
|
|
20771
20891
|
'Font family': 'نوع الخط',
|
|
20772
20892
|
'Insert format block': 'إدراج كتلة تنسيق',
|
|
@@ -21009,6 +21129,11 @@ function addClassNames(className, elm) {
|
|
|
21009
21129
|
'Insert file': 'Fayl əlavə et',
|
|
21010
21130
|
'Insert youtube/vimeo video': 'Youtube/vimeo video əlavə et',
|
|
21011
21131
|
'Insert link': 'Keçid əlavə et',
|
|
21132
|
+
'Insert anchor': 'Lövbər əlavə et',
|
|
21133
|
+
'Link to an anchor': 'Lövbərə keçid',
|
|
21134
|
+
'On this page': 'Bu səhifədə',
|
|
21135
|
+
'The name cannot contain spaces': 'Adda boşluq ola bilməz',
|
|
21136
|
+
'This name is already in use': 'Bu ad artıq istifadə olunur',
|
|
21012
21137
|
'Font size': 'Şrift ölçüsü',
|
|
21013
21138
|
'Font family': 'Şrift ailəsi',
|
|
21014
21139
|
'Line height': 'Sətir hündürlüyü',
|
|
@@ -21236,7 +21361,7 @@ function addClassNames(className, elm) {
|
|
|
21236
21361
|
'For information about the license, please go to our website:': 'Pro informace o licenci, prosím, přejděte na naši stránku:',
|
|
21237
21362
|
'Buy full version': 'Koupit plnou verzi',
|
|
21238
21363
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.',
|
|
21239
|
-
Anchor: '
|
|
21364
|
+
Anchor: 'Kotva',
|
|
21240
21365
|
'Open in new tab': 'Otevřít v nové záložce',
|
|
21241
21366
|
'Open in fullsize': 'Otevřít v celoobrazovkovém režimu',
|
|
21242
21367
|
'Clear Formatting': 'Vyčistit formátování',
|
|
@@ -21256,6 +21381,11 @@ function addClassNames(className, elm) {
|
|
|
21256
21381
|
'Insert file': 'Vložit soubor',
|
|
21257
21382
|
'Insert youtube/vimeo video': 'Vložit video (YT/Vimeo)',
|
|
21258
21383
|
'Insert link': 'Vložit odkaz',
|
|
21384
|
+
'Insert anchor': 'Vložit kotvu',
|
|
21385
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
21386
|
+
'On this page': 'Na této stránce',
|
|
21387
|
+
'The name cannot contain spaces': 'Název nesmí obsahovat mezery',
|
|
21388
|
+
'This name is already in use': 'Tento název se již používá',
|
|
21259
21389
|
'Font size': 'Velikost písma',
|
|
21260
21390
|
'Font family': 'Typ písma',
|
|
21261
21391
|
'Insert format block': 'Formátovat blok',
|
|
@@ -21495,6 +21625,11 @@ function addClassNames(className, elm) {
|
|
|
21495
21625
|
'Insert file': 'Datei einfügen',
|
|
21496
21626
|
'Insert youtube/vimeo video': 'Youtube/vimeo Video einfügen',
|
|
21497
21627
|
'Insert link': 'Link einfügen',
|
|
21628
|
+
'Insert anchor': 'Anker einfügen',
|
|
21629
|
+
'Link to an anchor': 'Mit einem Anker verlinken',
|
|
21630
|
+
'On this page': 'Auf dieser Seite',
|
|
21631
|
+
'The name cannot contain spaces': 'Der Name darf keine Leerzeichen enthalten',
|
|
21632
|
+
'This name is already in use': 'Dieser Name wird bereits verwendet',
|
|
21498
21633
|
'Font size': 'Schriftgröße',
|
|
21499
21634
|
'Font family': 'Schriftfamilie',
|
|
21500
21635
|
'Insert format block': 'Formatblock einfügen',
|
|
@@ -21735,7 +21870,7 @@ function addClassNames(className, elm) {
|
|
|
21735
21870
|
'For information about the license, please go to our website:': 'Para información sobre la licencia, por favor visite nuestro sitio:',
|
|
21736
21871
|
'Buy full version': 'Compre la versión completa',
|
|
21737
21872
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.',
|
|
21738
|
-
Anchor: '
|
|
21873
|
+
Anchor: 'Ancla',
|
|
21739
21874
|
'Open in new tab': 'Abrir en nueva pestaña',
|
|
21740
21875
|
'Open in fullsize': 'Abrir editor en pantalla completa',
|
|
21741
21876
|
'Clear Formatting': 'Limpiar formato',
|
|
@@ -21755,6 +21890,11 @@ function addClassNames(className, elm) {
|
|
|
21755
21890
|
'Insert file': 'Insertar archivo',
|
|
21756
21891
|
'Insert youtube/vimeo video': 'Insertar video de Youtube/vimeo',
|
|
21757
21892
|
'Insert link': 'Insertar vínculo',
|
|
21893
|
+
'Insert anchor': 'Insertar ancla',
|
|
21894
|
+
'Link to an anchor': 'Enlazar a un ancla',
|
|
21895
|
+
'On this page': 'En esta página',
|
|
21896
|
+
'The name cannot contain spaces': 'El nombre no puede contener espacios',
|
|
21897
|
+
'This name is already in use': 'Este nombre ya está en uso',
|
|
21758
21898
|
'Font size': 'Tamaño de letra',
|
|
21759
21899
|
'Font family': 'Familia de letra',
|
|
21760
21900
|
'Insert format block': 'Insertar bloque',
|
|
@@ -21978,7 +22118,7 @@ function addClassNames(className, elm) {
|
|
|
21978
22118
|
'For information about the license, please go to our website:': 'برای کسب اطلاعات در رابطه با لایسنس لطفا به وب سایت مراجعه کنید:',
|
|
21979
22119
|
'Buy full version': 'خرید نسخه کامل',
|
|
21980
22120
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.',
|
|
21981
|
-
Anchor: '
|
|
22121
|
+
Anchor: 'لنگر',
|
|
21982
22122
|
'Open in new tab': 'بازکردن در تب جدید',
|
|
21983
22123
|
'Open in fullsize': 'تمام صفحه کردن ویرایشگر',
|
|
21984
22124
|
'Clear Formatting': 'پاک کردن قالب ها',
|
|
@@ -21998,6 +22138,11 @@ function addClassNames(className, elm) {
|
|
|
21998
22138
|
'Insert file': 'افزودن فایل',
|
|
21999
22139
|
'Insert youtube/vimeo video': 'افزودن ویدیو از یوتیوب و وایمو',
|
|
22000
22140
|
'Insert link': 'افزودن لینک',
|
|
22141
|
+
'Insert anchor': 'افزودن لنگر',
|
|
22142
|
+
'Link to an anchor': 'پیوند به لنگر',
|
|
22143
|
+
'On this page': 'در این صفحه',
|
|
22144
|
+
'The name cannot contain spaces': 'نام نمیتواند فاصله داشته باشد',
|
|
22145
|
+
'This name is already in use': 'این نام قبلاً استفاده شده است',
|
|
22001
22146
|
'Font size': 'اندازه فونت',
|
|
22002
22147
|
'Font family': 'فونت',
|
|
22003
22148
|
'Insert format block': 'افزودن بلاک',
|
|
@@ -22236,6 +22381,11 @@ function addClassNames(className, elm) {
|
|
|
22236
22381
|
'Insert file': 'Lisää tiedosto',
|
|
22237
22382
|
'Insert youtube/vimeo video': 'Lisää Youtube-/vimeo- video',
|
|
22238
22383
|
'Insert link': 'Lisää linkki',
|
|
22384
|
+
'Insert anchor': 'Lisää ankkuri',
|
|
22385
|
+
'Link to an anchor': 'Linkitä ankkuriin',
|
|
22386
|
+
'On this page': 'Tällä sivulla',
|
|
22387
|
+
'The name cannot contain spaces': 'Nimessä ei voi olla välilyöntejä',
|
|
22388
|
+
'This name is already in use': 'Tämä nimi on jo käytössä',
|
|
22239
22389
|
'Font size': 'Kirjasimen koko',
|
|
22240
22390
|
'Font family': 'Kirjasimen nimi',
|
|
22241
22391
|
'Insert format block': 'Lisää muotoilualue',
|
|
@@ -22479,6 +22629,11 @@ function addClassNames(className, elm) {
|
|
|
22479
22629
|
'Insert file': 'Insérer un fichier',
|
|
22480
22630
|
'Insert youtube/vimeo video': 'Insérer une vidéo',
|
|
22481
22631
|
'Insert link': 'Insérer un lien',
|
|
22632
|
+
'Insert anchor': 'Insérer une ancre',
|
|
22633
|
+
'Link to an anchor': 'Lier à une ancre',
|
|
22634
|
+
'On this page': 'Sur cette page',
|
|
22635
|
+
'The name cannot contain spaces': "Le nom ne peut pas contenir d'espaces",
|
|
22636
|
+
'This name is already in use': 'Ce nom est déjà utilisé',
|
|
22482
22637
|
'Font size': 'Taille des caractères',
|
|
22483
22638
|
'Font family': 'Famille des caractères',
|
|
22484
22639
|
'Insert format block': 'Bloc formatté',
|
|
@@ -22698,7 +22853,7 @@ function addClassNames(className, elm) {
|
|
|
22698
22853
|
'For information about the license, please go to our website:': 'For information about the license, please go to our website:',
|
|
22699
22854
|
'Buy full version': 'Buy full version',
|
|
22700
22855
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
22701
|
-
Anchor: '
|
|
22856
|
+
Anchor: 'עוגן',
|
|
22702
22857
|
'Open in new tab': 'פתח בכרטיסיה חדשה',
|
|
22703
22858
|
'Open in fullsize': 'פתח את העורך בחלון חדש',
|
|
22704
22859
|
'Clear Formatting': 'נקה עיצוב',
|
|
@@ -22718,6 +22873,11 @@ function addClassNames(className, elm) {
|
|
|
22718
22873
|
'Insert file': 'הכנס קובץ',
|
|
22719
22874
|
'Insert youtube/vimeo video': 'הכנס סרטון וידאו מYouTube/Vimeo',
|
|
22720
22875
|
'Insert link': 'הכנס קישור',
|
|
22876
|
+
'Insert anchor': 'הכנס עוגן',
|
|
22877
|
+
'Link to an anchor': 'קישור לעוגן',
|
|
22878
|
+
'On this page': 'בדף זה',
|
|
22879
|
+
'The name cannot contain spaces': 'השם לא יכול להכיל רווחים',
|
|
22880
|
+
'This name is already in use': 'השם הזה כבר בשימוש',
|
|
22721
22881
|
'Font size': 'גודל גופן',
|
|
22722
22882
|
'Font family': 'גופן',
|
|
22723
22883
|
'Insert format block': 'מעוצב מראש',
|
|
@@ -22957,6 +23117,11 @@ function addClassNames(className, elm) {
|
|
|
22957
23117
|
'Insert file': 'Fájl beszúrás',
|
|
22958
23118
|
'Insert youtube/vimeo video': 'Youtube videó beszúrása',
|
|
22959
23119
|
'Insert link': 'Link beszúrás',
|
|
23120
|
+
'Insert anchor': 'Horgony beszúrás',
|
|
23121
|
+
'Link to an anchor': 'Hivatkozás horgonyra',
|
|
23122
|
+
'On this page': 'Ezen az oldalon',
|
|
23123
|
+
'The name cannot contain spaces': 'A név nem tartalmazhat szóközt',
|
|
23124
|
+
'This name is already in use': 'Ez a név már foglalt',
|
|
22960
23125
|
'Font size': 'Betűméret',
|
|
22961
23126
|
'Font family': 'Betűtípus',
|
|
22962
23127
|
'Insert format block': 'Formázott blokk beszúrása',
|
|
@@ -23176,7 +23341,7 @@ function addClassNames(className, elm) {
|
|
|
23176
23341
|
'For information about the license, please go to our website:': 'Untuk informasi tentang lisensi, silakan kunjungi website:',
|
|
23177
23342
|
'Buy full version': 'Beli versi lengkap',
|
|
23178
23343
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.',
|
|
23179
|
-
Anchor: '
|
|
23344
|
+
Anchor: 'Jangkar',
|
|
23180
23345
|
'Open in new tab': 'Buka di tab baru',
|
|
23181
23346
|
'Open in fullsize': 'Buka editor dalam ukuran penuh',
|
|
23182
23347
|
'Clear Formatting': 'Hapus Pemformatan',
|
|
@@ -23196,6 +23361,11 @@ function addClassNames(className, elm) {
|
|
|
23196
23361
|
'Insert file': 'Sisipkan Berkas',
|
|
23197
23362
|
'Insert youtube/vimeo video': 'Sisipkan video youtube/vimeo',
|
|
23198
23363
|
'Insert link': 'Sisipkan tautan',
|
|
23364
|
+
'Insert anchor': 'Sisipkan jangkar',
|
|
23365
|
+
'Link to an anchor': 'Tautkan ke jangkar',
|
|
23366
|
+
'On this page': 'Di halaman ini',
|
|
23367
|
+
'The name cannot contain spaces': 'Nama tidak boleh mengandung spasi',
|
|
23368
|
+
'This name is already in use': 'Nama ini sudah digunakan',
|
|
23199
23369
|
'Font size': 'Ukuran font',
|
|
23200
23370
|
'Font family': 'Keluarga font',
|
|
23201
23371
|
'Insert format block': 'Sisipkan blok format',
|
|
@@ -23415,7 +23585,7 @@ function addClassNames(className, elm) {
|
|
|
23415
23585
|
'For information about the license, please go to our website:': 'Per informazioni sulla licenza, si prega di visitare il nostro sito web:',
|
|
23416
23586
|
'Buy full version': 'Acquista la versione completa',
|
|
23417
23587
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.',
|
|
23418
|
-
Anchor: '
|
|
23588
|
+
Anchor: 'Ancora',
|
|
23419
23589
|
'Open in new tab': 'Apri in una nuova scheda',
|
|
23420
23590
|
'Open in fullsize': "Apri l'editor a schermo intero",
|
|
23421
23591
|
'Clear Formatting': 'Pulisci Formattazione',
|
|
@@ -23435,6 +23605,11 @@ function addClassNames(className, elm) {
|
|
|
23435
23605
|
'Insert file': 'Inserisci un file',
|
|
23436
23606
|
'Insert youtube/vimeo video': 'Inserisci video Youtube/Vimeo',
|
|
23437
23607
|
'Insert link': 'Inserisci link',
|
|
23608
|
+
'Insert anchor': 'Inserisci ancora',
|
|
23609
|
+
'Link to an anchor': "Collega a un'ancora",
|
|
23610
|
+
'On this page': 'In questa pagina',
|
|
23611
|
+
'The name cannot contain spaces': 'Il nome non può contenere spazi',
|
|
23612
|
+
'This name is already in use': 'Questo nome è già in uso',
|
|
23438
23613
|
'Font size': 'Dimensione carattere',
|
|
23439
23614
|
'Font family': 'Tipo di font',
|
|
23440
23615
|
'Insert format block': 'Inserisci blocco',
|
|
@@ -23658,7 +23833,7 @@ function addClassNames(className, elm) {
|
|
|
23658
23833
|
'For information about the license, please go to our website:': 'ライセンス詳細についてはJodit Webサイトを確認ください:',
|
|
23659
23834
|
'Buy full version': 'フルバージョンを購入',
|
|
23660
23835
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
23661
|
-
Anchor: '
|
|
23836
|
+
Anchor: 'アンカー',
|
|
23662
23837
|
'Open in new tab': '新しいタブで開く',
|
|
23663
23838
|
'Open in fullsize': 'エディターのサイズ(フル/ノーマル)',
|
|
23664
23839
|
'Clear Formatting': '書式をクリア',
|
|
@@ -23678,6 +23853,11 @@ function addClassNames(className, elm) {
|
|
|
23678
23853
|
'Insert file': 'ファイルを挿入',
|
|
23679
23854
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 動画',
|
|
23680
23855
|
'Insert link': 'リンクを挿入',
|
|
23856
|
+
'Insert anchor': 'アンカーを挿入',
|
|
23857
|
+
'Link to an anchor': 'アンカーにリンク',
|
|
23858
|
+
'On this page': 'このページ内',
|
|
23859
|
+
'The name cannot contain spaces': '名前にスペースは使えません',
|
|
23860
|
+
'This name is already in use': 'この名前はすでに使われています',
|
|
23681
23861
|
'Font size': 'フォントサイズ',
|
|
23682
23862
|
'Font family': 'フォント',
|
|
23683
23863
|
'Insert format block': 'テキストのスタイル',
|
|
@@ -23912,7 +24092,7 @@ function addClassNames(className, elm) {
|
|
|
23912
24092
|
'For information about the license, please go to our website:': '라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:',
|
|
23913
24093
|
'Buy full version': '풀 버전 구입하기',
|
|
23914
24094
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': '© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.',
|
|
23915
|
-
Anchor: '
|
|
24095
|
+
Anchor: '앵커',
|
|
23916
24096
|
'Open in new tab': '새 탭에서 열기',
|
|
23917
24097
|
'Open in fullsize': '전체 크기로 보기',
|
|
23918
24098
|
'Clear Formatting': '서식 지우기',
|
|
@@ -23932,6 +24112,11 @@ function addClassNames(className, elm) {
|
|
|
23932
24112
|
'Insert file': '파일 넣기',
|
|
23933
24113
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 동영상',
|
|
23934
24114
|
'Insert link': '링크 넣기',
|
|
24115
|
+
'Insert anchor': '앵커 넣기',
|
|
24116
|
+
'Link to an anchor': '앵커에 연결',
|
|
24117
|
+
'On this page': '이 페이지에서',
|
|
24118
|
+
'The name cannot contain spaces': '이름에 공백을 넣을 수 없습니다',
|
|
24119
|
+
'This name is already in use': '이미 사용 중인 이름입니다',
|
|
23935
24120
|
'Font size': '글꼴 크기',
|
|
23936
24121
|
'Font family': '글꼴',
|
|
23937
24122
|
'Insert format block': '블록 요소 넣기',
|
|
@@ -24150,7 +24335,7 @@ function addClassNames(className, elm) {
|
|
|
24150
24335
|
'For information about the license, please go to our website:': 'Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:',
|
|
24151
24336
|
'Buy full version': 'Бүрэн хувилбар худалдан авах',
|
|
24152
24337
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.',
|
|
24153
|
-
Anchor: '
|
|
24338
|
+
Anchor: 'Зангуу',
|
|
24154
24339
|
'Open in new tab': 'Шинэ табаар нээх',
|
|
24155
24340
|
'Open in fullsize': 'Бүтэн дэлгэцээр нээх',
|
|
24156
24341
|
'Clear Formatting': 'Форматыг арилгах',
|
|
@@ -24170,6 +24355,11 @@ function addClassNames(className, elm) {
|
|
|
24170
24355
|
'Insert file': 'Файл нэмэх',
|
|
24171
24356
|
'Insert youtube/vimeo video': 'Youtube/Vimeo видео нэмэх',
|
|
24172
24357
|
'Insert link': 'Холбоос нэмэх',
|
|
24358
|
+
'Insert anchor': 'Зангуу нэмэх',
|
|
24359
|
+
'Link to an anchor': 'Зангуу руу холбох',
|
|
24360
|
+
'On this page': 'Энэ хуудсанд',
|
|
24361
|
+
'The name cannot contain spaces': 'Нэрэнд хоосон зай байж болохгүй',
|
|
24362
|
+
'This name is already in use': 'Энэ нэр аль хэдийн ашиглагдаж байна',
|
|
24173
24363
|
'Font size': 'Фонтын хэмжээ',
|
|
24174
24364
|
'Font family': 'Фонтын бүл',
|
|
24175
24365
|
'Insert format block': 'Блок нэмэх',
|
|
@@ -24409,6 +24599,11 @@ function addClassNames(className, elm) {
|
|
|
24409
24599
|
'Insert file': 'Bestand invoegen',
|
|
24410
24600
|
'Insert youtube/vimeo video': 'Youtube/Vimeo video invoegen',
|
|
24411
24601
|
'Insert link': 'Link toevoegen',
|
|
24602
|
+
'Insert anchor': 'Anker toevoegen',
|
|
24603
|
+
'Link to an anchor': 'Naar een anker linken',
|
|
24604
|
+
'On this page': 'Op deze pagina',
|
|
24605
|
+
'The name cannot contain spaces': 'De naam mag geen spaties bevatten',
|
|
24606
|
+
'This name is already in use': 'Deze naam is al in gebruik',
|
|
24412
24607
|
'Font size': 'Tekstgrootte',
|
|
24413
24608
|
'Font family': 'Lettertype',
|
|
24414
24609
|
'Insert format block': 'Format blok invoegen',
|
|
@@ -24646,6 +24841,11 @@ function addClassNames(className, elm) {
|
|
|
24646
24841
|
'Insert file': 'Sett inn fil',
|
|
24647
24842
|
'Insert youtube/vimeo video': 'Sett inn YouTube/Vimeo-video',
|
|
24648
24843
|
'Insert link': 'Sett inn lenke',
|
|
24844
|
+
'Insert anchor': 'Sett inn anker',
|
|
24845
|
+
'Link to an anchor': 'Lenke til et anker',
|
|
24846
|
+
'On this page': 'På denne siden',
|
|
24847
|
+
'The name cannot contain spaces': 'Navnet kan ikke inneholde mellomrom',
|
|
24848
|
+
'This name is already in use': 'Dette navnet er allerede i bruk',
|
|
24649
24849
|
'Font size': 'Skriftstørrelse',
|
|
24650
24850
|
'Font family': 'Skriftfamilie',
|
|
24651
24851
|
'Insert format block': 'Sett inn formateringsblokk',
|
|
@@ -24894,6 +25094,11 @@ function addClassNames(className, elm) {
|
|
|
24894
25094
|
'Insert file': 'Wstaw plik',
|
|
24895
25095
|
'Insert youtube/vimeo video': 'Wstaw film Youtube/vimeo',
|
|
24896
25096
|
'Insert link': 'Wstaw link',
|
|
25097
|
+
'Insert anchor': 'Wstaw kotwicę',
|
|
25098
|
+
'Link to an anchor': 'Link do kotwicy',
|
|
25099
|
+
'On this page': 'Na tej stronie',
|
|
25100
|
+
'The name cannot contain spaces': 'Nazwa nie może zawierać spacji',
|
|
25101
|
+
'This name is already in use': 'Ta nazwa jest już używana',
|
|
24897
25102
|
'Font size': 'Rozmiar tekstu',
|
|
24898
25103
|
'Font family': 'Krój czcionki',
|
|
24899
25104
|
'Insert format block': 'Wstaw formatowanie',
|
|
@@ -25112,7 +25317,7 @@ function addClassNames(className, elm) {
|
|
|
25112
25317
|
'For information about the license, please go to our website:': 'Para informação sobre a licença, por favor visite nosso site:',
|
|
25113
25318
|
'Buy full version': 'Compre a versão completa',
|
|
25114
25319
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.',
|
|
25115
|
-
Anchor: '
|
|
25320
|
+
Anchor: 'Âncora',
|
|
25116
25321
|
'Open in new tab': 'Abrir em nova aba',
|
|
25117
25322
|
'Open in fullsize': 'Abrir editor em tela cheia',
|
|
25118
25323
|
'Clear Formatting': 'Limpar formatação',
|
|
@@ -25132,6 +25337,11 @@ function addClassNames(className, elm) {
|
|
|
25132
25337
|
'Insert file': 'Inserir arquivo',
|
|
25133
25338
|
'Insert youtube/vimeo video': 'Inserir vídeo do Youtube/vimeo',
|
|
25134
25339
|
'Insert link': 'Inserir link',
|
|
25340
|
+
'Insert anchor': 'Inserir âncora',
|
|
25341
|
+
'Link to an anchor': 'Vincular a uma âncora',
|
|
25342
|
+
'On this page': 'Nesta página',
|
|
25343
|
+
'The name cannot contain spaces': 'O nome não pode conter espaços',
|
|
25344
|
+
'This name is already in use': 'Este nome já está em uso',
|
|
25135
25345
|
'Font size': 'Tamanho da letra',
|
|
25136
25346
|
'Font family': 'Fonte',
|
|
25137
25347
|
'Insert format block': 'Inserir bloco',
|
|
@@ -25354,7 +25564,7 @@ function addClassNames(className, elm) {
|
|
|
25354
25564
|
'For information about the license, please go to our website:': 'Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:',
|
|
25355
25565
|
'Buy full version': 'Купить полную версию',
|
|
25356
25566
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.',
|
|
25357
|
-
Anchor: '
|
|
25567
|
+
Anchor: 'Якорь',
|
|
25358
25568
|
'Open in new tab': 'Открывать ссылку в новой вкладке',
|
|
25359
25569
|
'Open in fullsize': 'Открыть редактор в полном размере',
|
|
25360
25570
|
'Clear Formatting': 'Очистить форматирование',
|
|
@@ -25374,6 +25584,11 @@ function addClassNames(className, elm) {
|
|
|
25374
25584
|
'Insert file': 'Вставить файл',
|
|
25375
25585
|
'Insert youtube/vimeo video': 'Вставьте видео',
|
|
25376
25586
|
'Insert link': 'Вставить ссылку',
|
|
25587
|
+
'Insert anchor': 'Вставить якорь',
|
|
25588
|
+
'Link to an anchor': 'Ссылка на якорь',
|
|
25589
|
+
'On this page': 'На этой странице',
|
|
25590
|
+
'The name cannot contain spaces': 'Имя не может содержать пробелы',
|
|
25591
|
+
'This name is already in use': 'Это имя уже используется',
|
|
25377
25592
|
'Font size': 'Размер шрифта',
|
|
25378
25593
|
'Font family': 'Шрифт',
|
|
25379
25594
|
'Insert format block': 'Вставить блочный элемент',
|
|
@@ -25612,6 +25827,11 @@ function addClassNames(className, elm) {
|
|
|
25612
25827
|
'Insert file': 'Vložiť súbor',
|
|
25613
25828
|
'Insert youtube/vimeo video': 'Vložiť video YouTube/Vimeo',
|
|
25614
25829
|
'Insert link': 'Vložiť odkaz',
|
|
25830
|
+
'Insert anchor': 'Vložiť kotvu',
|
|
25831
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
25832
|
+
'On this page': 'Na tejto stránke',
|
|
25833
|
+
'The name cannot contain spaces': 'Názov nesmie obsahovať medzery',
|
|
25834
|
+
'This name is already in use': 'Tento názov sa už používa',
|
|
25615
25835
|
'Font size': 'Veľkosť písma',
|
|
25616
25836
|
'Font family': 'Typ písma',
|
|
25617
25837
|
'Insert format block': 'Vložiť formátovaný blok',
|
|
@@ -25856,6 +26076,11 @@ function addClassNames(className, elm) {
|
|
|
25856
26076
|
'Insert file': 'Infoga fil',
|
|
25857
26077
|
'Insert youtube/vimeo video': 'Infoga YouTube/Vimeo-video',
|
|
25858
26078
|
'Insert link': 'Infoga länk',
|
|
26079
|
+
'Insert anchor': 'Infoga ankare',
|
|
26080
|
+
'Link to an anchor': 'Länka till ett ankare',
|
|
26081
|
+
'On this page': 'På den här sidan',
|
|
26082
|
+
'The name cannot contain spaces': 'Namnet får inte innehålla mellanslag',
|
|
26083
|
+
'This name is already in use': 'Det här namnet används redan',
|
|
25859
26084
|
'Font size': 'Teckenstorlek',
|
|
25860
26085
|
'Font family': 'Teckensnitt',
|
|
25861
26086
|
'Insert format block': 'Infoga formateringsblock',
|
|
@@ -26083,7 +26308,7 @@ function addClassNames(className, elm) {
|
|
|
26083
26308
|
'For information about the license, please go to our website:': 'Lisans hakkında bilgi için lütfen web sitemize gidin:',
|
|
26084
26309
|
'Buy full version': 'Tam versiyonunu satın al',
|
|
26085
26310
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.',
|
|
26086
|
-
Anchor: '
|
|
26311
|
+
Anchor: 'Çapa',
|
|
26087
26312
|
'Open in new tab': 'Yeni sekmede aç',
|
|
26088
26313
|
'Open in fullsize': 'Editörü tam ekranda aç',
|
|
26089
26314
|
'Clear Formatting': 'Stili temizle',
|
|
@@ -26103,6 +26328,11 @@ function addClassNames(className, elm) {
|
|
|
26103
26328
|
'Insert file': 'Dosya Ekle',
|
|
26104
26329
|
'Insert youtube/vimeo video': 'Youtube/Vimeo Videosu Ekle',
|
|
26105
26330
|
'Insert link': 'Bağlantı Ekle',
|
|
26331
|
+
'Insert anchor': 'Çapa Ekle',
|
|
26332
|
+
'Link to an anchor': 'Çapaya bağlantı',
|
|
26333
|
+
'On this page': 'Bu sayfada',
|
|
26334
|
+
'The name cannot contain spaces': 'Ad boşluk içeremez',
|
|
26335
|
+
'This name is already in use': 'Bu ad zaten kullanılıyor',
|
|
26106
26336
|
'Font size': 'Font Boyutu',
|
|
26107
26337
|
'Font family': 'Font Ailesi',
|
|
26108
26338
|
'Insert format block': 'Blok Ekle',
|
|
@@ -26320,7 +26550,7 @@ function addClassNames(className, elm) {
|
|
|
26320
26550
|
'For information about the license, please go to our website:': 'Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:',
|
|
26321
26551
|
'Buy full version': 'Купити повну версію',
|
|
26322
26552
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.',
|
|
26323
|
-
Anchor: '
|
|
26553
|
+
Anchor: 'Якір',
|
|
26324
26554
|
'Open in new tab': 'Відкрити у новій вкладці',
|
|
26325
26555
|
'Open in fullsize': 'Відкрити редактор в повному розмірі',
|
|
26326
26556
|
'Clear Formatting': 'Очистити форматування',
|
|
@@ -26340,6 +26570,11 @@ function addClassNames(className, elm) {
|
|
|
26340
26570
|
'Insert file': 'Вставити файл',
|
|
26341
26571
|
'Insert youtube/vimeo video': 'Вставити відео',
|
|
26342
26572
|
'Insert link': 'Вставити посилання',
|
|
26573
|
+
'Insert anchor': 'Вставити якір',
|
|
26574
|
+
'Link to an anchor': 'Посилання на якір',
|
|
26575
|
+
'On this page': 'На цій сторінці',
|
|
26576
|
+
'The name cannot contain spaces': "Ім'я не може містити пробілів",
|
|
26577
|
+
'This name is already in use': "Це ім'я вже використовується",
|
|
26343
26578
|
'Font size': 'Розмір шрифту',
|
|
26344
26579
|
'Font family': 'Шрифт',
|
|
26345
26580
|
'Insert format block': 'Вставити блочний елемент',
|
|
@@ -26559,7 +26794,7 @@ function addClassNames(className, elm) {
|
|
|
26559
26794
|
'For information about the license, please go to our website:': '有关许可证的信息,请访问我们的网站:',
|
|
26560
26795
|
'Buy full version': '购买完整版本',
|
|
26561
26796
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有',
|
|
26562
|
-
Anchor: '
|
|
26797
|
+
Anchor: '锚点',
|
|
26563
26798
|
'Open in new tab': '在新窗口打开',
|
|
26564
26799
|
'Open in fullsize': '全屏编辑',
|
|
26565
26800
|
'Clear Formatting': '清除样式',
|
|
@@ -26579,6 +26814,11 @@ function addClassNames(className, elm) {
|
|
|
26579
26814
|
'Insert file': '文件',
|
|
26580
26815
|
'Insert youtube/vimeo video': '视频',
|
|
26581
26816
|
'Insert link': '链接',
|
|
26817
|
+
'Insert anchor': '插入锚点',
|
|
26818
|
+
'Link to an anchor': '链接到锚点',
|
|
26819
|
+
'On this page': '在本页',
|
|
26820
|
+
'The name cannot contain spaces': '名称不能包含空格',
|
|
26821
|
+
'This name is already in use': '此名称已被使用',
|
|
26582
26822
|
'Font size': '字号',
|
|
26583
26823
|
'Font family': '字体',
|
|
26584
26824
|
'Insert format block': '格式块',
|
|
@@ -26817,6 +27057,11 @@ function addClassNames(className, elm) {
|
|
|
26817
27057
|
'Insert file': '檔案',
|
|
26818
27058
|
'Insert youtube/vimeo video': '插入 youtube/vimeo 影片',
|
|
26819
27059
|
'Insert link': '插入連結',
|
|
27060
|
+
'Insert anchor': '插入錨點',
|
|
27061
|
+
'Link to an anchor': '連結到錨點',
|
|
27062
|
+
'On this page': '在本頁',
|
|
27063
|
+
'The name cannot contain spaces': '名稱不能包含空格',
|
|
27064
|
+
'This name is already in use': '此名稱已被使用',
|
|
26820
27065
|
'Font size': '文字大小',
|
|
26821
27066
|
'Font family': '字型',
|
|
26822
27067
|
'Insert format block': '格式化區塊',
|
|
@@ -27021,34 +27266,35 @@ function addClassNames(className, elm) {
|
|
|
27021
27266
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27022
27267
|
|
|
27023
27268
|
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
27024
|
-
/* harmony import */ var
|
|
27025
|
-
/* harmony import */ var
|
|
27026
|
-
/* harmony import */ var
|
|
27027
|
-
/* harmony import */ var
|
|
27028
|
-
/* harmony import */ var
|
|
27029
|
-
/* harmony import */ var
|
|
27030
|
-
/* harmony import */ var
|
|
27031
|
-
/* harmony import */ var
|
|
27032
|
-
/* harmony import */ var
|
|
27033
|
-
/* harmony import */ var
|
|
27034
|
-
/* harmony import */ var
|
|
27035
|
-
/* harmony import */ var
|
|
27036
|
-
/* harmony import */ var
|
|
27037
|
-
/* harmony import */ var
|
|
27038
|
-
/* harmony import */ var
|
|
27039
|
-
/* harmony import */ var
|
|
27040
|
-
/* harmony import */ var
|
|
27041
|
-
/* harmony import */ var
|
|
27042
|
-
/* harmony import */ var
|
|
27043
|
-
/* harmony import */ var
|
|
27044
|
-
/* harmony import */ var
|
|
27045
|
-
/* harmony import */ var
|
|
27046
|
-
/* harmony import */ var
|
|
27047
|
-
/* harmony import */ var
|
|
27048
|
-
/* harmony import */ var
|
|
27049
|
-
/* harmony import */ var
|
|
27050
|
-
/* harmony import */ var
|
|
27051
|
-
/* harmony import */ var
|
|
27269
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
27270
|
+
/* harmony import */ var _langs_ar_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79910);
|
|
27271
|
+
/* harmony import */ var _langs_az_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95342);
|
|
27272
|
+
/* harmony import */ var _langs_cs_cz_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4795);
|
|
27273
|
+
/* harmony import */ var _langs_de_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62770);
|
|
27274
|
+
/* harmony import */ var _langs_en_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1830);
|
|
27275
|
+
/* harmony import */ var _langs_es_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86273);
|
|
27276
|
+
/* harmony import */ var _langs_fa_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97552);
|
|
27277
|
+
/* harmony import */ var _langs_fi_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82168);
|
|
27278
|
+
/* harmony import */ var _langs_fr_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(85017);
|
|
27279
|
+
/* harmony import */ var _langs_he_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(32726);
|
|
27280
|
+
/* harmony import */ var _langs_hu_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67078);
|
|
27281
|
+
/* harmony import */ var _langs_id_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(92648);
|
|
27282
|
+
/* harmony import */ var _langs_it_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(62232);
|
|
27283
|
+
/* harmony import */ var _langs_ja_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62700);
|
|
27284
|
+
/* harmony import */ var _langs_keys_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(75445);
|
|
27285
|
+
/* harmony import */ var _langs_ko_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(97519);
|
|
27286
|
+
/* harmony import */ var _langs_mn_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(80926);
|
|
27287
|
+
/* harmony import */ var _langs_nl_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(52995);
|
|
27288
|
+
/* harmony import */ var _langs_no_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59526);
|
|
27289
|
+
/* harmony import */ var _langs_pl_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(40565);
|
|
27290
|
+
/* harmony import */ var _langs_pt_br_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(19292);
|
|
27291
|
+
/* harmony import */ var _langs_ru_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(83160);
|
|
27292
|
+
/* harmony import */ var _langs_sk_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(57571);
|
|
27293
|
+
/* harmony import */ var _langs_sv_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(66824);
|
|
27294
|
+
/* harmony import */ var _langs_tr_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(28923);
|
|
27295
|
+
/* harmony import */ var _langs_ua_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(19007);
|
|
27296
|
+
/* harmony import */ var _langs_zh_cn_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(60175);
|
|
27297
|
+
/* harmony import */ var _langs_zh_tw_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(69159);
|
|
27052
27298
|
/*!
|
|
27053
27299
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27054
27300
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27080,41 +27326,43 @@ function addClassNames(className, elm) {
|
|
|
27080
27326
|
|
|
27081
27327
|
|
|
27082
27328
|
|
|
27329
|
+
|
|
27083
27330
|
|
|
27084
27331
|
|
|
27085
27332
|
let exp = {};
|
|
27086
27333
|
exp = {
|
|
27087
|
-
ar:
|
|
27088
|
-
az:
|
|
27089
|
-
cs_cz:
|
|
27090
|
-
de:
|
|
27091
|
-
en:
|
|
27092
|
-
es:
|
|
27093
|
-
fa:
|
|
27094
|
-
fi:
|
|
27095
|
-
fr:
|
|
27096
|
-
he:
|
|
27097
|
-
hu:
|
|
27098
|
-
id:
|
|
27099
|
-
it:
|
|
27100
|
-
ja:
|
|
27101
|
-
ko:
|
|
27102
|
-
mn:
|
|
27103
|
-
nl:
|
|
27104
|
-
no:
|
|
27105
|
-
pl:
|
|
27106
|
-
pt_br:
|
|
27107
|
-
ru:
|
|
27108
|
-
sk:
|
|
27109
|
-
sv:
|
|
27110
|
-
tr:
|
|
27111
|
-
ua:
|
|
27112
|
-
zh_cn:
|
|
27113
|
-
zh_tw:
|
|
27114
|
-
};
|
|
27115
|
-
/* Unpack array to hash */
|
|
27116
|
-
|
|
27117
|
-
|
|
27334
|
+
ar: _langs_ar_js__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
27335
|
+
az: _langs_az_js__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
27336
|
+
cs_cz: _langs_cs_cz_js__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
27337
|
+
de: _langs_de_js__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
27338
|
+
en: _langs_en_js__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
27339
|
+
es: _langs_es_js__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
27340
|
+
fa: _langs_fa_js__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
27341
|
+
fi: _langs_fi_js__WEBPACK_IMPORTED_MODULE_9__["default"],
|
|
27342
|
+
fr: _langs_fr_js__WEBPACK_IMPORTED_MODULE_10__["default"],
|
|
27343
|
+
he: _langs_he_js__WEBPACK_IMPORTED_MODULE_11__["default"],
|
|
27344
|
+
hu: _langs_hu_js__WEBPACK_IMPORTED_MODULE_12__["default"],
|
|
27345
|
+
id: _langs_id_js__WEBPACK_IMPORTED_MODULE_13__["default"],
|
|
27346
|
+
it: _langs_it_js__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
27347
|
+
ja: _langs_ja_js__WEBPACK_IMPORTED_MODULE_15__["default"],
|
|
27348
|
+
ko: _langs_ko_js__WEBPACK_IMPORTED_MODULE_17__["default"],
|
|
27349
|
+
mn: _langs_mn_js__WEBPACK_IMPORTED_MODULE_18__["default"],
|
|
27350
|
+
nl: _langs_nl_js__WEBPACK_IMPORTED_MODULE_19__["default"],
|
|
27351
|
+
no: _langs_no_js__WEBPACK_IMPORTED_MODULE_20__["default"],
|
|
27352
|
+
pl: _langs_pl_js__WEBPACK_IMPORTED_MODULE_21__["default"],
|
|
27353
|
+
pt_br: _langs_pt_br_js__WEBPACK_IMPORTED_MODULE_22__["default"],
|
|
27354
|
+
ru: _langs_ru_js__WEBPACK_IMPORTED_MODULE_23__["default"],
|
|
27355
|
+
sk: _langs_sk_js__WEBPACK_IMPORTED_MODULE_24__["default"],
|
|
27356
|
+
sv: _langs_sv_js__WEBPACK_IMPORTED_MODULE_25__["default"],
|
|
27357
|
+
tr: _langs_tr_js__WEBPACK_IMPORTED_MODULE_26__["default"],
|
|
27358
|
+
ua: _langs_ua_js__WEBPACK_IMPORTED_MODULE_27__["default"],
|
|
27359
|
+
zh_cn: _langs_zh_cn_js__WEBPACK_IMPORTED_MODULE_28__["default"],
|
|
27360
|
+
zh_tw: _langs_zh_tw_js__WEBPACK_IMPORTED_MODULE_29__["default"]
|
|
27361
|
+
};
|
|
27362
|
+
/* 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`)
|
|
27363
|
+
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 = {};
|
|
27364
|
+
if ((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(get(_langs_keys_js__WEBPACK_IMPORTED_MODULE_16__["default"]))) {
|
|
27365
|
+
get(_langs_keys_js__WEBPACK_IMPORTED_MODULE_16__["default"]).forEach((key, index)=>{
|
|
27118
27366
|
hashLang[index] = key;
|
|
27119
27367
|
});
|
|
27120
27368
|
}
|
|
@@ -29634,15 +29882,16 @@ function _async_to_generator(fn) {
|
|
|
29634
29882
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70231);
|
|
29635
29883
|
/* harmony import */ var _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84075);
|
|
29636
29884
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6441);
|
|
29637
|
-
/* harmony import */ var
|
|
29638
|
-
/* harmony import */ var
|
|
29639
|
-
/* harmony import */ var
|
|
29640
|
-
/* harmony import */ var
|
|
29641
|
-
/* harmony import */ var
|
|
29642
|
-
/* harmony import */ var
|
|
29643
|
-
/* harmony import */ var
|
|
29644
|
-
/* harmony import */ var
|
|
29645
|
-
/* harmony import */ var
|
|
29885
|
+
/* harmony import */ var _uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2073);
|
|
29886
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(61251);
|
|
29887
|
+
/* harmony import */ var _fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(30465);
|
|
29888
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20201);
|
|
29889
|
+
/* harmony import */ var _listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(73948);
|
|
29890
|
+
/* harmony import */ var _listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(33281);
|
|
29891
|
+
/* harmony import */ var _listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94538);
|
|
29892
|
+
/* harmony import */ var _data_provider_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(11787);
|
|
29893
|
+
/* harmony import */ var _factories_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(63399);
|
|
29894
|
+
/* harmony import */ var _ui_index_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8172);
|
|
29646
29895
|
/*!
|
|
29647
29896
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29648
29897
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29673,6 +29922,7 @@ function _async_to_generator(fn) {
|
|
|
29673
29922
|
|
|
29674
29923
|
|
|
29675
29924
|
|
|
29925
|
+
|
|
29676
29926
|
|
|
29677
29927
|
|
|
29678
29928
|
let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__.ViewWithToolbar {
|
|
@@ -29680,26 +29930,26 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29680
29930
|
return 'FileBrowser';
|
|
29681
29931
|
}
|
|
29682
29932
|
get dataProvider() {
|
|
29683
|
-
return (0,
|
|
29933
|
+
return (0,_factories_js__WEBPACK_IMPORTED_MODULE_20__.makeDataProvider)(this, this.options);
|
|
29684
29934
|
}
|
|
29685
29935
|
onSelect(callback) {
|
|
29686
29936
|
return ()=>{
|
|
29687
29937
|
if (this.state.activeElements.length) {
|
|
29688
|
-
const
|
|
29689
|
-
const isImages = [];
|
|
29938
|
+
const items = [];
|
|
29690
29939
|
this.state.activeElements.forEach((elm)=>{
|
|
29691
29940
|
const url = elm.fileURL;
|
|
29692
29941
|
if (url) {
|
|
29693
|
-
|
|
29694
|
-
|
|
29942
|
+
items.push({
|
|
29943
|
+
file: url,
|
|
29944
|
+
isImage: elm.isImage || false
|
|
29945
|
+
});
|
|
29695
29946
|
}
|
|
29696
29947
|
});
|
|
29697
29948
|
this.close();
|
|
29698
|
-
const data = {
|
|
29949
|
+
const data = (0,_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__.normalizeUploaderData)({
|
|
29699
29950
|
baseurl: '',
|
|
29700
|
-
|
|
29701
|
-
|
|
29702
|
-
};
|
|
29951
|
+
items
|
|
29952
|
+
});
|
|
29703
29953
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.isFunction)(callback)) {
|
|
29704
29954
|
callback(data);
|
|
29705
29955
|
}
|
|
@@ -29765,10 +30015,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29765
30015
|
* ```javascript
|
|
29766
30016
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
29767
30017
|
* fb.open(function (data) {
|
|
29768
|
-
*
|
|
29769
|
-
*
|
|
29770
|
-
*
|
|
29771
|
-
* }
|
|
30018
|
+
* data.items.forEach(function (item) {
|
|
30019
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
30020
|
+
* });
|
|
29772
30021
|
* });
|
|
29773
30022
|
* ```
|
|
29774
30023
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -29791,7 +30040,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29791
30040
|
this.__updateToolbarButtons();
|
|
29792
30041
|
this._dialog.open(this.browser, header);
|
|
29793
30042
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
29794
|
-
(0,
|
|
30043
|
+
(0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
29795
30044
|
var _a;
|
|
29796
30045
|
if (this.isInDestruct) {
|
|
29797
30046
|
return;
|
|
@@ -29825,7 +30074,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29825
30074
|
initUploader(editor) {
|
|
29826
30075
|
var _a;
|
|
29827
30076
|
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);
|
|
29828
|
-
const uploadHandler = ()=>(0,
|
|
30077
|
+
const uploadHandler = ()=>(0,_fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__.loadItems)(this);
|
|
29829
30078
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
29830
30079
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
29831
30080
|
this.state.on([
|
|
@@ -29861,11 +30110,11 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29861
30110
|
super(options);
|
|
29862
30111
|
this.browser = this.c.div(this.componentName);
|
|
29863
30112
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
29864
|
-
this.tree = new
|
|
29865
|
-
this.files = new
|
|
30113
|
+
this.tree = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserTree(this);
|
|
30114
|
+
this.files = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserFiles(this);
|
|
29866
30115
|
this.state = (0,_core_event_emitter_index_js__WEBPACK_IMPORTED_MODULE_5__.observable)({
|
|
29867
30116
|
currentPath: '',
|
|
29868
|
-
currentSource:
|
|
30117
|
+
currentSource: _data_provider_js__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_SOURCE_NAME,
|
|
29869
30118
|
currentBaseUrl: '',
|
|
29870
30119
|
activeElements: [],
|
|
29871
30120
|
elements: [],
|
|
@@ -29901,9 +30150,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29901
30150
|
}
|
|
29902
30151
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.files.container);
|
|
29903
30152
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.status_line);
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
|
|
30153
|
+
_listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__.selfListeners.call(self);
|
|
30154
|
+
_listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__.nativeListeners.call(self);
|
|
30155
|
+
_listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__.stateListeners.call(self);
|
|
29907
30156
|
const keys = [
|
|
29908
30157
|
'getLocalFileByUrl',
|
|
29909
30158
|
'crop',
|
|
@@ -32904,29 +33153,30 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
32904
33153
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32905
33154
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
32906
33155
|
/* harmony export */ });
|
|
32907
|
-
/* harmony import */ var
|
|
32908
|
-
/* harmony import */ var
|
|
32909
|
-
/* harmony import */ var
|
|
32910
|
-
/* harmony import */ var
|
|
32911
|
-
/* harmony import */ var
|
|
32912
|
-
/* harmony import */ var
|
|
32913
|
-
/* harmony import */ var
|
|
32914
|
-
/* harmony import */ var
|
|
32915
|
-
/* harmony import */ var
|
|
32916
|
-
/* harmony import */ var
|
|
32917
|
-
/* harmony import */ var
|
|
32918
|
-
/* harmony import */ var
|
|
32919
|
-
/* harmony import */ var
|
|
32920
|
-
/* harmony import */ var
|
|
32921
|
-
/* harmony import */ var
|
|
32922
|
-
/* harmony import */ var
|
|
32923
|
-
/* harmony import */ var
|
|
32924
|
-
/* harmony import */ var
|
|
32925
|
-
/* harmony import */ var
|
|
32926
|
-
/* harmony import */ var
|
|
32927
|
-
/* harmony import */ var
|
|
32928
|
-
/* harmony import */ var
|
|
32929
|
-
/* harmony import */ var
|
|
33156
|
+
/* harmony import */ var _core_component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4012);
|
|
33157
|
+
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78213);
|
|
33158
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
33159
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45219);
|
|
33160
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33433);
|
|
33161
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87325);
|
|
33162
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37133);
|
|
33163
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2748);
|
|
33164
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68345);
|
|
33165
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23282);
|
|
33166
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(19306);
|
|
33167
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72430);
|
|
33168
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70799);
|
|
33169
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(56175);
|
|
33170
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(87058);
|
|
33171
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38837);
|
|
33172
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(29960);
|
|
33173
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37790);
|
|
33174
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(62843);
|
|
33175
|
+
/* harmony import */ var _core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(20014);
|
|
33176
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(72157);
|
|
33177
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(12153);
|
|
33178
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(56917);
|
|
33179
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(21491);
|
|
32930
33180
|
function _define_property(obj, key, value) {
|
|
32931
33181
|
if (key in obj) {
|
|
32932
33182
|
Object.defineProperty(obj, key, {
|
|
@@ -32986,6 +33236,8 @@ function _object_spread_props(target, source) {
|
|
|
32986
33236
|
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;
|
|
32987
33237
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32988
33238
|
};
|
|
33239
|
+
var ToolbarButton_1;
|
|
33240
|
+
|
|
32989
33241
|
|
|
32990
33242
|
|
|
32991
33243
|
|
|
@@ -33023,7 +33275,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
33023
33275
|
'textarea:not([disabled])',
|
|
33024
33276
|
'[tabindex]:not([tabindex="-1"])'
|
|
33025
33277
|
].join(',');
|
|
33026
|
-
let ToolbarButton = class ToolbarButton extends
|
|
33278
|
+
let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButton {
|
|
33027
33279
|
className() {
|
|
33028
33280
|
return 'ToolbarButton';
|
|
33029
33281
|
}
|
|
@@ -33034,13 +33286,13 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33034
33286
|
super.updateAriaLabel();
|
|
33035
33287
|
if (this.trigger) {
|
|
33036
33288
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
33037
|
-
(0,
|
|
33289
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
33038
33290
|
}
|
|
33039
33291
|
}
|
|
33040
33292
|
/**
|
|
33041
33293
|
* Get parent toolbar
|
|
33042
33294
|
*/ get toolbar() {
|
|
33043
|
-
const ToolbarCollection = (0,
|
|
33295
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.getComponentClass)('ToolbarCollection');
|
|
33044
33296
|
return this.closest(ToolbarCollection);
|
|
33045
33297
|
}
|
|
33046
33298
|
update() {
|
|
@@ -33062,7 +33314,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33062
33314
|
* Calculates whether the button is active
|
|
33063
33315
|
*/ __calculateActivatedStatus(tc) {
|
|
33064
33316
|
var _a, _b;
|
|
33065
|
-
if ((0,
|
|
33317
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
33066
33318
|
return false;
|
|
33067
33319
|
}
|
|
33068
33320
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -33086,11 +33338,11 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33086
33338
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
33087
33339
|
}
|
|
33088
33340
|
onChangeActivated() {
|
|
33089
|
-
;(0,
|
|
33341
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
33090
33342
|
super.onChangeActivated();
|
|
33091
33343
|
}
|
|
33092
33344
|
onChangeText() {
|
|
33093
|
-
if ((0,
|
|
33345
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
33094
33346
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
33095
33347
|
} else {
|
|
33096
33348
|
super.onChangeText();
|
|
@@ -33098,8 +33350,8 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33098
33350
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
33099
33351
|
}
|
|
33100
33352
|
onChangeTabIndex() {
|
|
33101
|
-
;(0,
|
|
33102
|
-
(0,
|
|
33353
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
33354
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
33103
33355
|
}
|
|
33104
33356
|
createContainer() {
|
|
33105
33357
|
const cn = this.componentName;
|
|
@@ -33111,29 +33363,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33111
33363
|
value: this,
|
|
33112
33364
|
configurable: true
|
|
33113
33365
|
});
|
|
33114
|
-
|
|
33115
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
33366
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(container, button);
|
|
33367
|
+
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>`);
|
|
33116
33368
|
// For caching
|
|
33117
|
-
|
|
33369
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(button, trigger);
|
|
33118
33370
|
return container;
|
|
33119
33371
|
}
|
|
33120
33372
|
/** @override */ focus() {
|
|
33121
33373
|
var _a;
|
|
33122
|
-
(_a =
|
|
33374
|
+
(_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();
|
|
33123
33375
|
}
|
|
33124
33376
|
onChangeHasTrigger() {
|
|
33125
33377
|
if (this.state.hasTrigger) {
|
|
33126
|
-
|
|
33378
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(this.container, this.trigger);
|
|
33127
33379
|
} else {
|
|
33128
|
-
|
|
33380
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(this.trigger);
|
|
33129
33381
|
}
|
|
33130
33382
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
33131
33383
|
}
|
|
33132
33384
|
/** @override */ onChangeDisabled() {
|
|
33133
33385
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
33134
|
-
(0,
|
|
33135
|
-
(0,
|
|
33136
|
-
(0,
|
|
33386
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'disabled', disabled);
|
|
33387
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'disabled', disabled);
|
|
33388
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', disabled);
|
|
33137
33389
|
}
|
|
33138
33390
|
/**
|
|
33139
33391
|
* Init constant data from control
|
|
@@ -33143,7 +33395,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33143
33395
|
state.name = ctr.name;
|
|
33144
33396
|
this.__initIconFromControl();
|
|
33145
33397
|
if (ctr.tooltip) {
|
|
33146
|
-
state.tooltip = (0,
|
|
33398
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
33147
33399
|
}
|
|
33148
33400
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
33149
33401
|
}
|
|
@@ -33151,12 +33403,12 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33151
33403
|
var _a;
|
|
33152
33404
|
const { control: ctr, state } = this;
|
|
33153
33405
|
const { textIcons } = this.j.o;
|
|
33154
|
-
if (textIcons === true || (0,
|
|
33155
|
-
state.icon = (0,
|
|
33406
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
33407
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)().icon;
|
|
33156
33408
|
state.text = ctr.text || ctr.name;
|
|
33157
33409
|
return;
|
|
33158
33410
|
}
|
|
33159
|
-
if (!(0,
|
|
33411
|
+
if (!(0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(ctr.icon) && ctr.icon != null) {
|
|
33160
33412
|
state.icon = {
|
|
33161
33413
|
name: ctr.icon.name || ctr.name,
|
|
33162
33414
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -33169,7 +33421,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33169
33421
|
state.icon.iconURL = ctr.iconURL;
|
|
33170
33422
|
} else {
|
|
33171
33423
|
const name = ctr.icon || ctr.name;
|
|
33172
|
-
state.icon.name =
|
|
33424
|
+
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 : '';
|
|
33173
33425
|
}
|
|
33174
33426
|
if (!ctr.iconURL && !state.icon.name) {
|
|
33175
33427
|
state.text = ctr.text || ctr.name;
|
|
@@ -33184,25 +33436,25 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33184
33436
|
return;
|
|
33185
33437
|
}
|
|
33186
33438
|
const { control: ctr } = this;
|
|
33187
|
-
(0,
|
|
33439
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', true);
|
|
33188
33440
|
e.buffer = {
|
|
33189
33441
|
actionTrigger: this
|
|
33190
33442
|
};
|
|
33191
33443
|
if (ctr.list) {
|
|
33192
33444
|
return this.__openControlList(ctr);
|
|
33193
33445
|
}
|
|
33194
|
-
if ((0,
|
|
33446
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
33195
33447
|
const popup = this.openPopup();
|
|
33196
33448
|
popup.parentElement = this;
|
|
33197
33449
|
try {
|
|
33198
|
-
if (this.j.e.fire((0,
|
|
33450
|
+
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) {
|
|
33199
33451
|
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;
|
|
33200
33452
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
33201
33453
|
if (elm) {
|
|
33202
|
-
popup.setContent((0,
|
|
33454
|
+
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);
|
|
33203
33455
|
// The focus stays in the content for a list, which
|
|
33204
33456
|
// typing searches, but goes to a form, as in a dialog
|
|
33205
|
-
(0,
|
|
33457
|
+
(0,_core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__.focusFormField)(popup.container);
|
|
33206
33458
|
} else {
|
|
33207
33459
|
this.__closePopup();
|
|
33208
33460
|
}
|
|
@@ -33215,20 +33467,20 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33215
33467
|
* Fired after the popup was opened for some control button
|
|
33216
33468
|
*/ /**
|
|
33217
33469
|
* Close all opened popups
|
|
33218
|
-
*/ this.j.e.fire((0,
|
|
33470
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
33219
33471
|
}
|
|
33220
33472
|
}
|
|
33221
33473
|
onTriggerKeyDown(e) {
|
|
33222
33474
|
if (this.state.disabled) {
|
|
33223
33475
|
return;
|
|
33224
33476
|
}
|
|
33225
|
-
if (e.key ===
|
|
33477
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN) {
|
|
33226
33478
|
this.onButtonKeyDown(e);
|
|
33227
33479
|
return;
|
|
33228
33480
|
}
|
|
33229
33481
|
if (![
|
|
33230
|
-
|
|
33231
|
-
|
|
33482
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ENTER,
|
|
33483
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_SPACE,
|
|
33232
33484
|
' '
|
|
33233
33485
|
].includes(e.key)) {
|
|
33234
33486
|
return;
|
|
@@ -33241,7 +33493,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33241
33493
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
33242
33494
|
*/ onButtonKeyDown(e) {
|
|
33243
33495
|
var _a;
|
|
33244
|
-
if (e.key !==
|
|
33496
|
+
if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
33245
33497
|
return;
|
|
33246
33498
|
}
|
|
33247
33499
|
e.preventDefault();
|
|
@@ -33260,22 +33512,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33260
33512
|
}
|
|
33261
33513
|
const target = e.target;
|
|
33262
33514
|
// A text field keeps the arrow keys for itself
|
|
33263
|
-
if (
|
|
33515
|
+
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) {
|
|
33264
33516
|
return;
|
|
33265
33517
|
}
|
|
33266
33518
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
33267
33519
|
switch(e.key){
|
|
33268
|
-
case
|
|
33520
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC:
|
|
33269
33521
|
this.__closePopup();
|
|
33270
33522
|
break;
|
|
33271
|
-
case
|
|
33523
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_UP:
|
|
33272
33524
|
if (index <= 0) {
|
|
33273
33525
|
this.__closePopup();
|
|
33274
33526
|
} else {
|
|
33275
33527
|
items[index - 1].focus();
|
|
33276
33528
|
}
|
|
33277
33529
|
break;
|
|
33278
|
-
case
|
|
33530
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN:
|
|
33279
33531
|
if (!items.length) {
|
|
33280
33532
|
return;
|
|
33281
33533
|
}
|
|
@@ -33345,7 +33597,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33345
33597
|
* Create an open popup list
|
|
33346
33598
|
*/ __openControlList(control) {
|
|
33347
33599
|
var _a, _b, _c, _d, _e;
|
|
33348
|
-
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,
|
|
33600
|
+
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);
|
|
33349
33601
|
const list = control.list;
|
|
33350
33602
|
const menu = this.openPopup();
|
|
33351
33603
|
menu.parentElement = this;
|
|
@@ -33353,17 +33605,17 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33353
33605
|
if (content) {
|
|
33354
33606
|
return this.__openMenu(menu, content);
|
|
33355
33607
|
}
|
|
33356
|
-
const toolbar = (0,
|
|
33608
|
+
const toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_23__.makeCollection)(this.j);
|
|
33357
33609
|
toolbar.parentElement = menu;
|
|
33358
33610
|
toolbar.mode = 'vertical';
|
|
33359
|
-
const isListItem = (key)=>(0,
|
|
33611
|
+
const isListItem = (key)=>(0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
33360
33612
|
const getButton = (key, value)=>{
|
|
33361
|
-
if ((0,
|
|
33613
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value) && getControl(value)) {
|
|
33362
33614
|
return _object_spread({
|
|
33363
33615
|
name: value.toString()
|
|
33364
33616
|
}, getControl(value));
|
|
33365
33617
|
}
|
|
33366
|
-
if ((0,
|
|
33618
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(key) && getControl(key)) {
|
|
33367
33619
|
return _object_spread({
|
|
33368
33620
|
name: key.toString()
|
|
33369
33621
|
}, getControl(key), typeof value === 'object' ? value : {});
|
|
@@ -33394,29 +33646,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33394
33646
|
value
|
|
33395
33647
|
]
|
|
33396
33648
|
};
|
|
33397
|
-
if ((0,
|
|
33649
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value)) {
|
|
33398
33650
|
childControl.text = value;
|
|
33399
33651
|
}
|
|
33400
33652
|
return childControl;
|
|
33401
33653
|
};
|
|
33402
|
-
toolbar.build((0,
|
|
33654
|
+
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);
|
|
33403
33655
|
this.__openMenu(menu, toolbar);
|
|
33404
33656
|
}
|
|
33405
33657
|
__openMenu(menu, content) {
|
|
33406
|
-
menu.setContent(content).open(()=>(0,
|
|
33658
|
+
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);
|
|
33407
33659
|
this.state.activated = true;
|
|
33408
33660
|
}
|
|
33409
33661
|
onOutsideClick(e) {
|
|
33410
33662
|
if (!this.openedPopup) {
|
|
33411
33663
|
return;
|
|
33412
33664
|
}
|
|
33413
|
-
if (!e || !
|
|
33665
|
+
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)) {
|
|
33414
33666
|
this.__closePopup();
|
|
33415
33667
|
}
|
|
33416
33668
|
}
|
|
33417
33669
|
openPopup() {
|
|
33418
33670
|
this.__closePopup();
|
|
33419
|
-
this.openedPopup = new
|
|
33671
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__.Popup(this.j, false);
|
|
33420
33672
|
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);
|
|
33421
33673
|
return this.openedPopup;
|
|
33422
33674
|
}
|
|
@@ -33436,14 +33688,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33436
33688
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
33437
33689
|
// the button, otherwise it would fall out to the document. A form
|
|
33438
33690
|
// gives it back to the content, with the selection it was opened for
|
|
33439
|
-
const { activeElement } = this.od, hadFocus = activeElement &&
|
|
33691
|
+
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);
|
|
33440
33692
|
this.state.activated = false;
|
|
33441
33693
|
popup.close();
|
|
33442
33694
|
popup.destruct();
|
|
33443
33695
|
if (this.trigger) {
|
|
33444
|
-
(0,
|
|
33696
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', false);
|
|
33445
33697
|
}
|
|
33446
|
-
if (inForm && (0,
|
|
33698
|
+
if (inForm && (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j)) {
|
|
33447
33699
|
this.j.s.focus();
|
|
33448
33700
|
} else if (hadFocus) {
|
|
33449
33701
|
this.focus();
|
|
@@ -33454,7 +33706,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33454
33706
|
*/ onClick(originalEvent) {
|
|
33455
33707
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33456
33708
|
const { control: ctr } = this;
|
|
33457
|
-
if ((0,
|
|
33709
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.exec)) {
|
|
33458
33710
|
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;
|
|
33459
33711
|
const result = ctr.exec(this.j, target, {
|
|
33460
33712
|
control: ctr,
|
|
@@ -33467,9 +33719,10 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33467
33719
|
if (this.parentElement) {
|
|
33468
33720
|
this.parentElement.update();
|
|
33469
33721
|
}
|
|
33722
|
+
this.__closePopups();
|
|
33470
33723
|
/**
|
|
33471
33724
|
* Fired after calling `button.exec` function
|
|
33472
|
-
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('
|
|
33725
|
+
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('afterExec');
|
|
33473
33726
|
}
|
|
33474
33727
|
if (result !== false) {
|
|
33475
33728
|
return;
|
|
@@ -33478,13 +33731,35 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33478
33731
|
if (ctr.list) {
|
|
33479
33732
|
return this.__openControlList(ctr);
|
|
33480
33733
|
}
|
|
33481
|
-
if ((0,
|
|
33734
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
33482
33735
|
return this.onTriggerClick(originalEvent);
|
|
33483
33736
|
}
|
|
33484
33737
|
if (ctr.command || ctr.name) {
|
|
33485
|
-
(0,
|
|
33486
|
-
this.
|
|
33738
|
+
(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]);
|
|
33739
|
+
this.__closePopups();
|
|
33740
|
+
}
|
|
33741
|
+
}
|
|
33742
|
+
/**
|
|
33743
|
+
* After the button's action, a popup that stays open (an element's)
|
|
33744
|
+
* keeps its place beside the element, and only the lists the button is
|
|
33745
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
33746
|
+
* popup closes
|
|
33747
|
+
*/ __closePopups() {
|
|
33748
|
+
var _a, _b;
|
|
33749
|
+
const openers = [
|
|
33750
|
+
this
|
|
33751
|
+
];
|
|
33752
|
+
for(let pe = this.parentElement; pe; pe = pe.parentElement){
|
|
33753
|
+
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)) {
|
|
33754
|
+
openers.forEach((button)=>button.__closePopup());
|
|
33755
|
+
pe.updatePosition();
|
|
33756
|
+
return;
|
|
33757
|
+
}
|
|
33758
|
+
if (_core_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(pe, ToolbarButton_1)) {
|
|
33759
|
+
openers.push(pe);
|
|
33760
|
+
}
|
|
33487
33761
|
}
|
|
33762
|
+
(_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.e) === null || _b === void 0 ? void 0 : _b.fire('closeAllPopups');
|
|
33488
33763
|
}
|
|
33489
33764
|
destruct() {
|
|
33490
33765
|
this.__closePopup();
|
|
@@ -33494,7 +33769,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33494
33769
|
super(jodit);
|
|
33495
33770
|
this.control = control;
|
|
33496
33771
|
this.target = target;
|
|
33497
|
-
this.state = _object_spread_props(_object_spread({}, (0,
|
|
33772
|
+
this.state = _object_spread_props(_object_spread({}, (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)()), {
|
|
33498
33773
|
theme: 'toolbar',
|
|
33499
33774
|
currentValue: '',
|
|
33500
33775
|
hasTrigger: false
|
|
@@ -33504,14 +33779,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33504
33779
|
this.__typedTo = null;
|
|
33505
33780
|
this.openedPopup = null;
|
|
33506
33781
|
const button = this.getElm('button');
|
|
33507
|
-
(0,
|
|
33782
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(button, 'Element button should exists');
|
|
33508
33783
|
this.button = button;
|
|
33509
33784
|
Object.defineProperty(button, 'component', {
|
|
33510
33785
|
value: this,
|
|
33511
33786
|
configurable: true
|
|
33512
33787
|
});
|
|
33513
33788
|
const trigger = this.getElm('trigger');
|
|
33514
|
-
(0,
|
|
33789
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(trigger, 'Element trigger should exists');
|
|
33515
33790
|
this.trigger = trigger;
|
|
33516
33791
|
trigger.remove();
|
|
33517
33792
|
// Prevent lost focus
|
|
@@ -33520,7 +33795,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33520
33795
|
this.trigger
|
|
33521
33796
|
], 'mousedown', (e)=>e.preventDefault());
|
|
33522
33797
|
this.onAction(this.onClick);
|
|
33523
|
-
this.hookStatus(
|
|
33798
|
+
this.hookStatus(_core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__.STATUSES.ready, ()=>{
|
|
33524
33799
|
this.__initFromControl();
|
|
33525
33800
|
this.update();
|
|
33526
33801
|
});
|
|
@@ -33532,36 +33807,36 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33532
33807
|
}
|
|
33533
33808
|
};
|
|
33534
33809
|
__decorate([
|
|
33535
|
-
|
|
33810
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__.cacheHTML
|
|
33536
33811
|
], ToolbarButton.prototype, "createContainer", null);
|
|
33537
33812
|
__decorate([
|
|
33538
|
-
(0,
|
|
33813
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('state.hasTrigger', {
|
|
33539
33814
|
immediately: false
|
|
33540
33815
|
})
|
|
33541
33816
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
33542
33817
|
__decorate([
|
|
33543
|
-
(0,
|
|
33818
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:click')
|
|
33544
33819
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
33545
33820
|
__decorate([
|
|
33546
|
-
(0,
|
|
33821
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:keydown')
|
|
33547
33822
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
33548
33823
|
__decorate([
|
|
33549
|
-
(0,
|
|
33824
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('button:keydown')
|
|
33550
33825
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
33551
33826
|
__decorate([
|
|
33552
|
-
|
|
33827
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33553
33828
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
33554
33829
|
__decorate([
|
|
33555
|
-
|
|
33830
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33556
33831
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
33557
33832
|
__decorate([
|
|
33558
|
-
|
|
33833
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33559
33834
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
33560
33835
|
__decorate([
|
|
33561
|
-
|
|
33836
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33562
33837
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
33563
|
-
ToolbarButton = __decorate([
|
|
33564
|
-
|
|
33838
|
+
ToolbarButton = ToolbarButton_1 = __decorate([
|
|
33839
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.component
|
|
33565
33840
|
], ToolbarButton);
|
|
33566
33841
|
|
|
33567
33842
|
|
|
@@ -34071,6 +34346,7 @@ function makeSelect(view, control, target = null) {
|
|
|
34071
34346
|
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19306);
|
|
34072
34347
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
34073
34348
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
34349
|
+
/* harmony import */ var _helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
34074
34350
|
/*!
|
|
34075
34351
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34076
34352
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34079,6 +34355,7 @@ function makeSelect(view, control, target = null) {
|
|
|
34079
34355
|
|
|
34080
34356
|
|
|
34081
34357
|
|
|
34358
|
+
|
|
34082
34359
|
/**
|
|
34083
34360
|
* Module for processing download documents and images by Drag and Drop
|
|
34084
34361
|
* Drag and Drop files
|
|
@@ -34139,27 +34416,26 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
34139
34416
|
if (!(0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
34140
34417
|
return;
|
|
34141
34418
|
}
|
|
34142
|
-
|
|
34143
|
-
|
|
34144
|
-
|
|
34145
|
-
|
|
34146
|
-
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
|
|
34156
|
-
|
|
34157
|
-
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
}
|
|
34419
|
+
const { baseurl } = resp;
|
|
34420
|
+
(0,_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(resp).forEach(({ file, isImage })=>{
|
|
34421
|
+
const [tagName, attrName] = isImage ? [
|
|
34422
|
+
'img',
|
|
34423
|
+
'src'
|
|
34424
|
+
] : [
|
|
34425
|
+
'a',
|
|
34426
|
+
'href'
|
|
34427
|
+
];
|
|
34428
|
+
const elm = j.createInside.element(tagName);
|
|
34429
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, attrName, baseurl + file);
|
|
34430
|
+
if (tagName === 'a') {
|
|
34431
|
+
elm.textContent = j.o.uploader.getDisplayName.call(this, baseurl, file);
|
|
34432
|
+
}
|
|
34433
|
+
if (tagName === 'img') {
|
|
34434
|
+
j.s.insertImage(elm, null, j.o.imageDefaultWidth);
|
|
34435
|
+
} else {
|
|
34436
|
+
j.s.insertNode(elm);
|
|
34437
|
+
}
|
|
34438
|
+
});
|
|
34163
34439
|
},
|
|
34164
34440
|
defaultHandlerError (e) {
|
|
34165
34441
|
this.j.message.error(e.message);
|
|
@@ -34249,17 +34525,19 @@ function buildData(uploader, data) {
|
|
|
34249
34525
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34250
34526
|
|
|
34251
34527
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34252
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
34528
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
34253
34529
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
34254
34530
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
34255
|
-
/* harmony export */
|
|
34256
|
-
/* harmony export */
|
|
34257
|
-
/* harmony export */
|
|
34531
|
+
/* harmony export */ normalizeUploaderData: function() { return /* reexport safe */ _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__.normalizeUploaderData; },
|
|
34532
|
+
/* harmony export */ processOldBrowserDrag: function() { return /* reexport safe */ _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__.processOldBrowserDrag; },
|
|
34533
|
+
/* harmony export */ send: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.send; },
|
|
34534
|
+
/* harmony export */ sendFiles: function() { return /* reexport safe */ _send_files_js__WEBPACK_IMPORTED_MODULE_4__.sendFiles; }
|
|
34258
34535
|
/* harmony export */ });
|
|
34259
34536
|
/* harmony import */ var _build_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83987);
|
|
34260
|
-
/* harmony import */ var
|
|
34261
|
-
/* harmony import */ var
|
|
34262
|
-
/* harmony import */ var
|
|
34537
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2073);
|
|
34538
|
+
/* harmony import */ var _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50373);
|
|
34539
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71686);
|
|
34540
|
+
/* harmony import */ var _send_files_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80020);
|
|
34263
34541
|
/*!
|
|
34264
34542
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34265
34543
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34269,6 +34547,7 @@ function buildData(uploader, data) {
|
|
|
34269
34547
|
|
|
34270
34548
|
|
|
34271
34549
|
|
|
34550
|
+
|
|
34272
34551
|
function hasFiles(data) {
|
|
34273
34552
|
return Boolean(data && data.files && data.files.length > 0);
|
|
34274
34553
|
}
|
|
@@ -34277,6 +34556,123 @@ function hasItems(data) {
|
|
|
34277
34556
|
}
|
|
34278
34557
|
|
|
34279
34558
|
|
|
34559
|
+
/***/ }),
|
|
34560
|
+
|
|
34561
|
+
/***/ 2073:
|
|
34562
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34563
|
+
|
|
34564
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34565
|
+
/* harmony export */ getItems: function() { return /* binding */ getItems; },
|
|
34566
|
+
/* harmony export */ normalizeUploaderData: function() { return /* binding */ normalizeUploaderData; }
|
|
34567
|
+
/* harmony export */ });
|
|
34568
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
34569
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70799);
|
|
34570
|
+
function _define_property(obj, key, value) {
|
|
34571
|
+
if (key in obj) {
|
|
34572
|
+
Object.defineProperty(obj, key, {
|
|
34573
|
+
value: value,
|
|
34574
|
+
enumerable: true,
|
|
34575
|
+
configurable: true,
|
|
34576
|
+
writable: true
|
|
34577
|
+
});
|
|
34578
|
+
} else obj[key] = value;
|
|
34579
|
+
return obj;
|
|
34580
|
+
}
|
|
34581
|
+
function _object_spread(target) {
|
|
34582
|
+
for(var i = 1; i < arguments.length; i++){
|
|
34583
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
34584
|
+
var ownKeys = Object.keys(source);
|
|
34585
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
34586
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34587
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
34588
|
+
}));
|
|
34589
|
+
}
|
|
34590
|
+
ownKeys.forEach(function(key) {
|
|
34591
|
+
_define_property(target, key, source[key]);
|
|
34592
|
+
});
|
|
34593
|
+
}
|
|
34594
|
+
return target;
|
|
34595
|
+
}
|
|
34596
|
+
function ownKeys(object, enumerableOnly) {
|
|
34597
|
+
var keys = Object.keys(object);
|
|
34598
|
+
if (Object.getOwnPropertySymbols) {
|
|
34599
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
34600
|
+
if (enumerableOnly) {
|
|
34601
|
+
symbols = symbols.filter(function(sym) {
|
|
34602
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34603
|
+
});
|
|
34604
|
+
}
|
|
34605
|
+
keys.push.apply(keys, symbols);
|
|
34606
|
+
}
|
|
34607
|
+
return keys;
|
|
34608
|
+
}
|
|
34609
|
+
function _object_spread_props(target, source) {
|
|
34610
|
+
source = source != null ? source : {};
|
|
34611
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34612
|
+
else {
|
|
34613
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
34614
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34615
|
+
});
|
|
34616
|
+
}
|
|
34617
|
+
return target;
|
|
34618
|
+
}
|
|
34619
|
+
/*!
|
|
34620
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34621
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
34622
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
34623
|
+
*/ ;
|
|
34624
|
+
|
|
34625
|
+
/**
|
|
34626
|
+
* The files in upload or file browser data, one object each. While the
|
|
34627
|
+
* deprecated `files` array is set, it and `isImages` and `fileNames` win
|
|
34628
|
+
* over `items`, so a handler that edits them and passes the data on to a
|
|
34629
|
+
* default handler still gets its edits inserted. A file browser that
|
|
34630
|
+
* passes only the arrays works too.
|
|
34631
|
+
*/ function getItems(data) {
|
|
34632
|
+
const { files, isImages, fileNames, items } = data;
|
|
34633
|
+
if (!(0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files)) {
|
|
34634
|
+
return items !== null && items !== void 0 ? items : [];
|
|
34635
|
+
}
|
|
34636
|
+
return files.map((file, i)=>{
|
|
34637
|
+
const name = fileNames === null || fileNames === void 0 ? void 0 : fileNames[i];
|
|
34638
|
+
return _object_spread({
|
|
34639
|
+
file,
|
|
34640
|
+
isImage: Boolean(isImages === null || isImages === void 0 ? void 0 : isImages[i])
|
|
34641
|
+
}, name !== undefined ? {
|
|
34642
|
+
name
|
|
34643
|
+
} : {});
|
|
34644
|
+
});
|
|
34645
|
+
}
|
|
34646
|
+
/**
|
|
34647
|
+
* Gives the data both `items` and the deprecated `files`, `isImages` and
|
|
34648
|
+
* `fileNames` arrays, building whichever is missing, so a handler can read
|
|
34649
|
+
* either. When both are given, `items` is rebuilt from the arrays, as in
|
|
34650
|
+
* [[getItems]], unless `files` is empty and `items` isn't, as from a
|
|
34651
|
+
* `process` that spreads the server's answer and adds `items`. Anything but
|
|
34652
|
+
* an object, such as the `null` a custom `process` may return, is passed on
|
|
34653
|
+
* as it is.
|
|
34654
|
+
*/ function normalizeUploaderData(data) {
|
|
34655
|
+
if (!data || typeof data !== 'object') {
|
|
34656
|
+
return data;
|
|
34657
|
+
}
|
|
34658
|
+
const { files, items } = data;
|
|
34659
|
+
if (!items || (0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files) && (files.length || !items.length)) {
|
|
34660
|
+
return _object_spread_props(_object_spread({}, data), {
|
|
34661
|
+
items: getItems(data)
|
|
34662
|
+
});
|
|
34663
|
+
}
|
|
34664
|
+
const names = items.map(({ name })=>name);
|
|
34665
|
+
return _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, data), {
|
|
34666
|
+
files: items.map(({ file })=>file),
|
|
34667
|
+
isImages: items.map(({ isImage })=>isImage)
|
|
34668
|
+
}), names.every(_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__.isString) ? {
|
|
34669
|
+
fileNames: names
|
|
34670
|
+
} : {}), {
|
|
34671
|
+
items
|
|
34672
|
+
});
|
|
34673
|
+
}
|
|
34674
|
+
|
|
34675
|
+
|
|
34280
34676
|
/***/ }),
|
|
34281
34677
|
|
|
34282
34678
|
/***/ 50373:
|
|
@@ -34338,8 +34734,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
34338
34734
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
34339
34735
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
34340
34736
|
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
34341
|
-
/* harmony import */ var
|
|
34342
|
-
/* harmony import */ var
|
|
34737
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
34738
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71686);
|
|
34739
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76198);
|
|
34343
34740
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
34344
34741
|
try {
|
|
34345
34742
|
var info = gen[key](arg);
|
|
@@ -34402,6 +34799,7 @@ function _object_spread(target) {
|
|
|
34402
34799
|
|
|
34403
34800
|
|
|
34404
34801
|
|
|
34802
|
+
|
|
34405
34803
|
/**
|
|
34406
34804
|
* Send files to server
|
|
34407
34805
|
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -34489,13 +34887,13 @@ retryOf) {
|
|
|
34489
34887
|
});
|
|
34490
34888
|
}
|
|
34491
34889
|
o.prepareData.call(uploader, form);
|
|
34492
|
-
promises.push((0,
|
|
34890
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
34493
34891
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34494
34892
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34495
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
34893
|
+
handler.call(uploader, (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
34496
34894
|
return resp;
|
|
34497
34895
|
}
|
|
34498
|
-
const err = new
|
|
34896
|
+
const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_6__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
|
|
34499
34897
|
var _a;
|
|
34500
34898
|
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
34501
34899
|
data: _object_spread({}, extraData, plan === null || plan === void 0 ? void 0 : plan.data)
|
|
@@ -34570,18 +34968,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
34570
34968
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
34571
34969
|
reader.onerror = reject;
|
|
34572
34970
|
reader.onloadend = ()=>{
|
|
34573
|
-
const resp = {
|
|
34971
|
+
const resp = (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
34574
34972
|
baseurl: '',
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34578
|
-
|
|
34579
|
-
|
|
34580
|
-
|
|
34581
|
-
fileNames: [
|
|
34582
|
-
name
|
|
34973
|
+
items: [
|
|
34974
|
+
{
|
|
34975
|
+
file: reader.result,
|
|
34976
|
+
isImage: true,
|
|
34977
|
+
name
|
|
34978
|
+
}
|
|
34583
34979
|
]
|
|
34584
|
-
};
|
|
34980
|
+
});
|
|
34585
34981
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
34586
34982
|
handler.call(uploader, resp);
|
|
34587
34983
|
resolve(resp);
|
|
@@ -34783,11 +35179,10 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34783
35179
|
* ```javascript
|
|
34784
35180
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
34785
35181
|
* jQuery('body').append($form);
|
|
34786
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
34787
|
-
*
|
|
34788
|
-
*
|
|
34789
|
-
*
|
|
34790
|
-
* }
|
|
35182
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (data) {
|
|
35183
|
+
* data.items.forEach(function (item) {
|
|
35184
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
35185
|
+
* });
|
|
34791
35186
|
* });
|
|
34792
35187
|
* ```
|
|
34793
35188
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -34886,7 +35281,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34886
35281
|
var _a;
|
|
34887
35282
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34888
35283
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34889
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
35284
|
+
handler.call(uploader, (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
34890
35285
|
return;
|
|
34891
35286
|
}
|
|
34892
35287
|
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));
|
|
@@ -34904,6 +35299,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34904
35299
|
if (!settled) {
|
|
34905
35300
|
resolve({
|
|
34906
35301
|
baseurl: '',
|
|
35302
|
+
items: [],
|
|
34907
35303
|
files: [],
|
|
34908
35304
|
isImages: []
|
|
34909
35305
|
});
|
|
@@ -35527,6 +35923,17 @@ const ns = 'addnewline';
|
|
|
35527
35923
|
editor.editor
|
|
35528
35924
|
], '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);
|
|
35529
35925
|
}
|
|
35926
|
+
/**
|
|
35927
|
+
* An empty line with a `<br>`, as Enter makes, so it keeps its height
|
|
35928
|
+
* without clean-html's fillEmptyParagraph (#1807)
|
|
35929
|
+
*/ __newLine() {
|
|
35930
|
+
const { j } = this;
|
|
35931
|
+
const line = j.createInside.element(j.o.enter);
|
|
35932
|
+
if (!_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.isTag(line, 'br')) {
|
|
35933
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.append(line, j.createInside.element('br'));
|
|
35934
|
+
}
|
|
35935
|
+
return line;
|
|
35936
|
+
}
|
|
35530
35937
|
/**
|
|
35531
35938
|
* A paragraph holding only an embed has no place for the caret, so the
|
|
35532
35939
|
* arrow keys can't get past one that ends the content, or before one that
|
|
@@ -35539,6 +35946,11 @@ const ns = 'addnewline';
|
|
|
35539
35946
|
return;
|
|
35540
35947
|
}
|
|
35541
35948
|
const { startContainer, startOffset } = editor.s.range;
|
|
35949
|
+
// A caret in the editor itself, as beside a horizontal line, is in no
|
|
35950
|
+
// paragraph, and the browsers can leave it there with text beyond (#1803)
|
|
35951
|
+
if (startContainer === editor.editor) {
|
|
35952
|
+
return;
|
|
35953
|
+
}
|
|
35542
35954
|
// Once the browser has moved the caret, if it could. With a 0 timeout
|
|
35543
35955
|
// Jodit would run this at once, before the browser moves it
|
|
35544
35956
|
editor.async.setTimeout(()=>{
|
|
@@ -35547,7 +35959,7 @@ const ns = 'addnewline';
|
|
|
35547
35959
|
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)) {
|
|
35548
35960
|
return;
|
|
35549
35961
|
}
|
|
35550
|
-
const p =
|
|
35962
|
+
const p = this.__newLine();
|
|
35551
35963
|
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);
|
|
35552
35964
|
editor.s.setCursorIn(p);
|
|
35553
35965
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.scrollIntoViewIfNeeded)(p, editor.editor, editor.ed);
|
|
@@ -35559,7 +35971,7 @@ const ns = 'addnewline';
|
|
|
35559
35971
|
if (!editor.o.readonly && editor.o.addNewLineOnDBLClick && e.target === editor.editor && editor.s.isCollapsed()) {
|
|
35560
35972
|
const editorBound = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.offset)(editor.editor, editor, editor.ed);
|
|
35561
35973
|
const top = e.pageY - editor.ew.scrollX;
|
|
35562
|
-
const p =
|
|
35974
|
+
const p = this.__newLine();
|
|
35563
35975
|
if (Math.abs(top - editorBound.top) < Math.abs(top - (editorBound.height + editorBound.top)) && editor.editor.firstChild) {
|
|
35564
35976
|
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.prepend(editor.editor, p);
|
|
35565
35977
|
} else {
|
|
@@ -35652,7 +36064,7 @@ const ns = 'addnewline';
|
|
|
35652
36064
|
};
|
|
35653
36065
|
this.__onClickLine = (e)=>{
|
|
35654
36066
|
const editor = this.j;
|
|
35655
|
-
const p =
|
|
36067
|
+
const p = this.__newLine();
|
|
35656
36068
|
if (this.__isBeforeContent && this.__current && this.__current.parentNode) {
|
|
35657
36069
|
if (this.__current === editor.editor) {
|
|
35658
36070
|
_modules_index_js__WEBPACK_IMPORTED_MODULE_5__.Dom.prepend(editor.editor, p);
|
|
@@ -36318,40 +36730,41 @@ UiAiAssistant = __decorate([
|
|
|
36318
36730
|
/* harmony import */ var _limit_limit_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(91071);
|
|
36319
36731
|
/* harmony import */ var _line_height_line_height_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(61019);
|
|
36320
36732
|
/* harmony import */ var _link_link_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(65517);
|
|
36321
|
-
/* harmony import */ var
|
|
36322
|
-
/* harmony import */ var
|
|
36323
|
-
/* harmony import */ var
|
|
36324
|
-
/* harmony import */ var
|
|
36325
|
-
/* harmony import */ var
|
|
36326
|
-
/* harmony import */ var
|
|
36327
|
-
/* harmony import */ var
|
|
36328
|
-
/* harmony import */ var
|
|
36329
|
-
/* harmony import */ var
|
|
36330
|
-
/* harmony import */ var
|
|
36331
|
-
/* harmony import */ var
|
|
36332
|
-
/* harmony import */ var
|
|
36333
|
-
/* harmony import */ var
|
|
36334
|
-
/* harmony import */ var
|
|
36335
|
-
/* harmony import */ var
|
|
36336
|
-
/* harmony import */ var
|
|
36337
|
-
/* harmony import */ var
|
|
36338
|
-
/* harmony import */ var
|
|
36339
|
-
/* harmony import */ var
|
|
36340
|
-
/* harmony import */ var
|
|
36341
|
-
/* harmony import */ var
|
|
36342
|
-
/* harmony import */ var
|
|
36343
|
-
/* harmony import */ var
|
|
36344
|
-
/* harmony import */ var
|
|
36345
|
-
/* harmony import */ var
|
|
36346
|
-
/* harmony import */ var
|
|
36347
|
-
/* harmony import */ var
|
|
36348
|
-
/* harmony import */ var
|
|
36349
|
-
/* harmony import */ var
|
|
36350
|
-
/* harmony import */ var
|
|
36351
|
-
/* harmony import */ var
|
|
36352
|
-
/* harmony import */ var
|
|
36353
|
-
/* harmony import */ var
|
|
36354
|
-
/* harmony import */ var
|
|
36733
|
+
/* harmony import */ var _anchor_anchor_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(36911);
|
|
36734
|
+
/* harmony import */ var _media_media_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(20071);
|
|
36735
|
+
/* harmony import */ var _mobile_mobile_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(32309);
|
|
36736
|
+
/* harmony import */ var _ordered_list_ordered_list_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(64837);
|
|
36737
|
+
/* harmony import */ var _paste_paste_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(79799);
|
|
36738
|
+
/* harmony import */ var _paste_from_word_paste_from_word_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(31571);
|
|
36739
|
+
/* harmony import */ var _paste_storage_paste_storage_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(85407);
|
|
36740
|
+
/* harmony import */ var _placeholder_placeholder_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(59451);
|
|
36741
|
+
/* harmony import */ var _powered_by_jodit_powered_by_jodit_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(18363);
|
|
36742
|
+
/* harmony import */ var _preview_preview_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(8355);
|
|
36743
|
+
/* harmony import */ var _print_print_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(58519);
|
|
36744
|
+
/* harmony import */ var _redo_undo_redo_undo_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(6687);
|
|
36745
|
+
/* harmony import */ var _resize_cells_resize_cells_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(56113);
|
|
36746
|
+
/* harmony import */ var _resize_handler_resize_handler_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(9159);
|
|
36747
|
+
/* harmony import */ var _resizer_resizer_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(12019);
|
|
36748
|
+
/* harmony import */ var _search_search_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(36125);
|
|
36749
|
+
/* harmony import */ var _select_select_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(9881);
|
|
36750
|
+
/* harmony import */ var _select_cells_select_cells_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(28545);
|
|
36751
|
+
/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(45927);
|
|
36752
|
+
/* harmony import */ var _source_source_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(52951);
|
|
36753
|
+
/* harmony import */ var _spellcheck_spellcheck_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(43809);
|
|
36754
|
+
/* harmony import */ var _stat_stat_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(7309);
|
|
36755
|
+
/* harmony import */ var _sticky_sticky_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(68687);
|
|
36756
|
+
/* harmony import */ var _symbols_symbols_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(59495);
|
|
36757
|
+
/* harmony import */ var _ai_assistant_ai_assistant_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(39627);
|
|
36758
|
+
/* harmony import */ var _tab_tab_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(767);
|
|
36759
|
+
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(43003);
|
|
36760
|
+
/* harmony import */ var _table_keyboard_navigation_table_keyboard_navigation_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(72439);
|
|
36761
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(94529);
|
|
36762
|
+
/* harmony import */ var _video_video_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(26551);
|
|
36763
|
+
/* harmony import */ var _video_properties_video_properties_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(96139);
|
|
36764
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(72253);
|
|
36765
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(65735);
|
|
36766
|
+
/* harmony import */ var _xpath_xpath_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(83671);
|
|
36767
|
+
/* harmony import */ var _speech_recognize_speech_recognize_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(3115);
|
|
36355
36768
|
/*!
|
|
36356
36769
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36357
36770
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36424,12 +36837,333 @@ UiAiAssistant = __decorate([
|
|
|
36424
36837
|
|
|
36425
36838
|
|
|
36426
36839
|
|
|
36840
|
+
|
|
36427
36841
|
|
|
36428
36842
|
|
|
36429
36843
|
// JODIT-START:FAT
|
|
36430
36844
|
// JODIT-END:FAT
|
|
36431
36845
|
|
|
36432
36846
|
|
|
36847
|
+
/***/ }),
|
|
36848
|
+
|
|
36849
|
+
/***/ 36911:
|
|
36850
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
36851
|
+
|
|
36852
|
+
/* unused harmony export anchor */
|
|
36853
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
36854
|
+
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
36855
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
36856
|
+
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
36857
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
36858
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
36859
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
36860
|
+
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
36861
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50712);
|
|
36862
|
+
/*!
|
|
36863
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36864
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
36865
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
36866
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
36867
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36868
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36869
|
+
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;
|
|
36870
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36871
|
+
};
|
|
36872
|
+
|
|
36873
|
+
|
|
36874
|
+
|
|
36875
|
+
|
|
36876
|
+
|
|
36877
|
+
|
|
36878
|
+
|
|
36879
|
+
|
|
36880
|
+
|
|
36881
|
+
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\")";
|
|
36882
|
+
const MARKER = [
|
|
36883
|
+
'id',
|
|
36884
|
+
'name'
|
|
36885
|
+
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
36886
|
+
/**
|
|
36887
|
+
* Each anchor's marker, in the editing area only
|
|
36888
|
+
*/ 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:''}`;
|
|
36889
|
+
/**
|
|
36890
|
+
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
36891
|
+
*/ const MARK = ' contenteditable="false"';
|
|
36892
|
+
/**
|
|
36893
|
+
* Inserts anchors, empty `<a id>` that links in the document reach as
|
|
36894
|
+
* `#name`, and renames and removes them
|
|
36895
|
+
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
36896
|
+
/** @override */ afterInit(jodit) {
|
|
36897
|
+
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
36898
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
|
|
36899
|
+
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
36900
|
+
top: true
|
|
36901
|
+
});
|
|
36902
|
+
}
|
|
36903
|
+
/**
|
|
36904
|
+
* An anchor gets its own popup, in place of the link's
|
|
36905
|
+
*/ __onClickA(target, e) {
|
|
36906
|
+
var _a;
|
|
36907
|
+
const { j } = this;
|
|
36908
|
+
if (j.o.readonly || !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target)) {
|
|
36909
|
+
return;
|
|
36910
|
+
}
|
|
36911
|
+
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'));
|
|
36912
|
+
// Afresh, so a form left with a change unsaved shows the name it has
|
|
36913
|
+
j.e.fire('showPopup', target, ()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(target, j), 'anchor', true);
|
|
36914
|
+
return false;
|
|
36915
|
+
}
|
|
36916
|
+
/**
|
|
36917
|
+
* Anchors are uneditable in the editor, so typing beside one never goes
|
|
36918
|
+
* into it and it's deleted as a whole
|
|
36919
|
+
*/ onChange() {
|
|
36920
|
+
const { j } = this;
|
|
36921
|
+
if (j.isInDestruct || j.getMode() === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
|
|
36922
|
+
return;
|
|
36923
|
+
}
|
|
36924
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(j.editor).forEach(markAnchor);
|
|
36925
|
+
}
|
|
36926
|
+
/**
|
|
36927
|
+
* The editor's own attribute stays out of the value
|
|
36928
|
+
*/ onAfterGetValueFromEditor(data) {
|
|
36929
|
+
data.value = unmarkAnchors(data.value);
|
|
36930
|
+
}
|
|
36931
|
+
/**
|
|
36932
|
+
* The form that names a new anchor, or renames or removes `target`
|
|
36933
|
+
*/ __generateForm(target, close) {
|
|
36934
|
+
const { j } = this;
|
|
36935
|
+
const current = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target) ? target : null;
|
|
36936
|
+
const input = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIInput(j, {
|
|
36937
|
+
name: 'name',
|
|
36938
|
+
ref: 'name_input',
|
|
36939
|
+
label: 'Anchor',
|
|
36940
|
+
required: true
|
|
36941
|
+
});
|
|
36942
|
+
const buttons = [
|
|
36943
|
+
new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
36944
|
+
name: 'insert',
|
|
36945
|
+
type: 'submit',
|
|
36946
|
+
variant: 'primary',
|
|
36947
|
+
text: current ? 'Update' : 'Insert'
|
|
36948
|
+
})
|
|
36949
|
+
];
|
|
36950
|
+
if (current) {
|
|
36951
|
+
input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
36952
|
+
buttons.unshift(new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
36953
|
+
name: 'remove',
|
|
36954
|
+
variant: 'default',
|
|
36955
|
+
text: 'Remove'
|
|
36956
|
+
}).onAction(()=>{
|
|
36957
|
+
if (!j.o.readonly) {
|
|
36958
|
+
j.s.restore();
|
|
36959
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove(current);
|
|
36960
|
+
j.synchronizeValues();
|
|
36961
|
+
}
|
|
36962
|
+
close();
|
|
36963
|
+
}));
|
|
36964
|
+
}
|
|
36965
|
+
const form = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIForm(j, [
|
|
36966
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, [
|
|
36967
|
+
input
|
|
36968
|
+
]),
|
|
36969
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, buttons, {
|
|
36970
|
+
align: 'full'
|
|
36971
|
+
})
|
|
36972
|
+
]);
|
|
36973
|
+
if (current) {
|
|
36974
|
+
this.__dropForm();
|
|
36975
|
+
this.__form = form;
|
|
36976
|
+
// The toolbar's popup closes on Escape by itself; the anchor's own doesn't
|
|
36977
|
+
j.e.on(form.container, 'keydown', (e)=>{
|
|
36978
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
36979
|
+
close();
|
|
36980
|
+
j.s.restore();
|
|
36981
|
+
}
|
|
36982
|
+
});
|
|
36983
|
+
}
|
|
36984
|
+
form.onSubmit(()=>{
|
|
36985
|
+
// The editor can turn readonly while the form is open
|
|
36986
|
+
if (j.o.readonly) {
|
|
36987
|
+
close();
|
|
36988
|
+
return false;
|
|
36989
|
+
}
|
|
36990
|
+
const name = input.value.trim().replace(/^#/, '');
|
|
36991
|
+
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' : '';
|
|
36992
|
+
if (error) {
|
|
36993
|
+
input.error = error;
|
|
36994
|
+
input.focus();
|
|
36995
|
+
return false;
|
|
36996
|
+
}
|
|
36997
|
+
j.s.restore();
|
|
36998
|
+
if (current) {
|
|
36999
|
+
this.__rename(current, name);
|
|
37000
|
+
} else {
|
|
37001
|
+
this.__insert(name);
|
|
37002
|
+
}
|
|
37003
|
+
j.synchronizeValues();
|
|
37004
|
+
close();
|
|
37005
|
+
return false;
|
|
37006
|
+
});
|
|
37007
|
+
j.async.requestIdleCallback(()=>input.focus());
|
|
37008
|
+
return form;
|
|
37009
|
+
}
|
|
37010
|
+
__dropForm() {
|
|
37011
|
+
const form = this.__form;
|
|
37012
|
+
this.__form = null;
|
|
37013
|
+
if (form && !form.isInDestruct) {
|
|
37014
|
+
this.j.e.off(form.container, 'keydown');
|
|
37015
|
+
form.destruct();
|
|
37016
|
+
}
|
|
37017
|
+
}
|
|
37018
|
+
/**
|
|
37019
|
+
* Another element in the document has the name as its `id`, or another
|
|
37020
|
+
* anchor as its `name`
|
|
37021
|
+
*/ __isTaken(name, current) {
|
|
37022
|
+
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));
|
|
37023
|
+
}
|
|
37024
|
+
/**
|
|
37025
|
+
* At the caret, or at the start of the selection. An anchor can't go in
|
|
37026
|
+
* a link, so in one it goes just before it
|
|
37027
|
+
*/ __insert(name) {
|
|
37028
|
+
const { j } = this;
|
|
37029
|
+
const anchor = j.createInside.element('a', {
|
|
37030
|
+
id: name
|
|
37031
|
+
});
|
|
37032
|
+
const range = j.s.range;
|
|
37033
|
+
markAnchor(anchor);
|
|
37034
|
+
if (!range.collapsed) {
|
|
37035
|
+
range.collapse(true);
|
|
37036
|
+
j.s.selectRange(range);
|
|
37037
|
+
}
|
|
37038
|
+
const link = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(range.startContainer, 'a', j.editor);
|
|
37039
|
+
if (link) {
|
|
37040
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.before(link, anchor);
|
|
37041
|
+
j.s.setCursorAfter(anchor);
|
|
37042
|
+
} else {
|
|
37043
|
+
j.s.insertNode(anchor, true, false);
|
|
37044
|
+
}
|
|
37045
|
+
}
|
|
37046
|
+
/**
|
|
37047
|
+
* Gives the anchor the new name in whichever of `id` and `name` it has,
|
|
37048
|
+
* and the links to it the new `#name`, unless they still reach
|
|
37049
|
+
* something else by the old one, as they do after a copy is pasted
|
|
37050
|
+
*/ __rename(current, name) {
|
|
37051
|
+
const old = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
37052
|
+
const shared = this.__isTaken(old, current);
|
|
37053
|
+
[
|
|
37054
|
+
'id',
|
|
37055
|
+
'name'
|
|
37056
|
+
].forEach((key)=>{
|
|
37057
|
+
if (current.hasAttribute(key)) {
|
|
37058
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(current, key, name);
|
|
37059
|
+
}
|
|
37060
|
+
});
|
|
37061
|
+
if (shared) {
|
|
37062
|
+
return;
|
|
37063
|
+
}
|
|
37064
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.j.editor.querySelectorAll('a[href]')).forEach((link)=>{
|
|
37065
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') === '#' + old) {
|
|
37066
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + name);
|
|
37067
|
+
}
|
|
37068
|
+
});
|
|
37069
|
+
}
|
|
37070
|
+
/** @override */ beforeDestruct(jodit) {
|
|
37071
|
+
this.__dropForm();
|
|
37072
|
+
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
37073
|
+
}
|
|
37074
|
+
constructor(){
|
|
37075
|
+
super(...arguments);
|
|
37076
|
+
/** @override */ this.buttons = [
|
|
37077
|
+
{
|
|
37078
|
+
name: 'anchor',
|
|
37079
|
+
group: 'insert'
|
|
37080
|
+
}
|
|
37081
|
+
];
|
|
37082
|
+
/**
|
|
37083
|
+
* The form in the anchor's own popup. The popup takes it out without
|
|
37084
|
+
* destructing it when it shows something else, so it goes when the next
|
|
37085
|
+
* one is made
|
|
37086
|
+
*/ this.__form = null;
|
|
37087
|
+
}
|
|
37088
|
+
}
|
|
37089
|
+
__decorate([
|
|
37090
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37091
|
+
], anchor.prototype, "__onClickA", null);
|
|
37092
|
+
__decorate([
|
|
37093
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
37094
|
+
':change',
|
|
37095
|
+
':afterInit',
|
|
37096
|
+
':afterSetMode'
|
|
37097
|
+
]),
|
|
37098
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
37099
|
+
], anchor.prototype, "onChange", null);
|
|
37100
|
+
__decorate([
|
|
37101
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
37102
|
+
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
37103
|
+
__decorate([
|
|
37104
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37105
|
+
], anchor.prototype, "__generateForm", null);
|
|
37106
|
+
function markAnchor(anchor) {
|
|
37107
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable') !== 'false') {
|
|
37108
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable', false);
|
|
37109
|
+
}
|
|
37110
|
+
}
|
|
37111
|
+
/**
|
|
37112
|
+
* Takes `MARK` off each anchor in one pass over the tags, as a regex with
|
|
37113
|
+
* `[^>]*` backtracks quadratically on a long run of `<a` (CWE-1333)
|
|
37114
|
+
*/ function unmarkAnchors(html) {
|
|
37115
|
+
if (!html.includes(MARK)) {
|
|
37116
|
+
return html;
|
|
37117
|
+
}
|
|
37118
|
+
let result = '';
|
|
37119
|
+
let copied = 0;
|
|
37120
|
+
let cursor = 0;
|
|
37121
|
+
for(;;){
|
|
37122
|
+
const start = html.indexOf('<', cursor);
|
|
37123
|
+
if (start === -1) {
|
|
37124
|
+
break;
|
|
37125
|
+
}
|
|
37126
|
+
const end = html.indexOf('>', start);
|
|
37127
|
+
if (end === -1) {
|
|
37128
|
+
break;
|
|
37129
|
+
}
|
|
37130
|
+
if (html.startsWith('<a', start) && /\s/.test(html.charAt(start + 2)) && html.startsWith('</a>', end + 1)) {
|
|
37131
|
+
const tag = html.slice(start, end);
|
|
37132
|
+
const at = tag.indexOf(MARK);
|
|
37133
|
+
if (at !== -1 && !/\shref=/.test(tag)) {
|
|
37134
|
+
result += html.slice(copied, start + at);
|
|
37135
|
+
copied = start + at + MARK.length;
|
|
37136
|
+
}
|
|
37137
|
+
}
|
|
37138
|
+
// Past the whole tag, so an `<a` inside one of its attributes is never read as a tag
|
|
37139
|
+
cursor = end + 1;
|
|
37140
|
+
}
|
|
37141
|
+
return copied === 0 ? html : result + html.slice(copied);
|
|
37142
|
+
}
|
|
37143
|
+
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('anchor', anchor);
|
|
37144
|
+
|
|
37145
|
+
|
|
37146
|
+
/***/ }),
|
|
37147
|
+
|
|
37148
|
+
/***/ 50712:
|
|
37149
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
37150
|
+
|
|
37151
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
37152
|
+
/* harmony import */ var _inline_popup_config_config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24526);
|
|
37153
|
+
/*!
|
|
37154
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37155
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
37156
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
37157
|
+
*/
|
|
37158
|
+
// The anchor's popup goes in its list
|
|
37159
|
+
|
|
37160
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.anchor = {
|
|
37161
|
+
popup: (editor, current, close)=>editor.e.fire('generateAnchorForm.anchor', null, close),
|
|
37162
|
+
tooltip: 'Insert anchor'
|
|
37163
|
+
};
|
|
37164
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.anchor = (editor, target, close)=>editor.e.fire('generateAnchorForm.anchor', target, close);
|
|
37165
|
+
|
|
37166
|
+
|
|
36433
37167
|
/***/ }),
|
|
36434
37168
|
|
|
36435
37169
|
/***/ 93183:
|
|
@@ -40581,6 +41315,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40581
41315
|
}
|
|
40582
41316
|
jodit.s.expandSelection();
|
|
40583
41317
|
const range = jodit.s.range;
|
|
41318
|
+
this.__moveEdgesIntoCells(range);
|
|
40584
41319
|
const caret = this.__clearSelectedCells(range);
|
|
40585
41320
|
if (caret && range.collapsed) {
|
|
40586
41321
|
jodit.s.selectRange(caret);
|
|
@@ -40602,6 +41337,22 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40602
41337
|
jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
|
|
40603
41338
|
return false;
|
|
40604
41339
|
}
|
|
41340
|
+
/**
|
|
41341
|
+
* Firefox selects cells whole from their row, as after a drag into or out
|
|
41342
|
+
* of a table nested in a cell, and `deleteContents` would remove them. The
|
|
41343
|
+
* edges move into the cells, so their content is cleared instead, as in
|
|
41344
|
+
* Firefox's own delete
|
|
41345
|
+
*/ __moveEdgesIntoCells(range) {
|
|
41346
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
41347
|
+
const first = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(startContainer, 'tr') ? startContainer.childNodes[startOffset] : null;
|
|
41348
|
+
const last = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(endContainer, 'tr') ? endContainer.childNodes[endOffset - 1] : null;
|
|
41349
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(first)) {
|
|
41350
|
+
range.setStart(first, 0);
|
|
41351
|
+
}
|
|
41352
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(last)) {
|
|
41353
|
+
range.setEnd(last, last.childNodes.length);
|
|
41354
|
+
}
|
|
41355
|
+
}
|
|
40605
41356
|
/**
|
|
40606
41357
|
* A selection that starts or ends in a table cell clears the selected part
|
|
40607
41358
|
* of each cell it covers and keeps the cells, as the browsers do.
|
|
@@ -42100,7 +42851,8 @@ function brBefore(start) {
|
|
|
42100
42851
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
|
|
42101
42852
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
42102
42853
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
42103
|
-
/* harmony import */ var
|
|
42854
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
42855
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92762);
|
|
42104
42856
|
/*!
|
|
42105
42857
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42106
42858
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42110,6 +42862,7 @@ function brBefore(start) {
|
|
|
42110
42862
|
|
|
42111
42863
|
|
|
42112
42864
|
|
|
42865
|
+
|
|
42113
42866
|
/**
|
|
42114
42867
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
42115
42868
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -42131,16 +42884,16 @@ function brBefore(start) {
|
|
|
42131
42884
|
return true;
|
|
42132
42885
|
}
|
|
42133
42886
|
function insertLinks(data) {
|
|
42134
|
-
|
|
42135
|
-
(
|
|
42136
|
-
const href =
|
|
42887
|
+
const { baseurl } = data;
|
|
42888
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>{
|
|
42889
|
+
const href = baseurl + file;
|
|
42137
42890
|
if (wrapSelectionInLink(this, href)) {
|
|
42138
42891
|
return;
|
|
42139
42892
|
}
|
|
42140
42893
|
const link = this.createInside.element('a', {
|
|
42141
42894
|
href
|
|
42142
42895
|
});
|
|
42143
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
42896
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
42144
42897
|
this.s.insertNode(link);
|
|
42145
42898
|
});
|
|
42146
42899
|
}
|
|
@@ -42168,9 +42921,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
42168
42921
|
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))) {
|
|
42169
42922
|
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);
|
|
42170
42923
|
}
|
|
42171
|
-
return (0,
|
|
42924
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
42172
42925
|
filebrowser: (data)=>{
|
|
42173
|
-
|
|
42926
|
+
;(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
42174
42927
|
close();
|
|
42175
42928
|
},
|
|
42176
42929
|
upload: (data)=>{
|
|
@@ -43741,6 +44494,11 @@ function hr(editor) {
|
|
|
43741
44494
|
return false;
|
|
43742
44495
|
}
|
|
43743
44496
|
const p = editor.createInside.element(editor.o.enter);
|
|
44497
|
+
// As Enter's new line has, so it keeps its height without clean-html's
|
|
44498
|
+
// fillEmptyParagraph (#1807)
|
|
44499
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(p, 'br')) {
|
|
44500
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(p, editor.createInside.element('br'));
|
|
44501
|
+
}
|
|
43744
44502
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.after(elm, p);
|
|
43745
44503
|
editor.s.setCursorIn(p);
|
|
43746
44504
|
return false;
|
|
@@ -44510,10 +45268,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
44510
45268
|
const fresh = this.__freshCaption(wrapper);
|
|
44511
45269
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
44512
45270
|
// The click opened the image's popup below the caption, so it
|
|
44513
|
-
//
|
|
45271
|
+
// moves below the image, as after the popup's Caption button
|
|
44514
45272
|
if (clicked) {
|
|
44515
45273
|
j.e.fire('recalcPositionPopup');
|
|
44516
|
-
j.e.fire('closeAllPopups');
|
|
44517
45274
|
}
|
|
44518
45275
|
}, 1);
|
|
44519
45276
|
}
|
|
@@ -46536,9 +47293,9 @@ UIImagePositionTab = __decorate([
|
|
|
46536
47293
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46537
47294
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
46538
47295
|
/* harmony export */ });
|
|
46539
|
-
/* harmony import */ var
|
|
46540
|
-
/* harmony import */ var
|
|
46541
|
-
/* harmony import */ var
|
|
47296
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5700);
|
|
47297
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56917);
|
|
47298
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2073);
|
|
46542
47299
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34793);
|
|
46543
47300
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
46544
47301
|
try {
|
|
@@ -46575,25 +47332,27 @@ function _async_to_generator(fn) {
|
|
|
46575
47332
|
|
|
46576
47333
|
|
|
46577
47334
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
46578
|
-
const popup = new
|
|
47335
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
46579
47336
|
const closePopup = ()=>{
|
|
46580
47337
|
popup.close();
|
|
46581
47338
|
popup.destruct();
|
|
46582
47339
|
};
|
|
46583
47340
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
46584
47341
|
upload: (data)=>{
|
|
46585
|
-
|
|
46586
|
-
|
|
47342
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data);
|
|
47343
|
+
if (item) {
|
|
47344
|
+
state.values.imageSrc = data.baseurl + item.file;
|
|
46587
47345
|
}
|
|
46588
47346
|
closePopup();
|
|
46589
47347
|
},
|
|
46590
47348
|
filebrowser: (data)=>_async_to_generator(function*() {
|
|
46591
|
-
|
|
46592
|
-
|
|
47349
|
+
const [item] = data ? (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data) : [];
|
|
47350
|
+
if (item) {
|
|
47351
|
+
state.values.imageSrc = item.file;
|
|
46593
47352
|
closePopup();
|
|
46594
47353
|
}
|
|
46595
47354
|
})()
|
|
46596
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
47355
|
+
}, state.image, closePopup)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
46597
47356
|
}
|
|
46598
47357
|
|
|
46599
47358
|
|
|
@@ -46884,8 +47643,9 @@ function _async_to_generator(fn) {
|
|
|
46884
47643
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
46885
47644
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
46886
47645
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
46887
|
-
/* harmony import */ var
|
|
46888
|
-
/* harmony import */ var
|
|
47646
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2073);
|
|
47647
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92762);
|
|
47648
|
+
/* harmony import */ var _image_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25179);
|
|
46889
47649
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
46890
47650
|
try {
|
|
46891
47651
|
var info = gen[key](arg);
|
|
@@ -46924,7 +47684,8 @@ function _async_to_generator(fn) {
|
|
|
46924
47684
|
|
|
46925
47685
|
|
|
46926
47686
|
|
|
46927
|
-
|
|
47687
|
+
|
|
47688
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', _image_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]);
|
|
46928
47689
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
46929
47690
|
popup: (editor, current, close)=>{
|
|
46930
47691
|
let sourceImage = null;
|
|
@@ -46932,10 +47693,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
46932
47693
|
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];
|
|
46933
47694
|
}
|
|
46934
47695
|
editor.s.save();
|
|
46935
|
-
return (0,
|
|
47696
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
46936
47697
|
filebrowser: (data)=>{
|
|
46937
47698
|
editor.s.restore();
|
|
46938
|
-
|
|
47699
|
+
(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));
|
|
46939
47700
|
close();
|
|
46940
47701
|
},
|
|
46941
47702
|
upload: true,
|
|
@@ -47285,6 +48046,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
47285
48046
|
|
|
47286
48047
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
47287
48048
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
48049
|
+
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
47288
48050
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
47289
48051
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
47290
48052
|
'source'
|
|
@@ -47368,8 +48130,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
47368
48130
|
|
|
47369
48131
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
47370
48132
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27613);
|
|
47371
|
-
/* harmony import */ var
|
|
47372
|
-
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41180);
|
|
48133
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41180);
|
|
47373
48134
|
/*!
|
|
47374
48135
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
47375
48136
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -47377,7 +48138,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
47377
48138
|
*/
|
|
47378
48139
|
|
|
47379
48140
|
|
|
47380
|
-
|
|
47381
48141
|
const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
47382
48142
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
47383
48143
|
'brushCell',
|
|
@@ -47393,7 +48153,7 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
47393
48153
|
exec: (editor, table, { control })=>{
|
|
47394
48154
|
const command = cmd(control);
|
|
47395
48155
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
47396
|
-
(0,
|
|
48156
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
47397
48157
|
});
|
|
47398
48158
|
},
|
|
47399
48159
|
tooltip: 'Vertical align'
|
|
@@ -47459,13 +48219,6 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
47459
48219
|
return;
|
|
47460
48220
|
}
|
|
47461
48221
|
editor.execCommand('tableheaderrow', false, table);
|
|
47462
|
-
const [cell] = editor.getInstance('Table', editor.o).getAllSelectedCells();
|
|
47463
|
-
// Beside the cell that replaced the one it opened for
|
|
47464
|
-
if (cell) {
|
|
47465
|
-
editor.e.fire('showPopup', table, ()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_2__.position)(cell, editor), 'cells');
|
|
47466
|
-
}
|
|
47467
|
-
// The popup stays open, so the button shows the new state
|
|
47468
|
-
return true;
|
|
47469
48222
|
},
|
|
47470
48223
|
isActive: (editor, button)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') && editor.getInstance('Table', editor.o).hasHeaderRow(button.target),
|
|
47471
48224
|
isDisabled: (editor, button)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') || !editor.getInstance('Table', editor.o).canToggleHeaderRow(button.target),
|
|
@@ -47657,7 +48410,7 @@ const align = {
|
|
|
47657
48410
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
47658
48411
|
editor.synchronizeValues();
|
|
47659
48412
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
47660
|
-
editor.e.fire('hideResizer');
|
|
48413
|
+
editor.e.fire('hidePopup hideResizer');
|
|
47661
48414
|
editor.s.setCursorIn(caption);
|
|
47662
48415
|
} else {
|
|
47663
48416
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -47905,7 +48658,9 @@ function _object_spread_props(target, source) {
|
|
|
47905
48658
|
* Plugin for show inline popup dialog
|
|
47906
48659
|
*/ class inlinePopup extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
|
|
47907
48660
|
get popup() {
|
|
47908
|
-
|
|
48661
|
+
const popup = new _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.jodit, false);
|
|
48662
|
+
popup.keepOpen = this.j.o.toolbarInlineKeepOpen;
|
|
48663
|
+
return popup;
|
|
47909
48664
|
}
|
|
47910
48665
|
get toolbar() {
|
|
47911
48666
|
return (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__.makeCollection)(this.jodit, this.popup);
|
|
@@ -47918,8 +48673,8 @@ function _object_spread_props(target, source) {
|
|
|
47918
48673
|
const isMedia = type === 'jodit-media';
|
|
47919
48674
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
47920
48675
|
// the line, and below a captioned image's caption, so it stays in view
|
|
47921
|
-
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;
|
|
47922
|
-
this.showPopup(()=>this.__bound(bound, isMedia), type, target);
|
|
48676
|
+
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;
|
|
48677
|
+
this.showPopup(()=>this.__bound(bound(), isMedia), type, target);
|
|
47923
48678
|
return false;
|
|
47924
48679
|
}
|
|
47925
48680
|
}
|
|
@@ -47942,13 +48697,18 @@ function _object_spread_props(target, source) {
|
|
|
47942
48697
|
* Show inline popup with some toolbar
|
|
47943
48698
|
*
|
|
47944
48699
|
* @param type - selection, img, a etc.
|
|
47945
|
-
|
|
48700
|
+
* @param force - make the popup again for the same target
|
|
48701
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
47946
48702
|
type = type.toLowerCase();
|
|
47947
48703
|
if (!this.canShowPopupForType(type)) {
|
|
47948
48704
|
return false;
|
|
47949
48705
|
}
|
|
47950
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
48706
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
47951
48707
|
this.previousTarget = target;
|
|
48708
|
+
// What it showed is taken out, not destructed: an element a
|
|
48709
|
+
// function returns is its own, and may be shown again
|
|
48710
|
+
this.popup.elements.slice().forEach((elm)=>this.popup.remove(elm));
|
|
48711
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(this.popup.getElm('content'));
|
|
47952
48712
|
const data = this.j.o.popup[type];
|
|
47953
48713
|
let content;
|
|
47954
48714
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(data)) {
|
|
@@ -48031,59 +48791,28 @@ function _object_spread_props(target, source) {
|
|
|
48031
48791
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
48032
48792
|
});
|
|
48033
48793
|
}
|
|
48034
|
-
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type)=>{
|
|
48035
|
-
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);
|
|
48794
|
+
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type, force)=>{
|
|
48795
|
+
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);
|
|
48036
48796
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
48037
|
-
if (this.popup.isOpened
|
|
48797
|
+
if (!this.popup.isOpened) {
|
|
48798
|
+
return;
|
|
48799
|
+
}
|
|
48800
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
48038
48801
|
this.hidePopup();
|
|
48039
48802
|
this.previousTarget = undefined;
|
|
48803
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
48804
|
+
this.hidePopup();
|
|
48040
48805
|
}
|
|
48041
48806
|
}).on([
|
|
48042
48807
|
this.j.ew,
|
|
48043
48808
|
this.j.ow
|
|
48044
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
48045
|
-
this.j.ew,
|
|
48046
|
-
this.j.ow
|
|
48047
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).on('closeAllPopups', this.__onCloseAllPopups);
|
|
48809
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
48048
48810
|
this.addListenersForElements();
|
|
48049
48811
|
}
|
|
48050
|
-
|
|
48051
|
-
|
|
48052
|
-
|
|
48053
|
-
|
|
48054
|
-
}
|
|
48055
|
-
__onDocumentMouseDown(e) {
|
|
48056
|
-
this.__reopenFor = null;
|
|
48057
|
-
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)) {
|
|
48058
|
-
this.__reopenSelectionPopup = true;
|
|
48059
|
-
}
|
|
48060
|
-
}
|
|
48061
|
-
__onCloseAllPopups() {
|
|
48062
|
-
const target = this.__reopenFor;
|
|
48063
|
-
if (target) {
|
|
48064
|
-
this.__reopenFor = null;
|
|
48065
|
-
// After the popup's own `closeAllPopups` handler, as below
|
|
48066
|
-
this.j.async.setTimeout(()=>{
|
|
48067
|
-
if (this.j.editor.contains(target)) {
|
|
48068
|
-
this.onClick(target);
|
|
48069
|
-
}
|
|
48070
|
-
}, 1);
|
|
48071
|
-
}
|
|
48072
|
-
if (!this.__reopenSelectionPopup) {
|
|
48073
|
-
return;
|
|
48074
|
-
}
|
|
48075
|
-
this.__reopenSelectionPopup = false;
|
|
48076
|
-
if (!this.j.o.toolbarInlineForSelection) {
|
|
48077
|
-
return;
|
|
48078
|
-
}
|
|
48079
|
-
// a zero timeout would run synchronously — before the popup's own
|
|
48080
|
-
// `closeAllPopups` handler closes it; defer to the next macrotask
|
|
48081
|
-
this.j.async.setTimeout(()=>{
|
|
48082
|
-
const sel = this.j.s.sel;
|
|
48083
|
-
if (sel && !sel.isCollapsed) {
|
|
48084
|
-
this.showPopup(()=>this.__selectionBound(), 'selection');
|
|
48085
|
-
}
|
|
48086
|
-
}, 1);
|
|
48812
|
+
/**
|
|
48813
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
48814
|
+
*/ onRecalcPositionPopup() {
|
|
48815
|
+
this.popup.updatePosition();
|
|
48087
48816
|
}
|
|
48088
48817
|
/**
|
|
48089
48818
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -48129,9 +48858,8 @@ function _object_spread_props(target, source) {
|
|
|
48129
48858
|
return;
|
|
48130
48859
|
}
|
|
48131
48860
|
const type = 'selection';
|
|
48132
|
-
const sel = this.j.s.sel;
|
|
48133
48861
|
const range = this.j.s.range;
|
|
48134
|
-
if ((
|
|
48862
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
48135
48863
|
if (this.type === type && this.popup.isOpened) {
|
|
48136
48864
|
this.hidePopup();
|
|
48137
48865
|
}
|
|
@@ -48143,6 +48871,28 @@ function _object_spread_props(target, source) {
|
|
|
48143
48871
|
}
|
|
48144
48872
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
48145
48873
|
}
|
|
48874
|
+
/**
|
|
48875
|
+
* The selection holds more than a line break. A double click past the end
|
|
48876
|
+
* of a line, or a drag from there into the next, selects only the break,
|
|
48877
|
+
* with any rule, video or empty line it crosses: it starts at the end of a
|
|
48878
|
+
* line, after everything in it, and holds no text that shows
|
|
48879
|
+
*/ __hasSelectedContent() {
|
|
48880
|
+
const { sel, range } = this.j.s;
|
|
48881
|
+
if (!sel || sel.isCollapsed) {
|
|
48882
|
+
return false;
|
|
48883
|
+
}
|
|
48884
|
+
// HTML collapses ASCII white space, but not
|
|
48885
|
+
const showsText = (r)=>/[^\t\n\f\r \uFEFF\u200B]/.test(r.toString());
|
|
48886
|
+
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);
|
|
48887
|
+
if (!line || line === this.j.editor || showsText(range)) {
|
|
48888
|
+
return true;
|
|
48889
|
+
}
|
|
48890
|
+
// The rest of the line after the selection's start
|
|
48891
|
+
const rest = this.j.s.createRange();
|
|
48892
|
+
rest.setStart(range.startContainer, range.startOffset);
|
|
48893
|
+
rest.setEnd(line, line.childNodes.length);
|
|
48894
|
+
return showsText(rest) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(line.querySelectorAll(':not(br):empty')).some((elm)=>rest.intersectsNode(elm));
|
|
48895
|
+
}
|
|
48146
48896
|
/**
|
|
48147
48897
|
* In not collapsed selection - only one image
|
|
48148
48898
|
*/ isSelectedTarget(r) {
|
|
@@ -48158,10 +48908,7 @@ function _object_spread_props(target, source) {
|
|
|
48158
48908
|
jodit.e.off('showPopup').off([
|
|
48159
48909
|
this.j.ew,
|
|
48160
48910
|
this.j.ow
|
|
48161
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
48162
|
-
this.j.ew,
|
|
48163
|
-
this.j.ow
|
|
48164
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).off('closeAllPopups', this.__onCloseAllPopups);
|
|
48911
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
48165
48912
|
this.removeListenersForElements();
|
|
48166
48913
|
}
|
|
48167
48914
|
_eventsList() {
|
|
@@ -48193,16 +48940,6 @@ function _object_spread_props(target, source) {
|
|
|
48193
48940
|
constructor(){
|
|
48194
48941
|
super(...arguments);
|
|
48195
48942
|
this.type = null;
|
|
48196
|
-
/**
|
|
48197
|
-
* The user pressed a button inside the selection toolbar — after the
|
|
48198
|
-
* command fires `closeAllPopups`, the toolbar should be shown again
|
|
48199
|
-
* while the selection is still there. See #1238
|
|
48200
|
-
*/ this.__reopenSelectionPopup = false;
|
|
48201
|
-
/**
|
|
48202
|
-
* The alignment controls fire `recalcPositionPopup` once they have moved
|
|
48203
|
-
* the element, and their button then fires `closeAllPopups`. The popup
|
|
48204
|
-
* opens again beside the element, as the selection toolbar does
|
|
48205
|
-
*/ this.__reopenFor = null;
|
|
48206
48943
|
this.snapRange = null;
|
|
48207
48944
|
this.__keyDownElement = null;
|
|
48208
48945
|
this.elmsList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.keys)(this.j.o.popup, false).filter((s)=>!this.isExcludedTarget(s));
|
|
@@ -48240,12 +48977,6 @@ __decorate([
|
|
|
48240
48977
|
__decorate([
|
|
48241
48978
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.watch)(':recalcPositionPopup')
|
|
48242
48979
|
], inlinePopup.prototype, "onRecalcPositionPopup", null);
|
|
48243
|
-
__decorate([
|
|
48244
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48245
|
-
], inlinePopup.prototype, "__onDocumentMouseDown", null);
|
|
48246
|
-
__decorate([
|
|
48247
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48248
|
-
], inlinePopup.prototype, "__onCloseAllPopups", null);
|
|
48249
48980
|
__decorate([
|
|
48250
48981
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48251
48982
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -49272,8 +50003,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49272
50003
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
49273
50004
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
49274
50005
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
49275
|
-
/* harmony import */ var
|
|
49276
|
-
/* harmony import */ var
|
|
50006
|
+
/* harmony import */ var _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48538);
|
|
50007
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12153);
|
|
50008
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56917);
|
|
50009
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5827);
|
|
50010
|
+
/* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58970);
|
|
49277
50011
|
/*!
|
|
49278
50012
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
49279
50013
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -49292,6 +50026,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49292
50026
|
|
|
49293
50027
|
|
|
49294
50028
|
|
|
50029
|
+
|
|
50030
|
+
|
|
50031
|
+
|
|
49295
50032
|
/**
|
|
49296
50033
|
* Process link. Insert, dblclick or remove format
|
|
49297
50034
|
*/ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
@@ -49436,6 +50173,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49436
50173
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
49437
50174
|
}
|
|
49438
50175
|
}
|
|
50176
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
49439
50177
|
jodit.editor.normalize();
|
|
49440
50178
|
const snapshot = jodit.history.snapshot.make();
|
|
49441
50179
|
if (unlink) {
|
|
@@ -49598,7 +50336,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49598
50336
|
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)) {
|
|
49599
50337
|
return;
|
|
49600
50338
|
}
|
|
49601
|
-
const found = (0,
|
|
50339
|
+
const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
49602
50340
|
if (!found) {
|
|
49603
50341
|
return;
|
|
49604
50342
|
}
|
|
@@ -49693,6 +50431,142 @@ const MODIFIER_KEYS = new Set([
|
|
|
49693
50431
|
'CapsLock'
|
|
49694
50432
|
]);
|
|
49695
50433
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
50434
|
+
/**
|
|
50435
|
+
* A dropdown arrow in the URL field that lists the document's anchors by the
|
|
50436
|
+
* words after them, and fills in the one picked. The list opens in a popup of
|
|
50437
|
+
* its own, from the arrow or the down arrow key, and closes once an address is
|
|
50438
|
+
* typed
|
|
50439
|
+
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
50440
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(jodit.editor);
|
|
50441
|
+
const field = url === null || url === void 0 ? void 0 : url.closest('.jodit-ui-input__wrapper');
|
|
50442
|
+
const input = field && _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(field, _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement);
|
|
50443
|
+
if (!field || !input || !anchors.length) {
|
|
50444
|
+
return;
|
|
50445
|
+
}
|
|
50446
|
+
const { c } = jodit;
|
|
50447
|
+
const label = jodit.i18n('Link to an anchor');
|
|
50448
|
+
const toggle = c.element('button', {
|
|
50449
|
+
type: 'button',
|
|
50450
|
+
class: 'jodit-link-anchors__toggle',
|
|
50451
|
+
title: label,
|
|
50452
|
+
'aria-label': label
|
|
50453
|
+
});
|
|
50454
|
+
const heading = c.div('jodit-link-anchors__heading', {
|
|
50455
|
+
id: 'jodit-link-anchors-' + (0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.uniqueUid)()
|
|
50456
|
+
});
|
|
50457
|
+
const list = c.div('jodit-link-anchors', {
|
|
50458
|
+
role: 'group',
|
|
50459
|
+
'aria-labelledby': heading.id
|
|
50460
|
+
});
|
|
50461
|
+
const icon = (name)=>{
|
|
50462
|
+
var _a;
|
|
50463
|
+
return (_a = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__.Icon.makeIcon(jodit, {
|
|
50464
|
+
name,
|
|
50465
|
+
iconURL: '',
|
|
50466
|
+
fill: '',
|
|
50467
|
+
scale: undefined
|
|
50468
|
+
})) !== null && _a !== void 0 ? _a : c.span();
|
|
50469
|
+
};
|
|
50470
|
+
const dropdown = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__.Popup(jodit).setMod('padding', false);
|
|
50471
|
+
const items = [];
|
|
50472
|
+
let filled = '';
|
|
50473
|
+
const open = ()=>{
|
|
50474
|
+
var _a;
|
|
50475
|
+
if (dropdown.isOpened) {
|
|
50476
|
+
return;
|
|
50477
|
+
}
|
|
50478
|
+
// Clicks in the list then count as the form's, which stays open
|
|
50479
|
+
dropdown.parentElement || (dropdown.parentElement = input);
|
|
50480
|
+
list.style.minWidth = field.offsetWidth + 'px';
|
|
50481
|
+
dropdown.open(()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(field));
|
|
50482
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', true);
|
|
50483
|
+
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])));
|
|
50484
|
+
(_a = list.querySelector('[aria-current=true]')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
50485
|
+
block: 'nearest'
|
|
50486
|
+
});
|
|
50487
|
+
};
|
|
50488
|
+
toggle.append(icon('chevron'));
|
|
50489
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', false);
|
|
50490
|
+
heading.textContent = jodit.i18n('On this page');
|
|
50491
|
+
list.appendChild(heading);
|
|
50492
|
+
dropdown.setContent(list);
|
|
50493
|
+
anchors.forEach((anchor)=>{
|
|
50494
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
50495
|
+
const text = textAfter(jodit, anchor) || name;
|
|
50496
|
+
const item = c.element('button', {
|
|
50497
|
+
type: 'button',
|
|
50498
|
+
tabindex: -1,
|
|
50499
|
+
class: 'jodit-link-anchors__item'
|
|
50500
|
+
});
|
|
50501
|
+
items.push(item);
|
|
50502
|
+
const textBox = c.span('jodit-link-anchors__text');
|
|
50503
|
+
textBox.textContent = text;
|
|
50504
|
+
const nameBox = c.span('jodit-link-anchors__name');
|
|
50505
|
+
nameBox.textContent = '#' + name;
|
|
50506
|
+
item.append(icon('anchor'), textBox, nameBox);
|
|
50507
|
+
list.appendChild(item);
|
|
50508
|
+
jodit.e.on(item, 'click', ()=>{
|
|
50509
|
+
dropdown.close();
|
|
50510
|
+
url.value = '#' + name;
|
|
50511
|
+
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
50512
|
+
content.value = filled = text;
|
|
50513
|
+
}
|
|
50514
|
+
url.focus();
|
|
50515
|
+
});
|
|
50516
|
+
});
|
|
50517
|
+
// A press on the arrow closes the open list before the click
|
|
50518
|
+
let wasOpen = false;
|
|
50519
|
+
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', ()=>{
|
|
50520
|
+
wasOpen || dropdown.isOpened ? dropdown.close() : open();
|
|
50521
|
+
wasOpen = false;
|
|
50522
|
+
}).on(url, 'input.anchors', ()=>{
|
|
50523
|
+
if (url.value && !url.value.startsWith('#')) {
|
|
50524
|
+
dropdown.close();
|
|
50525
|
+
}
|
|
50526
|
+
}).on(url, 'keydown.anchors', (e)=>{
|
|
50527
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN) {
|
|
50528
|
+
e.preventDefault();
|
|
50529
|
+
open();
|
|
50530
|
+
items[0].focus();
|
|
50531
|
+
}
|
|
50532
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC && dropdown.isOpened) {
|
|
50533
|
+
e.stopPropagation();
|
|
50534
|
+
dropdown.close();
|
|
50535
|
+
}
|
|
50536
|
+
}).on(list, 'keydown', (e)=>{
|
|
50537
|
+
var _a;
|
|
50538
|
+
const index = items.indexOf(e.target);
|
|
50539
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
|
|
50540
|
+
e.preventDefault();
|
|
50541
|
+
(_a = items[index + (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN ? 1 : -1)]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
50542
|
+
}
|
|
50543
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
50544
|
+
e.stopPropagation();
|
|
50545
|
+
dropdown.close();
|
|
50546
|
+
url.focus();
|
|
50547
|
+
}
|
|
50548
|
+
});
|
|
50549
|
+
// The URL input is destructed when the form closes
|
|
50550
|
+
input.hookStatus('destructed', ()=>{
|
|
50551
|
+
dropdown.destruct();
|
|
50552
|
+
jodit.e.off([
|
|
50553
|
+
toggle,
|
|
50554
|
+
list,
|
|
50555
|
+
...items
|
|
50556
|
+
]).off(url, '.anchors');
|
|
50557
|
+
});
|
|
50558
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.after(url, toggle);
|
|
50559
|
+
}
|
|
50560
|
+
/**
|
|
50561
|
+
* The words after an anchor in its block, which say where it is
|
|
50562
|
+
*/ function textAfter(jodit, anchor) {
|
|
50563
|
+
var _a;
|
|
50564
|
+
const range = jodit.ed.createRange();
|
|
50565
|
+
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);
|
|
50566
|
+
range.setStartAfter(anchor);
|
|
50567
|
+
const text = range.toString().replace(/\s+/g, ' ').trim();
|
|
50568
|
+
return text.length > 50 ? text.slice(0, 50).replace(/\s+\S*$/, '') + '…' : text;
|
|
50569
|
+
}
|
|
49696
50570
|
/**
|
|
49697
50571
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
49698
50572
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -49707,7 +50581,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
|
49707
50581
|
return value;
|
|
49708
50582
|
}
|
|
49709
50583
|
// email address -> mailto:
|
|
49710
|
-
if (
|
|
50584
|
+
if (_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.EMAIL.test(value)) {
|
|
49711
50585
|
return `mailto:${value}`;
|
|
49712
50586
|
}
|
|
49713
50587
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -50097,11 +50971,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
|
|
|
50097
50971
|
});
|
|
50098
50972
|
(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'));
|
|
50099
50973
|
// The wrapper fits the media, whose size changes as its metadata loads
|
|
50100
|
-
// and as it's resized.
|
|
50974
|
+
// and as it's resized. It's inline, as the media is by default, so the
|
|
50975
|
+
// line's text-align still places it, or a block when the media is one.
|
|
50976
|
+
// A percentage width is of the line, so the wrapper is a block that
|
|
50977
|
+
// takes the line, and the media in it follows the text-align it inherits
|
|
50101
50978
|
const fit = ()=>{
|
|
50979
|
+
const ofLine = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(media, 'width').endsWith('%');
|
|
50102
50980
|
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(wrapper, {
|
|
50103
|
-
display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.
|
|
50104
|
-
width:
|
|
50981
|
+
display: !ofLine && /^inline/.test((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(media, 'display').toString()) ? 'inline-block' : 'block',
|
|
50982
|
+
width: ofLine ? '' : 'fit-content',
|
|
50105
50983
|
height: ''
|
|
50106
50984
|
});
|
|
50107
50985
|
};
|
|
@@ -53136,8 +54014,11 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
53136
54014
|
// is nothing measurable at all, let the wrapper size itself.
|
|
53137
54015
|
const width = element.offsetWidth || attrPixelSize(element, 'width');
|
|
53138
54016
|
const height = element.offsetHeight || attrPixelSize(element, 'height');
|
|
54017
|
+
// The wrapper takes the iframe's place in its line: inline, as an
|
|
54018
|
+
// iframe is by default, so the line's text-align still places it,
|
|
54019
|
+
// or a block when the iframe is one
|
|
53139
54020
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, {
|
|
53140
|
-
display: (0,
|
|
54021
|
+
display: /^inline/.test((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(element, 'display').toString()) ? 'inline-block' : 'block'
|
|
53141
54022
|
});
|
|
53142
54023
|
if (width) {
|
|
53143
54024
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, 'width', width);
|
|
@@ -54337,8 +55218,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
54337
55218
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
54338
55219
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
54339
55220
|
/* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(45124);
|
|
54340
|
-
/* harmony import */ var
|
|
54341
|
-
/* harmony import */ var
|
|
55221
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
|
|
55222
|
+
/* harmony import */ var _modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76014);
|
|
55223
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55311);
|
|
54342
55224
|
/*!
|
|
54343
55225
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
54344
55226
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -54358,12 +55240,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
54358
55240
|
|
|
54359
55241
|
|
|
54360
55242
|
|
|
55243
|
+
|
|
54361
55244
|
const key = 'table_processor_observer';
|
|
54362
55245
|
class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
54363
55246
|
/**
|
|
54364
55247
|
* Shortcut for Jodit.modules.Table
|
|
54365
55248
|
*/ get __tableModule() {
|
|
54366
|
-
return this.j.getInstance(
|
|
55249
|
+
return this.j.getInstance(_modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__.Table, this.j.o);
|
|
54367
55250
|
}
|
|
54368
55251
|
afterInit(jodit) {
|
|
54369
55252
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -54451,7 +55334,28 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54451
55334
|
// As after a click, the first change to the cell keeps the mark
|
|
54452
55335
|
this.__selectedCell = cell;
|
|
54453
55336
|
this.__tableModule.addSelection(cell);
|
|
54454
|
-
this.j.e.fire('showPopup', table,
|
|
55337
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
55338
|
+
}
|
|
55339
|
+
/**
|
|
55340
|
+
* The box round the marked cells, which their popup opens beside and
|
|
55341
|
+
* follows when its commands add, merge or replace cells
|
|
55342
|
+
*/ __markedBound() {
|
|
55343
|
+
const bounds = this.__tableModule.getAllSelectedCells().filter((cell)=>cell.isConnected).map((cell)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(cell, this.j));
|
|
55344
|
+
if (!bounds.length) {
|
|
55345
|
+
return {
|
|
55346
|
+
left: 0,
|
|
55347
|
+
top: 0,
|
|
55348
|
+
width: 0,
|
|
55349
|
+
height: 0
|
|
55350
|
+
};
|
|
55351
|
+
}
|
|
55352
|
+
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));
|
|
55353
|
+
return {
|
|
55354
|
+
left,
|
|
55355
|
+
top,
|
|
55356
|
+
width: right - left,
|
|
55357
|
+
height: bottom - top
|
|
55358
|
+
};
|
|
54455
55359
|
}
|
|
54456
55360
|
/**
|
|
54457
55361
|
* Mouse click inside the table
|
|
@@ -54476,7 +55380,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54476
55380
|
this.__selectedCell = cell;
|
|
54477
55381
|
(_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
54478
55382
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
54479
|
-
this.j.e.fire('showPopup', table,
|
|
55383
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
54480
55384
|
} else {
|
|
54481
55385
|
this.j.e.fire('hidePopup', 'cells');
|
|
54482
55386
|
}
|
|
@@ -54524,28 +55428,25 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54524
55428
|
return false;
|
|
54525
55429
|
}
|
|
54526
55430
|
}
|
|
55431
|
+
onPress(e) {
|
|
55432
|
+
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));
|
|
55433
|
+
}
|
|
54527
55434
|
onChange() {
|
|
54528
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
55435
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
54529
55436
|
this.__onRemoveSelection();
|
|
54530
55437
|
}
|
|
54531
55438
|
}
|
|
54532
55439
|
/**
|
|
54533
55440
|
* Mouse move inside the table
|
|
54534
55441
|
*/ __onMove(table, e) {
|
|
54535
|
-
var _a
|
|
55442
|
+
var _a;
|
|
54536
55443
|
if (this.j.o.readonly && !this.j.isLocked) {
|
|
54537
55444
|
return;
|
|
54538
55445
|
}
|
|
54539
55446
|
if (this.j.isLockedNotBy(key)) {
|
|
54540
55447
|
return;
|
|
54541
55448
|
}
|
|
54542
|
-
|
|
54543
|
-
// host, so the lookup must start from the shadow root
|
|
54544
|
-
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
54545
|
-
const cell = node && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
|
|
54546
|
-
'td',
|
|
54547
|
-
'th'
|
|
54548
|
-
], table);
|
|
55449
|
+
const cell = this.__cellUnder(e, table);
|
|
54549
55450
|
if (!cell || !this.__selectedCell) {
|
|
54550
55451
|
return;
|
|
54551
55452
|
}
|
|
@@ -54571,7 +55472,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54571
55472
|
}
|
|
54572
55473
|
const cellsCount = this.__tableModule.getAllSelectedCells().length;
|
|
54573
55474
|
if (cellsCount > 1) {
|
|
54574
|
-
(
|
|
55475
|
+
(_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
54575
55476
|
}
|
|
54576
55477
|
this.j.e.fire('hidePopup');
|
|
54577
55478
|
e.stopPropagation();
|
|
@@ -54589,32 +55490,26 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54589
55490
|
this.__isSelectionMode = false;
|
|
54590
55491
|
this.__selectedCell = null;
|
|
54591
55492
|
}
|
|
55493
|
+
// The cell of this table under the pointer; over a table nested in a cell, the mouse is still in that cell
|
|
55494
|
+
__cellUnder(e, table) {
|
|
55495
|
+
var _a;
|
|
55496
|
+
// Inside Shadow DOM `document.elementFromPoint` returns the shadow
|
|
55497
|
+
// host, so the lookup must start from the shadow root
|
|
55498
|
+
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
55499
|
+
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);
|
|
55500
|
+
}
|
|
54592
55501
|
/**
|
|
54593
55502
|
* Stop a selection process
|
|
54594
55503
|
*/ __onStopSelection(table, e) {
|
|
54595
|
-
var _a;
|
|
54596
55504
|
if (!this.__selectedCell) {
|
|
54597
55505
|
return;
|
|
54598
55506
|
}
|
|
54599
55507
|
this.__isSelectionMode = false;
|
|
54600
55508
|
this.j.unlock();
|
|
54601
|
-
|
|
54602
|
-
// host, so the lookup must start from the shadow root
|
|
54603
|
-
const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
|
|
54604
|
-
if (!node) {
|
|
54605
|
-
return;
|
|
54606
|
-
}
|
|
54607
|
-
const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
|
|
54608
|
-
'td',
|
|
54609
|
-
'th'
|
|
54610
|
-
], table);
|
|
55509
|
+
const cell = this.__cellUnder(e, table);
|
|
54611
55510
|
if (!cell) {
|
|
54612
55511
|
return;
|
|
54613
55512
|
}
|
|
54614
|
-
const ownTable = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(cell, 'table', table);
|
|
54615
|
-
if (ownTable && ownTable !== table) {
|
|
54616
|
-
return; // Nested tables
|
|
54617
|
-
}
|
|
54618
55513
|
this.__showCellsPopup(table, [
|
|
54619
55514
|
cell,
|
|
54620
55515
|
this.__selectedCell
|
|
@@ -54652,15 +55547,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54652
55547
|
if (!min || !max) {
|
|
54653
55548
|
return;
|
|
54654
55549
|
}
|
|
54655
|
-
this.j.e.fire('showPopup', table,
|
|
54656
|
-
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);
|
|
54657
|
-
return {
|
|
54658
|
-
left: minOffset.left,
|
|
54659
|
-
top: minOffset.top,
|
|
54660
|
-
width: maxOffset.left - minOffset.left + maxOffset.width,
|
|
54661
|
-
height: maxOffset.top - minOffset.top + maxOffset.height
|
|
54662
|
-
};
|
|
54663
|
-
}, 'cells');
|
|
55550
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
54664
55551
|
}
|
|
54665
55552
|
__stopListening() {
|
|
54666
55553
|
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -54773,6 +55660,11 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54773
55660
|
this.__toggleHeaderRow(table, cells);
|
|
54774
55661
|
break;
|
|
54775
55662
|
}
|
|
55663
|
+
// A split unmarks the cells. They stay marked, as after the
|
|
55664
|
+
// other commands, so their popup stays beside them
|
|
55665
|
+
if (/^split/.test(command)) {
|
|
55666
|
+
cells.forEach((cell)=>this.__tableModule.addSelection(cell));
|
|
55667
|
+
}
|
|
54776
55668
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
54777
55669
|
this.__removeTable(table);
|
|
54778
55670
|
}
|
|
@@ -54784,7 +55676,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54784
55676
|
* Turns the table's header row on or off. The caret and the marked cells
|
|
54785
55677
|
* move to the cells that replace them
|
|
54786
55678
|
*/ __toggleHeaderRow(table, cells) {
|
|
54787
|
-
var _a, _b;
|
|
54788
55679
|
const module = this.__tableModule;
|
|
54789
55680
|
this.j.s.save();
|
|
54790
55681
|
const replaced = module.toggleHeaderRow(table);
|
|
@@ -54796,10 +55687,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54796
55687
|
module.addSelection(next);
|
|
54797
55688
|
}
|
|
54798
55689
|
});
|
|
54799
|
-
// As after the click that marked it, the command's own change keeps
|
|
54800
|
-
// the marks, so the popup can stay open for another toggle
|
|
54801
|
-
const anchor = (_a = this.__selectedCell) !== null && _a !== void 0 ? _a : cells[0];
|
|
54802
|
-
this.__selectedCell = (_b = replaced.get(anchor)) !== null && _b !== void 0 ? _b : anchor;
|
|
54803
55690
|
}
|
|
54804
55691
|
/**
|
|
54805
55692
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -54866,6 +55753,10 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54866
55753
|
* A drag let go outside the table ends in a click on the editor, which
|
|
54867
55754
|
* would unmark its cells
|
|
54868
55755
|
*/ this.__keepMarks = false;
|
|
55756
|
+
/**
|
|
55757
|
+
* The last press or key went to a popup, as to the cell popup's own
|
|
55758
|
+
* controls, whose changes keep the cells marked
|
|
55759
|
+
*/ this.__inPopup = false;
|
|
54869
55760
|
}
|
|
54870
55761
|
}
|
|
54871
55762
|
selectCells.requires = [
|
|
@@ -54877,6 +55768,9 @@ __decorate([
|
|
|
54877
55768
|
__decorate([
|
|
54878
55769
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':keyup')
|
|
54879
55770
|
], selectCells.prototype, "onKeyUp", null);
|
|
55771
|
+
__decorate([
|
|
55772
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
55773
|
+
], selectCells.prototype, "__markedBound", null);
|
|
54880
55774
|
__decorate([
|
|
54881
55775
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54882
55776
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -54892,6 +55786,16 @@ __decorate([
|
|
|
54892
55786
|
__decorate([
|
|
54893
55787
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54894
55788
|
], selectCells.prototype, "__onClickAfterDrag", null);
|
|
55789
|
+
__decorate([
|
|
55790
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
55791
|
+
'ow:mousedown',
|
|
55792
|
+
'ow:touchstart',
|
|
55793
|
+
'ow:keydown',
|
|
55794
|
+
':mousedown',
|
|
55795
|
+
':touchstart',
|
|
55796
|
+
':keydown'
|
|
55797
|
+
])
|
|
55798
|
+
], selectCells.prototype, "onPress", null);
|
|
54895
55799
|
__decorate([
|
|
54896
55800
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
54897
55801
|
], selectCells.prototype, "onChange", null);
|
|
@@ -54941,9 +55845,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
54941
55845
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
54942
55846
|
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
|
|
54943
55847
|
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
|
|
54944
|
-
/* harmony import */ var
|
|
54945
|
-
/* harmony import */ var
|
|
54946
|
-
/* harmony import */ var
|
|
55848
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49055);
|
|
55849
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
55850
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50911);
|
|
55851
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67510);
|
|
55852
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67215);
|
|
54947
55853
|
/*!
|
|
54948
55854
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
54949
55855
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -54963,6 +55869,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
54963
55869
|
|
|
54964
55870
|
|
|
54965
55871
|
|
|
55872
|
+
|
|
55873
|
+
|
|
55874
|
+
const MEDIA = 'video, iframe, audio, object, embed';
|
|
55875
|
+
// The shade the browsers lay over a selected image: #b5d6fd on white
|
|
55876
|
+
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")`;
|
|
54966
55877
|
/**
|
|
54967
55878
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
54968
55879
|
*
|
|
@@ -54973,7 +55884,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
54973
55884
|
* console.log(img.src);
|
|
54974
55885
|
* })
|
|
54975
55886
|
* ```
|
|
54976
|
-
*/ class select extends
|
|
55887
|
+
*/ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__.Plugin {
|
|
54977
55888
|
afterInit(jodit) {
|
|
54978
55889
|
this.proxyEventsList.forEach((eventName)=>{
|
|
54979
55890
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -54981,6 +55892,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
54981
55892
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
54982
55893
|
top: true
|
|
54983
55894
|
});
|
|
55895
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
54984
55896
|
}
|
|
54985
55897
|
beforeDestruct(jodit) {
|
|
54986
55898
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -54988,6 +55900,39 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
54988
55900
|
});
|
|
54989
55901
|
this.__endPressBesideRow();
|
|
54990
55902
|
jodit.e.off('dblclick', this.__onDblClickBesideRow);
|
|
55903
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
55904
|
+
}
|
|
55905
|
+
/**
|
|
55906
|
+
* The browsers shade an image in the selection, but Chrome doesn't shade
|
|
55907
|
+
* a video with controls, or one in a `jodit-media` wrapper, so a selection
|
|
55908
|
+
* that took one in didn't show it, and typing deleted it unseen (#1768).
|
|
55909
|
+
* The media gets the same shade from a filter, in place of the tint Safari
|
|
55910
|
+
* gives a block wrapper's whole line. It's a style in the editing
|
|
55911
|
+
* document, as selected cells get their border, so the content, and with
|
|
55912
|
+
* it the value, the history and a copy, doesn't change. Media a click
|
|
55913
|
+
* selected whole is left alone, as its resize frame shows it (#1528). A
|
|
55914
|
+
* change, read-only and the source mode redo or drop the style, as the
|
|
55915
|
+
* selection may not change with them, and the style's paths could then
|
|
55916
|
+
* fit other elements
|
|
55917
|
+
*/ __markSelectedMedia() {
|
|
55918
|
+
var _a;
|
|
55919
|
+
const { s, editor, o } = this.j;
|
|
55920
|
+
const range = ((_a = s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount) ? s.sel.getRangeAt(0) : null;
|
|
55921
|
+
const rules = [];
|
|
55922
|
+
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)) {
|
|
55923
|
+
uneditableIn(range, editor).forEach((elm)=>{
|
|
55924
|
+
const media = elm.querySelector(MEDIA);
|
|
55925
|
+
const wrapper = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(elm);
|
|
55926
|
+
if (media && wrapper) {
|
|
55927
|
+
rules.push(`${wrapper}::selection,${wrapper} ::selection{background:transparent}`, `${(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(media)}{filter:${SHADE}}`);
|
|
55928
|
+
}
|
|
55929
|
+
});
|
|
55930
|
+
}
|
|
55931
|
+
const style = rules.join('');
|
|
55932
|
+
if (style !== this.__selectedMediaStyle) {
|
|
55933
|
+
this.__selectedMediaStyle = style;
|
|
55934
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.j, select, 'style', true).textContent = style;
|
|
55935
|
+
}
|
|
54991
55936
|
}
|
|
54992
55937
|
onStartSelection(e) {
|
|
54993
55938
|
const { j } = this;
|
|
@@ -55013,10 +55958,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55013
55958
|
}
|
|
55014
55959
|
// Selecting the text of a popup input with the mouse and releasing
|
|
55015
55960
|
// the button past the popup's edge is not a click outside of it.
|
|
55016
|
-
if (pressed &&
|
|
55961
|
+
if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup)) {
|
|
55017
55962
|
return;
|
|
55018
55963
|
}
|
|
55019
|
-
|
|
55964
|
+
// An item of a list that closed once it was chosen was in a popup
|
|
55965
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isNode(node) && !node.isConnected) {
|
|
55966
|
+
return;
|
|
55967
|
+
}
|
|
55968
|
+
const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup);
|
|
55020
55969
|
if (!box) {
|
|
55021
55970
|
this.j.e.fire('outsideClick', e);
|
|
55022
55971
|
}
|
|
@@ -55224,6 +56173,79 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55224
56173
|
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);
|
|
55225
56174
|
}
|
|
55226
56175
|
}
|
|
56176
|
+
/**
|
|
56177
|
+
* A double click past the end of a line selects only its line break, up
|
|
56178
|
+
* to the start of the next line a caret can go on. The browsers show no
|
|
56179
|
+
* caret for it, and typing replaces the break, joining the lines and
|
|
56180
|
+
* taking any video in between with it (#1768). Put the caret at the end
|
|
56181
|
+
* of the line instead
|
|
56182
|
+
*/ onDblClickPastLineEnd() {
|
|
56183
|
+
const { s, editor, o } = this.j;
|
|
56184
|
+
const range = s.range;
|
|
56185
|
+
if (o.readonly || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(editor, range.commonAncestorContainer) || !isLineBreak(range, editor)) {
|
|
56186
|
+
return;
|
|
56187
|
+
}
|
|
56188
|
+
range.collapse(true);
|
|
56189
|
+
s.selectRange(range);
|
|
56190
|
+
}
|
|
56191
|
+
/**
|
|
56192
|
+
* The browsers have no caret position beside an uneditable block alone
|
|
56193
|
+
* on its line, such as a video, so a drag that ends on its line runs on
|
|
56194
|
+
* past it, and typing deletes it (#1768). Until the pointer has passed
|
|
56195
|
+
* the block, the selection stops at the last caret place in the block
|
|
56196
|
+
* before its line, or for a drag upwards at the first in the block after
|
|
56197
|
+
*/ onMouseUpOnUneditableLine(e) {
|
|
56198
|
+
var _a, _b;
|
|
56199
|
+
const { s, editor, o } = this.j;
|
|
56200
|
+
const { sel } = s;
|
|
56201
|
+
if (o.readonly || !(sel === null || sel === void 0 ? void 0 : sel.rangeCount) || sel.isCollapsed) {
|
|
56202
|
+
return;
|
|
56203
|
+
}
|
|
56204
|
+
const range = sel.getRangeAt(0).cloneRange();
|
|
56205
|
+
// A video or image Jodit selected itself on the press
|
|
56206
|
+
if (isElementSelection(range)) {
|
|
56207
|
+
return;
|
|
56208
|
+
}
|
|
56209
|
+
const forward = sel.anchorNode === range.startContainer && sel.anchorOffset === range.startOffset;
|
|
56210
|
+
const lines = uneditableIn(range, editor).map((elm)=>{
|
|
56211
|
+
var _a;
|
|
56212
|
+
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;
|
|
56213
|
+
}).filter((line)=>!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__.trim)(ownText(line)));
|
|
56214
|
+
const isAhead = (line)=>{
|
|
56215
|
+
const box = line.getBoundingClientRect();
|
|
56216
|
+
return forward ? e.clientY < box.bottom : e.clientY > box.top;
|
|
56217
|
+
};
|
|
56218
|
+
const line = forward ? lines.find(isAhead) : lines.reverse().find(isAhead);
|
|
56219
|
+
if (!line) {
|
|
56220
|
+
return;
|
|
56221
|
+
}
|
|
56222
|
+
// Where a caret can go: in text, or before a <br>
|
|
56223
|
+
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');
|
|
56224
|
+
// Only the block beside the line, not one further on
|
|
56225
|
+
const beside = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.findNotEmptySibling(line, forward);
|
|
56226
|
+
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;
|
|
56227
|
+
if (!place) {
|
|
56228
|
+
return;
|
|
56229
|
+
}
|
|
56230
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(place)) {
|
|
56231
|
+
if (forward) {
|
|
56232
|
+
range.setEnd(place, (_b = (_a = place.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
56233
|
+
} else {
|
|
56234
|
+
range.setStart(place, 0);
|
|
56235
|
+
}
|
|
56236
|
+
} else if (forward) {
|
|
56237
|
+
range.setEndBefore(place);
|
|
56238
|
+
} else {
|
|
56239
|
+
range.setStartBefore(place);
|
|
56240
|
+
}
|
|
56241
|
+
// The drag's start stays the anchor
|
|
56242
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
56243
|
+
if (forward) {
|
|
56244
|
+
sel.setBaseAndExtent(startContainer, startOffset, endContainer, endOffset);
|
|
56245
|
+
} else {
|
|
56246
|
+
sel.setBaseAndExtent(endContainer, endOffset, startContainer, startOffset);
|
|
56247
|
+
}
|
|
56248
|
+
}
|
|
55227
56249
|
onCopyNormalizeSelectionBound(e) {
|
|
55228
56250
|
const { s, editor, o } = this.j;
|
|
55229
56251
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -55243,6 +56265,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55243
56265
|
'mouseup',
|
|
55244
56266
|
'touchend'
|
|
55245
56267
|
];
|
|
56268
|
+
this.__selectedMediaStyle = '';
|
|
55246
56269
|
/**
|
|
55247
56270
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
55248
56271
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
@@ -55254,6 +56277,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55254
56277
|
*/ this.__pressBesideRow = null;
|
|
55255
56278
|
}
|
|
55256
56279
|
}
|
|
56280
|
+
__decorate([
|
|
56281
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56282
|
+
':change',
|
|
56283
|
+
':readonly',
|
|
56284
|
+
':afterSetMode'
|
|
56285
|
+
]),
|
|
56286
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
56287
|
+
], select.prototype, "__markSelectedMedia", null);
|
|
55257
56288
|
__decorate([
|
|
55258
56289
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
55259
56290
|
], select.prototype, "onStartSelection", null);
|
|
@@ -55303,12 +56334,85 @@ __decorate([
|
|
|
55303
56334
|
':click'
|
|
55304
56335
|
])
|
|
55305
56336
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|
|
56337
|
+
__decorate([
|
|
56338
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56339
|
+
':dblclick'
|
|
56340
|
+
])
|
|
56341
|
+
], select.prototype, "onDblClickPastLineEnd", null);
|
|
56342
|
+
__decorate([
|
|
56343
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56344
|
+
':mouseup'
|
|
56345
|
+
])
|
|
56346
|
+
], select.prototype, "onMouseUpOnUneditableLine", null);
|
|
55306
56347
|
__decorate([
|
|
55307
56348
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
55308
56349
|
':copy',
|
|
55309
56350
|
':cut'
|
|
55310
56351
|
])
|
|
55311
56352
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
|
56353
|
+
const isUneditable = (node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(node) && node.getAttribute('contenteditable') === 'false';
|
|
56354
|
+
/**
|
|
56355
|
+
* The text a node shows outside its uneditable elements, whose own text, as
|
|
56356
|
+
* a video's fallback text, isn't on the line
|
|
56357
|
+
*/ const ownText = (node)=>{
|
|
56358
|
+
var _a;
|
|
56359
|
+
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('');
|
|
56360
|
+
};
|
|
56361
|
+
/**
|
|
56362
|
+
* The uneditable elements the range holds whole, without those inside
|
|
56363
|
+
* another. Only those under the range's common ancestor can be, and none
|
|
56364
|
+
* when that's a text node, as along one line of a drag
|
|
56365
|
+
*/ function uneditableIn(range, root) {
|
|
56366
|
+
const box = range.commonAncestorContainer;
|
|
56367
|
+
if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(box)) {
|
|
56368
|
+
return [];
|
|
56369
|
+
}
|
|
56370
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(box.querySelectorAll('[contenteditable="false"]')).filter((elm)=>{
|
|
56371
|
+
if (!range.intersectsNode(elm)) {
|
|
56372
|
+
return false;
|
|
56373
|
+
}
|
|
56374
|
+
const own = elm.ownerDocument.createRange();
|
|
56375
|
+
own.selectNode(elm);
|
|
56376
|
+
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);
|
|
56377
|
+
});
|
|
56378
|
+
}
|
|
56379
|
+
/**
|
|
56380
|
+
* The range holds one element and nothing else, as a selected image does
|
|
56381
|
+
*/ function isElementSelection(range) {
|
|
56382
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
56383
|
+
return startContainer === endContainer && endOffset - startOffset === 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(startContainer.childNodes[startOffset]);
|
|
56384
|
+
}
|
|
56385
|
+
/**
|
|
56386
|
+
* The range holds a line end and nothing else: no characters but
|
|
56387
|
+
* whitespace, and no element whole but a `<br>` or a line a caret can't go
|
|
56388
|
+
* on, as a video's. It ends in another block, or holds the `<br>`
|
|
56389
|
+
*/ function isLineBreak(range, root) {
|
|
56390
|
+
const { startContainer, endContainer } = range;
|
|
56391
|
+
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()))) {
|
|
56392
|
+
return false;
|
|
56393
|
+
}
|
|
56394
|
+
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);
|
|
56395
|
+
const holdsBreaksOnly = (node)=>{
|
|
56396
|
+
if (!range.intersectsNode(node)) {
|
|
56397
|
+
return true;
|
|
56398
|
+
}
|
|
56399
|
+
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)) {
|
|
56400
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes).every(holdsBreaksOnly);
|
|
56401
|
+
}
|
|
56402
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'br')) {
|
|
56403
|
+
crossesLineEnd = true;
|
|
56404
|
+
return true;
|
|
56405
|
+
}
|
|
56406
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) || isCaretless(node);
|
|
56407
|
+
};
|
|
56408
|
+
return holdsBreaksOnly(range.commonAncestorContainer) && crossesLineEnd;
|
|
56409
|
+
}
|
|
56410
|
+
/**
|
|
56411
|
+
* An uneditable element, or a block holding one and nothing else
|
|
56412
|
+
*/ function isCaretless(node) {
|
|
56413
|
+
const children = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes);
|
|
56414
|
+
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));
|
|
56415
|
+
}
|
|
55312
56416
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('select', select);
|
|
55313
56417
|
|
|
55314
56418
|
|
|
@@ -60744,12 +61848,12 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60744
61848
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
60745
61849
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
60746
61850
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
60747
|
-
/* harmony import */ var
|
|
60748
|
-
/* harmony import */ var
|
|
60749
|
-
/* harmony import */ var
|
|
60750
|
-
/* harmony import */ var
|
|
60751
|
-
/* harmony import */ var
|
|
60752
|
-
/* harmony import */ var
|
|
61851
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5700);
|
|
61852
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37790);
|
|
61853
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20356);
|
|
61854
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
61855
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(56917);
|
|
61856
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2073);
|
|
60753
61857
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(34793);
|
|
60754
61858
|
/* harmony import */ var _ui_ui_video_form_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27828);
|
|
60755
61859
|
/* harmony import */ var _readers_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54426);
|
|
@@ -60788,7 +61892,7 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60788
61892
|
* ```javascript
|
|
60789
61893
|
* editor.events.fire('openVideoProperties', video);
|
|
60790
61894
|
* ```
|
|
60791
|
-
*/ class videoProperties extends
|
|
61895
|
+
*/ class videoProperties extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
60792
61896
|
get __size() {
|
|
60793
61897
|
const { width, height } = this.state.values;
|
|
60794
61898
|
return `${width}x${height}`;
|
|
@@ -60827,15 +61931,15 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60827
61931
|
],
|
|
60828
61932
|
buttons.check
|
|
60829
61933
|
]);
|
|
60830
|
-
(0,
|
|
61934
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__.markOwner)(j, dialog.container);
|
|
60831
61935
|
return dialog;
|
|
60832
61936
|
}
|
|
60833
61937
|
get __buttons() {
|
|
60834
61938
|
const { j } = this;
|
|
60835
61939
|
return {
|
|
60836
|
-
check: (0,
|
|
60837
|
-
remove: (0,
|
|
60838
|
-
cancel: (0,
|
|
61940
|
+
check: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'ok', 'Apply', 'primary'),
|
|
61941
|
+
remove: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'bin', 'Delete'),
|
|
61942
|
+
cancel: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'cancel', 'Cancel')
|
|
60839
61943
|
};
|
|
60840
61944
|
}
|
|
60841
61945
|
/**
|
|
@@ -60860,25 +61964,27 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60860
61964
|
}
|
|
60861
61965
|
__openPosterPopup(button) {
|
|
60862
61966
|
const { j, state } = this;
|
|
60863
|
-
const popup = new
|
|
61967
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.dialog);
|
|
60864
61968
|
const close = ()=>{
|
|
60865
61969
|
popup.close();
|
|
60866
61970
|
popup.destruct();
|
|
60867
61971
|
};
|
|
60868
61972
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__.FileSelectorWidget)(j, {
|
|
60869
61973
|
upload: (data)=>{
|
|
60870
|
-
|
|
60871
|
-
|
|
61974
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
61975
|
+
if (item) {
|
|
61976
|
+
state.values.poster = data.baseurl + item.file;
|
|
60872
61977
|
}
|
|
60873
61978
|
close();
|
|
60874
61979
|
},
|
|
60875
61980
|
filebrowser: (data)=>{
|
|
60876
|
-
|
|
60877
|
-
|
|
61981
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
61982
|
+
if (item) {
|
|
61983
|
+
state.values.poster = item.file;
|
|
60878
61984
|
close();
|
|
60879
61985
|
}
|
|
60880
61986
|
}
|
|
60881
|
-
}, null, close)).open(()=>(0,
|
|
61987
|
+
}, null, close)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__.position)(button));
|
|
60882
61988
|
}
|
|
60883
61989
|
/** @override */ afterInit() {}
|
|
60884
61990
|
/** @override */ beforeDestruct() {
|
|
@@ -61028,8 +62134,9 @@ function setFlag(media, name, on) {
|
|
|
61028
62134
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2525);
|
|
61029
62135
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12153);
|
|
61030
62136
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6441);
|
|
61031
|
-
/* harmony import */ var
|
|
61032
|
-
/* harmony import */ var
|
|
62137
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2073);
|
|
62138
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92762);
|
|
62139
|
+
/* harmony import */ var _video_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37775);
|
|
61033
62140
|
/*!
|
|
61034
62141
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61035
62142
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -61041,12 +62148,13 @@ function setFlag(media, name, on) {
|
|
|
61041
62148
|
|
|
61042
62149
|
|
|
61043
62150
|
|
|
62151
|
+
|
|
61044
62152
|
function insertVideos(data) {
|
|
61045
|
-
|
|
61046
|
-
(
|
|
62153
|
+
const { baseurl } = data;
|
|
62154
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
61047
62155
|
this.s.insertNode((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
61048
62156
|
controls: '',
|
|
61049
|
-
src:
|
|
62157
|
+
src: baseurl + file
|
|
61050
62158
|
})));
|
|
61051
62159
|
});
|
|
61052
62160
|
}
|
|
@@ -61056,7 +62164,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
61056
62164
|
defaultHeight: 345,
|
|
61057
62165
|
defaultHandlerSuccess: insertVideos
|
|
61058
62166
|
};
|
|
61059
|
-
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video',
|
|
62167
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
|
61060
62168
|
/**
|
|
61061
62169
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
61062
62170
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -61102,7 +62210,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
61102
62210
|
const { uploader } = jodit.o;
|
|
61103
62211
|
// Base64 alone would put whole video files into the content
|
|
61104
62212
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
61105
|
-
tabs.push((0,
|
|
62213
|
+
tabs.push((0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
61106
62214
|
run(()=>{
|
|
61107
62215
|
var _a, _b;
|
|
61108
62216
|
return ((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.defaultHandlerSuccess) !== null && _b !== void 0 ? _b : insertVideos).call(jodit, data);
|
|
@@ -61131,7 +62239,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
61131
62239
|
formCode.onSubmit((data)=>{
|
|
61132
62240
|
insertCode(data.code);
|
|
61133
62241
|
});
|
|
61134
|
-
const box = (0,
|
|
62242
|
+
const box = (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
61135
62243
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
61136
62244
|
// "Upload" doesn't fit a third of the popup
|
|
61137
62245
|
box.classList.add('jodit-file-selector');
|
|
@@ -61546,6 +62654,14 @@ function _object_spread(target) {
|
|
|
61546
62654
|
_core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
61547
62655
|
|
|
61548
62656
|
|
|
62657
|
+
/***/ }),
|
|
62658
|
+
|
|
62659
|
+
/***/ 25850:
|
|
62660
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
62661
|
+
|
|
62662
|
+
/* 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> ");
|
|
62663
|
+
|
|
62664
|
+
|
|
61549
62665
|
/***/ }),
|
|
61550
62666
|
|
|
61551
62667
|
/***/ 78173:
|
|
@@ -61673,65 +62789,67 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
|
61673
62789
|
|
|
61674
62790
|
__webpack_require__.r(__webpack_exports__);
|
|
61675
62791
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61676
|
-
/* harmony export */
|
|
61677
|
-
/* harmony export */
|
|
61678
|
-
/* harmony export */
|
|
61679
|
-
/* harmony export */
|
|
61680
|
-
/* harmony export */
|
|
61681
|
-
/* harmony export */
|
|
61682
|
-
/* harmony export */
|
|
61683
|
-
/* harmony export */
|
|
61684
|
-
/* harmony export */
|
|
61685
|
-
/* harmony export */
|
|
61686
|
-
/* harmony export */
|
|
61687
|
-
/* harmony export */
|
|
61688
|
-
/* harmony export */
|
|
61689
|
-
/* harmony export */
|
|
61690
|
-
/* harmony export */
|
|
61691
|
-
/* harmony export */
|
|
61692
|
-
/* harmony export */
|
|
61693
|
-
/* harmony export */
|
|
61694
|
-
/* harmony export */
|
|
61695
|
-
/* harmony export */
|
|
61696
|
-
/* harmony export */
|
|
61697
|
-
/* harmony export */
|
|
61698
|
-
/* harmony export */
|
|
61699
|
-
/* harmony export */
|
|
61700
|
-
/* harmony export */
|
|
61701
|
-
/* harmony export */
|
|
61702
|
-
/* harmony export */
|
|
61703
|
-
/* harmony export */
|
|
61704
|
-
/* harmony export */
|
|
61705
|
-
/* harmony export */
|
|
61706
|
-
/* harmony
|
|
61707
|
-
/* harmony import */ var
|
|
61708
|
-
/* harmony import */ var
|
|
61709
|
-
/* harmony import */ var
|
|
61710
|
-
/* harmony import */ var
|
|
61711
|
-
/* harmony import */ var
|
|
61712
|
-
/* harmony import */ var
|
|
61713
|
-
/* harmony import */ var
|
|
61714
|
-
/* harmony import */ var
|
|
61715
|
-
/* harmony import */ var
|
|
61716
|
-
/* harmony import */ var
|
|
61717
|
-
/* harmony import */ var
|
|
61718
|
-
/* harmony import */ var
|
|
61719
|
-
/* harmony import */ var
|
|
61720
|
-
/* harmony import */ var
|
|
61721
|
-
/* harmony import */ var
|
|
61722
|
-
/* harmony import */ var
|
|
61723
|
-
/* harmony import */ var
|
|
61724
|
-
/* harmony import */ var
|
|
61725
|
-
/* harmony import */ var
|
|
61726
|
-
/* harmony import */ var
|
|
61727
|
-
/* harmony import */ var
|
|
61728
|
-
/* harmony import */ var
|
|
61729
|
-
/* harmony import */ var
|
|
61730
|
-
/* harmony import */ var
|
|
61731
|
-
/* harmony import */ var
|
|
61732
|
-
/* harmony import */ var
|
|
61733
|
-
/* harmony import */ var
|
|
61734
|
-
/* harmony import */ var
|
|
62792
|
+
/* harmony export */ anchor: function() { return /* reexport safe */ _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__["default"]; },
|
|
62793
|
+
/* harmony export */ angle_down: function() { return /* reexport safe */ _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__["default"]; },
|
|
62794
|
+
/* harmony export */ angle_left: function() { return /* reexport safe */ _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__["default"]; },
|
|
62795
|
+
/* harmony export */ angle_right: function() { return /* reexport safe */ _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]; },
|
|
62796
|
+
/* harmony export */ angle_up: function() { return /* reexport safe */ _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]; },
|
|
62797
|
+
/* harmony export */ bin: function() { return /* reexport safe */ _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__["default"]; },
|
|
62798
|
+
/* harmony export */ cancel: function() { return /* reexport safe */ _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]; },
|
|
62799
|
+
/* harmony export */ center: function() { return /* reexport safe */ _center_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]; },
|
|
62800
|
+
/* harmony export */ check: function() { return /* reexport safe */ _check_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]; },
|
|
62801
|
+
/* harmony export */ chevron: function() { return /* reexport safe */ _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__["default"]; },
|
|
62802
|
+
/* harmony export */ dots: function() { return /* reexport safe */ _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__["default"]; },
|
|
62803
|
+
/* harmony export */ download: function() { return /* reexport safe */ _download_svg_js__WEBPACK_IMPORTED_MODULE_11__["default"]; },
|
|
62804
|
+
/* harmony export */ eraser: function() { return /* reexport safe */ _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__["default"]; },
|
|
62805
|
+
/* harmony export */ eye: function() { return /* reexport safe */ _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__["default"]; },
|
|
62806
|
+
/* harmony export */ file: function() { return /* reexport safe */ _file_svg_js__WEBPACK_IMPORTED_MODULE_14__["default"]; },
|
|
62807
|
+
/* harmony export */ folder: function() { return /* reexport safe */ _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__["default"]; },
|
|
62808
|
+
/* harmony export */ info_circle: function() { return /* reexport safe */ _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__["default"]; },
|
|
62809
|
+
/* harmony export */ left: function() { return /* reexport safe */ _left_svg_js__WEBPACK_IMPORTED_MODULE_17__["default"]; },
|
|
62810
|
+
/* harmony export */ lock: function() { return /* reexport safe */ _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__["default"]; },
|
|
62811
|
+
/* harmony export */ ok: function() { return /* reexport safe */ _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__["default"]; },
|
|
62812
|
+
/* harmony export */ pencil: function() { return /* reexport safe */ _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__["default"]; },
|
|
62813
|
+
/* harmony export */ plus: function() { return /* reexport safe */ _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__["default"]; },
|
|
62814
|
+
/* harmony export */ resize_handler: function() { return /* reexport safe */ _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__["default"]; },
|
|
62815
|
+
/* harmony export */ right: function() { return /* reexport safe */ _right_svg_js__WEBPACK_IMPORTED_MODULE_23__["default"]; },
|
|
62816
|
+
/* harmony export */ save: function() { return /* reexport safe */ _save_svg_js__WEBPACK_IMPORTED_MODULE_24__["default"]; },
|
|
62817
|
+
/* harmony export */ settings: function() { return /* reexport safe */ _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__["default"]; },
|
|
62818
|
+
/* harmony export */ unlock: function() { return /* reexport safe */ _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__["default"]; },
|
|
62819
|
+
/* harmony export */ update: function() { return /* reexport safe */ _update_svg_js__WEBPACK_IMPORTED_MODULE_27__["default"]; },
|
|
62820
|
+
/* harmony export */ upload: function() { return /* reexport safe */ _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__["default"]; },
|
|
62821
|
+
/* harmony export */ valign: function() { return /* reexport safe */ _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }
|
|
62822
|
+
/* harmony export */ });
|
|
62823
|
+
/* harmony import */ var _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25850);
|
|
62824
|
+
/* harmony import */ var _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78173);
|
|
62825
|
+
/* harmony import */ var _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16260);
|
|
62826
|
+
/* harmony import */ var _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37663);
|
|
62827
|
+
/* harmony import */ var _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51036);
|
|
62828
|
+
/* harmony import */ var _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31554);
|
|
62829
|
+
/* harmony import */ var _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18309);
|
|
62830
|
+
/* harmony import */ var _center_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99762);
|
|
62831
|
+
/* harmony import */ var _check_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7903);
|
|
62832
|
+
/* harmony import */ var _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(58032);
|
|
62833
|
+
/* harmony import */ var _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(52507);
|
|
62834
|
+
/* harmony import */ var _download_svg_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1647);
|
|
62835
|
+
/* harmony import */ var _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(98535);
|
|
62836
|
+
/* harmony import */ var _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(43478);
|
|
62837
|
+
/* harmony import */ var _file_svg_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(60097);
|
|
62838
|
+
/* harmony import */ var _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(49155);
|
|
62839
|
+
/* harmony import */ var _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(17176);
|
|
62840
|
+
/* harmony import */ var _left_svg_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57882);
|
|
62841
|
+
/* harmony import */ var _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(58908);
|
|
62842
|
+
/* harmony import */ var _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(24829);
|
|
62843
|
+
/* harmony import */ var _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4038);
|
|
62844
|
+
/* harmony import */ var _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(45575);
|
|
62845
|
+
/* harmony import */ var _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(84858);
|
|
62846
|
+
/* harmony import */ var _right_svg_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(445);
|
|
62847
|
+
/* harmony import */ var _save_svg_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(36886);
|
|
62848
|
+
/* harmony import */ var _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(10766);
|
|
62849
|
+
/* harmony import */ var _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(33651);
|
|
62850
|
+
/* harmony import */ var _update_svg_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(20362);
|
|
62851
|
+
/* harmony import */ var _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(12202);
|
|
62852
|
+
/* harmony import */ var _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(80152);
|
|
61735
62853
|
/*!
|
|
61736
62854
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61737
62855
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -61770,6 +62888,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61770
62888
|
|
|
61771
62889
|
|
|
61772
62890
|
|
|
62891
|
+
|
|
61773
62892
|
|
|
61774
62893
|
|
|
61775
62894
|
/***/ }),
|