jodit-pro 4.19.13 → 4.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +1586 -554
- 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 +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/math/math.css +1 -1
- package/es2015/plugins/math/math.js +1 -1
- package/es2015/plugins/math/math.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +12 -12
- 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.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 +17 -17
- package/es2021/jodit.js +1540 -554
- 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 +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/math/math.css +1 -1
- package/es2021/plugins/math/math.js +1 -1
- package/es2021/plugins/math/math.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +1540 -554
- 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 +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/math/math.css +1 -1
- package/es2021.en/plugins/math/math.js +1 -1
- package/es2021.en/plugins/math/math.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1945 -619
- 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 +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/math/math.css +1 -1
- package/es5/plugins/math/math.js +1 -1
- package/es5/plugins/math/math.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/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.2
|
|
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.2";
|
|
1820
1820
|
// prettier-ignore
|
|
1821
1821
|
const ES = "es2015";
|
|
1822
1822
|
const IS_ES_MODERN = true;
|
|
@@ -7118,6 +7118,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7118
7118
|
/* harmony export */ fuzzySearchIndex: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.fuzzySearchIndex; },
|
|
7119
7119
|
/* harmony export */ get: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.get; },
|
|
7120
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; },
|
|
7121
7123
|
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionWrapper; },
|
|
7122
7124
|
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getCaptionedImage; },
|
|
7123
7125
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getClassName; },
|
|
@@ -7142,6 +7144,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7142
7144
|
/* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag; },
|
|
7143
7145
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
7144
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; },
|
|
7145
7148
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
7146
7149
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAtom; },
|
|
7147
7150
|
/* harmony export */ isBoolean: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isBoolean; },
|
|
@@ -8422,6 +8425,42 @@ function alignElement(command, box) {
|
|
|
8422
8425
|
}
|
|
8423
8426
|
|
|
8424
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
|
+
|
|
8425
8464
|
/***/ }),
|
|
8426
8465
|
|
|
8427
8466
|
/***/ 63799:
|
|
@@ -9573,115 +9612,119 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9573
9612
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9574
9613
|
|
|
9575
9614
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9576
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
9577
|
-
/* harmony export */ AnswerError: function() { return /* reexport safe */
|
|
9578
|
-
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */
|
|
9579
|
-
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */
|
|
9580
|
-
/* harmony export */ ConfigMerge: function() { return /* reexport safe */
|
|
9581
|
-
/* harmony export */ ConfigProto: function() { return /* reexport safe */
|
|
9582
|
-
/* harmony export */ ConnectionError: function() { return /* reexport safe */
|
|
9583
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
9584
|
-
/* harmony export */ OptionsError: function() { return /* reexport safe */
|
|
9585
|
-
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */
|
|
9586
|
-
/* 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; },
|
|
9587
9626
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9588
|
-
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */
|
|
9589
|
-
/* harmony export */ answer: function() { return /* reexport safe */
|
|
9590
|
-
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */
|
|
9591
|
-
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */
|
|
9592
|
-
/* harmony export */ assert: function() { return /* reexport safe */
|
|
9593
|
-
/* harmony export */ attr: function() { return /* reexport safe */
|
|
9594
|
-
/* harmony export */ attrRaw: function() { return /* reexport safe */
|
|
9595
|
-
/* harmony export */ browser: function() { return /* reexport safe */
|
|
9596
|
-
/* harmony export */ buildQuery: function() { return /* reexport safe */
|
|
9597
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
9598
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
9599
|
-
/* 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; },
|
|
9600
9639
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
9601
|
-
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */
|
|
9640
|
+
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_10__.clearCenterAlign; },
|
|
9602
9641
|
/* harmony export */ clearHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearHAlign; },
|
|
9603
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
9604
|
-
/* harmony export */ completeUrl: function() { return /* reexport safe */
|
|
9605
|
-
/* harmony export */ connection: function() { return /* reexport safe */
|
|
9606
|
-
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */
|
|
9607
|
-
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */
|
|
9608
|
-
/* harmony export */ css: function() { return /* reexport safe */
|
|
9609
|
-
/* harmony export */ cssInline: function() { return /* reexport safe */
|
|
9610
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
9611
|
-
/* harmony export */ ctrlKey: function() { return /* reexport safe */
|
|
9612
|
-
/* harmony export */ dataBind: function() { return /* reexport safe */
|
|
9613
|
-
/* harmony export */ defaultLanguage: function() { return /* reexport safe */
|
|
9614
|
-
/* harmony export */ error: function() { return /* reexport safe */
|
|
9615
|
-
/* harmony export */ fastClone: function() { return /* reexport safe */
|
|
9616
|
-
/* 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; },
|
|
9617
9656
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getAlignClasses; },
|
|
9618
|
-
/* harmony export */
|
|
9619
|
-
/* harmony export */
|
|
9620
|
-
/* harmony export */
|
|
9621
|
-
/* 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; },
|
|
9622
9663
|
/* harmony export */ getHAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.getHAlign; },
|
|
9623
|
-
/* harmony export */ getImageCaption: function() { return /* reexport safe */
|
|
9624
|
-
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */
|
|
9625
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
9626
|
-
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */
|
|
9627
|
-
/* 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; },
|
|
9628
9669
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
9629
|
-
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */
|
|
9630
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
9631
|
-
/* harmony export */
|
|
9632
|
-
/* harmony export */
|
|
9633
|
-
/* harmony export */
|
|
9634
|
-
/* harmony export */
|
|
9635
|
-
/* harmony export */
|
|
9636
|
-
/* harmony export */
|
|
9637
|
-
/* harmony export */
|
|
9638
|
-
/* harmony export */
|
|
9639
|
-
/* harmony export */
|
|
9640
|
-
/* harmony export */
|
|
9641
|
-
/* harmony export */
|
|
9642
|
-
/* harmony export */
|
|
9643
|
-
/* harmony export */
|
|
9644
|
-
/* harmony export */
|
|
9645
|
-
/* harmony export */
|
|
9646
|
-
/* harmony export */
|
|
9647
|
-
/* harmony export */
|
|
9648
|
-
/* harmony export */
|
|
9649
|
-
/* harmony export */
|
|
9650
|
-
/* harmony export */
|
|
9651
|
-
/* harmony export */
|
|
9652
|
-
/* 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; }
|
|
9653
9695
|
/* harmony export */ });
|
|
9654
9696
|
/* harmony import */ var _align_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25726);
|
|
9655
|
-
/* harmony import */ var
|
|
9656
|
-
/* harmony import */ var
|
|
9657
|
-
/* harmony import */ var
|
|
9658
|
-
/* harmony import */ var
|
|
9659
|
-
/* harmony import */ var
|
|
9660
|
-
/* harmony import */ var
|
|
9661
|
-
/* harmony import */ var
|
|
9662
|
-
/* harmony import */ var
|
|
9663
|
-
/* harmony import */ var
|
|
9664
|
-
/* harmony import */ var
|
|
9665
|
-
/* harmony import */ var
|
|
9666
|
-
/* harmony import */ var
|
|
9667
|
-
/* harmony import */ var
|
|
9668
|
-
/* harmony import */ var
|
|
9669
|
-
/* harmony import */ var
|
|
9670
|
-
/* harmony import */ var
|
|
9671
|
-
/* harmony import */ var
|
|
9672
|
-
/* harmony import */ var
|
|
9673
|
-
/* harmony import */ var
|
|
9674
|
-
/* harmony import */ var
|
|
9675
|
-
/* harmony import */ var
|
|
9676
|
-
/* harmony import */ var
|
|
9677
|
-
/* harmony import */ var
|
|
9678
|
-
/* harmony import */ var
|
|
9679
|
-
/* harmony import */ var
|
|
9680
|
-
/* harmony import */ var
|
|
9681
|
-
/* harmony import */ var
|
|
9682
|
-
/* harmony import */ var
|
|
9683
|
-
/* harmony import */ var
|
|
9684
|
-
/* 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);
|
|
9685
9728
|
/*!
|
|
9686
9729
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9687
9730
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9719,6 +9762,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9719
9762
|
|
|
9720
9763
|
|
|
9721
9764
|
|
|
9765
|
+
|
|
9722
9766
|
|
|
9723
9767
|
|
|
9724
9768
|
/***/ }),
|
|
@@ -17147,6 +17191,8 @@ let UIInput = UIInput_1 = class UIInput extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
17147
17191
|
if (label) {
|
|
17148
17192
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(this.wrapper, this.label);
|
|
17149
17193
|
this.label.innerText = this.j.i18n(label);
|
|
17194
|
+
// The label is a span, so it names the input only this way
|
|
17195
|
+
(0,_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
17150
17196
|
} else {
|
|
17151
17197
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.label);
|
|
17152
17198
|
}
|
|
@@ -18709,6 +18755,10 @@ let Popup = Popup_1 = class Popup extends _group_group_js__WEBPACK_IMPORTED_MODU
|
|
|
18709
18755
|
this.smart = smart;
|
|
18710
18756
|
this.isOpened = false;
|
|
18711
18757
|
this.strategy = 'leftBottom';
|
|
18758
|
+
/**
|
|
18759
|
+
* The popup stays open after one of its buttons runs: the button closes
|
|
18760
|
+
* only the lists it opened. See #1741
|
|
18761
|
+
*/ this.keepOpen = false;
|
|
18712
18762
|
this.viewBound = ()=>({
|
|
18713
18763
|
left: 0,
|
|
18714
18764
|
top: 0,
|
|
@@ -19429,6 +19479,7 @@ class CommitMode {
|
|
|
19429
19479
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(70231);
|
|
19430
19480
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6441);
|
|
19431
19481
|
/* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41409);
|
|
19482
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2073);
|
|
19432
19483
|
function _define_property(obj, key, value) {
|
|
19433
19484
|
if (key in obj) {
|
|
19434
19485
|
Object.defineProperty(obj, key, {
|
|
@@ -19477,6 +19528,7 @@ var Jodit_1;
|
|
|
19477
19528
|
|
|
19478
19529
|
|
|
19479
19530
|
|
|
19531
|
+
|
|
19480
19532
|
const FOCUS_EVENTS = new Set([
|
|
19481
19533
|
'focus',
|
|
19482
19534
|
'blur',
|
|
@@ -19742,17 +19794,15 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
|
|
|
19742
19794
|
theme: jodit.o.theme,
|
|
19743
19795
|
shadowRoot: jodit.o.shadowRoot,
|
|
19744
19796
|
defaultCallback (data) {
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
}
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
});
|
|
19755
|
-
}
|
|
19797
|
+
const { baseurl } = data;
|
|
19798
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_10__.getItems)(data).forEach(({ file, isImage })=>{
|
|
19799
|
+
const url = baseurl + file;
|
|
19800
|
+
if (isImage) {
|
|
19801
|
+
jodit.s.insertImage(url, null, jodit.o.imageDefaultWidth);
|
|
19802
|
+
} else {
|
|
19803
|
+
jodit.s.insertNode(jodit.createInside.fromHTML(`<a href='${url}' title='${url}'>${url}</a>`));
|
|
19804
|
+
}
|
|
19805
|
+
});
|
|
19756
19806
|
}
|
|
19757
19807
|
}, this.o.filebrowser);
|
|
19758
19808
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -20834,6 +20884,11 @@ function addClassNames(className, elm) {
|
|
|
20834
20884
|
'Insert file': 'ادخال الملف',
|
|
20835
20885
|
'Insert youtube/vimeo video': 'إدراج فيديو يوتيوب/فيميو ',
|
|
20836
20886
|
'Insert link': 'إدراج رابط',
|
|
20887
|
+
'Insert anchor': 'إدراج مرساة',
|
|
20888
|
+
'Link to an anchor': 'ربط بمرساة',
|
|
20889
|
+
'On this page': 'في هذه الصفحة',
|
|
20890
|
+
'The name cannot contain spaces': 'لا يمكن أن يحتوي الاسم على مسافات',
|
|
20891
|
+
'This name is already in use': 'هذا الاسم مستخدم بالفعل',
|
|
20837
20892
|
'Font size': 'حجم الخط',
|
|
20838
20893
|
'Font family': 'نوع الخط',
|
|
20839
20894
|
'Insert format block': 'إدراج كتلة تنسيق',
|
|
@@ -21076,6 +21131,11 @@ function addClassNames(className, elm) {
|
|
|
21076
21131
|
'Insert file': 'Fayl əlavə et',
|
|
21077
21132
|
'Insert youtube/vimeo video': 'Youtube/vimeo video əlavə et',
|
|
21078
21133
|
'Insert link': 'Keçid əlavə et',
|
|
21134
|
+
'Insert anchor': 'Lövbər əlavə et',
|
|
21135
|
+
'Link to an anchor': 'Lövbərə keçid',
|
|
21136
|
+
'On this page': 'Bu səhifədə',
|
|
21137
|
+
'The name cannot contain spaces': 'Adda boşluq ola bilməz',
|
|
21138
|
+
'This name is already in use': 'Bu ad artıq istifadə olunur',
|
|
21079
21139
|
'Font size': 'Şrift ölçüsü',
|
|
21080
21140
|
'Font family': 'Şrift ailəsi',
|
|
21081
21141
|
'Line height': 'Sətir hündürlüyü',
|
|
@@ -21303,7 +21363,7 @@ function addClassNames(className, elm) {
|
|
|
21303
21363
|
'For information about the license, please go to our website:': 'Pro informace o licenci, prosím, přejděte na naši stránku:',
|
|
21304
21364
|
'Buy full version': 'Koupit plnou verzi',
|
|
21305
21365
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.',
|
|
21306
|
-
Anchor: '
|
|
21366
|
+
Anchor: 'Kotva',
|
|
21307
21367
|
'Open in new tab': 'Otevřít v nové záložce',
|
|
21308
21368
|
'Open in fullsize': 'Otevřít v celoobrazovkovém režimu',
|
|
21309
21369
|
'Clear Formatting': 'Vyčistit formátování',
|
|
@@ -21323,6 +21383,11 @@ function addClassNames(className, elm) {
|
|
|
21323
21383
|
'Insert file': 'Vložit soubor',
|
|
21324
21384
|
'Insert youtube/vimeo video': 'Vložit video (YT/Vimeo)',
|
|
21325
21385
|
'Insert link': 'Vložit odkaz',
|
|
21386
|
+
'Insert anchor': 'Vložit kotvu',
|
|
21387
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
21388
|
+
'On this page': 'Na této stránce',
|
|
21389
|
+
'The name cannot contain spaces': 'Název nesmí obsahovat mezery',
|
|
21390
|
+
'This name is already in use': 'Tento název se již používá',
|
|
21326
21391
|
'Font size': 'Velikost písma',
|
|
21327
21392
|
'Font family': 'Typ písma',
|
|
21328
21393
|
'Insert format block': 'Formátovat blok',
|
|
@@ -21562,6 +21627,11 @@ function addClassNames(className, elm) {
|
|
|
21562
21627
|
'Insert file': 'Datei einfügen',
|
|
21563
21628
|
'Insert youtube/vimeo video': 'Youtube/vimeo Video einfügen',
|
|
21564
21629
|
'Insert link': 'Link einfügen',
|
|
21630
|
+
'Insert anchor': 'Anker einfügen',
|
|
21631
|
+
'Link to an anchor': 'Mit einem Anker verlinken',
|
|
21632
|
+
'On this page': 'Auf dieser Seite',
|
|
21633
|
+
'The name cannot contain spaces': 'Der Name darf keine Leerzeichen enthalten',
|
|
21634
|
+
'This name is already in use': 'Dieser Name wird bereits verwendet',
|
|
21565
21635
|
'Font size': 'Schriftgröße',
|
|
21566
21636
|
'Font family': 'Schriftfamilie',
|
|
21567
21637
|
'Insert format block': 'Formatblock einfügen',
|
|
@@ -21802,7 +21872,7 @@ function addClassNames(className, elm) {
|
|
|
21802
21872
|
'For information about the license, please go to our website:': 'Para información sobre la licencia, por favor visite nuestro sitio:',
|
|
21803
21873
|
'Buy full version': 'Compre la versión completa',
|
|
21804
21874
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.',
|
|
21805
|
-
Anchor: '
|
|
21875
|
+
Anchor: 'Ancla',
|
|
21806
21876
|
'Open in new tab': 'Abrir en nueva pestaña',
|
|
21807
21877
|
'Open in fullsize': 'Abrir editor en pantalla completa',
|
|
21808
21878
|
'Clear Formatting': 'Limpiar formato',
|
|
@@ -21822,6 +21892,11 @@ function addClassNames(className, elm) {
|
|
|
21822
21892
|
'Insert file': 'Insertar archivo',
|
|
21823
21893
|
'Insert youtube/vimeo video': 'Insertar video de Youtube/vimeo',
|
|
21824
21894
|
'Insert link': 'Insertar vínculo',
|
|
21895
|
+
'Insert anchor': 'Insertar ancla',
|
|
21896
|
+
'Link to an anchor': 'Enlazar a un ancla',
|
|
21897
|
+
'On this page': 'En esta página',
|
|
21898
|
+
'The name cannot contain spaces': 'El nombre no puede contener espacios',
|
|
21899
|
+
'This name is already in use': 'Este nombre ya está en uso',
|
|
21825
21900
|
'Font size': 'Tamaño de letra',
|
|
21826
21901
|
'Font family': 'Familia de letra',
|
|
21827
21902
|
'Insert format block': 'Insertar bloque',
|
|
@@ -22045,7 +22120,7 @@ function addClassNames(className, elm) {
|
|
|
22045
22120
|
'For information about the license, please go to our website:': 'برای کسب اطلاعات در رابطه با لایسنس لطفا به وب سایت مراجعه کنید:',
|
|
22046
22121
|
'Buy full version': 'خرید نسخه کامل',
|
|
22047
22122
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.',
|
|
22048
|
-
Anchor: '
|
|
22123
|
+
Anchor: 'لنگر',
|
|
22049
22124
|
'Open in new tab': 'بازکردن در تب جدید',
|
|
22050
22125
|
'Open in fullsize': 'تمام صفحه کردن ویرایشگر',
|
|
22051
22126
|
'Clear Formatting': 'پاک کردن قالب ها',
|
|
@@ -22065,6 +22140,11 @@ function addClassNames(className, elm) {
|
|
|
22065
22140
|
'Insert file': 'افزودن فایل',
|
|
22066
22141
|
'Insert youtube/vimeo video': 'افزودن ویدیو از یوتیوب و وایمو',
|
|
22067
22142
|
'Insert link': 'افزودن لینک',
|
|
22143
|
+
'Insert anchor': 'افزودن لنگر',
|
|
22144
|
+
'Link to an anchor': 'پیوند به لنگر',
|
|
22145
|
+
'On this page': 'در این صفحه',
|
|
22146
|
+
'The name cannot contain spaces': 'نام نمیتواند فاصله داشته باشد',
|
|
22147
|
+
'This name is already in use': 'این نام قبلاً استفاده شده است',
|
|
22068
22148
|
'Font size': 'اندازه فونت',
|
|
22069
22149
|
'Font family': 'فونت',
|
|
22070
22150
|
'Insert format block': 'افزودن بلاک',
|
|
@@ -22303,6 +22383,11 @@ function addClassNames(className, elm) {
|
|
|
22303
22383
|
'Insert file': 'Lisää tiedosto',
|
|
22304
22384
|
'Insert youtube/vimeo video': 'Lisää Youtube-/vimeo- video',
|
|
22305
22385
|
'Insert link': 'Lisää linkki',
|
|
22386
|
+
'Insert anchor': 'Lisää ankkuri',
|
|
22387
|
+
'Link to an anchor': 'Linkitä ankkuriin',
|
|
22388
|
+
'On this page': 'Tällä sivulla',
|
|
22389
|
+
'The name cannot contain spaces': 'Nimessä ei voi olla välilyöntejä',
|
|
22390
|
+
'This name is already in use': 'Tämä nimi on jo käytössä',
|
|
22306
22391
|
'Font size': 'Kirjasimen koko',
|
|
22307
22392
|
'Font family': 'Kirjasimen nimi',
|
|
22308
22393
|
'Insert format block': 'Lisää muotoilualue',
|
|
@@ -22546,6 +22631,11 @@ function addClassNames(className, elm) {
|
|
|
22546
22631
|
'Insert file': 'Insérer un fichier',
|
|
22547
22632
|
'Insert youtube/vimeo video': 'Insérer une vidéo',
|
|
22548
22633
|
'Insert link': 'Insérer un lien',
|
|
22634
|
+
'Insert anchor': 'Insérer une ancre',
|
|
22635
|
+
'Link to an anchor': 'Lier à une ancre',
|
|
22636
|
+
'On this page': 'Sur cette page',
|
|
22637
|
+
'The name cannot contain spaces': "Le nom ne peut pas contenir d'espaces",
|
|
22638
|
+
'This name is already in use': 'Ce nom est déjà utilisé',
|
|
22549
22639
|
'Font size': 'Taille des caractères',
|
|
22550
22640
|
'Font family': 'Famille des caractères',
|
|
22551
22641
|
'Insert format block': 'Bloc formatté',
|
|
@@ -22765,7 +22855,7 @@ function addClassNames(className, elm) {
|
|
|
22765
22855
|
'For information about the license, please go to our website:': 'For information about the license, please go to our website:',
|
|
22766
22856
|
'Buy full version': 'Buy full version',
|
|
22767
22857
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
22768
|
-
Anchor: '
|
|
22858
|
+
Anchor: 'עוגן',
|
|
22769
22859
|
'Open in new tab': 'פתח בכרטיסיה חדשה',
|
|
22770
22860
|
'Open in fullsize': 'פתח את העורך בחלון חדש',
|
|
22771
22861
|
'Clear Formatting': 'נקה עיצוב',
|
|
@@ -22785,6 +22875,11 @@ function addClassNames(className, elm) {
|
|
|
22785
22875
|
'Insert file': 'הכנס קובץ',
|
|
22786
22876
|
'Insert youtube/vimeo video': 'הכנס סרטון וידאו מYouTube/Vimeo',
|
|
22787
22877
|
'Insert link': 'הכנס קישור',
|
|
22878
|
+
'Insert anchor': 'הכנס עוגן',
|
|
22879
|
+
'Link to an anchor': 'קישור לעוגן',
|
|
22880
|
+
'On this page': 'בדף זה',
|
|
22881
|
+
'The name cannot contain spaces': 'השם לא יכול להכיל רווחים',
|
|
22882
|
+
'This name is already in use': 'השם הזה כבר בשימוש',
|
|
22788
22883
|
'Font size': 'גודל גופן',
|
|
22789
22884
|
'Font family': 'גופן',
|
|
22790
22885
|
'Insert format block': 'מעוצב מראש',
|
|
@@ -23024,6 +23119,11 @@ function addClassNames(className, elm) {
|
|
|
23024
23119
|
'Insert file': 'Fájl beszúrás',
|
|
23025
23120
|
'Insert youtube/vimeo video': 'Youtube videó beszúrása',
|
|
23026
23121
|
'Insert link': 'Link beszúrás',
|
|
23122
|
+
'Insert anchor': 'Horgony beszúrás',
|
|
23123
|
+
'Link to an anchor': 'Hivatkozás horgonyra',
|
|
23124
|
+
'On this page': 'Ezen az oldalon',
|
|
23125
|
+
'The name cannot contain spaces': 'A név nem tartalmazhat szóközt',
|
|
23126
|
+
'This name is already in use': 'Ez a név már foglalt',
|
|
23027
23127
|
'Font size': 'Betűméret',
|
|
23028
23128
|
'Font family': 'Betűtípus',
|
|
23029
23129
|
'Insert format block': 'Formázott blokk beszúrása',
|
|
@@ -23243,7 +23343,7 @@ function addClassNames(className, elm) {
|
|
|
23243
23343
|
'For information about the license, please go to our website:': 'Untuk informasi tentang lisensi, silakan kunjungi website:',
|
|
23244
23344
|
'Buy full version': 'Beli versi lengkap',
|
|
23245
23345
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.',
|
|
23246
|
-
Anchor: '
|
|
23346
|
+
Anchor: 'Jangkar',
|
|
23247
23347
|
'Open in new tab': 'Buka di tab baru',
|
|
23248
23348
|
'Open in fullsize': 'Buka editor dalam ukuran penuh',
|
|
23249
23349
|
'Clear Formatting': 'Hapus Pemformatan',
|
|
@@ -23263,6 +23363,11 @@ function addClassNames(className, elm) {
|
|
|
23263
23363
|
'Insert file': 'Sisipkan Berkas',
|
|
23264
23364
|
'Insert youtube/vimeo video': 'Sisipkan video youtube/vimeo',
|
|
23265
23365
|
'Insert link': 'Sisipkan tautan',
|
|
23366
|
+
'Insert anchor': 'Sisipkan jangkar',
|
|
23367
|
+
'Link to an anchor': 'Tautkan ke jangkar',
|
|
23368
|
+
'On this page': 'Di halaman ini',
|
|
23369
|
+
'The name cannot contain spaces': 'Nama tidak boleh mengandung spasi',
|
|
23370
|
+
'This name is already in use': 'Nama ini sudah digunakan',
|
|
23266
23371
|
'Font size': 'Ukuran font',
|
|
23267
23372
|
'Font family': 'Keluarga font',
|
|
23268
23373
|
'Insert format block': 'Sisipkan blok format',
|
|
@@ -23482,7 +23587,7 @@ function addClassNames(className, elm) {
|
|
|
23482
23587
|
'For information about the license, please go to our website:': 'Per informazioni sulla licenza, si prega di visitare il nostro sito web:',
|
|
23483
23588
|
'Buy full version': 'Acquista la versione completa',
|
|
23484
23589
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.',
|
|
23485
|
-
Anchor: '
|
|
23590
|
+
Anchor: 'Ancora',
|
|
23486
23591
|
'Open in new tab': 'Apri in una nuova scheda',
|
|
23487
23592
|
'Open in fullsize': "Apri l'editor a schermo intero",
|
|
23488
23593
|
'Clear Formatting': 'Pulisci Formattazione',
|
|
@@ -23502,6 +23607,11 @@ function addClassNames(className, elm) {
|
|
|
23502
23607
|
'Insert file': 'Inserisci un file',
|
|
23503
23608
|
'Insert youtube/vimeo video': 'Inserisci video Youtube/Vimeo',
|
|
23504
23609
|
'Insert link': 'Inserisci link',
|
|
23610
|
+
'Insert anchor': 'Inserisci ancora',
|
|
23611
|
+
'Link to an anchor': "Collega a un'ancora",
|
|
23612
|
+
'On this page': 'In questa pagina',
|
|
23613
|
+
'The name cannot contain spaces': 'Il nome non può contenere spazi',
|
|
23614
|
+
'This name is already in use': 'Questo nome è già in uso',
|
|
23505
23615
|
'Font size': 'Dimensione carattere',
|
|
23506
23616
|
'Font family': 'Tipo di font',
|
|
23507
23617
|
'Insert format block': 'Inserisci blocco',
|
|
@@ -23725,7 +23835,7 @@ function addClassNames(className, elm) {
|
|
|
23725
23835
|
'For information about the license, please go to our website:': 'ライセンス詳細についてはJodit Webサイトを確認ください:',
|
|
23726
23836
|
'Buy full version': 'フルバージョンを購入',
|
|
23727
23837
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
23728
|
-
Anchor: '
|
|
23838
|
+
Anchor: 'アンカー',
|
|
23729
23839
|
'Open in new tab': '新しいタブで開く',
|
|
23730
23840
|
'Open in fullsize': 'エディターのサイズ(フル/ノーマル)',
|
|
23731
23841
|
'Clear Formatting': '書式をクリア',
|
|
@@ -23745,6 +23855,11 @@ function addClassNames(className, elm) {
|
|
|
23745
23855
|
'Insert file': 'ファイルを挿入',
|
|
23746
23856
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 動画',
|
|
23747
23857
|
'Insert link': 'リンクを挿入',
|
|
23858
|
+
'Insert anchor': 'アンカーを挿入',
|
|
23859
|
+
'Link to an anchor': 'アンカーにリンク',
|
|
23860
|
+
'On this page': 'このページ内',
|
|
23861
|
+
'The name cannot contain spaces': '名前にスペースは使えません',
|
|
23862
|
+
'This name is already in use': 'この名前はすでに使われています',
|
|
23748
23863
|
'Font size': 'フォントサイズ',
|
|
23749
23864
|
'Font family': 'フォント',
|
|
23750
23865
|
'Insert format block': 'テキストのスタイル',
|
|
@@ -23979,7 +24094,7 @@ function addClassNames(className, elm) {
|
|
|
23979
24094
|
'For information about the license, please go to our website:': '라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:',
|
|
23980
24095
|
'Buy full version': '풀 버전 구입하기',
|
|
23981
24096
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': '© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.',
|
|
23982
|
-
Anchor: '
|
|
24097
|
+
Anchor: '앵커',
|
|
23983
24098
|
'Open in new tab': '새 탭에서 열기',
|
|
23984
24099
|
'Open in fullsize': '전체 크기로 보기',
|
|
23985
24100
|
'Clear Formatting': '서식 지우기',
|
|
@@ -23999,6 +24114,11 @@ function addClassNames(className, elm) {
|
|
|
23999
24114
|
'Insert file': '파일 넣기',
|
|
24000
24115
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 동영상',
|
|
24001
24116
|
'Insert link': '링크 넣기',
|
|
24117
|
+
'Insert anchor': '앵커 넣기',
|
|
24118
|
+
'Link to an anchor': '앵커에 연결',
|
|
24119
|
+
'On this page': '이 페이지에서',
|
|
24120
|
+
'The name cannot contain spaces': '이름에 공백을 넣을 수 없습니다',
|
|
24121
|
+
'This name is already in use': '이미 사용 중인 이름입니다',
|
|
24002
24122
|
'Font size': '글꼴 크기',
|
|
24003
24123
|
'Font family': '글꼴',
|
|
24004
24124
|
'Insert format block': '블록 요소 넣기',
|
|
@@ -24217,7 +24337,7 @@ function addClassNames(className, elm) {
|
|
|
24217
24337
|
'For information about the license, please go to our website:': 'Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:',
|
|
24218
24338
|
'Buy full version': 'Бүрэн хувилбар худалдан авах',
|
|
24219
24339
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.',
|
|
24220
|
-
Anchor: '
|
|
24340
|
+
Anchor: 'Зангуу',
|
|
24221
24341
|
'Open in new tab': 'Шинэ табаар нээх',
|
|
24222
24342
|
'Open in fullsize': 'Бүтэн дэлгэцээр нээх',
|
|
24223
24343
|
'Clear Formatting': 'Форматыг арилгах',
|
|
@@ -24237,6 +24357,11 @@ function addClassNames(className, elm) {
|
|
|
24237
24357
|
'Insert file': 'Файл нэмэх',
|
|
24238
24358
|
'Insert youtube/vimeo video': 'Youtube/Vimeo видео нэмэх',
|
|
24239
24359
|
'Insert link': 'Холбоос нэмэх',
|
|
24360
|
+
'Insert anchor': 'Зангуу нэмэх',
|
|
24361
|
+
'Link to an anchor': 'Зангуу руу холбох',
|
|
24362
|
+
'On this page': 'Энэ хуудсанд',
|
|
24363
|
+
'The name cannot contain spaces': 'Нэрэнд хоосон зай байж болохгүй',
|
|
24364
|
+
'This name is already in use': 'Энэ нэр аль хэдийн ашиглагдаж байна',
|
|
24240
24365
|
'Font size': 'Фонтын хэмжээ',
|
|
24241
24366
|
'Font family': 'Фонтын бүл',
|
|
24242
24367
|
'Insert format block': 'Блок нэмэх',
|
|
@@ -24476,6 +24601,11 @@ function addClassNames(className, elm) {
|
|
|
24476
24601
|
'Insert file': 'Bestand invoegen',
|
|
24477
24602
|
'Insert youtube/vimeo video': 'Youtube/Vimeo video invoegen',
|
|
24478
24603
|
'Insert link': 'Link toevoegen',
|
|
24604
|
+
'Insert anchor': 'Anker toevoegen',
|
|
24605
|
+
'Link to an anchor': 'Naar een anker linken',
|
|
24606
|
+
'On this page': 'Op deze pagina',
|
|
24607
|
+
'The name cannot contain spaces': 'De naam mag geen spaties bevatten',
|
|
24608
|
+
'This name is already in use': 'Deze naam is al in gebruik',
|
|
24479
24609
|
'Font size': 'Tekstgrootte',
|
|
24480
24610
|
'Font family': 'Lettertype',
|
|
24481
24611
|
'Insert format block': 'Format blok invoegen',
|
|
@@ -24713,6 +24843,11 @@ function addClassNames(className, elm) {
|
|
|
24713
24843
|
'Insert file': 'Sett inn fil',
|
|
24714
24844
|
'Insert youtube/vimeo video': 'Sett inn YouTube/Vimeo-video',
|
|
24715
24845
|
'Insert link': 'Sett inn lenke',
|
|
24846
|
+
'Insert anchor': 'Sett inn anker',
|
|
24847
|
+
'Link to an anchor': 'Lenke til et anker',
|
|
24848
|
+
'On this page': 'På denne siden',
|
|
24849
|
+
'The name cannot contain spaces': 'Navnet kan ikke inneholde mellomrom',
|
|
24850
|
+
'This name is already in use': 'Dette navnet er allerede i bruk',
|
|
24716
24851
|
'Font size': 'Skriftstørrelse',
|
|
24717
24852
|
'Font family': 'Skriftfamilie',
|
|
24718
24853
|
'Insert format block': 'Sett inn formateringsblokk',
|
|
@@ -24961,6 +25096,11 @@ function addClassNames(className, elm) {
|
|
|
24961
25096
|
'Insert file': 'Wstaw plik',
|
|
24962
25097
|
'Insert youtube/vimeo video': 'Wstaw film Youtube/vimeo',
|
|
24963
25098
|
'Insert link': 'Wstaw link',
|
|
25099
|
+
'Insert anchor': 'Wstaw kotwicę',
|
|
25100
|
+
'Link to an anchor': 'Link do kotwicy',
|
|
25101
|
+
'On this page': 'Na tej stronie',
|
|
25102
|
+
'The name cannot contain spaces': 'Nazwa nie może zawierać spacji',
|
|
25103
|
+
'This name is already in use': 'Ta nazwa jest już używana',
|
|
24964
25104
|
'Font size': 'Rozmiar tekstu',
|
|
24965
25105
|
'Font family': 'Krój czcionki',
|
|
24966
25106
|
'Insert format block': 'Wstaw formatowanie',
|
|
@@ -25179,7 +25319,7 @@ function addClassNames(className, elm) {
|
|
|
25179
25319
|
'For information about the license, please go to our website:': 'Para informação sobre a licença, por favor visite nosso site:',
|
|
25180
25320
|
'Buy full version': 'Compre a versão completa',
|
|
25181
25321
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.',
|
|
25182
|
-
Anchor: '
|
|
25322
|
+
Anchor: 'Âncora',
|
|
25183
25323
|
'Open in new tab': 'Abrir em nova aba',
|
|
25184
25324
|
'Open in fullsize': 'Abrir editor em tela cheia',
|
|
25185
25325
|
'Clear Formatting': 'Limpar formatação',
|
|
@@ -25199,6 +25339,11 @@ function addClassNames(className, elm) {
|
|
|
25199
25339
|
'Insert file': 'Inserir arquivo',
|
|
25200
25340
|
'Insert youtube/vimeo video': 'Inserir vídeo do Youtube/vimeo',
|
|
25201
25341
|
'Insert link': 'Inserir link',
|
|
25342
|
+
'Insert anchor': 'Inserir âncora',
|
|
25343
|
+
'Link to an anchor': 'Vincular a uma âncora',
|
|
25344
|
+
'On this page': 'Nesta página',
|
|
25345
|
+
'The name cannot contain spaces': 'O nome não pode conter espaços',
|
|
25346
|
+
'This name is already in use': 'Este nome já está em uso',
|
|
25202
25347
|
'Font size': 'Tamanho da letra',
|
|
25203
25348
|
'Font family': 'Fonte',
|
|
25204
25349
|
'Insert format block': 'Inserir bloco',
|
|
@@ -25421,7 +25566,7 @@ function addClassNames(className, elm) {
|
|
|
25421
25566
|
'For information about the license, please go to our website:': 'Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:',
|
|
25422
25567
|
'Buy full version': 'Купить полную версию',
|
|
25423
25568
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.',
|
|
25424
|
-
Anchor: '
|
|
25569
|
+
Anchor: 'Якорь',
|
|
25425
25570
|
'Open in new tab': 'Открывать ссылку в новой вкладке',
|
|
25426
25571
|
'Open in fullsize': 'Открыть редактор в полном размере',
|
|
25427
25572
|
'Clear Formatting': 'Очистить форматирование',
|
|
@@ -25441,6 +25586,11 @@ function addClassNames(className, elm) {
|
|
|
25441
25586
|
'Insert file': 'Вставить файл',
|
|
25442
25587
|
'Insert youtube/vimeo video': 'Вставьте видео',
|
|
25443
25588
|
'Insert link': 'Вставить ссылку',
|
|
25589
|
+
'Insert anchor': 'Вставить якорь',
|
|
25590
|
+
'Link to an anchor': 'Ссылка на якорь',
|
|
25591
|
+
'On this page': 'На этой странице',
|
|
25592
|
+
'The name cannot contain spaces': 'Имя не может содержать пробелы',
|
|
25593
|
+
'This name is already in use': 'Это имя уже используется',
|
|
25444
25594
|
'Font size': 'Размер шрифта',
|
|
25445
25595
|
'Font family': 'Шрифт',
|
|
25446
25596
|
'Insert format block': 'Вставить блочный элемент',
|
|
@@ -25679,6 +25829,11 @@ function addClassNames(className, elm) {
|
|
|
25679
25829
|
'Insert file': 'Vložiť súbor',
|
|
25680
25830
|
'Insert youtube/vimeo video': 'Vložiť video YouTube/Vimeo',
|
|
25681
25831
|
'Insert link': 'Vložiť odkaz',
|
|
25832
|
+
'Insert anchor': 'Vložiť kotvu',
|
|
25833
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
25834
|
+
'On this page': 'Na tejto stránke',
|
|
25835
|
+
'The name cannot contain spaces': 'Názov nesmie obsahovať medzery',
|
|
25836
|
+
'This name is already in use': 'Tento názov sa už používa',
|
|
25682
25837
|
'Font size': 'Veľkosť písma',
|
|
25683
25838
|
'Font family': 'Typ písma',
|
|
25684
25839
|
'Insert format block': 'Vložiť formátovaný blok',
|
|
@@ -25923,6 +26078,11 @@ function addClassNames(className, elm) {
|
|
|
25923
26078
|
'Insert file': 'Infoga fil',
|
|
25924
26079
|
'Insert youtube/vimeo video': 'Infoga YouTube/Vimeo-video',
|
|
25925
26080
|
'Insert link': 'Infoga länk',
|
|
26081
|
+
'Insert anchor': 'Infoga ankare',
|
|
26082
|
+
'Link to an anchor': 'Länka till ett ankare',
|
|
26083
|
+
'On this page': 'På den här sidan',
|
|
26084
|
+
'The name cannot contain spaces': 'Namnet får inte innehålla mellanslag',
|
|
26085
|
+
'This name is already in use': 'Det här namnet används redan',
|
|
25926
26086
|
'Font size': 'Teckenstorlek',
|
|
25927
26087
|
'Font family': 'Teckensnitt',
|
|
25928
26088
|
'Insert format block': 'Infoga formateringsblock',
|
|
@@ -26150,7 +26310,7 @@ function addClassNames(className, elm) {
|
|
|
26150
26310
|
'For information about the license, please go to our website:': 'Lisans hakkında bilgi için lütfen web sitemize gidin:',
|
|
26151
26311
|
'Buy full version': 'Tam versiyonunu satın al',
|
|
26152
26312
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.',
|
|
26153
|
-
Anchor: '
|
|
26313
|
+
Anchor: 'Çapa',
|
|
26154
26314
|
'Open in new tab': 'Yeni sekmede aç',
|
|
26155
26315
|
'Open in fullsize': 'Editörü tam ekranda aç',
|
|
26156
26316
|
'Clear Formatting': 'Stili temizle',
|
|
@@ -26170,6 +26330,11 @@ function addClassNames(className, elm) {
|
|
|
26170
26330
|
'Insert file': 'Dosya Ekle',
|
|
26171
26331
|
'Insert youtube/vimeo video': 'Youtube/Vimeo Videosu Ekle',
|
|
26172
26332
|
'Insert link': 'Bağlantı Ekle',
|
|
26333
|
+
'Insert anchor': 'Çapa Ekle',
|
|
26334
|
+
'Link to an anchor': 'Çapaya bağlantı',
|
|
26335
|
+
'On this page': 'Bu sayfada',
|
|
26336
|
+
'The name cannot contain spaces': 'Ad boşluk içeremez',
|
|
26337
|
+
'This name is already in use': 'Bu ad zaten kullanılıyor',
|
|
26173
26338
|
'Font size': 'Font Boyutu',
|
|
26174
26339
|
'Font family': 'Font Ailesi',
|
|
26175
26340
|
'Insert format block': 'Blok Ekle',
|
|
@@ -26387,7 +26552,7 @@ function addClassNames(className, elm) {
|
|
|
26387
26552
|
'For information about the license, please go to our website:': 'Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:',
|
|
26388
26553
|
'Buy full version': 'Купити повну версію',
|
|
26389
26554
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.',
|
|
26390
|
-
Anchor: '
|
|
26555
|
+
Anchor: 'Якір',
|
|
26391
26556
|
'Open in new tab': 'Відкрити у новій вкладці',
|
|
26392
26557
|
'Open in fullsize': 'Відкрити редактор в повному розмірі',
|
|
26393
26558
|
'Clear Formatting': 'Очистити форматування',
|
|
@@ -26407,6 +26572,11 @@ function addClassNames(className, elm) {
|
|
|
26407
26572
|
'Insert file': 'Вставити файл',
|
|
26408
26573
|
'Insert youtube/vimeo video': 'Вставити відео',
|
|
26409
26574
|
'Insert link': 'Вставити посилання',
|
|
26575
|
+
'Insert anchor': 'Вставити якір',
|
|
26576
|
+
'Link to an anchor': 'Посилання на якір',
|
|
26577
|
+
'On this page': 'На цій сторінці',
|
|
26578
|
+
'The name cannot contain spaces': "Ім'я не може містити пробілів",
|
|
26579
|
+
'This name is already in use': "Це ім'я вже використовується",
|
|
26410
26580
|
'Font size': 'Розмір шрифту',
|
|
26411
26581
|
'Font family': 'Шрифт',
|
|
26412
26582
|
'Insert format block': 'Вставити блочний елемент',
|
|
@@ -26626,7 +26796,7 @@ function addClassNames(className, elm) {
|
|
|
26626
26796
|
'For information about the license, please go to our website:': '有关许可证的信息,请访问我们的网站:',
|
|
26627
26797
|
'Buy full version': '购买完整版本',
|
|
26628
26798
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.': 'Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有',
|
|
26629
|
-
Anchor: '
|
|
26799
|
+
Anchor: '锚点',
|
|
26630
26800
|
'Open in new tab': '在新窗口打开',
|
|
26631
26801
|
'Open in fullsize': '全屏编辑',
|
|
26632
26802
|
'Clear Formatting': '清除样式',
|
|
@@ -26646,6 +26816,11 @@ function addClassNames(className, elm) {
|
|
|
26646
26816
|
'Insert file': '文件',
|
|
26647
26817
|
'Insert youtube/vimeo video': '视频',
|
|
26648
26818
|
'Insert link': '链接',
|
|
26819
|
+
'Insert anchor': '插入锚点',
|
|
26820
|
+
'Link to an anchor': '链接到锚点',
|
|
26821
|
+
'On this page': '在本页',
|
|
26822
|
+
'The name cannot contain spaces': '名称不能包含空格',
|
|
26823
|
+
'This name is already in use': '此名称已被使用',
|
|
26649
26824
|
'Font size': '字号',
|
|
26650
26825
|
'Font family': '字体',
|
|
26651
26826
|
'Insert format block': '格式块',
|
|
@@ -26884,6 +27059,11 @@ function addClassNames(className, elm) {
|
|
|
26884
27059
|
'Insert file': '檔案',
|
|
26885
27060
|
'Insert youtube/vimeo video': '插入 youtube/vimeo 影片',
|
|
26886
27061
|
'Insert link': '插入連結',
|
|
27062
|
+
'Insert anchor': '插入錨點',
|
|
27063
|
+
'Link to an anchor': '連結到錨點',
|
|
27064
|
+
'On this page': '在本頁',
|
|
27065
|
+
'The name cannot contain spaces': '名稱不能包含空格',
|
|
27066
|
+
'This name is already in use': '此名稱已被使用',
|
|
26887
27067
|
'Font size': '文字大小',
|
|
26888
27068
|
'Font family': '字型',
|
|
26889
27069
|
'Insert format block': '格式化區塊',
|
|
@@ -29704,15 +29884,16 @@ function _async_to_generator(fn) {
|
|
|
29704
29884
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70231);
|
|
29705
29885
|
/* harmony import */ var _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84075);
|
|
29706
29886
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6441);
|
|
29707
|
-
/* harmony import */ var
|
|
29708
|
-
/* harmony import */ var
|
|
29709
|
-
/* harmony import */ var
|
|
29710
|
-
/* harmony import */ var
|
|
29711
|
-
/* harmony import */ var
|
|
29712
|
-
/* harmony import */ var
|
|
29713
|
-
/* harmony import */ var
|
|
29714
|
-
/* harmony import */ var
|
|
29715
|
-
/* harmony import */ var
|
|
29887
|
+
/* harmony import */ var _uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2073);
|
|
29888
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(61251);
|
|
29889
|
+
/* harmony import */ var _fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(30465);
|
|
29890
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20201);
|
|
29891
|
+
/* harmony import */ var _listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(73948);
|
|
29892
|
+
/* harmony import */ var _listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(33281);
|
|
29893
|
+
/* harmony import */ var _listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94538);
|
|
29894
|
+
/* harmony import */ var _data_provider_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(11787);
|
|
29895
|
+
/* harmony import */ var _factories_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(63399);
|
|
29896
|
+
/* harmony import */ var _ui_index_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8172);
|
|
29716
29897
|
/*!
|
|
29717
29898
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29718
29899
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29743,6 +29924,7 @@ function _async_to_generator(fn) {
|
|
|
29743
29924
|
|
|
29744
29925
|
|
|
29745
29926
|
|
|
29927
|
+
|
|
29746
29928
|
|
|
29747
29929
|
|
|
29748
29930
|
let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_10__.ViewWithToolbar {
|
|
@@ -29750,26 +29932,26 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29750
29932
|
return 'FileBrowser';
|
|
29751
29933
|
}
|
|
29752
29934
|
get dataProvider() {
|
|
29753
|
-
return (0,
|
|
29935
|
+
return (0,_factories_js__WEBPACK_IMPORTED_MODULE_20__.makeDataProvider)(this, this.options);
|
|
29754
29936
|
}
|
|
29755
29937
|
onSelect(callback) {
|
|
29756
29938
|
return ()=>{
|
|
29757
29939
|
if (this.state.activeElements.length) {
|
|
29758
|
-
const
|
|
29759
|
-
const isImages = [];
|
|
29940
|
+
const items = [];
|
|
29760
29941
|
this.state.activeElements.forEach((elm)=>{
|
|
29761
29942
|
const url = elm.fileURL;
|
|
29762
29943
|
if (url) {
|
|
29763
|
-
|
|
29764
|
-
|
|
29944
|
+
items.push({
|
|
29945
|
+
file: url,
|
|
29946
|
+
isImage: elm.isImage || false
|
|
29947
|
+
});
|
|
29765
29948
|
}
|
|
29766
29949
|
});
|
|
29767
29950
|
this.close();
|
|
29768
|
-
const data = {
|
|
29951
|
+
const data = (0,_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_12__.normalizeUploaderData)({
|
|
29769
29952
|
baseurl: '',
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
};
|
|
29953
|
+
items
|
|
29954
|
+
});
|
|
29773
29955
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.isFunction)(callback)) {
|
|
29774
29956
|
callback(data);
|
|
29775
29957
|
}
|
|
@@ -29835,10 +30017,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29835
30017
|
* ```javascript
|
|
29836
30018
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
29837
30019
|
* fb.open(function (data) {
|
|
29838
|
-
*
|
|
29839
|
-
*
|
|
29840
|
-
*
|
|
29841
|
-
* }
|
|
30020
|
+
* data.items.forEach(function (item) {
|
|
30021
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
30022
|
+
* });
|
|
29842
30023
|
* });
|
|
29843
30024
|
* ```
|
|
29844
30025
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -29861,7 +30042,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29861
30042
|
this.__updateToolbarButtons();
|
|
29862
30043
|
this._dialog.open(this.browser, header);
|
|
29863
30044
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
29864
|
-
(0,
|
|
30045
|
+
(0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_15__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
29865
30046
|
var _a;
|
|
29866
30047
|
if (this.isInDestruct) {
|
|
29867
30048
|
return;
|
|
@@ -29895,7 +30076,7 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29895
30076
|
initUploader(editor) {
|
|
29896
30077
|
var _a;
|
|
29897
30078
|
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);
|
|
29898
|
-
const uploadHandler = ()=>(0,
|
|
30079
|
+
const uploadHandler = ()=>(0,_fetch_load_items_js__WEBPACK_IMPORTED_MODULE_14__.loadItems)(this);
|
|
29899
30080
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
29900
30081
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
29901
30082
|
this.state.on([
|
|
@@ -29931,11 +30112,11 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29931
30112
|
super(options);
|
|
29932
30113
|
this.browser = this.c.div(this.componentName);
|
|
29933
30114
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
29934
|
-
this.tree = new
|
|
29935
|
-
this.files = new
|
|
30115
|
+
this.tree = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserTree(this);
|
|
30116
|
+
this.files = new _ui_index_js__WEBPACK_IMPORTED_MODULE_21__.FileBrowserFiles(this);
|
|
29936
30117
|
this.state = (0,_core_event_emitter_index_js__WEBPACK_IMPORTED_MODULE_5__.observable)({
|
|
29937
30118
|
currentPath: '',
|
|
29938
|
-
currentSource:
|
|
30119
|
+
currentSource: _data_provider_js__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_SOURCE_NAME,
|
|
29939
30120
|
currentBaseUrl: '',
|
|
29940
30121
|
activeElements: [],
|
|
29941
30122
|
elements: [],
|
|
@@ -29971,9 +30152,9 @@ let FileBrowser = class FileBrowser extends _core_view_view_with_toolbar_js__WEB
|
|
|
29971
30152
|
}
|
|
29972
30153
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.files.container);
|
|
29973
30154
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.append(self.browser, self.status_line);
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
|
|
30155
|
+
_listeners_self_listeners_js__WEBPACK_IMPORTED_MODULE_17__.selfListeners.call(self);
|
|
30156
|
+
_listeners_native_listeners_js__WEBPACK_IMPORTED_MODULE_16__.nativeListeners.call(self);
|
|
30157
|
+
_listeners_state_listeners_js__WEBPACK_IMPORTED_MODULE_18__.stateListeners.call(self);
|
|
29977
30158
|
const keys = [
|
|
29978
30159
|
'getLocalFileByUrl',
|
|
29979
30160
|
'crop',
|
|
@@ -32974,29 +33155,30 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
32974
33155
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32975
33156
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
32976
33157
|
/* harmony export */ });
|
|
32977
|
-
/* harmony import */ var
|
|
32978
|
-
/* harmony import */ var
|
|
32979
|
-
/* harmony import */ var
|
|
32980
|
-
/* harmony import */ var
|
|
32981
|
-
/* harmony import */ var
|
|
32982
|
-
/* harmony import */ var
|
|
32983
|
-
/* harmony import */ var
|
|
32984
|
-
/* harmony import */ var
|
|
32985
|
-
/* harmony import */ var
|
|
32986
|
-
/* harmony import */ var
|
|
32987
|
-
/* harmony import */ var
|
|
32988
|
-
/* harmony import */ var
|
|
32989
|
-
/* harmony import */ var
|
|
32990
|
-
/* harmony import */ var
|
|
32991
|
-
/* harmony import */ var
|
|
32992
|
-
/* harmony import */ var
|
|
32993
|
-
/* harmony import */ var
|
|
32994
|
-
/* harmony import */ var
|
|
32995
|
-
/* harmony import */ var
|
|
32996
|
-
/* harmony import */ var
|
|
32997
|
-
/* harmony import */ var
|
|
32998
|
-
/* harmony import */ var
|
|
32999
|
-
/* harmony import */ var
|
|
33158
|
+
/* harmony import */ var _core_component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4012);
|
|
33159
|
+
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78213);
|
|
33160
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
33161
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45219);
|
|
33162
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33433);
|
|
33163
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87325);
|
|
33164
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37133);
|
|
33165
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2748);
|
|
33166
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68345);
|
|
33167
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23282);
|
|
33168
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(19306);
|
|
33169
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(72430);
|
|
33170
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70799);
|
|
33171
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(56175);
|
|
33172
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(87058);
|
|
33173
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38837);
|
|
33174
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(29960);
|
|
33175
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37790);
|
|
33176
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(62843);
|
|
33177
|
+
/* harmony import */ var _core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(20014);
|
|
33178
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(72157);
|
|
33179
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(12153);
|
|
33180
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(56917);
|
|
33181
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(21491);
|
|
33000
33182
|
function _define_property(obj, key, value) {
|
|
33001
33183
|
if (key in obj) {
|
|
33002
33184
|
Object.defineProperty(obj, key, {
|
|
@@ -33056,6 +33238,8 @@ function _object_spread_props(target, source) {
|
|
|
33056
33238
|
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;
|
|
33057
33239
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33058
33240
|
};
|
|
33241
|
+
var ToolbarButton_1;
|
|
33242
|
+
|
|
33059
33243
|
|
|
33060
33244
|
|
|
33061
33245
|
|
|
@@ -33093,7 +33277,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
33093
33277
|
'textarea:not([disabled])',
|
|
33094
33278
|
'[tabindex]:not([tabindex="-1"])'
|
|
33095
33279
|
].join(',');
|
|
33096
|
-
let ToolbarButton = class ToolbarButton extends
|
|
33280
|
+
let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButton {
|
|
33097
33281
|
className() {
|
|
33098
33282
|
return 'ToolbarButton';
|
|
33099
33283
|
}
|
|
@@ -33104,13 +33288,13 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33104
33288
|
super.updateAriaLabel();
|
|
33105
33289
|
if (this.trigger) {
|
|
33106
33290
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
33107
|
-
(0,
|
|
33291
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
33108
33292
|
}
|
|
33109
33293
|
}
|
|
33110
33294
|
/**
|
|
33111
33295
|
* Get parent toolbar
|
|
33112
33296
|
*/ get toolbar() {
|
|
33113
|
-
const ToolbarCollection = (0,
|
|
33297
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.getComponentClass)('ToolbarCollection');
|
|
33114
33298
|
return this.closest(ToolbarCollection);
|
|
33115
33299
|
}
|
|
33116
33300
|
update() {
|
|
@@ -33132,7 +33316,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33132
33316
|
* Calculates whether the button is active
|
|
33133
33317
|
*/ __calculateActivatedStatus(tc) {
|
|
33134
33318
|
var _a, _b;
|
|
33135
|
-
if ((0,
|
|
33319
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
33136
33320
|
return false;
|
|
33137
33321
|
}
|
|
33138
33322
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -33156,20 +33340,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33156
33340
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
33157
33341
|
}
|
|
33158
33342
|
onChangeActivated() {
|
|
33159
|
-
;(0,
|
|
33343
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
33160
33344
|
super.onChangeActivated();
|
|
33161
33345
|
}
|
|
33162
33346
|
onChangeText() {
|
|
33163
|
-
if ((0,
|
|
33347
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
33164
33348
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
33349
|
+
// The name given before the text came would otherwise stay
|
|
33350
|
+
this.updateAriaLabel();
|
|
33165
33351
|
} else {
|
|
33166
33352
|
super.onChangeText();
|
|
33167
33353
|
}
|
|
33168
33354
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
33169
33355
|
}
|
|
33170
33356
|
onChangeTabIndex() {
|
|
33171
|
-
;(0,
|
|
33172
|
-
(0,
|
|
33357
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
33358
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
33173
33359
|
}
|
|
33174
33360
|
createContainer() {
|
|
33175
33361
|
const cn = this.componentName;
|
|
@@ -33181,29 +33367,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33181
33367
|
value: this,
|
|
33182
33368
|
configurable: true
|
|
33183
33369
|
});
|
|
33184
|
-
|
|
33185
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
33370
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(container, button);
|
|
33371
|
+
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>`);
|
|
33186
33372
|
// For caching
|
|
33187
|
-
|
|
33373
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(button, trigger);
|
|
33188
33374
|
return container;
|
|
33189
33375
|
}
|
|
33190
33376
|
/** @override */ focus() {
|
|
33191
33377
|
var _a;
|
|
33192
|
-
(_a =
|
|
33378
|
+
(_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();
|
|
33193
33379
|
}
|
|
33194
33380
|
onChangeHasTrigger() {
|
|
33195
33381
|
if (this.state.hasTrigger) {
|
|
33196
|
-
|
|
33382
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.append(this.container, this.trigger);
|
|
33197
33383
|
} else {
|
|
33198
|
-
|
|
33384
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(this.trigger);
|
|
33199
33385
|
}
|
|
33200
33386
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
33201
33387
|
}
|
|
33202
33388
|
/** @override */ onChangeDisabled() {
|
|
33203
33389
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
33204
|
-
(0,
|
|
33205
|
-
(0,
|
|
33206
|
-
(0,
|
|
33390
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'disabled', disabled);
|
|
33391
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'disabled', disabled);
|
|
33392
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', disabled);
|
|
33207
33393
|
}
|
|
33208
33394
|
/**
|
|
33209
33395
|
* Init constant data from control
|
|
@@ -33213,7 +33399,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33213
33399
|
state.name = ctr.name;
|
|
33214
33400
|
this.__initIconFromControl();
|
|
33215
33401
|
if (ctr.tooltip) {
|
|
33216
|
-
state.tooltip = (0,
|
|
33402
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
33217
33403
|
}
|
|
33218
33404
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
33219
33405
|
}
|
|
@@ -33221,12 +33407,12 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33221
33407
|
var _a;
|
|
33222
33408
|
const { control: ctr, state } = this;
|
|
33223
33409
|
const { textIcons } = this.j.o;
|
|
33224
|
-
if (textIcons === true || (0,
|
|
33225
|
-
state.icon = (0,
|
|
33410
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
33411
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)().icon;
|
|
33226
33412
|
state.text = ctr.text || ctr.name;
|
|
33227
33413
|
return;
|
|
33228
33414
|
}
|
|
33229
|
-
if (!(0,
|
|
33415
|
+
if (!(0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(ctr.icon) && ctr.icon != null) {
|
|
33230
33416
|
state.icon = {
|
|
33231
33417
|
name: ctr.icon.name || ctr.name,
|
|
33232
33418
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -33239,7 +33425,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33239
33425
|
state.icon.iconURL = ctr.iconURL;
|
|
33240
33426
|
} else {
|
|
33241
33427
|
const name = ctr.icon || ctr.name;
|
|
33242
|
-
state.icon.name =
|
|
33428
|
+
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 : '';
|
|
33243
33429
|
}
|
|
33244
33430
|
if (!ctr.iconURL && !state.icon.name) {
|
|
33245
33431
|
state.text = ctr.text || ctr.name;
|
|
@@ -33254,25 +33440,25 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33254
33440
|
return;
|
|
33255
33441
|
}
|
|
33256
33442
|
const { control: ctr } = this;
|
|
33257
|
-
(0,
|
|
33443
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', true);
|
|
33258
33444
|
e.buffer = {
|
|
33259
33445
|
actionTrigger: this
|
|
33260
33446
|
};
|
|
33261
33447
|
if (ctr.list) {
|
|
33262
33448
|
return this.__openControlList(ctr);
|
|
33263
33449
|
}
|
|
33264
|
-
if ((0,
|
|
33450
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
33265
33451
|
const popup = this.openPopup();
|
|
33266
33452
|
popup.parentElement = this;
|
|
33267
33453
|
try {
|
|
33268
|
-
if (this.j.e.fire((0,
|
|
33454
|
+
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) {
|
|
33269
33455
|
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;
|
|
33270
33456
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
33271
33457
|
if (elm) {
|
|
33272
|
-
popup.setContent((0,
|
|
33458
|
+
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);
|
|
33273
33459
|
// The focus stays in the content for a list, which
|
|
33274
33460
|
// typing searches, but goes to a form, as in a dialog
|
|
33275
|
-
(0,
|
|
33461
|
+
(0,_core_ui_helpers_focus_form_field_js__WEBPACK_IMPORTED_MODULE_19__.focusFormField)(popup.container);
|
|
33276
33462
|
} else {
|
|
33277
33463
|
this.__closePopup();
|
|
33278
33464
|
}
|
|
@@ -33285,20 +33471,20 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33285
33471
|
* Fired after the popup was opened for some control button
|
|
33286
33472
|
*/ /**
|
|
33287
33473
|
* Close all opened popups
|
|
33288
|
-
*/ this.j.e.fire((0,
|
|
33474
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
33289
33475
|
}
|
|
33290
33476
|
}
|
|
33291
33477
|
onTriggerKeyDown(e) {
|
|
33292
33478
|
if (this.state.disabled) {
|
|
33293
33479
|
return;
|
|
33294
33480
|
}
|
|
33295
|
-
if (e.key ===
|
|
33481
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN) {
|
|
33296
33482
|
this.onButtonKeyDown(e);
|
|
33297
33483
|
return;
|
|
33298
33484
|
}
|
|
33299
33485
|
if (![
|
|
33300
|
-
|
|
33301
|
-
|
|
33486
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ENTER,
|
|
33487
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_SPACE,
|
|
33302
33488
|
' '
|
|
33303
33489
|
].includes(e.key)) {
|
|
33304
33490
|
return;
|
|
@@ -33311,7 +33497,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33311
33497
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
33312
33498
|
*/ onButtonKeyDown(e) {
|
|
33313
33499
|
var _a;
|
|
33314
|
-
if (e.key !==
|
|
33500
|
+
if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
33315
33501
|
return;
|
|
33316
33502
|
}
|
|
33317
33503
|
e.preventDefault();
|
|
@@ -33330,22 +33516,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33330
33516
|
}
|
|
33331
33517
|
const target = e.target;
|
|
33332
33518
|
// A text field keeps the arrow keys for itself
|
|
33333
|
-
if (
|
|
33519
|
+
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) {
|
|
33334
33520
|
return;
|
|
33335
33521
|
}
|
|
33336
33522
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
33337
33523
|
switch(e.key){
|
|
33338
|
-
case
|
|
33524
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC:
|
|
33339
33525
|
this.__closePopup();
|
|
33340
33526
|
break;
|
|
33341
|
-
case
|
|
33527
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_UP:
|
|
33342
33528
|
if (index <= 0) {
|
|
33343
33529
|
this.__closePopup();
|
|
33344
33530
|
} else {
|
|
33345
33531
|
items[index - 1].focus();
|
|
33346
33532
|
}
|
|
33347
33533
|
break;
|
|
33348
|
-
case
|
|
33534
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN:
|
|
33349
33535
|
if (!items.length) {
|
|
33350
33536
|
return;
|
|
33351
33537
|
}
|
|
@@ -33415,7 +33601,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33415
33601
|
* Create an open popup list
|
|
33416
33602
|
*/ __openControlList(control) {
|
|
33417
33603
|
var _a, _b, _c, _d, _e;
|
|
33418
|
-
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,
|
|
33604
|
+
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);
|
|
33419
33605
|
const list = control.list;
|
|
33420
33606
|
const menu = this.openPopup();
|
|
33421
33607
|
menu.parentElement = this;
|
|
@@ -33423,17 +33609,17 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33423
33609
|
if (content) {
|
|
33424
33610
|
return this.__openMenu(menu, content);
|
|
33425
33611
|
}
|
|
33426
|
-
const toolbar = (0,
|
|
33612
|
+
const toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_23__.makeCollection)(this.j);
|
|
33427
33613
|
toolbar.parentElement = menu;
|
|
33428
33614
|
toolbar.mode = 'vertical';
|
|
33429
|
-
const isListItem = (key)=>(0,
|
|
33615
|
+
const isListItem = (key)=>(0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_11__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
33430
33616
|
const getButton = (key, value)=>{
|
|
33431
|
-
if ((0,
|
|
33617
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value) && getControl(value)) {
|
|
33432
33618
|
return _object_spread({
|
|
33433
33619
|
name: value.toString()
|
|
33434
33620
|
}, getControl(value));
|
|
33435
33621
|
}
|
|
33436
|
-
if ((0,
|
|
33622
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(key) && getControl(key)) {
|
|
33437
33623
|
return _object_spread({
|
|
33438
33624
|
name: key.toString()
|
|
33439
33625
|
}, getControl(key), typeof value === 'object' ? value : {});
|
|
@@ -33464,29 +33650,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33464
33650
|
value
|
|
33465
33651
|
]
|
|
33466
33652
|
};
|
|
33467
|
-
if ((0,
|
|
33653
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_12__.isString)(value)) {
|
|
33468
33654
|
childControl.text = value;
|
|
33469
33655
|
}
|
|
33470
33656
|
return childControl;
|
|
33471
33657
|
};
|
|
33472
|
-
toolbar.build((0,
|
|
33658
|
+
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);
|
|
33473
33659
|
this.__openMenu(menu, toolbar);
|
|
33474
33660
|
}
|
|
33475
33661
|
__openMenu(menu, content) {
|
|
33476
|
-
menu.setContent(content).open(()=>(0,
|
|
33662
|
+
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);
|
|
33477
33663
|
this.state.activated = true;
|
|
33478
33664
|
}
|
|
33479
33665
|
onOutsideClick(e) {
|
|
33480
33666
|
if (!this.openedPopup) {
|
|
33481
33667
|
return;
|
|
33482
33668
|
}
|
|
33483
|
-
if (!e || !
|
|
33669
|
+
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)) {
|
|
33484
33670
|
this.__closePopup();
|
|
33485
33671
|
}
|
|
33486
33672
|
}
|
|
33487
33673
|
openPopup() {
|
|
33488
33674
|
this.__closePopup();
|
|
33489
|
-
this.openedPopup = new
|
|
33675
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_22__.Popup(this.j, false);
|
|
33490
33676
|
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);
|
|
33491
33677
|
return this.openedPopup;
|
|
33492
33678
|
}
|
|
@@ -33506,14 +33692,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33506
33692
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
33507
33693
|
// the button, otherwise it would fall out to the document. A form
|
|
33508
33694
|
// gives it back to the content, with the selection it was opened for
|
|
33509
|
-
const { activeElement } = this.od, hadFocus = activeElement &&
|
|
33695
|
+
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);
|
|
33510
33696
|
this.state.activated = false;
|
|
33511
33697
|
popup.close();
|
|
33512
33698
|
popup.destruct();
|
|
33513
33699
|
if (this.trigger) {
|
|
33514
|
-
(0,
|
|
33700
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'aria-expanded', false);
|
|
33515
33701
|
}
|
|
33516
|
-
if (inForm && (0,
|
|
33702
|
+
if (inForm && (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j)) {
|
|
33517
33703
|
this.j.s.focus();
|
|
33518
33704
|
} else if (hadFocus) {
|
|
33519
33705
|
this.focus();
|
|
@@ -33524,7 +33710,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33524
33710
|
*/ onClick(originalEvent) {
|
|
33525
33711
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33526
33712
|
const { control: ctr } = this;
|
|
33527
|
-
if ((0,
|
|
33713
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.exec)) {
|
|
33528
33714
|
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;
|
|
33529
33715
|
const result = ctr.exec(this.j, target, {
|
|
33530
33716
|
control: ctr,
|
|
@@ -33537,9 +33723,10 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33537
33723
|
if (this.parentElement) {
|
|
33538
33724
|
this.parentElement.update();
|
|
33539
33725
|
}
|
|
33726
|
+
this.__closePopups();
|
|
33540
33727
|
/**
|
|
33541
33728
|
* Fired after calling `button.exec` function
|
|
33542
|
-
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('
|
|
33729
|
+
*/ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('afterExec');
|
|
33543
33730
|
}
|
|
33544
33731
|
if (result !== false) {
|
|
33545
33732
|
return;
|
|
@@ -33548,14 +33735,36 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33548
33735
|
if (ctr.list) {
|
|
33549
33736
|
return this.__openControlList(ctr);
|
|
33550
33737
|
}
|
|
33551
|
-
if ((0,
|
|
33738
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
|
|
33552
33739
|
return this.onTriggerClick(originalEvent);
|
|
33553
33740
|
}
|
|
33554
33741
|
if (ctr.command || ctr.name) {
|
|
33555
|
-
(0,
|
|
33556
|
-
this.
|
|
33742
|
+
(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]);
|
|
33743
|
+
this.__closePopups();
|
|
33557
33744
|
}
|
|
33558
33745
|
}
|
|
33746
|
+
/**
|
|
33747
|
+
* After the button's action, a popup that stays open (an element's)
|
|
33748
|
+
* keeps its place beside the element, and only the lists the button is
|
|
33749
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
33750
|
+
* popup closes
|
|
33751
|
+
*/ __closePopups() {
|
|
33752
|
+
var _a, _b;
|
|
33753
|
+
const openers = [
|
|
33754
|
+
this
|
|
33755
|
+
];
|
|
33756
|
+
for(let pe = this.parentElement; pe; pe = pe.parentElement){
|
|
33757
|
+
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)) {
|
|
33758
|
+
openers.forEach((button)=>button.__closePopup());
|
|
33759
|
+
pe.updatePosition();
|
|
33760
|
+
return;
|
|
33761
|
+
}
|
|
33762
|
+
if (_core_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(pe, ToolbarButton_1)) {
|
|
33763
|
+
openers.push(pe);
|
|
33764
|
+
}
|
|
33765
|
+
}
|
|
33766
|
+
(_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.e) === null || _b === void 0 ? void 0 : _b.fire('closeAllPopups');
|
|
33767
|
+
}
|
|
33559
33768
|
destruct() {
|
|
33560
33769
|
this.__closePopup();
|
|
33561
33770
|
return super.destruct();
|
|
@@ -33564,7 +33773,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33564
33773
|
super(jodit);
|
|
33565
33774
|
this.control = control;
|
|
33566
33775
|
this.target = target;
|
|
33567
|
-
this.state = _object_spread_props(_object_spread({}, (0,
|
|
33776
|
+
this.state = _object_spread_props(_object_spread({}, (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)()), {
|
|
33568
33777
|
theme: 'toolbar',
|
|
33569
33778
|
currentValue: '',
|
|
33570
33779
|
hasTrigger: false
|
|
@@ -33574,14 +33783,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33574
33783
|
this.__typedTo = null;
|
|
33575
33784
|
this.openedPopup = null;
|
|
33576
33785
|
const button = this.getElm('button');
|
|
33577
|
-
(0,
|
|
33786
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(button, 'Element button should exists');
|
|
33578
33787
|
this.button = button;
|
|
33579
33788
|
Object.defineProperty(button, 'component', {
|
|
33580
33789
|
value: this,
|
|
33581
33790
|
configurable: true
|
|
33582
33791
|
});
|
|
33583
33792
|
const trigger = this.getElm('trigger');
|
|
33584
|
-
(0,
|
|
33793
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_15__.assert)(trigger, 'Element trigger should exists');
|
|
33585
33794
|
this.trigger = trigger;
|
|
33586
33795
|
trigger.remove();
|
|
33587
33796
|
// Prevent lost focus
|
|
@@ -33590,7 +33799,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33590
33799
|
this.trigger
|
|
33591
33800
|
], 'mousedown', (e)=>e.preventDefault());
|
|
33592
33801
|
this.onAction(this.onClick);
|
|
33593
|
-
this.hookStatus(
|
|
33802
|
+
this.hookStatus(_core_component_statuses_js__WEBPACK_IMPORTED_MODULE_1__.STATUSES.ready, ()=>{
|
|
33594
33803
|
this.__initFromControl();
|
|
33595
33804
|
this.update();
|
|
33596
33805
|
});
|
|
@@ -33602,36 +33811,36 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
33602
33811
|
}
|
|
33603
33812
|
};
|
|
33604
33813
|
__decorate([
|
|
33605
|
-
|
|
33814
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_4__.cacheHTML
|
|
33606
33815
|
], ToolbarButton.prototype, "createContainer", null);
|
|
33607
33816
|
__decorate([
|
|
33608
|
-
(0,
|
|
33817
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('state.hasTrigger', {
|
|
33609
33818
|
immediately: false
|
|
33610
33819
|
})
|
|
33611
33820
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
33612
33821
|
__decorate([
|
|
33613
|
-
(0,
|
|
33822
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:click')
|
|
33614
33823
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
33615
33824
|
__decorate([
|
|
33616
|
-
(0,
|
|
33825
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:keydown')
|
|
33617
33826
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
33618
33827
|
__decorate([
|
|
33619
|
-
(0,
|
|
33828
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_6__.watch)('button:keydown')
|
|
33620
33829
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
33621
33830
|
__decorate([
|
|
33622
|
-
|
|
33831
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33623
33832
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
33624
33833
|
__decorate([
|
|
33625
|
-
|
|
33834
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33626
33835
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
33627
33836
|
__decorate([
|
|
33628
|
-
|
|
33837
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33629
33838
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
33630
33839
|
__decorate([
|
|
33631
|
-
|
|
33840
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
33632
33841
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
33633
|
-
ToolbarButton = __decorate([
|
|
33634
|
-
|
|
33842
|
+
ToolbarButton = ToolbarButton_1 = __decorate([
|
|
33843
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_5__.component
|
|
33635
33844
|
], ToolbarButton);
|
|
33636
33845
|
|
|
33637
33846
|
|
|
@@ -34141,6 +34350,7 @@ function makeSelect(view, control, target = null) {
|
|
|
34141
34350
|
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19306);
|
|
34142
34351
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
34143
34352
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
34353
|
+
/* harmony import */ var _helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
34144
34354
|
/*!
|
|
34145
34355
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34146
34356
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34149,6 +34359,7 @@ function makeSelect(view, control, target = null) {
|
|
|
34149
34359
|
|
|
34150
34360
|
|
|
34151
34361
|
|
|
34362
|
+
|
|
34152
34363
|
/**
|
|
34153
34364
|
* Module for processing download documents and images by Drag and Drop
|
|
34154
34365
|
* Drag and Drop files
|
|
@@ -34209,27 +34420,26 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
34209
34420
|
if (!(0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
34210
34421
|
return;
|
|
34211
34422
|
}
|
|
34212
|
-
|
|
34213
|
-
|
|
34214
|
-
|
|
34215
|
-
|
|
34216
|
-
|
|
34217
|
-
|
|
34218
|
-
|
|
34219
|
-
|
|
34220
|
-
|
|
34221
|
-
|
|
34222
|
-
|
|
34223
|
-
|
|
34224
|
-
|
|
34225
|
-
|
|
34226
|
-
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
|
|
34230
|
-
|
|
34231
|
-
|
|
34232
|
-
}
|
|
34423
|
+
const { baseurl } = resp;
|
|
34424
|
+
(0,_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(resp).forEach(({ file, isImage })=>{
|
|
34425
|
+
const [tagName, attrName] = isImage ? [
|
|
34426
|
+
'img',
|
|
34427
|
+
'src'
|
|
34428
|
+
] : [
|
|
34429
|
+
'a',
|
|
34430
|
+
'href'
|
|
34431
|
+
];
|
|
34432
|
+
const elm = j.createInside.element(tagName);
|
|
34433
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, attrName, baseurl + file);
|
|
34434
|
+
if (tagName === 'a') {
|
|
34435
|
+
elm.textContent = j.o.uploader.getDisplayName.call(this, baseurl, file);
|
|
34436
|
+
}
|
|
34437
|
+
if (tagName === 'img') {
|
|
34438
|
+
j.s.insertImage(elm, null, j.o.imageDefaultWidth);
|
|
34439
|
+
} else {
|
|
34440
|
+
j.s.insertNode(elm);
|
|
34441
|
+
}
|
|
34442
|
+
});
|
|
34233
34443
|
},
|
|
34234
34444
|
defaultHandlerError (e) {
|
|
34235
34445
|
this.j.message.error(e.message);
|
|
@@ -34319,17 +34529,19 @@ function buildData(uploader, data) {
|
|
|
34319
34529
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34320
34530
|
|
|
34321
34531
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34322
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
34532
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
34323
34533
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
34324
34534
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
34325
|
-
/* harmony export */
|
|
34326
|
-
/* harmony export */
|
|
34327
|
-
/* harmony export */
|
|
34535
|
+
/* harmony export */ normalizeUploaderData: function() { return /* reexport safe */ _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__.normalizeUploaderData; },
|
|
34536
|
+
/* harmony export */ processOldBrowserDrag: function() { return /* reexport safe */ _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__.processOldBrowserDrag; },
|
|
34537
|
+
/* harmony export */ send: function() { return /* reexport safe */ _send_js__WEBPACK_IMPORTED_MODULE_3__.send; },
|
|
34538
|
+
/* harmony export */ sendFiles: function() { return /* reexport safe */ _send_files_js__WEBPACK_IMPORTED_MODULE_4__.sendFiles; }
|
|
34328
34539
|
/* harmony export */ });
|
|
34329
34540
|
/* harmony import */ var _build_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83987);
|
|
34330
|
-
/* harmony import */ var
|
|
34331
|
-
/* harmony import */ var
|
|
34332
|
-
/* harmony import */ var
|
|
34541
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2073);
|
|
34542
|
+
/* harmony import */ var _process_old_browser_drag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50373);
|
|
34543
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71686);
|
|
34544
|
+
/* harmony import */ var _send_files_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80020);
|
|
34333
34545
|
/*!
|
|
34334
34546
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34335
34547
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34339,6 +34551,7 @@ function buildData(uploader, data) {
|
|
|
34339
34551
|
|
|
34340
34552
|
|
|
34341
34553
|
|
|
34554
|
+
|
|
34342
34555
|
function hasFiles(data) {
|
|
34343
34556
|
return Boolean(data && data.files && data.files.length > 0);
|
|
34344
34557
|
}
|
|
@@ -34347,6 +34560,123 @@ function hasItems(data) {
|
|
|
34347
34560
|
}
|
|
34348
34561
|
|
|
34349
34562
|
|
|
34563
|
+
/***/ }),
|
|
34564
|
+
|
|
34565
|
+
/***/ 2073:
|
|
34566
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34567
|
+
|
|
34568
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34569
|
+
/* harmony export */ getItems: function() { return /* binding */ getItems; },
|
|
34570
|
+
/* harmony export */ normalizeUploaderData: function() { return /* binding */ normalizeUploaderData; }
|
|
34571
|
+
/* harmony export */ });
|
|
34572
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
34573
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70799);
|
|
34574
|
+
function _define_property(obj, key, value) {
|
|
34575
|
+
if (key in obj) {
|
|
34576
|
+
Object.defineProperty(obj, key, {
|
|
34577
|
+
value: value,
|
|
34578
|
+
enumerable: true,
|
|
34579
|
+
configurable: true,
|
|
34580
|
+
writable: true
|
|
34581
|
+
});
|
|
34582
|
+
} else obj[key] = value;
|
|
34583
|
+
return obj;
|
|
34584
|
+
}
|
|
34585
|
+
function _object_spread(target) {
|
|
34586
|
+
for(var i = 1; i < arguments.length; i++){
|
|
34587
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
34588
|
+
var ownKeys = Object.keys(source);
|
|
34589
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
34590
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34591
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
34592
|
+
}));
|
|
34593
|
+
}
|
|
34594
|
+
ownKeys.forEach(function(key) {
|
|
34595
|
+
_define_property(target, key, source[key]);
|
|
34596
|
+
});
|
|
34597
|
+
}
|
|
34598
|
+
return target;
|
|
34599
|
+
}
|
|
34600
|
+
function ownKeys(object, enumerableOnly) {
|
|
34601
|
+
var keys = Object.keys(object);
|
|
34602
|
+
if (Object.getOwnPropertySymbols) {
|
|
34603
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
34604
|
+
if (enumerableOnly) {
|
|
34605
|
+
symbols = symbols.filter(function(sym) {
|
|
34606
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34607
|
+
});
|
|
34608
|
+
}
|
|
34609
|
+
keys.push.apply(keys, symbols);
|
|
34610
|
+
}
|
|
34611
|
+
return keys;
|
|
34612
|
+
}
|
|
34613
|
+
function _object_spread_props(target, source) {
|
|
34614
|
+
source = source != null ? source : {};
|
|
34615
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34616
|
+
else {
|
|
34617
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
34618
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34619
|
+
});
|
|
34620
|
+
}
|
|
34621
|
+
return target;
|
|
34622
|
+
}
|
|
34623
|
+
/*!
|
|
34624
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34625
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
34626
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
34627
|
+
*/ ;
|
|
34628
|
+
|
|
34629
|
+
/**
|
|
34630
|
+
* The files in upload or file browser data, one object each. While the
|
|
34631
|
+
* deprecated `files` array is set, it and `isImages` and `fileNames` win
|
|
34632
|
+
* over `items`, so a handler that edits them and passes the data on to a
|
|
34633
|
+
* default handler still gets its edits inserted. A file browser that
|
|
34634
|
+
* passes only the arrays works too.
|
|
34635
|
+
*/ function getItems(data) {
|
|
34636
|
+
const { files, isImages, fileNames, items } = data;
|
|
34637
|
+
if (!(0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files)) {
|
|
34638
|
+
return items !== null && items !== void 0 ? items : [];
|
|
34639
|
+
}
|
|
34640
|
+
return files.map((file, i)=>{
|
|
34641
|
+
const name = fileNames === null || fileNames === void 0 ? void 0 : fileNames[i];
|
|
34642
|
+
return _object_spread({
|
|
34643
|
+
file,
|
|
34644
|
+
isImage: Boolean(isImages === null || isImages === void 0 ? void 0 : isImages[i])
|
|
34645
|
+
}, name !== undefined ? {
|
|
34646
|
+
name
|
|
34647
|
+
} : {});
|
|
34648
|
+
});
|
|
34649
|
+
}
|
|
34650
|
+
/**
|
|
34651
|
+
* Gives the data both `items` and the deprecated `files`, `isImages` and
|
|
34652
|
+
* `fileNames` arrays, building whichever is missing, so a handler can read
|
|
34653
|
+
* either. When both are given, `items` is rebuilt from the arrays, as in
|
|
34654
|
+
* [[getItems]], unless `files` is empty and `items` isn't, as from a
|
|
34655
|
+
* `process` that spreads the server's answer and adds `items`. Anything but
|
|
34656
|
+
* an object, such as the `null` a custom `process` may return, is passed on
|
|
34657
|
+
* as it is.
|
|
34658
|
+
*/ function normalizeUploaderData(data) {
|
|
34659
|
+
if (!data || typeof data !== 'object') {
|
|
34660
|
+
return data;
|
|
34661
|
+
}
|
|
34662
|
+
const { files, items } = data;
|
|
34663
|
+
if (!items || (0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(files) && (files.length || !items.length)) {
|
|
34664
|
+
return _object_spread_props(_object_spread({}, data), {
|
|
34665
|
+
items: getItems(data)
|
|
34666
|
+
});
|
|
34667
|
+
}
|
|
34668
|
+
const names = items.map(({ name })=>name);
|
|
34669
|
+
return _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, data), {
|
|
34670
|
+
files: items.map(({ file })=>file),
|
|
34671
|
+
isImages: items.map(({ isImage })=>isImage)
|
|
34672
|
+
}), names.every(_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__.isString) ? {
|
|
34673
|
+
fileNames: names
|
|
34674
|
+
} : {}), {
|
|
34675
|
+
items
|
|
34676
|
+
});
|
|
34677
|
+
}
|
|
34678
|
+
|
|
34679
|
+
|
|
34350
34680
|
/***/ }),
|
|
34351
34681
|
|
|
34352
34682
|
/***/ 50373:
|
|
@@ -34408,8 +34738,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
34408
34738
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
34409
34739
|
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
34410
34740
|
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
34411
|
-
/* harmony import */ var
|
|
34412
|
-
/* harmony import */ var
|
|
34741
|
+
/* harmony import */ var _normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
34742
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71686);
|
|
34743
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76198);
|
|
34413
34744
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
34414
34745
|
try {
|
|
34415
34746
|
var info = gen[key](arg);
|
|
@@ -34472,6 +34803,7 @@ function _object_spread(target) {
|
|
|
34472
34803
|
|
|
34473
34804
|
|
|
34474
34805
|
|
|
34806
|
+
|
|
34475
34807
|
/**
|
|
34476
34808
|
* Send files to server
|
|
34477
34809
|
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -34559,13 +34891,13 @@ retryOf) {
|
|
|
34559
34891
|
});
|
|
34560
34892
|
}
|
|
34561
34893
|
o.prepareData.call(uploader, form);
|
|
34562
|
-
promises.push((0,
|
|
34894
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
34563
34895
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34564
34896
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34565
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
34897
|
+
handler.call(uploader, (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
34566
34898
|
return resp;
|
|
34567
34899
|
}
|
|
34568
|
-
const err = new
|
|
34900
|
+
const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_6__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
|
|
34569
34901
|
var _a;
|
|
34570
34902
|
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
34571
34903
|
data: _object_spread({}, extraData, plan === null || plan === void 0 ? void 0 : plan.data)
|
|
@@ -34640,18 +34972,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
34640
34972
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
34641
34973
|
reader.onerror = reject;
|
|
34642
34974
|
reader.onloadend = ()=>{
|
|
34643
|
-
const resp = {
|
|
34975
|
+
const resp = (0,_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
34644
34976
|
baseurl: '',
|
|
34645
|
-
|
|
34646
|
-
|
|
34647
|
-
|
|
34648
|
-
|
|
34649
|
-
|
|
34650
|
-
|
|
34651
|
-
fileNames: [
|
|
34652
|
-
name
|
|
34977
|
+
items: [
|
|
34978
|
+
{
|
|
34979
|
+
file: reader.result,
|
|
34980
|
+
isImage: true,
|
|
34981
|
+
name
|
|
34982
|
+
}
|
|
34653
34983
|
]
|
|
34654
|
-
};
|
|
34984
|
+
});
|
|
34655
34985
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
34656
34986
|
handler.call(uploader, resp);
|
|
34657
34987
|
resolve(resp);
|
|
@@ -34853,11 +35183,10 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34853
35183
|
* ```javascript
|
|
34854
35184
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
34855
35185
|
* jQuery('body').append($form);
|
|
34856
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
34857
|
-
*
|
|
34858
|
-
*
|
|
34859
|
-
*
|
|
34860
|
-
* }
|
|
35186
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (data) {
|
|
35187
|
+
* data.items.forEach(function (item) {
|
|
35188
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
35189
|
+
* });
|
|
34861
35190
|
* });
|
|
34862
35191
|
* ```
|
|
34863
35192
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -34956,7 +35285,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34956
35285
|
var _a;
|
|
34957
35286
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34958
35287
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34959
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
35288
|
+
handler.call(uploader, (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
34960
35289
|
return;
|
|
34961
35290
|
}
|
|
34962
35291
|
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));
|
|
@@ -34974,6 +35303,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34974
35303
|
if (!settled) {
|
|
34975
35304
|
resolve({
|
|
34976
35305
|
baseurl: '',
|
|
35306
|
+
items: [],
|
|
34977
35307
|
files: [],
|
|
34978
35308
|
isImages: []
|
|
34979
35309
|
});
|
|
@@ -36404,40 +36734,41 @@ UiAiAssistant = __decorate([
|
|
|
36404
36734
|
/* harmony import */ var _limit_limit_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(91071);
|
|
36405
36735
|
/* harmony import */ var _line_height_line_height_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(61019);
|
|
36406
36736
|
/* harmony import */ var _link_link_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(65517);
|
|
36407
|
-
/* harmony import */ var
|
|
36408
|
-
/* harmony import */ var
|
|
36409
|
-
/* harmony import */ var
|
|
36410
|
-
/* harmony import */ var
|
|
36411
|
-
/* harmony import */ var
|
|
36412
|
-
/* harmony import */ var
|
|
36413
|
-
/* harmony import */ var
|
|
36414
|
-
/* harmony import */ var
|
|
36415
|
-
/* harmony import */ var
|
|
36416
|
-
/* harmony import */ var
|
|
36417
|
-
/* harmony import */ var
|
|
36418
|
-
/* harmony import */ var
|
|
36419
|
-
/* harmony import */ var
|
|
36420
|
-
/* harmony import */ var
|
|
36421
|
-
/* harmony import */ var
|
|
36422
|
-
/* harmony import */ var
|
|
36423
|
-
/* harmony import */ var
|
|
36424
|
-
/* harmony import */ var
|
|
36425
|
-
/* harmony import */ var
|
|
36426
|
-
/* harmony import */ var
|
|
36427
|
-
/* harmony import */ var
|
|
36428
|
-
/* harmony import */ var
|
|
36429
|
-
/* harmony import */ var
|
|
36430
|
-
/* harmony import */ var
|
|
36431
|
-
/* harmony import */ var
|
|
36432
|
-
/* harmony import */ var
|
|
36433
|
-
/* harmony import */ var
|
|
36434
|
-
/* harmony import */ var
|
|
36435
|
-
/* harmony import */ var
|
|
36436
|
-
/* harmony import */ var
|
|
36437
|
-
/* harmony import */ var
|
|
36438
|
-
/* harmony import */ var
|
|
36439
|
-
/* harmony import */ var
|
|
36440
|
-
/* harmony import */ var
|
|
36737
|
+
/* harmony import */ var _anchor_anchor_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(36911);
|
|
36738
|
+
/* harmony import */ var _media_media_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(20071);
|
|
36739
|
+
/* harmony import */ var _mobile_mobile_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(32309);
|
|
36740
|
+
/* harmony import */ var _ordered_list_ordered_list_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(64837);
|
|
36741
|
+
/* harmony import */ var _paste_paste_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(79799);
|
|
36742
|
+
/* harmony import */ var _paste_from_word_paste_from_word_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(31571);
|
|
36743
|
+
/* harmony import */ var _paste_storage_paste_storage_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(85407);
|
|
36744
|
+
/* harmony import */ var _placeholder_placeholder_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(59451);
|
|
36745
|
+
/* harmony import */ var _powered_by_jodit_powered_by_jodit_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(18363);
|
|
36746
|
+
/* harmony import */ var _preview_preview_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(8355);
|
|
36747
|
+
/* harmony import */ var _print_print_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(58519);
|
|
36748
|
+
/* harmony import */ var _redo_undo_redo_undo_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(6687);
|
|
36749
|
+
/* harmony import */ var _resize_cells_resize_cells_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(56113);
|
|
36750
|
+
/* harmony import */ var _resize_handler_resize_handler_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(9159);
|
|
36751
|
+
/* harmony import */ var _resizer_resizer_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(12019);
|
|
36752
|
+
/* harmony import */ var _search_search_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(36125);
|
|
36753
|
+
/* harmony import */ var _select_select_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(9881);
|
|
36754
|
+
/* harmony import */ var _select_cells_select_cells_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(28545);
|
|
36755
|
+
/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(45927);
|
|
36756
|
+
/* harmony import */ var _source_source_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(52951);
|
|
36757
|
+
/* harmony import */ var _spellcheck_spellcheck_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(43809);
|
|
36758
|
+
/* harmony import */ var _stat_stat_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(7309);
|
|
36759
|
+
/* harmony import */ var _sticky_sticky_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(68687);
|
|
36760
|
+
/* harmony import */ var _symbols_symbols_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(59495);
|
|
36761
|
+
/* harmony import */ var _ai_assistant_ai_assistant_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(39627);
|
|
36762
|
+
/* harmony import */ var _tab_tab_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(767);
|
|
36763
|
+
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(43003);
|
|
36764
|
+
/* harmony import */ var _table_keyboard_navigation_table_keyboard_navigation_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(72439);
|
|
36765
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(94529);
|
|
36766
|
+
/* harmony import */ var _video_video_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(26551);
|
|
36767
|
+
/* harmony import */ var _video_properties_video_properties_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(96139);
|
|
36768
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(72253);
|
|
36769
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(65735);
|
|
36770
|
+
/* harmony import */ var _xpath_xpath_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(83671);
|
|
36771
|
+
/* harmony import */ var _speech_recognize_speech_recognize_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(3115);
|
|
36441
36772
|
/*!
|
|
36442
36773
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36443
36774
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36510,12 +36841,333 @@ UiAiAssistant = __decorate([
|
|
|
36510
36841
|
|
|
36511
36842
|
|
|
36512
36843
|
|
|
36844
|
+
|
|
36513
36845
|
|
|
36514
36846
|
|
|
36515
36847
|
// JODIT-START:FAT
|
|
36516
36848
|
// JODIT-END:FAT
|
|
36517
36849
|
|
|
36518
36850
|
|
|
36851
|
+
/***/ }),
|
|
36852
|
+
|
|
36853
|
+
/***/ 36911:
|
|
36854
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
36855
|
+
|
|
36856
|
+
/* unused harmony export anchor */
|
|
36857
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
36858
|
+
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
36859
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
36860
|
+
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
36861
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
36862
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
36863
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
36864
|
+
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
36865
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50712);
|
|
36866
|
+
/*!
|
|
36867
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36868
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
36869
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
36870
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
36871
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36872
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36873
|
+
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;
|
|
36874
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36875
|
+
};
|
|
36876
|
+
|
|
36877
|
+
|
|
36878
|
+
|
|
36879
|
+
|
|
36880
|
+
|
|
36881
|
+
|
|
36882
|
+
|
|
36883
|
+
|
|
36884
|
+
|
|
36885
|
+
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\")";
|
|
36886
|
+
const MARKER = [
|
|
36887
|
+
'id',
|
|
36888
|
+
'name'
|
|
36889
|
+
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
36890
|
+
/**
|
|
36891
|
+
* Each anchor's marker, in the editing area only
|
|
36892
|
+
*/ 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:''}`;
|
|
36893
|
+
/**
|
|
36894
|
+
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
36895
|
+
*/ const MARK = ' contenteditable="false"';
|
|
36896
|
+
/**
|
|
36897
|
+
* Inserts anchors, empty `<a id>` that links in the document reach as
|
|
36898
|
+
* `#name`, and renames and removes them
|
|
36899
|
+
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
36900
|
+
/** @override */ afterInit(jodit) {
|
|
36901
|
+
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
36902
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
|
|
36903
|
+
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
36904
|
+
top: true
|
|
36905
|
+
});
|
|
36906
|
+
}
|
|
36907
|
+
/**
|
|
36908
|
+
* An anchor gets its own popup, in place of the link's
|
|
36909
|
+
*/ __onClickA(target, e) {
|
|
36910
|
+
var _a;
|
|
36911
|
+
const { j } = this;
|
|
36912
|
+
if (j.o.readonly || !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target)) {
|
|
36913
|
+
return;
|
|
36914
|
+
}
|
|
36915
|
+
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'));
|
|
36916
|
+
// Afresh, so a form left with a change unsaved shows the name it has
|
|
36917
|
+
j.e.fire('showPopup', target, ()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(target, j), 'anchor', true);
|
|
36918
|
+
return false;
|
|
36919
|
+
}
|
|
36920
|
+
/**
|
|
36921
|
+
* Anchors are uneditable in the editor, so typing beside one never goes
|
|
36922
|
+
* into it and it's deleted as a whole
|
|
36923
|
+
*/ onChange() {
|
|
36924
|
+
const { j } = this;
|
|
36925
|
+
if (j.isInDestruct || j.getMode() === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
|
|
36926
|
+
return;
|
|
36927
|
+
}
|
|
36928
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(j.editor).forEach(markAnchor);
|
|
36929
|
+
}
|
|
36930
|
+
/**
|
|
36931
|
+
* The editor's own attribute stays out of the value
|
|
36932
|
+
*/ onAfterGetValueFromEditor(data) {
|
|
36933
|
+
data.value = unmarkAnchors(data.value);
|
|
36934
|
+
}
|
|
36935
|
+
/**
|
|
36936
|
+
* The form that names a new anchor, or renames or removes `target`
|
|
36937
|
+
*/ __generateForm(target, close) {
|
|
36938
|
+
const { j } = this;
|
|
36939
|
+
const current = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(target) ? target : null;
|
|
36940
|
+
const input = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIInput(j, {
|
|
36941
|
+
name: 'name',
|
|
36942
|
+
ref: 'name_input',
|
|
36943
|
+
label: 'Anchor',
|
|
36944
|
+
required: true
|
|
36945
|
+
});
|
|
36946
|
+
const buttons = [
|
|
36947
|
+
new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
36948
|
+
name: 'insert',
|
|
36949
|
+
type: 'submit',
|
|
36950
|
+
variant: 'primary',
|
|
36951
|
+
text: current ? 'Update' : 'Insert'
|
|
36952
|
+
})
|
|
36953
|
+
];
|
|
36954
|
+
if (current) {
|
|
36955
|
+
input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
36956
|
+
buttons.unshift(new _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.UIButton(j, {
|
|
36957
|
+
name: 'remove',
|
|
36958
|
+
variant: 'default',
|
|
36959
|
+
text: 'Remove'
|
|
36960
|
+
}).onAction(()=>{
|
|
36961
|
+
if (!j.o.readonly) {
|
|
36962
|
+
j.s.restore();
|
|
36963
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove(current);
|
|
36964
|
+
j.synchronizeValues();
|
|
36965
|
+
}
|
|
36966
|
+
close();
|
|
36967
|
+
}));
|
|
36968
|
+
}
|
|
36969
|
+
const form = new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIForm(j, [
|
|
36970
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, [
|
|
36971
|
+
input
|
|
36972
|
+
]),
|
|
36973
|
+
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__.UIBlock(j, buttons, {
|
|
36974
|
+
align: 'full'
|
|
36975
|
+
})
|
|
36976
|
+
]);
|
|
36977
|
+
if (current) {
|
|
36978
|
+
this.__dropForm();
|
|
36979
|
+
this.__form = form;
|
|
36980
|
+
// The toolbar's popup closes on Escape by itself; the anchor's own doesn't
|
|
36981
|
+
j.e.on(form.container, 'keydown', (e)=>{
|
|
36982
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
36983
|
+
close();
|
|
36984
|
+
j.s.restore();
|
|
36985
|
+
}
|
|
36986
|
+
});
|
|
36987
|
+
}
|
|
36988
|
+
form.onSubmit(()=>{
|
|
36989
|
+
// The editor can turn readonly while the form is open
|
|
36990
|
+
if (j.o.readonly) {
|
|
36991
|
+
close();
|
|
36992
|
+
return false;
|
|
36993
|
+
}
|
|
36994
|
+
const name = input.value.trim().replace(/^#/, '');
|
|
36995
|
+
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' : '';
|
|
36996
|
+
if (error) {
|
|
36997
|
+
input.error = error;
|
|
36998
|
+
input.focus();
|
|
36999
|
+
return false;
|
|
37000
|
+
}
|
|
37001
|
+
j.s.restore();
|
|
37002
|
+
if (current) {
|
|
37003
|
+
this.__rename(current, name);
|
|
37004
|
+
} else {
|
|
37005
|
+
this.__insert(name);
|
|
37006
|
+
}
|
|
37007
|
+
j.synchronizeValues();
|
|
37008
|
+
close();
|
|
37009
|
+
return false;
|
|
37010
|
+
});
|
|
37011
|
+
j.async.requestIdleCallback(()=>input.focus());
|
|
37012
|
+
return form;
|
|
37013
|
+
}
|
|
37014
|
+
__dropForm() {
|
|
37015
|
+
const form = this.__form;
|
|
37016
|
+
this.__form = null;
|
|
37017
|
+
if (form && !form.isInDestruct) {
|
|
37018
|
+
this.j.e.off(form.container, 'keydown');
|
|
37019
|
+
form.destruct();
|
|
37020
|
+
}
|
|
37021
|
+
}
|
|
37022
|
+
/**
|
|
37023
|
+
* Another element in the document has the name as its `id`, or another
|
|
37024
|
+
* anchor as its `name`
|
|
37025
|
+
*/ __isTaken(name, current) {
|
|
37026
|
+
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));
|
|
37027
|
+
}
|
|
37028
|
+
/**
|
|
37029
|
+
* At the caret, or at the start of the selection. An anchor can't go in
|
|
37030
|
+
* a link, so in one it goes just before it
|
|
37031
|
+
*/ __insert(name) {
|
|
37032
|
+
const { j } = this;
|
|
37033
|
+
const anchor = j.createInside.element('a', {
|
|
37034
|
+
id: name
|
|
37035
|
+
});
|
|
37036
|
+
const range = j.s.range;
|
|
37037
|
+
markAnchor(anchor);
|
|
37038
|
+
if (!range.collapsed) {
|
|
37039
|
+
range.collapse(true);
|
|
37040
|
+
j.s.selectRange(range);
|
|
37041
|
+
}
|
|
37042
|
+
const link = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(range.startContainer, 'a', j.editor);
|
|
37043
|
+
if (link) {
|
|
37044
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.before(link, anchor);
|
|
37045
|
+
j.s.setCursorAfter(anchor);
|
|
37046
|
+
} else {
|
|
37047
|
+
j.s.insertNode(anchor, true, false);
|
|
37048
|
+
}
|
|
37049
|
+
}
|
|
37050
|
+
/**
|
|
37051
|
+
* Gives the anchor the new name in whichever of `id` and `name` it has,
|
|
37052
|
+
* and the links to it the new `#name`, unless they still reach
|
|
37053
|
+
* something else by the old one, as they do after a copy is pasted
|
|
37054
|
+
*/ __rename(current, name) {
|
|
37055
|
+
const old = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(current);
|
|
37056
|
+
const shared = this.__isTaken(old, current);
|
|
37057
|
+
[
|
|
37058
|
+
'id',
|
|
37059
|
+
'name'
|
|
37060
|
+
].forEach((key)=>{
|
|
37061
|
+
if (current.hasAttribute(key)) {
|
|
37062
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(current, key, name);
|
|
37063
|
+
}
|
|
37064
|
+
});
|
|
37065
|
+
if (shared) {
|
|
37066
|
+
return;
|
|
37067
|
+
}
|
|
37068
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.j.editor.querySelectorAll('a[href]')).forEach((link)=>{
|
|
37069
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') === '#' + old) {
|
|
37070
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + name);
|
|
37071
|
+
}
|
|
37072
|
+
});
|
|
37073
|
+
}
|
|
37074
|
+
/** @override */ beforeDestruct(jodit) {
|
|
37075
|
+
this.__dropForm();
|
|
37076
|
+
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
37077
|
+
}
|
|
37078
|
+
constructor(){
|
|
37079
|
+
super(...arguments);
|
|
37080
|
+
/** @override */ this.buttons = [
|
|
37081
|
+
{
|
|
37082
|
+
name: 'anchor',
|
|
37083
|
+
group: 'insert'
|
|
37084
|
+
}
|
|
37085
|
+
];
|
|
37086
|
+
/**
|
|
37087
|
+
* The form in the anchor's own popup. The popup takes it out without
|
|
37088
|
+
* destructing it when it shows something else, so it goes when the next
|
|
37089
|
+
* one is made
|
|
37090
|
+
*/ this.__form = null;
|
|
37091
|
+
}
|
|
37092
|
+
}
|
|
37093
|
+
__decorate([
|
|
37094
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37095
|
+
], anchor.prototype, "__onClickA", null);
|
|
37096
|
+
__decorate([
|
|
37097
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
37098
|
+
':change',
|
|
37099
|
+
':afterInit',
|
|
37100
|
+
':afterSetMode'
|
|
37101
|
+
]),
|
|
37102
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
37103
|
+
], anchor.prototype, "onChange", null);
|
|
37104
|
+
__decorate([
|
|
37105
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
37106
|
+
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
37107
|
+
__decorate([
|
|
37108
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37109
|
+
], anchor.prototype, "__generateForm", null);
|
|
37110
|
+
function markAnchor(anchor) {
|
|
37111
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable') !== 'false') {
|
|
37112
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, 'contenteditable', false);
|
|
37113
|
+
}
|
|
37114
|
+
}
|
|
37115
|
+
/**
|
|
37116
|
+
* Takes `MARK` off each anchor in one pass over the tags, as a regex with
|
|
37117
|
+
* `[^>]*` backtracks quadratically on a long run of `<a` (CWE-1333)
|
|
37118
|
+
*/ function unmarkAnchors(html) {
|
|
37119
|
+
if (!html.includes(MARK)) {
|
|
37120
|
+
return html;
|
|
37121
|
+
}
|
|
37122
|
+
let result = '';
|
|
37123
|
+
let copied = 0;
|
|
37124
|
+
let cursor = 0;
|
|
37125
|
+
for(;;){
|
|
37126
|
+
const start = html.indexOf('<', cursor);
|
|
37127
|
+
if (start === -1) {
|
|
37128
|
+
break;
|
|
37129
|
+
}
|
|
37130
|
+
const end = html.indexOf('>', start);
|
|
37131
|
+
if (end === -1) {
|
|
37132
|
+
break;
|
|
37133
|
+
}
|
|
37134
|
+
if (html.startsWith('<a', start) && /\s/.test(html.charAt(start + 2)) && html.startsWith('</a>', end + 1)) {
|
|
37135
|
+
const tag = html.slice(start, end);
|
|
37136
|
+
const at = tag.indexOf(MARK);
|
|
37137
|
+
if (at !== -1 && !/\shref=/.test(tag)) {
|
|
37138
|
+
result += html.slice(copied, start + at);
|
|
37139
|
+
copied = start + at + MARK.length;
|
|
37140
|
+
}
|
|
37141
|
+
}
|
|
37142
|
+
// Past the whole tag, so an `<a` inside one of its attributes is never read as a tag
|
|
37143
|
+
cursor = end + 1;
|
|
37144
|
+
}
|
|
37145
|
+
return copied === 0 ? html : result + html.slice(copied);
|
|
37146
|
+
}
|
|
37147
|
+
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('anchor', anchor);
|
|
37148
|
+
|
|
37149
|
+
|
|
37150
|
+
/***/ }),
|
|
37151
|
+
|
|
37152
|
+
/***/ 50712:
|
|
37153
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
37154
|
+
|
|
37155
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
37156
|
+
/* harmony import */ var _inline_popup_config_config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24526);
|
|
37157
|
+
/*!
|
|
37158
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37159
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
37160
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
37161
|
+
*/
|
|
37162
|
+
// The anchor's popup goes in its list
|
|
37163
|
+
|
|
37164
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.anchor = {
|
|
37165
|
+
popup: (editor, current, close)=>editor.e.fire('generateAnchorForm.anchor', null, close),
|
|
37166
|
+
tooltip: 'Insert anchor'
|
|
37167
|
+
};
|
|
37168
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.anchor = (editor, target, close)=>editor.e.fire('generateAnchorForm.anchor', target, close);
|
|
37169
|
+
|
|
37170
|
+
|
|
36519
37171
|
/***/ }),
|
|
36520
37172
|
|
|
36521
37173
|
/***/ 93183:
|
|
@@ -42203,7 +42855,8 @@ function brBefore(start) {
|
|
|
42203
42855
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
|
|
42204
42856
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
42205
42857
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
42206
|
-
/* harmony import */ var
|
|
42858
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2073);
|
|
42859
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92762);
|
|
42207
42860
|
/*!
|
|
42208
42861
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42209
42862
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42213,6 +42866,7 @@ function brBefore(start) {
|
|
|
42213
42866
|
|
|
42214
42867
|
|
|
42215
42868
|
|
|
42869
|
+
|
|
42216
42870
|
/**
|
|
42217
42871
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
42218
42872
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -42234,16 +42888,16 @@ function brBefore(start) {
|
|
|
42234
42888
|
return true;
|
|
42235
42889
|
}
|
|
42236
42890
|
function insertLinks(data) {
|
|
42237
|
-
|
|
42238
|
-
(
|
|
42239
|
-
const href =
|
|
42891
|
+
const { baseurl } = data;
|
|
42892
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>{
|
|
42893
|
+
const href = baseurl + file;
|
|
42240
42894
|
if (wrapSelectionInLink(this, href)) {
|
|
42241
42895
|
return;
|
|
42242
42896
|
}
|
|
42243
42897
|
const link = this.createInside.element('a', {
|
|
42244
42898
|
href
|
|
42245
42899
|
});
|
|
42246
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
42900
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
42247
42901
|
this.s.insertNode(link);
|
|
42248
42902
|
});
|
|
42249
42903
|
}
|
|
@@ -42271,9 +42925,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
42271
42925
|
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))) {
|
|
42272
42926
|
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);
|
|
42273
42927
|
}
|
|
42274
|
-
return (0,
|
|
42928
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
42275
42929
|
filebrowser: (data)=>{
|
|
42276
|
-
|
|
42930
|
+
;(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
42277
42931
|
close();
|
|
42278
42932
|
},
|
|
42279
42933
|
upload: (data)=>{
|
|
@@ -44618,10 +45272,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
44618
45272
|
const fresh = this.__freshCaption(wrapper);
|
|
44619
45273
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
44620
45274
|
// The click opened the image's popup below the caption, so it
|
|
44621
|
-
//
|
|
45275
|
+
// moves below the image, as after the popup's Caption button
|
|
44622
45276
|
if (clicked) {
|
|
44623
45277
|
j.e.fire('recalcPositionPopup');
|
|
44624
|
-
j.e.fire('closeAllPopups');
|
|
44625
45278
|
}
|
|
44626
45279
|
}, 1);
|
|
44627
45280
|
}
|
|
@@ -46644,9 +47297,9 @@ UIImagePositionTab = __decorate([
|
|
|
46644
47297
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46645
47298
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
46646
47299
|
/* harmony export */ });
|
|
46647
|
-
/* harmony import */ var
|
|
46648
|
-
/* harmony import */ var
|
|
46649
|
-
/* harmony import */ var
|
|
47300
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5700);
|
|
47301
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56917);
|
|
47302
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2073);
|
|
46650
47303
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34793);
|
|
46651
47304
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
46652
47305
|
try {
|
|
@@ -46683,25 +47336,27 @@ function _async_to_generator(fn) {
|
|
|
46683
47336
|
|
|
46684
47337
|
|
|
46685
47338
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
46686
|
-
const popup = new
|
|
47339
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
46687
47340
|
const closePopup = ()=>{
|
|
46688
47341
|
popup.close();
|
|
46689
47342
|
popup.destruct();
|
|
46690
47343
|
};
|
|
46691
47344
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
46692
47345
|
upload: (data)=>{
|
|
46693
|
-
|
|
46694
|
-
|
|
47346
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data);
|
|
47347
|
+
if (item) {
|
|
47348
|
+
state.values.imageSrc = data.baseurl + item.file;
|
|
46695
47349
|
}
|
|
46696
47350
|
closePopup();
|
|
46697
47351
|
},
|
|
46698
47352
|
filebrowser: (data)=>_async_to_generator(function*() {
|
|
46699
|
-
|
|
46700
|
-
|
|
47353
|
+
const [item] = data ? (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_2__.getItems)(data) : [];
|
|
47354
|
+
if (item) {
|
|
47355
|
+
state.values.imageSrc = item.file;
|
|
46701
47356
|
closePopup();
|
|
46702
47357
|
}
|
|
46703
47358
|
})()
|
|
46704
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
47359
|
+
}, state.image, closePopup)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
46705
47360
|
}
|
|
46706
47361
|
|
|
46707
47362
|
|
|
@@ -46992,8 +47647,9 @@ function _async_to_generator(fn) {
|
|
|
46992
47647
|
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
46993
47648
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
46994
47649
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
46995
|
-
/* harmony import */ var
|
|
46996
|
-
/* harmony import */ var
|
|
47650
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2073);
|
|
47651
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92762);
|
|
47652
|
+
/* harmony import */ var _image_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25179);
|
|
46997
47653
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
46998
47654
|
try {
|
|
46999
47655
|
var info = gen[key](arg);
|
|
@@ -47032,7 +47688,8 @@ function _async_to_generator(fn) {
|
|
|
47032
47688
|
|
|
47033
47689
|
|
|
47034
47690
|
|
|
47035
|
-
|
|
47691
|
+
|
|
47692
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', _image_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]);
|
|
47036
47693
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
47037
47694
|
popup: (editor, current, close)=>{
|
|
47038
47695
|
let sourceImage = null;
|
|
@@ -47040,10 +47697,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
47040
47697
|
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];
|
|
47041
47698
|
}
|
|
47042
47699
|
editor.s.save();
|
|
47043
|
-
return (0,
|
|
47700
|
+
return (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
47044
47701
|
filebrowser: (data)=>{
|
|
47045
47702
|
editor.s.restore();
|
|
47046
|
-
|
|
47703
|
+
(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));
|
|
47047
47704
|
close();
|
|
47048
47705
|
},
|
|
47049
47706
|
upload: true,
|
|
@@ -47393,6 +48050,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
47393
48050
|
|
|
47394
48051
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
47395
48052
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
48053
|
+
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
47396
48054
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
47397
48055
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
47398
48056
|
'source'
|
|
@@ -47476,8 +48134,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
47476
48134
|
|
|
47477
48135
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
47478
48136
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27613);
|
|
47479
|
-
/* harmony import */ var
|
|
47480
|
-
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41180);
|
|
48137
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41180);
|
|
47481
48138
|
/*!
|
|
47482
48139
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
47483
48140
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -47485,7 +48142,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
47485
48142
|
*/
|
|
47486
48143
|
|
|
47487
48144
|
|
|
47488
|
-
|
|
47489
48145
|
const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
47490
48146
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
47491
48147
|
'brushCell',
|
|
@@ -47501,7 +48157,7 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
47501
48157
|
exec: (editor, table, { control })=>{
|
|
47502
48158
|
const command = cmd(control);
|
|
47503
48159
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
47504
|
-
(0,
|
|
48160
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
47505
48161
|
});
|
|
47506
48162
|
},
|
|
47507
48163
|
tooltip: 'Vertical align'
|
|
@@ -47567,13 +48223,6 @@ const cmd = (control)=>control.args && (0,_core_helpers_checker_index_js__WEBPAC
|
|
|
47567
48223
|
return;
|
|
47568
48224
|
}
|
|
47569
48225
|
editor.execCommand('tableheaderrow', false, table);
|
|
47570
|
-
const [cell] = editor.getInstance('Table', editor.o).getAllSelectedCells();
|
|
47571
|
-
// Beside the cell that replaced the one it opened for
|
|
47572
|
-
if (cell) {
|
|
47573
|
-
editor.e.fire('showPopup', table, ()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_2__.position)(cell, editor), 'cells');
|
|
47574
|
-
}
|
|
47575
|
-
// The popup stays open, so the button shows the new state
|
|
47576
|
-
return true;
|
|
47577
48226
|
},
|
|
47578
48227
|
isActive: (editor, button)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') && editor.getInstance('Table', editor.o).hasHeaderRow(button.target),
|
|
47579
48228
|
isDisabled: (editor, button)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') || !editor.getInstance('Table', editor.o).canToggleHeaderRow(button.target),
|
|
@@ -47765,7 +48414,7 @@ const align = {
|
|
|
47765
48414
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
47766
48415
|
editor.synchronizeValues();
|
|
47767
48416
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
47768
|
-
editor.e.fire('hideResizer');
|
|
48417
|
+
editor.e.fire('hidePopup hideResizer');
|
|
47769
48418
|
editor.s.setCursorIn(caption);
|
|
47770
48419
|
} else {
|
|
47771
48420
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -48013,7 +48662,9 @@ function _object_spread_props(target, source) {
|
|
|
48013
48662
|
* Plugin for show inline popup dialog
|
|
48014
48663
|
*/ class inlinePopup extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
|
|
48015
48664
|
get popup() {
|
|
48016
|
-
|
|
48665
|
+
const popup = new _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.jodit, false);
|
|
48666
|
+
popup.keepOpen = this.j.o.toolbarInlineKeepOpen;
|
|
48667
|
+
return popup;
|
|
48017
48668
|
}
|
|
48018
48669
|
get toolbar() {
|
|
48019
48670
|
return (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__.makeCollection)(this.jodit, this.popup);
|
|
@@ -48026,8 +48677,8 @@ function _object_spread_props(target, source) {
|
|
|
48026
48677
|
const isMedia = type === 'jodit-media';
|
|
48027
48678
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
48028
48679
|
// the line, and below a captioned image's caption, so it stays in view
|
|
48029
|
-
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;
|
|
48030
|
-
this.showPopup(()=>this.__bound(bound, isMedia), type, target);
|
|
48680
|
+
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;
|
|
48681
|
+
this.showPopup(()=>this.__bound(bound(), isMedia), type, target);
|
|
48031
48682
|
return false;
|
|
48032
48683
|
}
|
|
48033
48684
|
}
|
|
@@ -48050,13 +48701,18 @@ function _object_spread_props(target, source) {
|
|
|
48050
48701
|
* Show inline popup with some toolbar
|
|
48051
48702
|
*
|
|
48052
48703
|
* @param type - selection, img, a etc.
|
|
48053
|
-
|
|
48704
|
+
* @param force - make the popup again for the same target
|
|
48705
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
48054
48706
|
type = type.toLowerCase();
|
|
48055
48707
|
if (!this.canShowPopupForType(type)) {
|
|
48056
48708
|
return false;
|
|
48057
48709
|
}
|
|
48058
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
48710
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
48059
48711
|
this.previousTarget = target;
|
|
48712
|
+
// What it showed is taken out, not destructed: an element a
|
|
48713
|
+
// function returns is its own, and may be shown again
|
|
48714
|
+
this.popup.elements.slice().forEach((elm)=>this.popup.remove(elm));
|
|
48715
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(this.popup.getElm('content'));
|
|
48060
48716
|
const data = this.j.o.popup[type];
|
|
48061
48717
|
let content;
|
|
48062
48718
|
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(data)) {
|
|
@@ -48139,59 +48795,28 @@ function _object_spread_props(target, source) {
|
|
|
48139
48795
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
48140
48796
|
});
|
|
48141
48797
|
}
|
|
48142
|
-
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type)=>{
|
|
48143
|
-
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);
|
|
48798
|
+
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type, force)=>{
|
|
48799
|
+
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);
|
|
48144
48800
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
48145
|
-
if (this.popup.isOpened
|
|
48801
|
+
if (!this.popup.isOpened) {
|
|
48802
|
+
return;
|
|
48803
|
+
}
|
|
48804
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
48146
48805
|
this.hidePopup();
|
|
48147
48806
|
this.previousTarget = undefined;
|
|
48807
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
48808
|
+
this.hidePopup();
|
|
48148
48809
|
}
|
|
48149
48810
|
}).on([
|
|
48150
48811
|
this.j.ew,
|
|
48151
48812
|
this.j.ow
|
|
48152
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
48153
|
-
this.j.ew,
|
|
48154
|
-
this.j.ow
|
|
48155
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).on('closeAllPopups', this.__onCloseAllPopups);
|
|
48813
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
48156
48814
|
this.addListenersForElements();
|
|
48157
48815
|
}
|
|
48158
|
-
|
|
48159
|
-
|
|
48160
|
-
|
|
48161
|
-
|
|
48162
|
-
}
|
|
48163
|
-
__onDocumentMouseDown(e) {
|
|
48164
|
-
this.__reopenFor = null;
|
|
48165
|
-
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)) {
|
|
48166
|
-
this.__reopenSelectionPopup = true;
|
|
48167
|
-
}
|
|
48168
|
-
}
|
|
48169
|
-
__onCloseAllPopups() {
|
|
48170
|
-
const target = this.__reopenFor;
|
|
48171
|
-
if (target) {
|
|
48172
|
-
this.__reopenFor = null;
|
|
48173
|
-
// After the popup's own `closeAllPopups` handler, as below
|
|
48174
|
-
this.j.async.setTimeout(()=>{
|
|
48175
|
-
if (this.j.editor.contains(target)) {
|
|
48176
|
-
this.onClick(target);
|
|
48177
|
-
}
|
|
48178
|
-
}, 1);
|
|
48179
|
-
}
|
|
48180
|
-
if (!this.__reopenSelectionPopup) {
|
|
48181
|
-
return;
|
|
48182
|
-
}
|
|
48183
|
-
this.__reopenSelectionPopup = false;
|
|
48184
|
-
if (!this.j.o.toolbarInlineForSelection) {
|
|
48185
|
-
return;
|
|
48186
|
-
}
|
|
48187
|
-
// a zero timeout would run synchronously — before the popup's own
|
|
48188
|
-
// `closeAllPopups` handler closes it; defer to the next macrotask
|
|
48189
|
-
this.j.async.setTimeout(()=>{
|
|
48190
|
-
const sel = this.j.s.sel;
|
|
48191
|
-
if (sel && !sel.isCollapsed) {
|
|
48192
|
-
this.showPopup(()=>this.__selectionBound(), 'selection');
|
|
48193
|
-
}
|
|
48194
|
-
}, 1);
|
|
48816
|
+
/**
|
|
48817
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
48818
|
+
*/ onRecalcPositionPopup() {
|
|
48819
|
+
this.popup.updatePosition();
|
|
48195
48820
|
}
|
|
48196
48821
|
/**
|
|
48197
48822
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -48237,9 +48862,8 @@ function _object_spread_props(target, source) {
|
|
|
48237
48862
|
return;
|
|
48238
48863
|
}
|
|
48239
48864
|
const type = 'selection';
|
|
48240
|
-
const sel = this.j.s.sel;
|
|
48241
48865
|
const range = this.j.s.range;
|
|
48242
|
-
if ((
|
|
48866
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
48243
48867
|
if (this.type === type && this.popup.isOpened) {
|
|
48244
48868
|
this.hidePopup();
|
|
48245
48869
|
}
|
|
@@ -48251,6 +48875,28 @@ function _object_spread_props(target, source) {
|
|
|
48251
48875
|
}
|
|
48252
48876
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
48253
48877
|
}
|
|
48878
|
+
/**
|
|
48879
|
+
* The selection holds more than a line break. A double click past the end
|
|
48880
|
+
* of a line, or a drag from there into the next, selects only the break,
|
|
48881
|
+
* with any rule, video or empty line it crosses: it starts at the end of a
|
|
48882
|
+
* line, after everything in it, and holds no text that shows
|
|
48883
|
+
*/ __hasSelectedContent() {
|
|
48884
|
+
const { sel, range } = this.j.s;
|
|
48885
|
+
if (!sel || sel.isCollapsed) {
|
|
48886
|
+
return false;
|
|
48887
|
+
}
|
|
48888
|
+
// HTML collapses ASCII white space, but not
|
|
48889
|
+
const showsText = (r)=>/[^\t\n\f\r \uFEFF\u200B]/.test(r.toString());
|
|
48890
|
+
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);
|
|
48891
|
+
if (!line || line === this.j.editor || showsText(range)) {
|
|
48892
|
+
return true;
|
|
48893
|
+
}
|
|
48894
|
+
// The rest of the line after the selection's start
|
|
48895
|
+
const rest = this.j.s.createRange();
|
|
48896
|
+
rest.setStart(range.startContainer, range.startOffset);
|
|
48897
|
+
rest.setEnd(line, line.childNodes.length);
|
|
48898
|
+
return showsText(rest) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(line.querySelectorAll(':not(br):empty')).some((elm)=>rest.intersectsNode(elm));
|
|
48899
|
+
}
|
|
48254
48900
|
/**
|
|
48255
48901
|
* In not collapsed selection - only one image
|
|
48256
48902
|
*/ isSelectedTarget(r) {
|
|
@@ -48266,10 +48912,7 @@ function _object_spread_props(target, source) {
|
|
|
48266
48912
|
jodit.e.off('showPopup').off([
|
|
48267
48913
|
this.j.ew,
|
|
48268
48914
|
this.j.ow
|
|
48269
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
48270
|
-
this.j.ew,
|
|
48271
|
-
this.j.ow
|
|
48272
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).off('closeAllPopups', this.__onCloseAllPopups);
|
|
48915
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
48273
48916
|
this.removeListenersForElements();
|
|
48274
48917
|
}
|
|
48275
48918
|
_eventsList() {
|
|
@@ -48301,16 +48944,6 @@ function _object_spread_props(target, source) {
|
|
|
48301
48944
|
constructor(){
|
|
48302
48945
|
super(...arguments);
|
|
48303
48946
|
this.type = null;
|
|
48304
|
-
/**
|
|
48305
|
-
* The user pressed a button inside the selection toolbar — after the
|
|
48306
|
-
* command fires `closeAllPopups`, the toolbar should be shown again
|
|
48307
|
-
* while the selection is still there. See #1238
|
|
48308
|
-
*/ this.__reopenSelectionPopup = false;
|
|
48309
|
-
/**
|
|
48310
|
-
* The alignment controls fire `recalcPositionPopup` once they have moved
|
|
48311
|
-
* the element, and their button then fires `closeAllPopups`. The popup
|
|
48312
|
-
* opens again beside the element, as the selection toolbar does
|
|
48313
|
-
*/ this.__reopenFor = null;
|
|
48314
48947
|
this.snapRange = null;
|
|
48315
48948
|
this.__keyDownElement = null;
|
|
48316
48949
|
this.elmsList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.keys)(this.j.o.popup, false).filter((s)=>!this.isExcludedTarget(s));
|
|
@@ -48348,12 +48981,6 @@ __decorate([
|
|
|
48348
48981
|
__decorate([
|
|
48349
48982
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.watch)(':recalcPositionPopup')
|
|
48350
48983
|
], inlinePopup.prototype, "onRecalcPositionPopup", null);
|
|
48351
|
-
__decorate([
|
|
48352
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48353
|
-
], inlinePopup.prototype, "__onDocumentMouseDown", null);
|
|
48354
|
-
__decorate([
|
|
48355
|
-
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48356
|
-
], inlinePopup.prototype, "__onCloseAllPopups", null);
|
|
48357
48984
|
__decorate([
|
|
48358
48985
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
48359
48986
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -49380,8 +50007,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49380
50007
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
49381
50008
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
49382
50009
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
49383
|
-
/* harmony import */ var
|
|
49384
|
-
/* harmony import */ var
|
|
50010
|
+
/* harmony import */ var _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48538);
|
|
50011
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12153);
|
|
50012
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56917);
|
|
50013
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5827);
|
|
50014
|
+
/* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58970);
|
|
49385
50015
|
/*!
|
|
49386
50016
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
49387
50017
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -49400,6 +50030,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49400
50030
|
|
|
49401
50031
|
|
|
49402
50032
|
|
|
50033
|
+
|
|
50034
|
+
|
|
50035
|
+
|
|
49403
50036
|
/**
|
|
49404
50037
|
* Process link. Insert, dblclick or remove format
|
|
49405
50038
|
*/ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
@@ -49544,6 +50177,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49544
50177
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
49545
50178
|
}
|
|
49546
50179
|
}
|
|
50180
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
49547
50181
|
jodit.editor.normalize();
|
|
49548
50182
|
const snapshot = jodit.history.snapshot.make();
|
|
49549
50183
|
if (unlink) {
|
|
@@ -49706,7 +50340,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
49706
50340
|
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)) {
|
|
49707
50341
|
return;
|
|
49708
50342
|
}
|
|
49709
|
-
const found = (0,
|
|
50343
|
+
const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
49710
50344
|
if (!found) {
|
|
49711
50345
|
return;
|
|
49712
50346
|
}
|
|
@@ -49801,6 +50435,142 @@ const MODIFIER_KEYS = new Set([
|
|
|
49801
50435
|
'CapsLock'
|
|
49802
50436
|
]);
|
|
49803
50437
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
50438
|
+
/**
|
|
50439
|
+
* A dropdown arrow in the URL field that lists the document's anchors by the
|
|
50440
|
+
* words after them, and fills in the one picked. The list opens in a popup of
|
|
50441
|
+
* its own, from the arrow or the down arrow key, and closes once an address is
|
|
50442
|
+
* typed
|
|
50443
|
+
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
50444
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(jodit.editor);
|
|
50445
|
+
const field = url === null || url === void 0 ? void 0 : url.closest('.jodit-ui-input__wrapper');
|
|
50446
|
+
const input = field && _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(field, _core_ui_element_js__WEBPACK_IMPORTED_MODULE_6__.UIElement);
|
|
50447
|
+
if (!field || !input || !anchors.length) {
|
|
50448
|
+
return;
|
|
50449
|
+
}
|
|
50450
|
+
const { c } = jodit;
|
|
50451
|
+
const label = jodit.i18n('Link to an anchor');
|
|
50452
|
+
const toggle = c.element('button', {
|
|
50453
|
+
type: 'button',
|
|
50454
|
+
class: 'jodit-link-anchors__toggle',
|
|
50455
|
+
title: label,
|
|
50456
|
+
'aria-label': label
|
|
50457
|
+
});
|
|
50458
|
+
const heading = c.div('jodit-link-anchors__heading', {
|
|
50459
|
+
id: 'jodit-link-anchors-' + (0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.uniqueUid)()
|
|
50460
|
+
});
|
|
50461
|
+
const list = c.div('jodit-link-anchors', {
|
|
50462
|
+
role: 'group',
|
|
50463
|
+
'aria-labelledby': heading.id
|
|
50464
|
+
});
|
|
50465
|
+
const icon = (name)=>{
|
|
50466
|
+
var _a;
|
|
50467
|
+
return (_a = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_7__.Icon.makeIcon(jodit, {
|
|
50468
|
+
name,
|
|
50469
|
+
iconURL: '',
|
|
50470
|
+
fill: '',
|
|
50471
|
+
scale: undefined
|
|
50472
|
+
})) !== null && _a !== void 0 ? _a : c.span();
|
|
50473
|
+
};
|
|
50474
|
+
const dropdown = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_8__.Popup(jodit).setMod('padding', false);
|
|
50475
|
+
const items = [];
|
|
50476
|
+
let filled = '';
|
|
50477
|
+
const open = ()=>{
|
|
50478
|
+
var _a;
|
|
50479
|
+
if (dropdown.isOpened) {
|
|
50480
|
+
return;
|
|
50481
|
+
}
|
|
50482
|
+
// Clicks in the list then count as the form's, which stays open
|
|
50483
|
+
dropdown.parentElement || (dropdown.parentElement = input);
|
|
50484
|
+
list.style.minWidth = field.offsetWidth + 'px';
|
|
50485
|
+
dropdown.open(()=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(field));
|
|
50486
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', true);
|
|
50487
|
+
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])));
|
|
50488
|
+
(_a = list.querySelector('[aria-current=true]')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
50489
|
+
block: 'nearest'
|
|
50490
|
+
});
|
|
50491
|
+
};
|
|
50492
|
+
toggle.append(icon('chevron'));
|
|
50493
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(toggle, 'aria-expanded', false);
|
|
50494
|
+
heading.textContent = jodit.i18n('On this page');
|
|
50495
|
+
list.appendChild(heading);
|
|
50496
|
+
dropdown.setContent(list);
|
|
50497
|
+
anchors.forEach((anchor)=>{
|
|
50498
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
50499
|
+
const text = textAfter(jodit, anchor) || name;
|
|
50500
|
+
const item = c.element('button', {
|
|
50501
|
+
type: 'button',
|
|
50502
|
+
tabindex: -1,
|
|
50503
|
+
class: 'jodit-link-anchors__item'
|
|
50504
|
+
});
|
|
50505
|
+
items.push(item);
|
|
50506
|
+
const textBox = c.span('jodit-link-anchors__text');
|
|
50507
|
+
textBox.textContent = text;
|
|
50508
|
+
const nameBox = c.span('jodit-link-anchors__name');
|
|
50509
|
+
nameBox.textContent = '#' + name;
|
|
50510
|
+
item.append(icon('anchor'), textBox, nameBox);
|
|
50511
|
+
list.appendChild(item);
|
|
50512
|
+
jodit.e.on(item, 'click', ()=>{
|
|
50513
|
+
dropdown.close();
|
|
50514
|
+
url.value = '#' + name;
|
|
50515
|
+
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
50516
|
+
content.value = filled = text;
|
|
50517
|
+
}
|
|
50518
|
+
url.focus();
|
|
50519
|
+
});
|
|
50520
|
+
});
|
|
50521
|
+
// A press on the arrow closes the open list before the click
|
|
50522
|
+
let wasOpen = false;
|
|
50523
|
+
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', ()=>{
|
|
50524
|
+
wasOpen || dropdown.isOpened ? dropdown.close() : open();
|
|
50525
|
+
wasOpen = false;
|
|
50526
|
+
}).on(url, 'input.anchors', ()=>{
|
|
50527
|
+
if (url.value && !url.value.startsWith('#')) {
|
|
50528
|
+
dropdown.close();
|
|
50529
|
+
}
|
|
50530
|
+
}).on(url, 'keydown.anchors', (e)=>{
|
|
50531
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN) {
|
|
50532
|
+
e.preventDefault();
|
|
50533
|
+
open();
|
|
50534
|
+
items[0].focus();
|
|
50535
|
+
}
|
|
50536
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC && dropdown.isOpened) {
|
|
50537
|
+
e.stopPropagation();
|
|
50538
|
+
dropdown.close();
|
|
50539
|
+
}
|
|
50540
|
+
}).on(list, 'keydown', (e)=>{
|
|
50541
|
+
var _a;
|
|
50542
|
+
const index = items.indexOf(e.target);
|
|
50543
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP) {
|
|
50544
|
+
e.preventDefault();
|
|
50545
|
+
(_a = items[index + (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN ? 1 : -1)]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
50546
|
+
}
|
|
50547
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
50548
|
+
e.stopPropagation();
|
|
50549
|
+
dropdown.close();
|
|
50550
|
+
url.focus();
|
|
50551
|
+
}
|
|
50552
|
+
});
|
|
50553
|
+
// The URL input is destructed when the form closes
|
|
50554
|
+
input.hookStatus('destructed', ()=>{
|
|
50555
|
+
dropdown.destruct();
|
|
50556
|
+
jodit.e.off([
|
|
50557
|
+
toggle,
|
|
50558
|
+
list,
|
|
50559
|
+
...items
|
|
50560
|
+
]).off(url, '.anchors');
|
|
50561
|
+
});
|
|
50562
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.after(url, toggle);
|
|
50563
|
+
}
|
|
50564
|
+
/**
|
|
50565
|
+
* The words after an anchor in its block, which say where it is
|
|
50566
|
+
*/ function textAfter(jodit, anchor) {
|
|
50567
|
+
var _a;
|
|
50568
|
+
const range = jodit.ed.createRange();
|
|
50569
|
+
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);
|
|
50570
|
+
range.setStartAfter(anchor);
|
|
50571
|
+
const text = range.toString().replace(/\s+/g, ' ').trim();
|
|
50572
|
+
return text.length > 50 ? text.slice(0, 50).replace(/\s+\S*$/, '') + '…' : text;
|
|
50573
|
+
}
|
|
49804
50574
|
/**
|
|
49805
50575
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
49806
50576
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -49815,7 +50585,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
|
|
|
49815
50585
|
return value;
|
|
49816
50586
|
}
|
|
49817
50587
|
// email address -> mailto:
|
|
49818
|
-
if (
|
|
50588
|
+
if (_typed_link_js__WEBPACK_IMPORTED_MODULE_10__.EMAIL.test(value)) {
|
|
49819
50589
|
return `mailto:${value}`;
|
|
49820
50590
|
}
|
|
49821
50591
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -49914,7 +50684,9 @@ const formTemplate = (editor)=>{
|
|
|
49914
50684
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
49915
50685
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
49916
50686
|
name: 'url',
|
|
49917
|
-
|
|
50687
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
50688
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
50689
|
+
type: 'url',
|
|
49918
50690
|
ref: 'url_input',
|
|
49919
50691
|
label: 'URL',
|
|
49920
50692
|
placeholder: 'http://',
|
|
@@ -52968,6 +53740,13 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
52968
53740
|
this.addEventListeners();
|
|
52969
53741
|
this.__onChangeEditor();
|
|
52970
53742
|
}
|
|
53743
|
+
/**
|
|
53744
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
53745
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
53746
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
53747
|
+
*/ onEditorTouchEnd(e) {
|
|
53748
|
+
this.j.async.setTimeout(()=>this.onEditorClick(e), 1);
|
|
53749
|
+
}
|
|
52971
53750
|
/**
|
|
52972
53751
|
* Click in the editor area
|
|
52973
53752
|
*/ onEditorClick(e) {
|
|
@@ -53413,6 +54192,9 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
53413
54192
|
};
|
|
53414
54193
|
}
|
|
53415
54194
|
}
|
|
54195
|
+
__decorate([
|
|
54196
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':touchend')
|
|
54197
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
53416
54198
|
__decorate([
|
|
53417
54199
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
53418
54200
|
], resizer.prototype, "onEditorClick", null);
|
|
@@ -54452,8 +55234,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
54452
55234
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
54453
55235
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
54454
55236
|
/* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(45124);
|
|
54455
|
-
/* harmony import */ var
|
|
54456
|
-
/* harmony import */ var
|
|
55237
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
|
|
55238
|
+
/* harmony import */ var _modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76014);
|
|
55239
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55311);
|
|
54457
55240
|
/*!
|
|
54458
55241
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
54459
55242
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -54473,12 +55256,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
|
|
|
54473
55256
|
|
|
54474
55257
|
|
|
54475
55258
|
|
|
55259
|
+
|
|
54476
55260
|
const key = 'table_processor_observer';
|
|
54477
55261
|
class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
54478
55262
|
/**
|
|
54479
55263
|
* Shortcut for Jodit.modules.Table
|
|
54480
55264
|
*/ get __tableModule() {
|
|
54481
|
-
return this.j.getInstance(
|
|
55265
|
+
return this.j.getInstance(_modules_table_table_js__WEBPACK_IMPORTED_MODULE_8__.Table, this.j.o);
|
|
54482
55266
|
}
|
|
54483
55267
|
afterInit(jodit) {
|
|
54484
55268
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -54566,7 +55350,28 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54566
55350
|
// As after a click, the first change to the cell keeps the mark
|
|
54567
55351
|
this.__selectedCell = cell;
|
|
54568
55352
|
this.__tableModule.addSelection(cell);
|
|
54569
|
-
this.j.e.fire('showPopup', table,
|
|
55353
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
55354
|
+
}
|
|
55355
|
+
/**
|
|
55356
|
+
* The box round the marked cells, which their popup opens beside and
|
|
55357
|
+
* follows when its commands add, merge or replace cells
|
|
55358
|
+
*/ __markedBound() {
|
|
55359
|
+
const bounds = this.__tableModule.getAllSelectedCells().filter((cell)=>cell.isConnected).map((cell)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(cell, this.j));
|
|
55360
|
+
if (!bounds.length) {
|
|
55361
|
+
return {
|
|
55362
|
+
left: 0,
|
|
55363
|
+
top: 0,
|
|
55364
|
+
width: 0,
|
|
55365
|
+
height: 0
|
|
55366
|
+
};
|
|
55367
|
+
}
|
|
55368
|
+
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));
|
|
55369
|
+
return {
|
|
55370
|
+
left,
|
|
55371
|
+
top,
|
|
55372
|
+
width: right - left,
|
|
55373
|
+
height: bottom - top
|
|
55374
|
+
};
|
|
54570
55375
|
}
|
|
54571
55376
|
/**
|
|
54572
55377
|
* Mouse click inside the table
|
|
@@ -54591,7 +55396,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54591
55396
|
this.__selectedCell = cell;
|
|
54592
55397
|
(_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
54593
55398
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
54594
|
-
this.j.e.fire('showPopup', table,
|
|
55399
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
54595
55400
|
} else {
|
|
54596
55401
|
this.j.e.fire('hidePopup', 'cells');
|
|
54597
55402
|
}
|
|
@@ -54639,8 +55444,11 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54639
55444
|
return false;
|
|
54640
55445
|
}
|
|
54641
55446
|
}
|
|
55447
|
+
onPress(e) {
|
|
55448
|
+
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));
|
|
55449
|
+
}
|
|
54642
55450
|
onChange() {
|
|
54643
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
55451
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
54644
55452
|
this.__onRemoveSelection();
|
|
54645
55453
|
}
|
|
54646
55454
|
}
|
|
@@ -54755,15 +55563,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54755
55563
|
if (!min || !max) {
|
|
54756
55564
|
return;
|
|
54757
55565
|
}
|
|
54758
|
-
this.j.e.fire('showPopup', table,
|
|
54759
|
-
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);
|
|
54760
|
-
return {
|
|
54761
|
-
left: minOffset.left,
|
|
54762
|
-
top: minOffset.top,
|
|
54763
|
-
width: maxOffset.left - minOffset.left + maxOffset.width,
|
|
54764
|
-
height: maxOffset.top - minOffset.top + maxOffset.height
|
|
54765
|
-
};
|
|
54766
|
-
}, 'cells');
|
|
55566
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
54767
55567
|
}
|
|
54768
55568
|
__stopListening() {
|
|
54769
55569
|
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -54876,6 +55676,11 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54876
55676
|
this.__toggleHeaderRow(table, cells);
|
|
54877
55677
|
break;
|
|
54878
55678
|
}
|
|
55679
|
+
// A split unmarks the cells. They stay marked, as after the
|
|
55680
|
+
// other commands, so their popup stays beside them
|
|
55681
|
+
if (/^split/.test(command)) {
|
|
55682
|
+
cells.forEach((cell)=>this.__tableModule.addSelection(cell));
|
|
55683
|
+
}
|
|
54879
55684
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
54880
55685
|
this.__removeTable(table);
|
|
54881
55686
|
}
|
|
@@ -54887,7 +55692,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54887
55692
|
* Turns the table's header row on or off. The caret and the marked cells
|
|
54888
55693
|
* move to the cells that replace them
|
|
54889
55694
|
*/ __toggleHeaderRow(table, cells) {
|
|
54890
|
-
var _a, _b;
|
|
54891
55695
|
const module = this.__tableModule;
|
|
54892
55696
|
this.j.s.save();
|
|
54893
55697
|
const replaced = module.toggleHeaderRow(table);
|
|
@@ -54899,10 +55703,6 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54899
55703
|
module.addSelection(next);
|
|
54900
55704
|
}
|
|
54901
55705
|
});
|
|
54902
|
-
// As after the click that marked it, the command's own change keeps
|
|
54903
|
-
// the marks, so the popup can stay open for another toggle
|
|
54904
|
-
const anchor = (_a = this.__selectedCell) !== null && _a !== void 0 ? _a : cells[0];
|
|
54905
|
-
this.__selectedCell = (_b = replaced.get(anchor)) !== null && _b !== void 0 ? _b : anchor;
|
|
54906
55706
|
}
|
|
54907
55707
|
/**
|
|
54908
55708
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -54969,6 +55769,10 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
|
|
|
54969
55769
|
* A drag let go outside the table ends in a click on the editor, which
|
|
54970
55770
|
* would unmark its cells
|
|
54971
55771
|
*/ this.__keepMarks = false;
|
|
55772
|
+
/**
|
|
55773
|
+
* The last press or key went to a popup, as to the cell popup's own
|
|
55774
|
+
* controls, whose changes keep the cells marked
|
|
55775
|
+
*/ this.__inPopup = false;
|
|
54972
55776
|
}
|
|
54973
55777
|
}
|
|
54974
55778
|
selectCells.requires = [
|
|
@@ -54980,6 +55784,9 @@ __decorate([
|
|
|
54980
55784
|
__decorate([
|
|
54981
55785
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':keyup')
|
|
54982
55786
|
], selectCells.prototype, "onKeyUp", null);
|
|
55787
|
+
__decorate([
|
|
55788
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
55789
|
+
], selectCells.prototype, "__markedBound", null);
|
|
54983
55790
|
__decorate([
|
|
54984
55791
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54985
55792
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -54995,6 +55802,16 @@ __decorate([
|
|
|
54995
55802
|
__decorate([
|
|
54996
55803
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
54997
55804
|
], selectCells.prototype, "__onClickAfterDrag", null);
|
|
55805
|
+
__decorate([
|
|
55806
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
55807
|
+
'ow:mousedown',
|
|
55808
|
+
'ow:touchstart',
|
|
55809
|
+
'ow:keydown',
|
|
55810
|
+
':mousedown',
|
|
55811
|
+
':touchstart',
|
|
55812
|
+
':keydown'
|
|
55813
|
+
])
|
|
55814
|
+
], selectCells.prototype, "onPress", null);
|
|
54998
55815
|
__decorate([
|
|
54999
55816
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
55000
55817
|
], selectCells.prototype, "onChange", null);
|
|
@@ -55044,9 +55861,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55044
55861
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
55045
55862
|
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
|
|
55046
55863
|
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
|
|
55047
|
-
/* harmony import */ var
|
|
55048
|
-
/* harmony import */ var
|
|
55049
|
-
/* harmony import */ var
|
|
55864
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49055);
|
|
55865
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
55866
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50911);
|
|
55867
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67510);
|
|
55868
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67215);
|
|
55050
55869
|
/*!
|
|
55051
55870
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
55052
55871
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -55066,6 +55885,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55066
55885
|
|
|
55067
55886
|
|
|
55068
55887
|
|
|
55888
|
+
|
|
55889
|
+
|
|
55890
|
+
const MEDIA = 'video, iframe, audio, object, embed';
|
|
55891
|
+
// The shade the browsers lay over a selected image: #b5d6fd on white
|
|
55892
|
+
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")`;
|
|
55069
55893
|
/**
|
|
55070
55894
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
55071
55895
|
*
|
|
@@ -55076,7 +55900,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55076
55900
|
* console.log(img.src);
|
|
55077
55901
|
* })
|
|
55078
55902
|
* ```
|
|
55079
|
-
*/ class select extends
|
|
55903
|
+
*/ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_8__.Plugin {
|
|
55080
55904
|
afterInit(jodit) {
|
|
55081
55905
|
this.proxyEventsList.forEach((eventName)=>{
|
|
55082
55906
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -55084,6 +55908,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55084
55908
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
55085
55909
|
top: true
|
|
55086
55910
|
});
|
|
55911
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
55087
55912
|
}
|
|
55088
55913
|
beforeDestruct(jodit) {
|
|
55089
55914
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -55091,6 +55916,39 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55091
55916
|
});
|
|
55092
55917
|
this.__endPressBesideRow();
|
|
55093
55918
|
jodit.e.off('dblclick', this.__onDblClickBesideRow);
|
|
55919
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
55920
|
+
}
|
|
55921
|
+
/**
|
|
55922
|
+
* The browsers shade an image in the selection, but Chrome doesn't shade
|
|
55923
|
+
* a video with controls, or one in a `jodit-media` wrapper, so a selection
|
|
55924
|
+
* that took one in didn't show it, and typing deleted it unseen (#1768).
|
|
55925
|
+
* The media gets the same shade from a filter, in place of the tint Safari
|
|
55926
|
+
* gives a block wrapper's whole line. It's a style in the editing
|
|
55927
|
+
* document, as selected cells get their border, so the content, and with
|
|
55928
|
+
* it the value, the history and a copy, doesn't change. Media a click
|
|
55929
|
+
* selected whole is left alone, as its resize frame shows it (#1528). A
|
|
55930
|
+
* change, read-only and the source mode redo or drop the style, as the
|
|
55931
|
+
* selection may not change with them, and the style's paths could then
|
|
55932
|
+
* fit other elements
|
|
55933
|
+
*/ __markSelectedMedia() {
|
|
55934
|
+
var _a;
|
|
55935
|
+
const { s, editor, o } = this.j;
|
|
55936
|
+
const range = ((_a = s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount) ? s.sel.getRangeAt(0) : null;
|
|
55937
|
+
const rules = [];
|
|
55938
|
+
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)) {
|
|
55939
|
+
uneditableIn(range, editor).forEach((elm)=>{
|
|
55940
|
+
const media = elm.querySelector(MEDIA);
|
|
55941
|
+
const wrapper = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(elm);
|
|
55942
|
+
if (media && wrapper) {
|
|
55943
|
+
rules.push(`${wrapper}::selection,${wrapper} ::selection{background:transparent}`, `${(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.cssPath)(media)}{filter:${SHADE}}`);
|
|
55944
|
+
}
|
|
55945
|
+
});
|
|
55946
|
+
}
|
|
55947
|
+
const style = rules.join('');
|
|
55948
|
+
if (style !== this.__selectedMediaStyle) {
|
|
55949
|
+
this.__selectedMediaStyle = style;
|
|
55950
|
+
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.j, select, 'style', true).textContent = style;
|
|
55951
|
+
}
|
|
55094
55952
|
}
|
|
55095
55953
|
onStartSelection(e) {
|
|
55096
55954
|
const { j } = this;
|
|
@@ -55116,10 +55974,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55116
55974
|
}
|
|
55117
55975
|
// Selecting the text of a popup input with the mouse and releasing
|
|
55118
55976
|
// the button past the popup's edge is not a click outside of it.
|
|
55119
|
-
if (pressed &&
|
|
55977
|
+
if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup)) {
|
|
55120
55978
|
return;
|
|
55121
55979
|
}
|
|
55122
|
-
|
|
55980
|
+
// An item of a list that closed once it was chosen was in a popup
|
|
55981
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isNode(node) && !node.isConnected) {
|
|
55982
|
+
return;
|
|
55983
|
+
}
|
|
55984
|
+
const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.Popup);
|
|
55123
55985
|
if (!box) {
|
|
55124
55986
|
this.j.e.fire('outsideClick', e);
|
|
55125
55987
|
}
|
|
@@ -55327,6 +56189,79 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55327
56189
|
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);
|
|
55328
56190
|
}
|
|
55329
56191
|
}
|
|
56192
|
+
/**
|
|
56193
|
+
* A double click past the end of a line selects only its line break, up
|
|
56194
|
+
* to the start of the next line a caret can go on. The browsers show no
|
|
56195
|
+
* caret for it, and typing replaces the break, joining the lines and
|
|
56196
|
+
* taking any video in between with it (#1768). Put the caret at the end
|
|
56197
|
+
* of the line instead
|
|
56198
|
+
*/ onDblClickPastLineEnd() {
|
|
56199
|
+
const { s, editor, o } = this.j;
|
|
56200
|
+
const range = s.range;
|
|
56201
|
+
if (o.readonly || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(editor, range.commonAncestorContainer) || !isLineBreak(range, editor)) {
|
|
56202
|
+
return;
|
|
56203
|
+
}
|
|
56204
|
+
range.collapse(true);
|
|
56205
|
+
s.selectRange(range);
|
|
56206
|
+
}
|
|
56207
|
+
/**
|
|
56208
|
+
* The browsers have no caret position beside an uneditable block alone
|
|
56209
|
+
* on its line, such as a video, so a drag that ends on its line runs on
|
|
56210
|
+
* past it, and typing deletes it (#1768). Until the pointer has passed
|
|
56211
|
+
* the block, the selection stops at the last caret place in the block
|
|
56212
|
+
* before its line, or for a drag upwards at the first in the block after
|
|
56213
|
+
*/ onMouseUpOnUneditableLine(e) {
|
|
56214
|
+
var _a, _b;
|
|
56215
|
+
const { s, editor, o } = this.j;
|
|
56216
|
+
const { sel } = s;
|
|
56217
|
+
if (o.readonly || !(sel === null || sel === void 0 ? void 0 : sel.rangeCount) || sel.isCollapsed) {
|
|
56218
|
+
return;
|
|
56219
|
+
}
|
|
56220
|
+
const range = sel.getRangeAt(0).cloneRange();
|
|
56221
|
+
// A video or image Jodit selected itself on the press
|
|
56222
|
+
if (isElementSelection(range)) {
|
|
56223
|
+
return;
|
|
56224
|
+
}
|
|
56225
|
+
const forward = sel.anchorNode === range.startContainer && sel.anchorOffset === range.startOffset;
|
|
56226
|
+
const lines = uneditableIn(range, editor).map((elm)=>{
|
|
56227
|
+
var _a;
|
|
56228
|
+
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;
|
|
56229
|
+
}).filter((line)=>!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_6__.trim)(ownText(line)));
|
|
56230
|
+
const isAhead = (line)=>{
|
|
56231
|
+
const box = line.getBoundingClientRect();
|
|
56232
|
+
return forward ? e.clientY < box.bottom : e.clientY > box.top;
|
|
56233
|
+
};
|
|
56234
|
+
const line = forward ? lines.find(isAhead) : lines.reverse().find(isAhead);
|
|
56235
|
+
if (!line) {
|
|
56236
|
+
return;
|
|
56237
|
+
}
|
|
56238
|
+
// Where a caret can go: in text, or before a <br>
|
|
56239
|
+
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');
|
|
56240
|
+
// Only the block beside the line, not one further on
|
|
56241
|
+
const beside = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.findNotEmptySibling(line, forward);
|
|
56242
|
+
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;
|
|
56243
|
+
if (!place) {
|
|
56244
|
+
return;
|
|
56245
|
+
}
|
|
56246
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(place)) {
|
|
56247
|
+
if (forward) {
|
|
56248
|
+
range.setEnd(place, (_b = (_a = place.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
56249
|
+
} else {
|
|
56250
|
+
range.setStart(place, 0);
|
|
56251
|
+
}
|
|
56252
|
+
} else if (forward) {
|
|
56253
|
+
range.setEndBefore(place);
|
|
56254
|
+
} else {
|
|
56255
|
+
range.setStartBefore(place);
|
|
56256
|
+
}
|
|
56257
|
+
// The drag's start stays the anchor
|
|
56258
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
56259
|
+
if (forward) {
|
|
56260
|
+
sel.setBaseAndExtent(startContainer, startOffset, endContainer, endOffset);
|
|
56261
|
+
} else {
|
|
56262
|
+
sel.setBaseAndExtent(endContainer, endOffset, startContainer, startOffset);
|
|
56263
|
+
}
|
|
56264
|
+
}
|
|
55330
56265
|
onCopyNormalizeSelectionBound(e) {
|
|
55331
56266
|
const { s, editor, o } = this.j;
|
|
55332
56267
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -55346,6 +56281,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55346
56281
|
'mouseup',
|
|
55347
56282
|
'touchend'
|
|
55348
56283
|
];
|
|
56284
|
+
this.__selectedMediaStyle = '';
|
|
55349
56285
|
/**
|
|
55350
56286
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
55351
56287
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
@@ -55357,6 +56293,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
55357
56293
|
*/ this.__pressBesideRow = null;
|
|
55358
56294
|
}
|
|
55359
56295
|
}
|
|
56296
|
+
__decorate([
|
|
56297
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56298
|
+
':change',
|
|
56299
|
+
':readonly',
|
|
56300
|
+
':afterSetMode'
|
|
56301
|
+
]),
|
|
56302
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
56303
|
+
], select.prototype, "__markSelectedMedia", null);
|
|
55360
56304
|
__decorate([
|
|
55361
56305
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
55362
56306
|
], select.prototype, "onStartSelection", null);
|
|
@@ -55406,12 +56350,85 @@ __decorate([
|
|
|
55406
56350
|
':click'
|
|
55407
56351
|
])
|
|
55408
56352
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|
|
56353
|
+
__decorate([
|
|
56354
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56355
|
+
':dblclick'
|
|
56356
|
+
])
|
|
56357
|
+
], select.prototype, "onDblClickPastLineEnd", null);
|
|
56358
|
+
__decorate([
|
|
56359
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
56360
|
+
':mouseup'
|
|
56361
|
+
])
|
|
56362
|
+
], select.prototype, "onMouseUpOnUneditableLine", null);
|
|
55409
56363
|
__decorate([
|
|
55410
56364
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
55411
56365
|
':copy',
|
|
55412
56366
|
':cut'
|
|
55413
56367
|
])
|
|
55414
56368
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
|
56369
|
+
const isUneditable = (node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(node) && node.getAttribute('contenteditable') === 'false';
|
|
56370
|
+
/**
|
|
56371
|
+
* The text a node shows outside its uneditable elements, whose own text, as
|
|
56372
|
+
* a video's fallback text, isn't on the line
|
|
56373
|
+
*/ const ownText = (node)=>{
|
|
56374
|
+
var _a;
|
|
56375
|
+
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('');
|
|
56376
|
+
};
|
|
56377
|
+
/**
|
|
56378
|
+
* The uneditable elements the range holds whole, without those inside
|
|
56379
|
+
* another. Only those under the range's common ancestor can be, and none
|
|
56380
|
+
* when that's a text node, as along one line of a drag
|
|
56381
|
+
*/ function uneditableIn(range, root) {
|
|
56382
|
+
const box = range.commonAncestorContainer;
|
|
56383
|
+
if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(box)) {
|
|
56384
|
+
return [];
|
|
56385
|
+
}
|
|
56386
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(box.querySelectorAll('[contenteditable="false"]')).filter((elm)=>{
|
|
56387
|
+
if (!range.intersectsNode(elm)) {
|
|
56388
|
+
return false;
|
|
56389
|
+
}
|
|
56390
|
+
const own = elm.ownerDocument.createRange();
|
|
56391
|
+
own.selectNode(elm);
|
|
56392
|
+
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);
|
|
56393
|
+
});
|
|
56394
|
+
}
|
|
56395
|
+
/**
|
|
56396
|
+
* The range holds one element and nothing else, as a selected image does
|
|
56397
|
+
*/ function isElementSelection(range) {
|
|
56398
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
56399
|
+
return startContainer === endContainer && endOffset - startOffset === 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(startContainer.childNodes[startOffset]);
|
|
56400
|
+
}
|
|
56401
|
+
/**
|
|
56402
|
+
* The range holds a line end and nothing else: no characters but
|
|
56403
|
+
* whitespace, and no element whole but a `<br>` or a line a caret can't go
|
|
56404
|
+
* on, as a video's. It ends in another block, or holds the `<br>`
|
|
56405
|
+
*/ function isLineBreak(range, root) {
|
|
56406
|
+
const { startContainer, endContainer } = range;
|
|
56407
|
+
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()))) {
|
|
56408
|
+
return false;
|
|
56409
|
+
}
|
|
56410
|
+
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);
|
|
56411
|
+
const holdsBreaksOnly = (node)=>{
|
|
56412
|
+
if (!range.intersectsNode(node)) {
|
|
56413
|
+
return true;
|
|
56414
|
+
}
|
|
56415
|
+
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)) {
|
|
56416
|
+
return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes).every(holdsBreaksOnly);
|
|
56417
|
+
}
|
|
56418
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'br')) {
|
|
56419
|
+
crossesLineEnd = true;
|
|
56420
|
+
return true;
|
|
56421
|
+
}
|
|
56422
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) || isCaretless(node);
|
|
56423
|
+
};
|
|
56424
|
+
return holdsBreaksOnly(range.commonAncestorContainer) && crossesLineEnd;
|
|
56425
|
+
}
|
|
56426
|
+
/**
|
|
56427
|
+
* An uneditable element, or a block holding one and nothing else
|
|
56428
|
+
*/ function isCaretless(node) {
|
|
56429
|
+
const children = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(node.childNodes);
|
|
56430
|
+
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));
|
|
56431
|
+
}
|
|
55415
56432
|
_core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('select', select);
|
|
55416
56433
|
|
|
55417
56434
|
|
|
@@ -60847,12 +61864,12 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60847
61864
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
60848
61865
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
60849
61866
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
60850
|
-
/* harmony import */ var
|
|
60851
|
-
/* harmony import */ var
|
|
60852
|
-
/* harmony import */ var
|
|
60853
|
-
/* harmony import */ var
|
|
60854
|
-
/* harmony import */ var
|
|
60855
|
-
/* harmony import */ var
|
|
61867
|
+
/* harmony import */ var _core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5700);
|
|
61868
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37790);
|
|
61869
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20356);
|
|
61870
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
61871
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(56917);
|
|
61872
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2073);
|
|
60856
61873
|
/* harmony import */ var _modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(34793);
|
|
60857
61874
|
/* harmony import */ var _ui_ui_video_form_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27828);
|
|
60858
61875
|
/* harmony import */ var _readers_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54426);
|
|
@@ -60891,7 +61908,7 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60891
61908
|
* ```javascript
|
|
60892
61909
|
* editor.events.fire('openVideoProperties', video);
|
|
60893
61910
|
* ```
|
|
60894
|
-
*/ class videoProperties extends
|
|
61911
|
+
*/ class videoProperties extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
60895
61912
|
get __size() {
|
|
60896
61913
|
const { width, height } = this.state.values;
|
|
60897
61914
|
return `${width}x${height}`;
|
|
@@ -60930,15 +61947,15 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60930
61947
|
],
|
|
60931
61948
|
buttons.check
|
|
60932
61949
|
]);
|
|
60933
|
-
(0,
|
|
61950
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_4__.markOwner)(j, dialog.container);
|
|
60934
61951
|
return dialog;
|
|
60935
61952
|
}
|
|
60936
61953
|
get __buttons() {
|
|
60937
61954
|
const { j } = this;
|
|
60938
61955
|
return {
|
|
60939
|
-
check: (0,
|
|
60940
|
-
remove: (0,
|
|
60941
|
-
cancel: (0,
|
|
61956
|
+
check: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'ok', 'Apply', 'primary'),
|
|
61957
|
+
remove: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'bin', 'Delete'),
|
|
61958
|
+
cancel: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__.Button)(j, 'cancel', 'Cancel')
|
|
60942
61959
|
};
|
|
60943
61960
|
}
|
|
60944
61961
|
/**
|
|
@@ -60963,25 +61980,27 @@ UIVideoPropertiesForm = __decorate([
|
|
|
60963
61980
|
}
|
|
60964
61981
|
__openPosterPopup(button) {
|
|
60965
61982
|
const { j, state } = this;
|
|
60966
|
-
const popup = new
|
|
61983
|
+
const popup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_7__.Popup(this.dialog);
|
|
60967
61984
|
const close = ()=>{
|
|
60968
61985
|
popup.close();
|
|
60969
61986
|
popup.destruct();
|
|
60970
61987
|
};
|
|
60971
61988
|
popup.setContent((0,_modules_widget_file_selector_file_selector_js__WEBPACK_IMPORTED_MODULE_9__.FileSelectorWidget)(j, {
|
|
60972
61989
|
upload: (data)=>{
|
|
60973
|
-
|
|
60974
|
-
|
|
61990
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
61991
|
+
if (item) {
|
|
61992
|
+
state.values.poster = data.baseurl + item.file;
|
|
60975
61993
|
}
|
|
60976
61994
|
close();
|
|
60977
61995
|
},
|
|
60978
61996
|
filebrowser: (data)=>{
|
|
60979
|
-
|
|
60980
|
-
|
|
61997
|
+
const [item] = (0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_8__.getItems)(data);
|
|
61998
|
+
if (item) {
|
|
61999
|
+
state.values.poster = item.file;
|
|
60981
62000
|
close();
|
|
60982
62001
|
}
|
|
60983
62002
|
}
|
|
60984
|
-
}, null, close)).open(()=>(0,
|
|
62003
|
+
}, null, close)).open(()=>(0,_core_helpers_size_position_js__WEBPACK_IMPORTED_MODULE_3__.position)(button));
|
|
60985
62004
|
}
|
|
60986
62005
|
/** @override */ afterInit() {}
|
|
60987
62006
|
/** @override */ beforeDestruct() {
|
|
@@ -61131,8 +62150,9 @@ function setFlag(media, name, on) {
|
|
|
61131
62150
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2525);
|
|
61132
62151
|
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12153);
|
|
61133
62152
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6441);
|
|
61134
|
-
/* harmony import */ var
|
|
61135
|
-
/* harmony import */ var
|
|
62153
|
+
/* harmony import */ var _modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2073);
|
|
62154
|
+
/* harmony import */ var _modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92762);
|
|
62155
|
+
/* harmony import */ var _video_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37775);
|
|
61136
62156
|
/*!
|
|
61137
62157
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61138
62158
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -61144,12 +62164,13 @@ function setFlag(media, name, on) {
|
|
|
61144
62164
|
|
|
61145
62165
|
|
|
61146
62166
|
|
|
62167
|
+
|
|
61147
62168
|
function insertVideos(data) {
|
|
61148
|
-
|
|
61149
|
-
(
|
|
62169
|
+
const { baseurl } = data;
|
|
62170
|
+
(0,_modules_uploader_helpers_normalize_uploader_data_js__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
61150
62171
|
this.s.insertNode((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
61151
62172
|
controls: '',
|
|
61152
|
-
src:
|
|
62173
|
+
src: baseurl + file
|
|
61153
62174
|
})));
|
|
61154
62175
|
});
|
|
61155
62176
|
}
|
|
@@ -61159,7 +62180,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
61159
62180
|
defaultHeight: 345,
|
|
61160
62181
|
defaultHandlerSuccess: insertVideos
|
|
61161
62182
|
};
|
|
61162
|
-
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video',
|
|
62183
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
|
61163
62184
|
/**
|
|
61164
62185
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
61165
62186
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -61205,7 +62226,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
61205
62226
|
const { uploader } = jodit.o;
|
|
61206
62227
|
// Base64 alone would put whole video files into the content
|
|
61207
62228
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
61208
|
-
tabs.push((0,
|
|
62229
|
+
tabs.push((0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
61209
62230
|
run(()=>{
|
|
61210
62231
|
var _a, _b;
|
|
61211
62232
|
return ((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.defaultHandlerSuccess) !== null && _b !== void 0 ? _b : insertVideos).call(jodit, data);
|
|
@@ -61234,7 +62255,7 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', _video_svg_js__W
|
|
|
61234
62255
|
formCode.onSubmit((data)=>{
|
|
61235
62256
|
insertCode(data.code);
|
|
61236
62257
|
});
|
|
61237
|
-
const box = (0,
|
|
62258
|
+
const box = (0,_modules_widget_index_js__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
61238
62259
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
61239
62260
|
// "Upload" doesn't fit a third of the popup
|
|
61240
62261
|
box.classList.add('jodit-file-selector');
|
|
@@ -61649,6 +62670,14 @@ function _object_spread(target) {
|
|
|
61649
62670
|
_core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
61650
62671
|
|
|
61651
62672
|
|
|
62673
|
+
/***/ }),
|
|
62674
|
+
|
|
62675
|
+
/***/ 25850:
|
|
62676
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
62677
|
+
|
|
62678
|
+
/* 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> ");
|
|
62679
|
+
|
|
62680
|
+
|
|
61652
62681
|
/***/ }),
|
|
61653
62682
|
|
|
61654
62683
|
/***/ 78173:
|
|
@@ -61776,65 +62805,67 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('xpath', xpath);
|
|
|
61776
62805
|
|
|
61777
62806
|
__webpack_require__.r(__webpack_exports__);
|
|
61778
62807
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61779
|
-
/* harmony export */
|
|
61780
|
-
/* harmony export */
|
|
61781
|
-
/* harmony export */
|
|
61782
|
-
/* harmony export */
|
|
61783
|
-
/* harmony export */
|
|
61784
|
-
/* harmony export */
|
|
61785
|
-
/* harmony export */
|
|
61786
|
-
/* harmony export */
|
|
61787
|
-
/* harmony export */
|
|
61788
|
-
/* harmony export */
|
|
61789
|
-
/* harmony export */
|
|
61790
|
-
/* harmony export */
|
|
61791
|
-
/* harmony export */
|
|
61792
|
-
/* harmony export */
|
|
61793
|
-
/* harmony export */
|
|
61794
|
-
/* harmony export */
|
|
61795
|
-
/* harmony export */
|
|
61796
|
-
/* harmony export */
|
|
61797
|
-
/* harmony export */
|
|
61798
|
-
/* harmony export */
|
|
61799
|
-
/* harmony export */
|
|
61800
|
-
/* harmony export */
|
|
61801
|
-
/* harmony export */
|
|
61802
|
-
/* harmony export */
|
|
61803
|
-
/* harmony export */
|
|
61804
|
-
/* harmony export */
|
|
61805
|
-
/* harmony export */
|
|
61806
|
-
/* harmony export */
|
|
61807
|
-
/* harmony export */
|
|
61808
|
-
/* harmony export */
|
|
61809
|
-
/* harmony
|
|
61810
|
-
/* harmony import */ var
|
|
61811
|
-
/* harmony import */ var
|
|
61812
|
-
/* harmony import */ var
|
|
61813
|
-
/* harmony import */ var
|
|
61814
|
-
/* harmony import */ var
|
|
61815
|
-
/* harmony import */ var
|
|
61816
|
-
/* harmony import */ var
|
|
61817
|
-
/* harmony import */ var
|
|
61818
|
-
/* harmony import */ var
|
|
61819
|
-
/* harmony import */ var
|
|
61820
|
-
/* harmony import */ var
|
|
61821
|
-
/* harmony import */ var
|
|
61822
|
-
/* harmony import */ var
|
|
61823
|
-
/* harmony import */ var
|
|
61824
|
-
/* harmony import */ var
|
|
61825
|
-
/* harmony import */ var
|
|
61826
|
-
/* harmony import */ var
|
|
61827
|
-
/* harmony import */ var
|
|
61828
|
-
/* harmony import */ var
|
|
61829
|
-
/* harmony import */ var
|
|
61830
|
-
/* harmony import */ var
|
|
61831
|
-
/* harmony import */ var
|
|
61832
|
-
/* harmony import */ var
|
|
61833
|
-
/* harmony import */ var
|
|
61834
|
-
/* harmony import */ var
|
|
61835
|
-
/* harmony import */ var
|
|
61836
|
-
/* harmony import */ var
|
|
61837
|
-
/* harmony import */ var
|
|
62808
|
+
/* harmony export */ anchor: function() { return /* reexport safe */ _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__["default"]; },
|
|
62809
|
+
/* harmony export */ angle_down: function() { return /* reexport safe */ _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__["default"]; },
|
|
62810
|
+
/* harmony export */ angle_left: function() { return /* reexport safe */ _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__["default"]; },
|
|
62811
|
+
/* harmony export */ angle_right: function() { return /* reexport safe */ _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]; },
|
|
62812
|
+
/* harmony export */ angle_up: function() { return /* reexport safe */ _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]; },
|
|
62813
|
+
/* harmony export */ bin: function() { return /* reexport safe */ _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__["default"]; },
|
|
62814
|
+
/* harmony export */ cancel: function() { return /* reexport safe */ _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]; },
|
|
62815
|
+
/* harmony export */ center: function() { return /* reexport safe */ _center_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]; },
|
|
62816
|
+
/* harmony export */ check: function() { return /* reexport safe */ _check_svg_js__WEBPACK_IMPORTED_MODULE_8__["default"]; },
|
|
62817
|
+
/* harmony export */ chevron: function() { return /* reexport safe */ _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__["default"]; },
|
|
62818
|
+
/* harmony export */ dots: function() { return /* reexport safe */ _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__["default"]; },
|
|
62819
|
+
/* harmony export */ download: function() { return /* reexport safe */ _download_svg_js__WEBPACK_IMPORTED_MODULE_11__["default"]; },
|
|
62820
|
+
/* harmony export */ eraser: function() { return /* reexport safe */ _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__["default"]; },
|
|
62821
|
+
/* harmony export */ eye: function() { return /* reexport safe */ _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__["default"]; },
|
|
62822
|
+
/* harmony export */ file: function() { return /* reexport safe */ _file_svg_js__WEBPACK_IMPORTED_MODULE_14__["default"]; },
|
|
62823
|
+
/* harmony export */ folder: function() { return /* reexport safe */ _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__["default"]; },
|
|
62824
|
+
/* harmony export */ info_circle: function() { return /* reexport safe */ _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__["default"]; },
|
|
62825
|
+
/* harmony export */ left: function() { return /* reexport safe */ _left_svg_js__WEBPACK_IMPORTED_MODULE_17__["default"]; },
|
|
62826
|
+
/* harmony export */ lock: function() { return /* reexport safe */ _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__["default"]; },
|
|
62827
|
+
/* harmony export */ ok: function() { return /* reexport safe */ _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__["default"]; },
|
|
62828
|
+
/* harmony export */ pencil: function() { return /* reexport safe */ _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__["default"]; },
|
|
62829
|
+
/* harmony export */ plus: function() { return /* reexport safe */ _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__["default"]; },
|
|
62830
|
+
/* harmony export */ resize_handler: function() { return /* reexport safe */ _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__["default"]; },
|
|
62831
|
+
/* harmony export */ right: function() { return /* reexport safe */ _right_svg_js__WEBPACK_IMPORTED_MODULE_23__["default"]; },
|
|
62832
|
+
/* harmony export */ save: function() { return /* reexport safe */ _save_svg_js__WEBPACK_IMPORTED_MODULE_24__["default"]; },
|
|
62833
|
+
/* harmony export */ settings: function() { return /* reexport safe */ _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__["default"]; },
|
|
62834
|
+
/* harmony export */ unlock: function() { return /* reexport safe */ _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__["default"]; },
|
|
62835
|
+
/* harmony export */ update: function() { return /* reexport safe */ _update_svg_js__WEBPACK_IMPORTED_MODULE_27__["default"]; },
|
|
62836
|
+
/* harmony export */ upload: function() { return /* reexport safe */ _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__["default"]; },
|
|
62837
|
+
/* harmony export */ valign: function() { return /* reexport safe */ _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__["default"]; }
|
|
62838
|
+
/* harmony export */ });
|
|
62839
|
+
/* harmony import */ var _anchor_svg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25850);
|
|
62840
|
+
/* harmony import */ var _angle_down_svg_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78173);
|
|
62841
|
+
/* harmony import */ var _angle_left_svg_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16260);
|
|
62842
|
+
/* harmony import */ var _angle_right_svg_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37663);
|
|
62843
|
+
/* harmony import */ var _angle_up_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51036);
|
|
62844
|
+
/* harmony import */ var _bin_svg_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31554);
|
|
62845
|
+
/* harmony import */ var _cancel_svg_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18309);
|
|
62846
|
+
/* harmony import */ var _center_svg_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99762);
|
|
62847
|
+
/* harmony import */ var _check_svg_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7903);
|
|
62848
|
+
/* harmony import */ var _chevron_svg_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(58032);
|
|
62849
|
+
/* harmony import */ var _dots_svg_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(52507);
|
|
62850
|
+
/* harmony import */ var _download_svg_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1647);
|
|
62851
|
+
/* harmony import */ var _eraser_svg_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(98535);
|
|
62852
|
+
/* harmony import */ var _eye_svg_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(43478);
|
|
62853
|
+
/* harmony import */ var _file_svg_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(60097);
|
|
62854
|
+
/* harmony import */ var _folder_svg_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(49155);
|
|
62855
|
+
/* harmony import */ var _info_circle_svg_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(17176);
|
|
62856
|
+
/* harmony import */ var _left_svg_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57882);
|
|
62857
|
+
/* harmony import */ var _lock_svg_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(58908);
|
|
62858
|
+
/* harmony import */ var _ok_svg_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(24829);
|
|
62859
|
+
/* harmony import */ var _pencil_svg_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4038);
|
|
62860
|
+
/* harmony import */ var _plus_svg_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(45575);
|
|
62861
|
+
/* harmony import */ var _resize_handler_svg_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(84858);
|
|
62862
|
+
/* harmony import */ var _right_svg_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(445);
|
|
62863
|
+
/* harmony import */ var _save_svg_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(36886);
|
|
62864
|
+
/* harmony import */ var _settings_svg_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(10766);
|
|
62865
|
+
/* harmony import */ var _unlock_svg_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(33651);
|
|
62866
|
+
/* harmony import */ var _update_svg_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(20362);
|
|
62867
|
+
/* harmony import */ var _upload_svg_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(12202);
|
|
62868
|
+
/* harmony import */ var _valign_svg_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(80152);
|
|
61838
62869
|
/*!
|
|
61839
62870
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61840
62871
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -61873,6 +62904,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61873
62904
|
|
|
61874
62905
|
|
|
61875
62906
|
|
|
62907
|
+
|
|
61876
62908
|
|
|
61877
62909
|
|
|
61878
62910
|
/***/ }),
|