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/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.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
|
*/
|
|
@@ -1816,7 +1816,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1816
1816
|
* ```
|
|
1817
1817
|
* @packageDocumentation
|
|
1818
1818
|
* @module constants
|
|
1819
|
-
*/ const APP_VERSION = "4.20.
|
|
1819
|
+
*/ const APP_VERSION = "4.20.3";
|
|
1820
1820
|
// prettier-ignore
|
|
1821
1821
|
const ES = "es2015";
|
|
1822
1822
|
const IS_ES_MODERN = true;
|
|
@@ -17191,6 +17191,8 @@ let UIInput = UIInput_1 = class UIInput extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
17191
17191
|
if (label) {
|
|
17192
17192
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(this.wrapper, this.label);
|
|
17193
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));
|
|
17194
17196
|
} else {
|
|
17195
17197
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.label);
|
|
17196
17198
|
}
|
|
@@ -33337,13 +33339,26 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
33337
33339
|
}
|
|
33338
33340
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
33339
33341
|
}
|
|
33340
|
-
|
|
33341
|
-
|
|
33342
|
-
|
|
33342
|
+
/**
|
|
33343
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
33344
|
+
* it's pressed
|
|
33345
|
+
*/ get isToggle() {
|
|
33346
|
+
const { isActive, tags, css } = this.control;
|
|
33347
|
+
return Boolean(isActive || tags || css);
|
|
33348
|
+
}
|
|
33349
|
+
/**
|
|
33350
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
33351
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
33352
|
+
* `aria-pressed`
|
|
33353
|
+
*/ onChangeActivated() {
|
|
33354
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
33355
|
+
this.setMod('activated', this.state.activated || null);
|
|
33343
33356
|
}
|
|
33344
33357
|
onChangeText() {
|
|
33345
33358
|
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
33346
33359
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
33360
|
+
// The name given before the text came would otherwise stay
|
|
33361
|
+
this.updateAriaLabel();
|
|
33347
33362
|
} else {
|
|
33348
33363
|
super.onChangeText();
|
|
33349
33364
|
}
|
|
@@ -33398,6 +33413,8 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
33398
33413
|
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
33399
33414
|
}
|
|
33400
33415
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
33416
|
+
// UIButton's template makes every button a toggle
|
|
33417
|
+
this.onChangeActivated();
|
|
33401
33418
|
}
|
|
33402
33419
|
__initIconFromControl() {
|
|
33403
33420
|
var _a;
|
|
@@ -33969,7 +33986,8 @@ ToolbarContent = __decorate([
|
|
|
33969
33986
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
33970
33987
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
33971
33988
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
33972
|
-
/* harmony import */ var
|
|
33989
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
33990
|
+
/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
|
|
33973
33991
|
/*!
|
|
33974
33992
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33975
33993
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33984,10 +34002,15 @@ ToolbarContent = __decorate([
|
|
|
33984
34002
|
|
|
33985
34003
|
|
|
33986
34004
|
|
|
33987
|
-
|
|
34005
|
+
|
|
34006
|
+
let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton {
|
|
33988
34007
|
className() {
|
|
33989
34008
|
return 'ToolbarSelect';
|
|
33990
34009
|
}
|
|
34010
|
+
// It shows its value, rather than being on or off
|
|
34011
|
+
get isToggle() {
|
|
34012
|
+
return false;
|
|
34013
|
+
}
|
|
33991
34014
|
update() {
|
|
33992
34015
|
var _a, _b, _c;
|
|
33993
34016
|
super.update();
|
|
@@ -34003,6 +34026,18 @@ let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MOD
|
|
|
34003
34026
|
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;
|
|
34004
34027
|
}
|
|
34005
34028
|
}
|
|
34029
|
+
/**
|
|
34030
|
+
* The button shows only the value, so its name says which control it
|
|
34031
|
+
* is too: "Font size, 16px"
|
|
34032
|
+
*/ updateAriaLabel() {
|
|
34033
|
+
var _a;
|
|
34034
|
+
super.updateAriaLabel();
|
|
34035
|
+
const { tooltip } = this.state;
|
|
34036
|
+
const value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
34037
|
+
if (tooltip && value) {
|
|
34038
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', `${this.jodit.i18n(tooltip)}, ${value}`);
|
|
34039
|
+
}
|
|
34040
|
+
}
|
|
34006
34041
|
};
|
|
34007
34042
|
ToolbarSelect = __decorate([
|
|
34008
34043
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
@@ -35334,10 +35369,11 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
35334
35369
|
/***/ 22859:
|
|
35335
35370
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35336
35371
|
|
|
35337
|
-
/* harmony import */ var
|
|
35338
|
-
/* harmony import */ var
|
|
35339
|
-
/* harmony import */ var
|
|
35340
|
-
/* harmony import */ var
|
|
35372
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
35373
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
35374
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
35375
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
35376
|
+
/* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
|
|
35341
35377
|
/*!
|
|
35342
35378
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35343
35379
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35346,7 +35382,8 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
35346
35382
|
|
|
35347
35383
|
|
|
35348
35384
|
|
|
35349
|
-
|
|
35385
|
+
|
|
35386
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
35350
35387
|
/**
|
|
35351
35388
|
* Build color picker
|
|
35352
35389
|
*
|
|
@@ -35364,29 +35401,54 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35364
35401
|
* });
|
|
35365
35402
|
* ```
|
|
35366
35403
|
*/ const ColorPickerWidget = (editor, callback, coldColor)=>{
|
|
35367
|
-
|
|
35404
|
+
var _a;
|
|
35405
|
+
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)=>{
|
|
35368
35406
|
const stack = [];
|
|
35369
|
-
if ((0,
|
|
35407
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
35370
35408
|
Object.keys(colors).forEach((key)=>{
|
|
35371
35409
|
stack.push(`<div class="${cn}__group ${cn}__group-${key}">`);
|
|
35372
35410
|
stack.push(eachColor(colors[key]));
|
|
35373
35411
|
stack.push('</div>');
|
|
35374
35412
|
});
|
|
35375
|
-
} else if ((0,
|
|
35413
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
35376
35414
|
colors.forEach((color)=>{
|
|
35377
|
-
|
|
35415
|
+
const active = valueHex === color;
|
|
35416
|
+
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>`);
|
|
35378
35417
|
});
|
|
35379
35418
|
}
|
|
35380
35419
|
return stack.join('');
|
|
35381
35420
|
};
|
|
35382
35421
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
35383
35422
|
// too. See #1487
|
|
35384
|
-
const groups = (0,
|
|
35385
|
-
|
|
35386
|
-
|
|
35387
|
-
|
|
35388
|
-
|
|
35389
|
-
const
|
|
35423
|
+
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);
|
|
35424
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div class="${cn}__groups">${groups}</div>`));
|
|
35425
|
+
const items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(`.${cn}__color-item`));
|
|
35426
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
35427
|
+
// keys move from it
|
|
35428
|
+
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];
|
|
35429
|
+
if (tabStop) {
|
|
35430
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
|
|
35431
|
+
}
|
|
35432
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
35433
|
+
// palette is laid out
|
|
35434
|
+
const nextItem = (item, key)=>{
|
|
35435
|
+
const index = items.indexOf(item);
|
|
35436
|
+
if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
|
|
35437
|
+
const step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
|
|
35438
|
+
const rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
|
|
35439
|
+
return items[index + (rtl ? -step : step)];
|
|
35440
|
+
}
|
|
35441
|
+
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);
|
|
35442
|
+
if (!rows.length) {
|
|
35443
|
+
return;
|
|
35444
|
+
}
|
|
35445
|
+
const top = (down ? Math.min : Math.max)(...rows.map((other)=>other.offsetTop)), distance = (other)=>Math.abs(other.offsetLeft - item.offsetLeft);
|
|
35446
|
+
return rows.filter((other)=>other.offsetTop === top).reduce((nearest, other)=>distance(other) < distance(nearest) ? other : nearest);
|
|
35447
|
+
};
|
|
35448
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div data-ref="extra" class="${cn}__extra"></div>`));
|
|
35449
|
+
const { extra } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
35450
|
+
_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>`));
|
|
35451
|
+
const { hexInput } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
35390
35452
|
// Enter applies the value and closes the popup; removing the focused
|
|
35391
35453
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
35392
35454
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -35401,8 +35463,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35401
35463
|
if (!isHex && !isRgb) {
|
|
35402
35464
|
return;
|
|
35403
35465
|
}
|
|
35404
|
-
const color = (0,
|
|
35405
|
-
if (color && (0,
|
|
35466
|
+
const color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
35467
|
+
if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35406
35468
|
appliedHexValue = raw;
|
|
35407
35469
|
callback(color);
|
|
35408
35470
|
}
|
|
@@ -35417,40 +35479,75 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35417
35479
|
e.stopPropagation();
|
|
35418
35480
|
applyHexInput();
|
|
35419
35481
|
});
|
|
35420
|
-
|
|
35421
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
35422
|
-
|
|
35482
|
+
_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>`));
|
|
35483
|
+
if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
|
|
35484
|
+
_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>`));
|
|
35423
35485
|
editor.e.on(form, 'change', (e)=>{
|
|
35424
35486
|
e.stopPropagation();
|
|
35425
35487
|
const target = e.target;
|
|
35426
|
-
if (!target || !target.tagName || !
|
|
35488
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
35427
35489
|
return;
|
|
35428
35490
|
}
|
|
35429
35491
|
const color = target.value || '';
|
|
35430
|
-
if ((0,
|
|
35492
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35431
35493
|
callback(color);
|
|
35432
35494
|
}
|
|
35433
35495
|
e.preventDefault();
|
|
35434
35496
|
});
|
|
35435
35497
|
}
|
|
35498
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
35499
|
+
const colorOf = (node)=>{
|
|
35500
|
+
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);
|
|
35501
|
+
return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
|
|
35502
|
+
};
|
|
35503
|
+
const apply = (color)=>{
|
|
35504
|
+
if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35505
|
+
callback(color);
|
|
35506
|
+
}
|
|
35507
|
+
};
|
|
35508
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
35509
|
+
// The keyboard and screen readers press the button, which sends only
|
|
35510
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
35511
|
+
let pointerPressed = false;
|
|
35436
35512
|
editor.e.on(form, 'mousedown touchend', (e)=>{
|
|
35437
35513
|
// let the hex/native inputs receive focus and clicks
|
|
35438
|
-
if (
|
|
35514
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
35439
35515
|
e.stopPropagation();
|
|
35440
35516
|
return;
|
|
35441
35517
|
}
|
|
35442
35518
|
e.stopPropagation();
|
|
35443
35519
|
e.preventDefault();
|
|
35444
|
-
|
|
35445
|
-
if (
|
|
35446
|
-
|
|
35520
|
+
const color = colorOf(e.target);
|
|
35521
|
+
if (color !== undefined) {
|
|
35522
|
+
pointerPressed = e.type === 'mousedown';
|
|
35523
|
+
apply(color);
|
|
35447
35524
|
}
|
|
35448
|
-
|
|
35525
|
+
});
|
|
35526
|
+
editor.e.on(form, 'click', (e)=>{
|
|
35527
|
+
const color = colorOf(e.target);
|
|
35528
|
+
if (color !== undefined && !pointerPressed) {
|
|
35529
|
+
apply(color);
|
|
35530
|
+
}
|
|
35531
|
+
pointerPressed = false;
|
|
35532
|
+
}).on(form, 'keydown', (e)=>{
|
|
35533
|
+
var _a;
|
|
35534
|
+
pointerPressed = false;
|
|
35535
|
+
const item = e.target;
|
|
35536
|
+
if (!items.includes(item) || ![
|
|
35537
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
|
|
35538
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
|
|
35539
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
|
|
35540
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
35541
|
+
].includes(e.key)) {
|
|
35449
35542
|
return;
|
|
35450
35543
|
}
|
|
35451
|
-
|
|
35452
|
-
|
|
35453
|
-
|
|
35544
|
+
// The toolbar's dropdown would walk every color one by one
|
|
35545
|
+
e.preventDefault();
|
|
35546
|
+
e.stopPropagation();
|
|
35547
|
+
(_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35548
|
+
}).on(form, 'focusin', (e)=>{
|
|
35549
|
+
if (items.includes(e.target)) {
|
|
35550
|
+
items.forEach((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1));
|
|
35454
35551
|
}
|
|
35455
35552
|
});
|
|
35456
35553
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -36858,7 +36955,8 @@ UiAiAssistant = __decorate([
|
|
|
36858
36955
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
36859
36956
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
36860
36957
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
36861
|
-
/* harmony import */ var
|
|
36958
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
|
|
36959
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
|
|
36862
36960
|
/*!
|
|
36863
36961
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36864
36962
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36878,14 +36976,21 @@ UiAiAssistant = __decorate([
|
|
|
36878
36976
|
|
|
36879
36977
|
|
|
36880
36978
|
|
|
36881
|
-
|
|
36882
|
-
const MARKER = [
|
|
36883
|
-
'id',
|
|
36884
|
-
'name'
|
|
36885
|
-
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
36979
|
+
|
|
36886
36980
|
/**
|
|
36887
|
-
*
|
|
36888
|
-
|
|
36981
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
36982
|
+
* with the page and so with any other editor on it
|
|
36983
|
+
*/ const WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
36984
|
+
/**
|
|
36985
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
36986
|
+
*/ function markerStyle(scope) {
|
|
36987
|
+
const marker = [
|
|
36988
|
+
'id',
|
|
36989
|
+
'name'
|
|
36990
|
+
].map((key)=>`.jodit-wysiwyg${scope} a[${key}]:not([href]):empty::before`).join(',');
|
|
36991
|
+
const icon = `url("data:image/svg+xml,${encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor'))}") center/contain no-repeat`;
|
|
36992
|
+
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:''}`;
|
|
36993
|
+
}
|
|
36889
36994
|
/**
|
|
36890
36995
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
36891
36996
|
*/ const MARK = ' contenteditable="false"';
|
|
@@ -36894,8 +36999,14 @@ const MARKER = [
|
|
|
36894
36999
|
* `#name`, and renames and removes them
|
|
36895
37000
|
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
36896
37001
|
/** @override */ afterInit(jodit) {
|
|
37002
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
37003
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
37004
|
+
const shared = jodit.ed === jodit.od;
|
|
37005
|
+
if (shared) {
|
|
37006
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
37007
|
+
}
|
|
36897
37008
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
36898
|
-
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
37009
|
+
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
36899
37010
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
36900
37011
|
top: true
|
|
36901
37012
|
});
|
|
@@ -36928,6 +37039,24 @@ const MARKER = [
|
|
|
36928
37039
|
*/ onAfterGetValueFromEditor(data) {
|
|
36929
37040
|
data.value = unmarkAnchors(data.value);
|
|
36930
37041
|
}
|
|
37042
|
+
/**
|
|
37043
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
37044
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
37045
|
+
*/ onBeforePasteInsert(html) {
|
|
37046
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
|
|
37047
|
+
this.__renameCopies(html);
|
|
37048
|
+
return;
|
|
37049
|
+
}
|
|
37050
|
+
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
|
|
37051
|
+
return;
|
|
37052
|
+
}
|
|
37053
|
+
// Inert, so nothing in it loads
|
|
37054
|
+
const template = this.j.createInside.element('template');
|
|
37055
|
+
template.innerHTML = html;
|
|
37056
|
+
if (this.__renameCopies(template.content)) {
|
|
37057
|
+
return template.innerHTML;
|
|
37058
|
+
}
|
|
37059
|
+
}
|
|
36931
37060
|
/**
|
|
36932
37061
|
* The form that names a new anchor, or renames or removes `target`
|
|
36933
37062
|
*/ __generateForm(target, close) {
|
|
@@ -37067,8 +37196,52 @@ const MARKER = [
|
|
|
37067
37196
|
}
|
|
37068
37197
|
});
|
|
37069
37198
|
}
|
|
37199
|
+
/**
|
|
37200
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
37201
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
37202
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
37203
|
+
*/ __renameCopies(root) {
|
|
37204
|
+
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')));
|
|
37205
|
+
const renamed = new Map();
|
|
37206
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
|
|
37207
|
+
root
|
|
37208
|
+
] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
|
|
37209
|
+
anchors.forEach((anchor)=>{
|
|
37210
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
37211
|
+
if (!this.__isTaken(name, null)) {
|
|
37212
|
+
return;
|
|
37213
|
+
}
|
|
37214
|
+
let copy = name;
|
|
37215
|
+
for(let n = 2; inRoot.has(copy) || this.__isTaken(copy, null); n += 1){
|
|
37216
|
+
copy = `${name}-${n}`;
|
|
37217
|
+
}
|
|
37218
|
+
[
|
|
37219
|
+
'id',
|
|
37220
|
+
'name'
|
|
37221
|
+
].forEach((key)=>{
|
|
37222
|
+
if (anchor.hasAttribute(key)) {
|
|
37223
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
|
|
37224
|
+
}
|
|
37225
|
+
});
|
|
37226
|
+
inRoot.add(copy);
|
|
37227
|
+
renamed.set(name, copy);
|
|
37228
|
+
});
|
|
37229
|
+
if (!renamed.size) {
|
|
37230
|
+
return false;
|
|
37231
|
+
}
|
|
37232
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach((link)=>{
|
|
37233
|
+
var _a;
|
|
37234
|
+
const href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
|
|
37235
|
+
const copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
37236
|
+
if (copy) {
|
|
37237
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
|
|
37238
|
+
}
|
|
37239
|
+
});
|
|
37240
|
+
return true;
|
|
37241
|
+
}
|
|
37070
37242
|
/** @override */ beforeDestruct(jodit) {
|
|
37071
37243
|
this.__dropForm();
|
|
37244
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
37072
37245
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
37073
37246
|
}
|
|
37074
37247
|
constructor(){
|
|
@@ -37100,6 +37273,9 @@ __decorate([
|
|
|
37100
37273
|
__decorate([
|
|
37101
37274
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
37102
37275
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
37276
|
+
__decorate([
|
|
37277
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
37278
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
37103
37279
|
__decorate([
|
|
37104
37280
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37105
37281
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -44095,6 +44271,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
44095
44271
|
exec: (editor)=>{
|
|
44096
44272
|
editor.toggleFullSize();
|
|
44097
44273
|
},
|
|
44274
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
44275
|
+
isActive: (editor)=>editor.isFullSize,
|
|
44098
44276
|
update (editor, button) {
|
|
44099
44277
|
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
44100
44278
|
button.state.activated = editor.isFullSize;
|
|
@@ -44461,9 +44639,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
44461
44639
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
44462
44640
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
44463
44641
|
command: 'insertHorizontalRule',
|
|
44464
|
-
tags: [
|
|
44465
|
-
'hr'
|
|
44466
|
-
],
|
|
44467
44642
|
tooltip: 'Insert Horizontal Line'
|
|
44468
44643
|
};
|
|
44469
44644
|
function hr(editor) {
|
|
@@ -49328,9 +49503,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
49328
49503
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
49329
49504
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
49330
49505
|
command: 'applyLineHeight',
|
|
49331
|
-
tags: [
|
|
49332
|
-
'ol'
|
|
49333
|
-
],
|
|
49334
49506
|
tooltip: 'Line height',
|
|
49335
49507
|
list: [
|
|
49336
49508
|
1,
|
|
@@ -50680,7 +50852,9 @@ const formTemplate = (editor)=>{
|
|
|
50680
50852
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
50681
50853
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
50682
50854
|
name: 'url',
|
|
50683
|
-
|
|
50855
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
50856
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
50857
|
+
type: 'url',
|
|
50684
50858
|
ref: 'url_input',
|
|
50685
50859
|
label: 'URL',
|
|
50686
50860
|
placeholder: 'http://',
|
|
@@ -53734,6 +53908,13 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
53734
53908
|
this.addEventListeners();
|
|
53735
53909
|
this.__onChangeEditor();
|
|
53736
53910
|
}
|
|
53911
|
+
/**
|
|
53912
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
53913
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
53914
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
53915
|
+
*/ onEditorTouchEnd(e) {
|
|
53916
|
+
this.j.async.setTimeout(()=>this.onEditorClick(e), 1);
|
|
53917
|
+
}
|
|
53737
53918
|
/**
|
|
53738
53919
|
* Click in the editor area
|
|
53739
53920
|
*/ onEditorClick(e) {
|
|
@@ -54179,6 +54360,9 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
54179
54360
|
};
|
|
54180
54361
|
}
|
|
54181
54362
|
}
|
|
54363
|
+
__decorate([
|
|
54364
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':touchend')
|
|
54365
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
54182
54366
|
__decorate([
|
|
54183
54367
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
54184
54368
|
], resizer.prototype, "onEditorClick", null);
|