jodit-pro 4.20.1 → 4.20.3
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 +8 -8
- package/es2015/jodit.js +237 -53
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +8 -8
- 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 +8 -8
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +8 -8
- 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 +8 -8
- package/es2021/jodit.js +237 -53
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +8 -8
- 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 +8 -8
- package/es2021.en/jodit.js +237 -53
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +8 -8
- 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 +309 -55
- 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/es2021.en/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.20.
|
|
4
|
+
* Version: v4.20.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1768,7 +1768,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1768
1768
|
* ```
|
|
1769
1769
|
* @packageDocumentation
|
|
1770
1770
|
* @module constants
|
|
1771
|
-
*/ const APP_VERSION = "4.20.
|
|
1771
|
+
*/ const APP_VERSION = "4.20.3";
|
|
1772
1772
|
// prettier-ignore
|
|
1773
1773
|
const ES = "es2021";
|
|
1774
1774
|
const IS_ES_MODERN = true;
|
|
@@ -16623,6 +16623,8 @@ let UIInput = UIInput_1 = class UIInput extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
16623
16623
|
if (label) {
|
|
16624
16624
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(this.wrapper, this.label);
|
|
16625
16625
|
this.label.innerText = this.j.i18n(label);
|
|
16626
|
+
// The label is a span, so it names the input only this way
|
|
16627
|
+
(0,_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
16626
16628
|
} else {
|
|
16627
16629
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.label);
|
|
16628
16630
|
}
|
|
@@ -32352,13 +32354,26 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
32352
32354
|
}
|
|
32353
32355
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
32354
32356
|
}
|
|
32355
|
-
|
|
32356
|
-
|
|
32357
|
-
|
|
32357
|
+
/**
|
|
32358
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
32359
|
+
* it's pressed
|
|
32360
|
+
*/ get isToggle() {
|
|
32361
|
+
const { isActive, tags, css } = this.control;
|
|
32362
|
+
return Boolean(isActive || tags || css);
|
|
32363
|
+
}
|
|
32364
|
+
/**
|
|
32365
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
32366
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
32367
|
+
* `aria-pressed`
|
|
32368
|
+
*/ onChangeActivated() {
|
|
32369
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
32370
|
+
this.setMod('activated', this.state.activated || null);
|
|
32358
32371
|
}
|
|
32359
32372
|
onChangeText() {
|
|
32360
32373
|
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
32361
32374
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
32375
|
+
// The name given before the text came would otherwise stay
|
|
32376
|
+
this.updateAriaLabel();
|
|
32362
32377
|
} else {
|
|
32363
32378
|
super.onChangeText();
|
|
32364
32379
|
}
|
|
@@ -32413,6 +32428,8 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
32413
32428
|
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
32414
32429
|
}
|
|
32415
32430
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
32431
|
+
// UIButton's template makes every button a toggle
|
|
32432
|
+
this.onChangeActivated();
|
|
32416
32433
|
}
|
|
32417
32434
|
__initIconFromControl() {
|
|
32418
32435
|
var _a;
|
|
@@ -32989,7 +33006,8 @@ ToolbarContent = __decorate([
|
|
|
32989
33006
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
32990
33007
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
32991
33008
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
32992
|
-
/* harmony import */ var
|
|
33009
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
33010
|
+
/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
|
|
32993
33011
|
/*!
|
|
32994
33012
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32995
33013
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33004,10 +33022,15 @@ ToolbarContent = __decorate([
|
|
|
33004
33022
|
|
|
33005
33023
|
|
|
33006
33024
|
|
|
33007
|
-
|
|
33025
|
+
|
|
33026
|
+
let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton {
|
|
33008
33027
|
className() {
|
|
33009
33028
|
return 'ToolbarSelect';
|
|
33010
33029
|
}
|
|
33030
|
+
// It shows its value, rather than being on or off
|
|
33031
|
+
get isToggle() {
|
|
33032
|
+
return false;
|
|
33033
|
+
}
|
|
33011
33034
|
update() {
|
|
33012
33035
|
var _a, _b, _c;
|
|
33013
33036
|
super.update();
|
|
@@ -33023,6 +33046,18 @@ let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MOD
|
|
|
33023
33046
|
this.state.text = (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
|
|
33024
33047
|
}
|
|
33025
33048
|
}
|
|
33049
|
+
/**
|
|
33050
|
+
* The button shows only the value, so its name says which control it
|
|
33051
|
+
* is too: "Font size, 16px"
|
|
33052
|
+
*/ updateAriaLabel() {
|
|
33053
|
+
var _a;
|
|
33054
|
+
super.updateAriaLabel();
|
|
33055
|
+
const { tooltip } = this.state;
|
|
33056
|
+
const value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
33057
|
+
if (tooltip && value) {
|
|
33058
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', `${this.jodit.i18n(tooltip)}, ${value}`);
|
|
33059
|
+
}
|
|
33060
|
+
}
|
|
33026
33061
|
};
|
|
33027
33062
|
ToolbarSelect = __decorate([
|
|
33028
33063
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
@@ -34257,10 +34292,11 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34257
34292
|
/***/ 22859:
|
|
34258
34293
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34259
34294
|
|
|
34260
|
-
/* harmony import */ var
|
|
34261
|
-
/* harmony import */ var
|
|
34262
|
-
/* harmony import */ var
|
|
34263
|
-
/* harmony import */ var
|
|
34295
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
34296
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
34297
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
34298
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
34299
|
+
/* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
|
|
34264
34300
|
/*!
|
|
34265
34301
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34266
34302
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34269,7 +34305,8 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34269
34305
|
|
|
34270
34306
|
|
|
34271
34307
|
|
|
34272
|
-
|
|
34308
|
+
|
|
34309
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
34273
34310
|
/**
|
|
34274
34311
|
* Build color picker
|
|
34275
34312
|
*
|
|
@@ -34287,29 +34324,54 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34287
34324
|
* });
|
|
34288
34325
|
* ```
|
|
34289
34326
|
*/ const ColorPickerWidget = (editor, callback, coldColor)=>{
|
|
34290
|
-
|
|
34327
|
+
var _a;
|
|
34328
|
+
const cn = 'jodit-color-picker', valueHex = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(coldColor), form = editor.c.div(cn), iconPalette = editor.o.textIcons ? `<span>${editor.i18n('palette')}</span>` : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('palette'), eachColor = (colors)=>{
|
|
34291
34329
|
const stack = [];
|
|
34292
|
-
if ((0,
|
|
34330
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
34293
34331
|
Object.keys(colors).forEach((key)=>{
|
|
34294
34332
|
stack.push(`<div class="${cn}__group ${cn}__group-${key}">`);
|
|
34295
34333
|
stack.push(eachColor(colors[key]));
|
|
34296
34334
|
stack.push('</div>');
|
|
34297
34335
|
});
|
|
34298
|
-
} else if ((0,
|
|
34336
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
34299
34337
|
colors.forEach((color)=>{
|
|
34300
|
-
|
|
34338
|
+
const active = valueHex === color;
|
|
34339
|
+
stack.push(`<button type="button" class='${cn}__color-item ${active ? cn + '__color-item_active_true' : ''}' title="${color}" aria-pressed="${active}" tabindex="-1" style="background-color:${color}" data-color="${color}"></button>`);
|
|
34301
34340
|
});
|
|
34302
34341
|
}
|
|
34303
34342
|
return stack.join('');
|
|
34304
34343
|
};
|
|
34305
34344
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
34306
34345
|
// too. See #1487
|
|
34307
|
-
const groups = (0,
|
|
34308
|
-
|
|
34309
|
-
|
|
34310
|
-
|
|
34311
|
-
|
|
34312
|
-
const
|
|
34346
|
+
const groups = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(editor.o.colors) ? `<div class="${cn}__group">${eachColor(editor.o.colors)}</div>` : eachColor(editor.o.colors);
|
|
34347
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div class="${cn}__groups">${groups}</div>`));
|
|
34348
|
+
const items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(`.${cn}__color-item`));
|
|
34349
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
34350
|
+
// keys move from it
|
|
34351
|
+
const tabStop = (_a = items.find((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'aria-pressed') === 'true')) !== null && _a !== void 0 ? _a : items[0];
|
|
34352
|
+
if (tabStop) {
|
|
34353
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
|
|
34354
|
+
}
|
|
34355
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
34356
|
+
// palette is laid out
|
|
34357
|
+
const nextItem = (item, key)=>{
|
|
34358
|
+
const index = items.indexOf(item);
|
|
34359
|
+
if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
|
|
34360
|
+
const step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
|
|
34361
|
+
const rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
|
|
34362
|
+
return items[index + (rtl ? -step : step)];
|
|
34363
|
+
}
|
|
34364
|
+
const down = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN, rows = items.filter((other)=>down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop);
|
|
34365
|
+
if (!rows.length) {
|
|
34366
|
+
return;
|
|
34367
|
+
}
|
|
34368
|
+
const top = (down ? Math.min : Math.max)(...rows.map((other)=>other.offsetTop)), distance = (other)=>Math.abs(other.offsetLeft - item.offsetLeft);
|
|
34369
|
+
return rows.filter((other)=>other.offsetTop === top).reduce((nearest, other)=>distance(other) < distance(nearest) ? other : nearest);
|
|
34370
|
+
};
|
|
34371
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div data-ref="extra" class="${cn}__extra"></div>`));
|
|
34372
|
+
const { extra } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
34373
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<div class="${cn}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${valueHex || ''}"/></div>`));
|
|
34374
|
+
const { hexInput } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
34313
34375
|
// Enter applies the value and closes the popup; removing the focused
|
|
34314
34376
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
34315
34377
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -34324,8 +34386,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34324
34386
|
if (!isHex && !isRgb) {
|
|
34325
34387
|
return;
|
|
34326
34388
|
}
|
|
34327
|
-
const color = (0,
|
|
34328
|
-
if (color && (0,
|
|
34389
|
+
const color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
34390
|
+
if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34329
34391
|
appliedHexValue = raw;
|
|
34330
34392
|
callback(color);
|
|
34331
34393
|
}
|
|
@@ -34340,40 +34402,75 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34340
34402
|
e.stopPropagation();
|
|
34341
34403
|
applyHexInput();
|
|
34342
34404
|
});
|
|
34343
|
-
|
|
34344
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
34345
|
-
|
|
34405
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<button type="button" class="${cn}__remove" data-color="" title="${editor.i18n('Remove')}">${editor.o.textIcons ? editor.i18n('Remove') : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('eraser')}</button>`));
|
|
34406
|
+
if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
|
|
34407
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<div class="${cn}__native">${iconPalette}<input type="color" value="#ffffff"/></div>`));
|
|
34346
34408
|
editor.e.on(form, 'change', (e)=>{
|
|
34347
34409
|
e.stopPropagation();
|
|
34348
34410
|
const target = e.target;
|
|
34349
|
-
if (!target || !target.tagName || !
|
|
34411
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
34350
34412
|
return;
|
|
34351
34413
|
}
|
|
34352
34414
|
const color = target.value || '';
|
|
34353
|
-
if ((0,
|
|
34415
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34354
34416
|
callback(color);
|
|
34355
34417
|
}
|
|
34356
34418
|
e.preventDefault();
|
|
34357
34419
|
});
|
|
34358
34420
|
}
|
|
34421
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
34422
|
+
const colorOf = (node)=>{
|
|
34423
|
+
const button = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, (elm)=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove')), form);
|
|
34424
|
+
return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
|
|
34425
|
+
};
|
|
34426
|
+
const apply = (color)=>{
|
|
34427
|
+
if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34428
|
+
callback(color);
|
|
34429
|
+
}
|
|
34430
|
+
};
|
|
34431
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
34432
|
+
// The keyboard and screen readers press the button, which sends only
|
|
34433
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
34434
|
+
let pointerPressed = false;
|
|
34359
34435
|
editor.e.on(form, 'mousedown touchend', (e)=>{
|
|
34360
34436
|
// let the hex/native inputs receive focus and clicks
|
|
34361
|
-
if (
|
|
34437
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
34362
34438
|
e.stopPropagation();
|
|
34363
34439
|
return;
|
|
34364
34440
|
}
|
|
34365
34441
|
e.stopPropagation();
|
|
34366
34442
|
e.preventDefault();
|
|
34367
|
-
|
|
34368
|
-
if (
|
|
34369
|
-
|
|
34443
|
+
const color = colorOf(e.target);
|
|
34444
|
+
if (color !== undefined) {
|
|
34445
|
+
pointerPressed = e.type === 'mousedown';
|
|
34446
|
+
apply(color);
|
|
34447
|
+
}
|
|
34448
|
+
});
|
|
34449
|
+
editor.e.on(form, 'click', (e)=>{
|
|
34450
|
+
const color = colorOf(e.target);
|
|
34451
|
+
if (color !== undefined && !pointerPressed) {
|
|
34452
|
+
apply(color);
|
|
34370
34453
|
}
|
|
34371
|
-
|
|
34454
|
+
pointerPressed = false;
|
|
34455
|
+
}).on(form, 'keydown', (e)=>{
|
|
34456
|
+
var _a;
|
|
34457
|
+
pointerPressed = false;
|
|
34458
|
+
const item = e.target;
|
|
34459
|
+
if (!items.includes(item) || ![
|
|
34460
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
|
|
34461
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
|
|
34462
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
|
|
34463
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
34464
|
+
].includes(e.key)) {
|
|
34372
34465
|
return;
|
|
34373
34466
|
}
|
|
34374
|
-
|
|
34375
|
-
|
|
34376
|
-
|
|
34467
|
+
// The toolbar's dropdown would walk every color one by one
|
|
34468
|
+
e.preventDefault();
|
|
34469
|
+
e.stopPropagation();
|
|
34470
|
+
(_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
34471
|
+
}).on(form, 'focusin', (e)=>{
|
|
34472
|
+
if (items.includes(e.target)) {
|
|
34473
|
+
items.forEach((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1));
|
|
34377
34474
|
}
|
|
34378
34475
|
});
|
|
34379
34476
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -35704,7 +35801,8 @@ UiAiAssistant = __decorate([
|
|
|
35704
35801
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
35705
35802
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
35706
35803
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
35707
|
-
/* harmony import */ var
|
|
35804
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
|
|
35805
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
|
|
35708
35806
|
/*!
|
|
35709
35807
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35710
35808
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35724,14 +35822,21 @@ UiAiAssistant = __decorate([
|
|
|
35724
35822
|
|
|
35725
35823
|
|
|
35726
35824
|
|
|
35727
|
-
|
|
35728
|
-
const MARKER = [
|
|
35729
|
-
'id',
|
|
35730
|
-
'name'
|
|
35731
|
-
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
35825
|
+
|
|
35732
35826
|
/**
|
|
35733
|
-
*
|
|
35734
|
-
|
|
35827
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
35828
|
+
* with the page and so with any other editor on it
|
|
35829
|
+
*/ const WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
35830
|
+
/**
|
|
35831
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
35832
|
+
*/ function markerStyle(scope) {
|
|
35833
|
+
const marker = [
|
|
35834
|
+
'id',
|
|
35835
|
+
'name'
|
|
35836
|
+
].map((key)=>`.jodit-wysiwyg${scope} a[${key}]:not([href]):empty::before`).join(',');
|
|
35837
|
+
const icon = `url("data:image/svg+xml,${encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor'))}") center/contain no-repeat`;
|
|
35838
|
+
return `${marker}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:${icon};mask:${icon};cursor:pointer;content:''}`;
|
|
35839
|
+
}
|
|
35735
35840
|
/**
|
|
35736
35841
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
35737
35842
|
*/ const MARK = ' contenteditable="false"';
|
|
@@ -35740,8 +35845,14 @@ const MARKER = [
|
|
|
35740
35845
|
* `#name`, and renames and removes them
|
|
35741
35846
|
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
35742
35847
|
/** @override */ afterInit(jodit) {
|
|
35848
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
35849
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
35850
|
+
const shared = jodit.ed === jodit.od;
|
|
35851
|
+
if (shared) {
|
|
35852
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
35853
|
+
}
|
|
35743
35854
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
35744
|
-
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
35855
|
+
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
35745
35856
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
35746
35857
|
top: true
|
|
35747
35858
|
});
|
|
@@ -35774,6 +35885,24 @@ const MARKER = [
|
|
|
35774
35885
|
*/ onAfterGetValueFromEditor(data) {
|
|
35775
35886
|
data.value = unmarkAnchors(data.value);
|
|
35776
35887
|
}
|
|
35888
|
+
/**
|
|
35889
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
35890
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
35891
|
+
*/ onBeforePasteInsert(html) {
|
|
35892
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
|
|
35893
|
+
this.__renameCopies(html);
|
|
35894
|
+
return;
|
|
35895
|
+
}
|
|
35896
|
+
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
|
|
35897
|
+
return;
|
|
35898
|
+
}
|
|
35899
|
+
// Inert, so nothing in it loads
|
|
35900
|
+
const template = this.j.createInside.element('template');
|
|
35901
|
+
template.innerHTML = html;
|
|
35902
|
+
if (this.__renameCopies(template.content)) {
|
|
35903
|
+
return template.innerHTML;
|
|
35904
|
+
}
|
|
35905
|
+
}
|
|
35777
35906
|
/**
|
|
35778
35907
|
* The form that names a new anchor, or renames or removes `target`
|
|
35779
35908
|
*/ __generateForm(target, close) {
|
|
@@ -35913,8 +36042,52 @@ const MARKER = [
|
|
|
35913
36042
|
}
|
|
35914
36043
|
});
|
|
35915
36044
|
}
|
|
36045
|
+
/**
|
|
36046
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
36047
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
36048
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
36049
|
+
*/ __renameCopies(root) {
|
|
36050
|
+
const inRoot = new Set((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('[id], a[name]')).map((elm)=>elm.id || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name')));
|
|
36051
|
+
const renamed = new Map();
|
|
36052
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
|
|
36053
|
+
root
|
|
36054
|
+
] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
|
|
36055
|
+
anchors.forEach((anchor)=>{
|
|
36056
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
36057
|
+
if (!this.__isTaken(name, null)) {
|
|
36058
|
+
return;
|
|
36059
|
+
}
|
|
36060
|
+
let copy = name;
|
|
36061
|
+
for(let n = 2; inRoot.has(copy) || this.__isTaken(copy, null); n += 1){
|
|
36062
|
+
copy = `${name}-${n}`;
|
|
36063
|
+
}
|
|
36064
|
+
[
|
|
36065
|
+
'id',
|
|
36066
|
+
'name'
|
|
36067
|
+
].forEach((key)=>{
|
|
36068
|
+
if (anchor.hasAttribute(key)) {
|
|
36069
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
|
|
36070
|
+
}
|
|
36071
|
+
});
|
|
36072
|
+
inRoot.add(copy);
|
|
36073
|
+
renamed.set(name, copy);
|
|
36074
|
+
});
|
|
36075
|
+
if (!renamed.size) {
|
|
36076
|
+
return false;
|
|
36077
|
+
}
|
|
36078
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach((link)=>{
|
|
36079
|
+
var _a;
|
|
36080
|
+
const href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
|
|
36081
|
+
const copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
36082
|
+
if (copy) {
|
|
36083
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
|
|
36084
|
+
}
|
|
36085
|
+
});
|
|
36086
|
+
return true;
|
|
36087
|
+
}
|
|
35916
36088
|
/** @override */ beforeDestruct(jodit) {
|
|
35917
36089
|
this.__dropForm();
|
|
36090
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
35918
36091
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
35919
36092
|
}
|
|
35920
36093
|
constructor(){
|
|
@@ -35946,6 +36119,9 @@ __decorate([
|
|
|
35946
36119
|
__decorate([
|
|
35947
36120
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
35948
36121
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
36122
|
+
__decorate([
|
|
36123
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
36124
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
35949
36125
|
__decorate([
|
|
35950
36126
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
35951
36127
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -42535,6 +42711,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
42535
42711
|
exec: (editor)=>{
|
|
42536
42712
|
editor.toggleFullSize();
|
|
42537
42713
|
},
|
|
42714
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
42715
|
+
isActive: (editor)=>editor.isFullSize,
|
|
42538
42716
|
update (editor, button) {
|
|
42539
42717
|
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
42540
42718
|
button.state.activated = editor.isFullSize;
|
|
@@ -42901,9 +43079,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
42901
43079
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
42902
43080
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
42903
43081
|
command: 'insertHorizontalRule',
|
|
42904
|
-
tags: [
|
|
42905
|
-
'hr'
|
|
42906
|
-
],
|
|
42907
43082
|
tooltip: 'Insert Horizontal Line'
|
|
42908
43083
|
};
|
|
42909
43084
|
function hr(editor) {
|
|
@@ -47480,9 +47655,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
47480
47655
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
47481
47656
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
47482
47657
|
command: 'applyLineHeight',
|
|
47483
|
-
tags: [
|
|
47484
|
-
'ol'
|
|
47485
|
-
],
|
|
47486
47658
|
tooltip: 'Line height',
|
|
47487
47659
|
list: [
|
|
47488
47660
|
1,
|
|
@@ -48443,7 +48615,9 @@ const formTemplate = (editor)=>{
|
|
|
48443
48615
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
48444
48616
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
48445
48617
|
name: 'url',
|
|
48446
|
-
|
|
48618
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
48619
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
48620
|
+
type: 'url',
|
|
48447
48621
|
ref: 'url_input',
|
|
48448
48622
|
label: 'URL',
|
|
48449
48623
|
placeholder: 'http://',
|
|
@@ -51469,6 +51643,13 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
51469
51643
|
this.addEventListeners();
|
|
51470
51644
|
this.__onChangeEditor();
|
|
51471
51645
|
}
|
|
51646
|
+
/**
|
|
51647
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
51648
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
51649
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
51650
|
+
*/ onEditorTouchEnd(e) {
|
|
51651
|
+
this.j.async.setTimeout(()=>this.onEditorClick(e), 1);
|
|
51652
|
+
}
|
|
51472
51653
|
/**
|
|
51473
51654
|
* Click in the editor area
|
|
51474
51655
|
*/ onEditorClick(e) {
|
|
@@ -51914,6 +52095,9 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
51914
52095
|
};
|
|
51915
52096
|
}
|
|
51916
52097
|
}
|
|
52098
|
+
__decorate([
|
|
52099
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':touchend')
|
|
52100
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
51917
52101
|
__decorate([
|
|
51918
52102
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
51919
52103
|
], resizer.prototype, "onEditorClick", null);
|