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/es5/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
|
*/
|
|
@@ -2334,7 +2334,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2334
2334
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2335
2335
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2336
2336
|
}
|
|
2337
|
-
var APP_VERSION = "4.20.
|
|
2337
|
+
var APP_VERSION = "4.20.3";
|
|
2338
2338
|
// prettier-ignore
|
|
2339
2339
|
var ES = "es5";
|
|
2340
2340
|
var IS_ES_MODERN = false;
|
|
@@ -23539,6 +23539,8 @@ var UIInput = UIInput_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
23539
23539
|
if (label) {
|
|
23540
23540
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(this.wrapper, this.label);
|
|
23541
23541
|
this.label.innerText = this.j.i18n(label);
|
|
23542
|
+
// The label is a span, so it names the input only this way
|
|
23543
|
+
(0,_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
23542
23544
|
} else {
|
|
23543
23545
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.label);
|
|
23544
23546
|
}
|
|
@@ -43988,10 +43990,24 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
|
|
|
43988
43990
|
}
|
|
43989
43991
|
},
|
|
43990
43992
|
{
|
|
43991
|
-
key: "
|
|
43993
|
+
key: "isToggle",
|
|
43994
|
+
get: /**
|
|
43995
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
43996
|
+
* it's pressed
|
|
43997
|
+
*/ function get() {
|
|
43998
|
+
var _this_control = this.control, isActive = _this_control.isActive, tags = _this_control.tags, css = _this_control.css;
|
|
43999
|
+
return Boolean(isActive || tags || css);
|
|
44000
|
+
}
|
|
44001
|
+
},
|
|
44002
|
+
{
|
|
44003
|
+
/**
|
|
44004
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
44005
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
44006
|
+
* `aria-pressed`
|
|
44007
|
+
*/ key: "onChangeActivated",
|
|
43992
44008
|
value: function onChangeActivated() {
|
|
43993
|
-
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
43994
|
-
|
|
44009
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
44010
|
+
this.setMod('activated', this.state.activated || null);
|
|
43995
44011
|
}
|
|
43996
44012
|
},
|
|
43997
44013
|
{
|
|
@@ -43999,6 +44015,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
|
|
|
43999
44015
|
value: function onChangeText() {
|
|
44000
44016
|
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
44001
44017
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
44018
|
+
// The name given before the text came would otherwise stay
|
|
44019
|
+
this.updateAriaLabel();
|
|
44002
44020
|
} else {
|
|
44003
44021
|
_get(_get_prototype_of(ToolbarButton.prototype), "onChangeText", this).call(this);
|
|
44004
44022
|
}
|
|
@@ -44073,6 +44091,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
|
|
|
44073
44091
|
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
44074
44092
|
}
|
|
44075
44093
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
44094
|
+
// UIButton's template makes every button a toggle
|
|
44095
|
+
this.onChangeActivated();
|
|
44076
44096
|
}
|
|
44077
44097
|
},
|
|
44078
44098
|
{
|
|
@@ -44792,7 +44812,8 @@ ToolbarContent = __decorate([
|
|
|
44792
44812
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
44793
44813
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
44794
44814
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
44795
|
-
/* harmony import */ var
|
|
44815
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
44816
|
+
/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
|
|
44796
44817
|
function _assert_this_initialized(self) {
|
|
44797
44818
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
44798
44819
|
return self;
|
|
@@ -44894,6 +44915,7 @@ function _type_of(obj) {
|
|
|
44894
44915
|
|
|
44895
44916
|
|
|
44896
44917
|
|
|
44918
|
+
|
|
44897
44919
|
var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
44898
44920
|
"use strict";
|
|
44899
44921
|
_inherits(ToolbarSelect, ToolbarButton);
|
|
@@ -44908,6 +44930,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
44908
44930
|
return 'ToolbarSelect';
|
|
44909
44931
|
}
|
|
44910
44932
|
},
|
|
44933
|
+
{
|
|
44934
|
+
key: "isToggle",
|
|
44935
|
+
get: // It shows its value, rather than being on or off
|
|
44936
|
+
function get() {
|
|
44937
|
+
return false;
|
|
44938
|
+
}
|
|
44939
|
+
},
|
|
44911
44940
|
{
|
|
44912
44941
|
key: "update",
|
|
44913
44942
|
value: function update() {
|
|
@@ -44925,10 +44954,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
44925
44954
|
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;
|
|
44926
44955
|
}
|
|
44927
44956
|
}
|
|
44957
|
+
},
|
|
44958
|
+
{
|
|
44959
|
+
/**
|
|
44960
|
+
* The button shows only the value, so its name says which control it
|
|
44961
|
+
* is too: "Font size, 16px"
|
|
44962
|
+
*/ key: "updateAriaLabel",
|
|
44963
|
+
value: function updateAriaLabel() {
|
|
44964
|
+
var _a;
|
|
44965
|
+
_get(_get_prototype_of(ToolbarSelect.prototype), "updateAriaLabel", this).call(this);
|
|
44966
|
+
var tooltip = this.state.tooltip;
|
|
44967
|
+
var value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
44968
|
+
if (tooltip && value) {
|
|
44969
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', "".concat(this.jodit.i18n(tooltip), ", ").concat(value));
|
|
44970
|
+
}
|
|
44971
|
+
}
|
|
44928
44972
|
}
|
|
44929
44973
|
]);
|
|
44930
44974
|
return ToolbarSelect;
|
|
44931
|
-
}(
|
|
44975
|
+
}(_button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton);
|
|
44932
44976
|
ToolbarSelect = __decorate([
|
|
44933
44977
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
44934
44978
|
], ToolbarSelect);
|
|
@@ -47059,10 +47103,39 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
47059
47103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
47060
47104
|
/* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
|
|
47061
47105
|
/* harmony export */ });
|
|
47062
|
-
/* harmony import */ var
|
|
47063
|
-
/* harmony import */ var
|
|
47064
|
-
/* harmony import */ var
|
|
47065
|
-
/* harmony import */ var
|
|
47106
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
47107
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
47108
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
47109
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
47110
|
+
/* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
|
|
47111
|
+
function _array_like_to_array(arr, len) {
|
|
47112
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
47113
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
47114
|
+
return arr2;
|
|
47115
|
+
}
|
|
47116
|
+
function _array_without_holes(arr) {
|
|
47117
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
47118
|
+
}
|
|
47119
|
+
function _iterable_to_array(iter) {
|
|
47120
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
47121
|
+
return Array.from(iter);
|
|
47122
|
+
}
|
|
47123
|
+
}
|
|
47124
|
+
function _non_iterable_spread() {
|
|
47125
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
47126
|
+
}
|
|
47127
|
+
function _to_consumable_array(arr) {
|
|
47128
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
47129
|
+
}
|
|
47130
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
47131
|
+
if (!o) return;
|
|
47132
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
47133
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
47134
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
47135
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
47136
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
47137
|
+
}
|
|
47138
|
+
var _this = undefined;
|
|
47066
47139
|
/*!
|
|
47067
47140
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
47068
47141
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -47071,7 +47144,8 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
47071
47144
|
|
|
47072
47145
|
|
|
47073
47146
|
|
|
47074
|
-
|
|
47147
|
+
|
|
47148
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
47075
47149
|
/**
|
|
47076
47150
|
* Build color picker
|
|
47077
47151
|
*
|
|
@@ -47089,29 +47163,66 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47089
47163
|
* });
|
|
47090
47164
|
* ```
|
|
47091
47165
|
*/ var ColorPickerWidget = function ColorPickerWidget(editor, callback, coldColor) {
|
|
47092
|
-
var
|
|
47166
|
+
var _a;
|
|
47167
|
+
var 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>".concat(editor.i18n('palette'), "</span>") : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('palette'), eachColor = function eachColor1(colors) {
|
|
47093
47168
|
var stack = [];
|
|
47094
|
-
if ((0,
|
|
47169
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
47095
47170
|
Object.keys(colors).forEach(function(key) {
|
|
47096
47171
|
stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
|
|
47097
47172
|
stack.push(eachColor(colors[key]));
|
|
47098
47173
|
stack.push('</div>');
|
|
47099
47174
|
});
|
|
47100
|
-
} else if ((0,
|
|
47175
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
47101
47176
|
colors.forEach(function(color) {
|
|
47102
|
-
|
|
47177
|
+
var active = valueHex === color;
|
|
47178
|
+
stack.push('<button type="button" class=\''.concat(cn, "__color-item ").concat(active ? cn + '__color-item_active_true' : '', "' title=\"").concat(color, '" aria-pressed="').concat(active, '" tabindex="-1" style="background-color:').concat(color, '" data-color="').concat(color, '"></button>'));
|
|
47103
47179
|
});
|
|
47104
47180
|
}
|
|
47105
47181
|
return stack.join('');
|
|
47106
47182
|
};
|
|
47107
47183
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
47108
47184
|
// too. See #1487
|
|
47109
|
-
var groups = (0,
|
|
47110
|
-
|
|
47111
|
-
|
|
47112
|
-
|
|
47113
|
-
|
|
47114
|
-
var
|
|
47185
|
+
var groups = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(editor.o.colors) ? '<div class="'.concat(cn, '__group">').concat(eachColor(editor.o.colors), "</div>") : eachColor(editor.o.colors);
|
|
47186
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
|
|
47187
|
+
var items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(".".concat(cn, "__color-item")));
|
|
47188
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
47189
|
+
// keys move from it
|
|
47190
|
+
var tabStop = (_a = items.find(function(item) {
|
|
47191
|
+
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'aria-pressed') === 'true';
|
|
47192
|
+
})) !== null && _a !== void 0 ? _a : items[0];
|
|
47193
|
+
if (tabStop) {
|
|
47194
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
|
|
47195
|
+
}
|
|
47196
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
47197
|
+
// palette is laid out
|
|
47198
|
+
var nextItem = function nextItem(item, key) {
|
|
47199
|
+
var index = items.indexOf(item);
|
|
47200
|
+
if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
|
|
47201
|
+
var step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
|
|
47202
|
+
var rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
|
|
47203
|
+
return items[index + (rtl ? -step : step)];
|
|
47204
|
+
}
|
|
47205
|
+
var down = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN, rows = items.filter(function(other) {
|
|
47206
|
+
return down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop;
|
|
47207
|
+
});
|
|
47208
|
+
if (!rows.length) {
|
|
47209
|
+
return;
|
|
47210
|
+
}
|
|
47211
|
+
var top = (down ? Math.min : Math.max).apply(_this, _to_consumable_array(rows.map(function(other) {
|
|
47212
|
+
return other.offsetTop;
|
|
47213
|
+
}))), distance = function distance(other) {
|
|
47214
|
+
return Math.abs(other.offsetLeft - item.offsetLeft);
|
|
47215
|
+
};
|
|
47216
|
+
return rows.filter(function(other) {
|
|
47217
|
+
return other.offsetTop === top;
|
|
47218
|
+
}).reduce(function(nearest, other) {
|
|
47219
|
+
return distance(other) < distance(nearest) ? other : nearest;
|
|
47220
|
+
});
|
|
47221
|
+
};
|
|
47222
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
|
|
47223
|
+
var extra = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).extra;
|
|
47224
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="').concat(valueHex || '', '"/></div>')));
|
|
47225
|
+
var hexInput = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).hexInput;
|
|
47115
47226
|
// Enter applies the value and closes the popup; removing the focused
|
|
47116
47227
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
47117
47228
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -47126,8 +47237,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47126
47237
|
if (!isHex && !isRgb) {
|
|
47127
47238
|
return;
|
|
47128
47239
|
}
|
|
47129
|
-
var color = (0,
|
|
47130
|
-
if (color && (0,
|
|
47240
|
+
var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
47241
|
+
if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
47131
47242
|
appliedHexValue = raw;
|
|
47132
47243
|
callback(color);
|
|
47133
47244
|
}
|
|
@@ -47142,40 +47253,79 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47142
47253
|
e.stopPropagation();
|
|
47143
47254
|
applyHexInput();
|
|
47144
47255
|
});
|
|
47145
|
-
|
|
47146
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
47147
|
-
|
|
47256
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<button type="button" class="'.concat(cn, '__remove" data-color="" title="').concat(editor.i18n('Remove'), '">').concat(editor.o.textIcons ? editor.i18n('Remove') : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('eraser'), "</button>")));
|
|
47257
|
+
if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
|
|
47258
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__native">').concat(iconPalette, '<input type="color" value="#ffffff"/></div>')));
|
|
47148
47259
|
editor.e.on(form, 'change', function(e) {
|
|
47149
47260
|
e.stopPropagation();
|
|
47150
47261
|
var target = e.target;
|
|
47151
|
-
if (!target || !target.tagName || !
|
|
47262
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
47152
47263
|
return;
|
|
47153
47264
|
}
|
|
47154
47265
|
var color = target.value || '';
|
|
47155
|
-
if ((0,
|
|
47266
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
47156
47267
|
callback(color);
|
|
47157
47268
|
}
|
|
47158
47269
|
e.preventDefault();
|
|
47159
47270
|
});
|
|
47160
47271
|
}
|
|
47272
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
47273
|
+
var colorOf = function colorOf(node) {
|
|
47274
|
+
var button = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, function(elm) {
|
|
47275
|
+
return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove'));
|
|
47276
|
+
}, form);
|
|
47277
|
+
return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
|
|
47278
|
+
};
|
|
47279
|
+
var apply = function apply(color) {
|
|
47280
|
+
if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
47281
|
+
callback(color);
|
|
47282
|
+
}
|
|
47283
|
+
};
|
|
47284
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
47285
|
+
// The keyboard and screen readers press the button, which sends only
|
|
47286
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
47287
|
+
var pointerPressed = false;
|
|
47161
47288
|
editor.e.on(form, 'mousedown touchend', function(e) {
|
|
47162
47289
|
// let the hex/native inputs receive focus and clicks
|
|
47163
|
-
if (
|
|
47290
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
47164
47291
|
e.stopPropagation();
|
|
47165
47292
|
return;
|
|
47166
47293
|
}
|
|
47167
47294
|
e.stopPropagation();
|
|
47168
47295
|
e.preventDefault();
|
|
47169
|
-
var
|
|
47170
|
-
if (
|
|
47171
|
-
|
|
47296
|
+
var color = colorOf(e.target);
|
|
47297
|
+
if (color !== undefined) {
|
|
47298
|
+
pointerPressed = e.type === 'mousedown';
|
|
47299
|
+
apply(color);
|
|
47172
47300
|
}
|
|
47173
|
-
|
|
47301
|
+
});
|
|
47302
|
+
editor.e.on(form, 'click', function(e) {
|
|
47303
|
+
var color = colorOf(e.target);
|
|
47304
|
+
if (color !== undefined && !pointerPressed) {
|
|
47305
|
+
apply(color);
|
|
47306
|
+
}
|
|
47307
|
+
pointerPressed = false;
|
|
47308
|
+
}).on(form, 'keydown', function(e) {
|
|
47309
|
+
var _a;
|
|
47310
|
+
pointerPressed = false;
|
|
47311
|
+
var item = e.target;
|
|
47312
|
+
if (!items.includes(item) || ![
|
|
47313
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
|
|
47314
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
|
|
47315
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
|
|
47316
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
47317
|
+
].includes(e.key)) {
|
|
47174
47318
|
return;
|
|
47175
47319
|
}
|
|
47176
|
-
|
|
47177
|
-
|
|
47178
|
-
|
|
47320
|
+
// The toolbar's dropdown would walk every color one by one
|
|
47321
|
+
e.preventDefault();
|
|
47322
|
+
e.stopPropagation();
|
|
47323
|
+
(_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
47324
|
+
}).on(form, 'focusin', function(e) {
|
|
47325
|
+
if (items.includes(e.target)) {
|
|
47326
|
+
items.forEach(function(item) {
|
|
47327
|
+
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1);
|
|
47328
|
+
});
|
|
47179
47329
|
}
|
|
47180
47330
|
});
|
|
47181
47331
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -49094,7 +49244,8 @@ UiAiAssistant = __decorate([
|
|
|
49094
49244
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
49095
49245
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
49096
49246
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
49097
|
-
/* harmony import */ var
|
|
49247
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
|
|
49248
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
|
|
49098
49249
|
function _assert_this_initialized(self) {
|
|
49099
49250
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
49100
49251
|
return self;
|
|
@@ -49224,16 +49375,23 @@ function _wrap_native_super(Class) {
|
|
|
49224
49375
|
|
|
49225
49376
|
|
|
49226
49377
|
|
|
49227
|
-
|
|
49228
|
-
|
|
49229
|
-
|
|
49230
|
-
|
|
49231
|
-
|
|
49232
|
-
return ".jodit-wysiwyg a[".concat(key, "]:not([href]):empty::before");
|
|
49233
|
-
}).join(',');
|
|
49378
|
+
|
|
49379
|
+
/**
|
|
49380
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
49381
|
+
* with the page and so with any other editor on it
|
|
49382
|
+
*/ var WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
49234
49383
|
/**
|
|
49235
|
-
* Each anchor's marker, in the editing
|
|
49236
|
-
*/
|
|
49384
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
49385
|
+
*/ function markerStyle(scope) {
|
|
49386
|
+
var marker = [
|
|
49387
|
+
'id',
|
|
49388
|
+
'name'
|
|
49389
|
+
].map(function(key) {
|
|
49390
|
+
return ".jodit-wysiwyg".concat(scope, " a[").concat(key, "]:not([href]):empty::before");
|
|
49391
|
+
}).join(',');
|
|
49392
|
+
var icon = 'url("data:image/svg+xml,'.concat(encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor')), '") center/contain no-repeat');
|
|
49393
|
+
return "".concat(marker, "{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:").concat(icon, ";mask:").concat(icon, ";cursor:pointer;content:''}");
|
|
49394
|
+
}
|
|
49237
49395
|
/**
|
|
49238
49396
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
49239
49397
|
*/ var MARK = ' contenteditable="false"';
|
|
@@ -49264,8 +49422,14 @@ var MARKER = [
|
|
|
49264
49422
|
{
|
|
49265
49423
|
/** @override */ key: "afterInit",
|
|
49266
49424
|
value: function afterInit(jodit) {
|
|
49425
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
49426
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
49427
|
+
var shared = jodit.ed === jodit.od;
|
|
49428
|
+
if (shared) {
|
|
49429
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
49430
|
+
}
|
|
49267
49431
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
49268
|
-
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
49432
|
+
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
49269
49433
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
49270
49434
|
top: true
|
|
49271
49435
|
});
|
|
@@ -49312,6 +49476,27 @@ var MARKER = [
|
|
|
49312
49476
|
},
|
|
49313
49477
|
{
|
|
49314
49478
|
/**
|
|
49479
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
49480
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
49481
|
+
*/ key: "onBeforePasteInsert",
|
|
49482
|
+
value: function onBeforePasteInsert(html) {
|
|
49483
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
|
|
49484
|
+
this.__renameCopies(html);
|
|
49485
|
+
return;
|
|
49486
|
+
}
|
|
49487
|
+
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
|
|
49488
|
+
return;
|
|
49489
|
+
}
|
|
49490
|
+
// Inert, so nothing in it loads
|
|
49491
|
+
var template = this.j.createInside.element('template');
|
|
49492
|
+
template.innerHTML = html;
|
|
49493
|
+
if (this.__renameCopies(template.content)) {
|
|
49494
|
+
return template.innerHTML;
|
|
49495
|
+
}
|
|
49496
|
+
}
|
|
49497
|
+
},
|
|
49498
|
+
{
|
|
49499
|
+
/**
|
|
49315
49500
|
* The form that names a new anchor, or renames or removes `target`
|
|
49316
49501
|
*/ key: "__generateForm",
|
|
49317
49502
|
value: function __generateForm(target, close) {
|
|
@@ -49469,10 +49654,60 @@ var MARKER = [
|
|
|
49469
49654
|
});
|
|
49470
49655
|
}
|
|
49471
49656
|
},
|
|
49657
|
+
{
|
|
49658
|
+
/**
|
|
49659
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
49660
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
49661
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
49662
|
+
*/ key: "__renameCopies",
|
|
49663
|
+
value: function __renameCopies(root) {
|
|
49664
|
+
var _this = this;
|
|
49665
|
+
var inRoot = new Set((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('[id], a[name]')).map(function(elm) {
|
|
49666
|
+
return elm.id || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name');
|
|
49667
|
+
}));
|
|
49668
|
+
var renamed = new Map();
|
|
49669
|
+
var anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
|
|
49670
|
+
root
|
|
49671
|
+
] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
|
|
49672
|
+
anchors.forEach(function(anchor) {
|
|
49673
|
+
var name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
49674
|
+
if (!_this.__isTaken(name, null)) {
|
|
49675
|
+
return;
|
|
49676
|
+
}
|
|
49677
|
+
var copy = name;
|
|
49678
|
+
for(var n = 2; inRoot.has(copy) || _this.__isTaken(copy, null); n += 1){
|
|
49679
|
+
copy = "".concat(name, "-").concat(n);
|
|
49680
|
+
}
|
|
49681
|
+
[
|
|
49682
|
+
'id',
|
|
49683
|
+
'name'
|
|
49684
|
+
].forEach(function(key) {
|
|
49685
|
+
if (anchor.hasAttribute(key)) {
|
|
49686
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
|
|
49687
|
+
}
|
|
49688
|
+
});
|
|
49689
|
+
inRoot.add(copy);
|
|
49690
|
+
renamed.set(name, copy);
|
|
49691
|
+
});
|
|
49692
|
+
if (!renamed.size) {
|
|
49693
|
+
return false;
|
|
49694
|
+
}
|
|
49695
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach(function(link) {
|
|
49696
|
+
var _a;
|
|
49697
|
+
var href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
|
|
49698
|
+
var copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
49699
|
+
if (copy) {
|
|
49700
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
|
|
49701
|
+
}
|
|
49702
|
+
});
|
|
49703
|
+
return true;
|
|
49704
|
+
}
|
|
49705
|
+
},
|
|
49472
49706
|
{
|
|
49473
49707
|
/** @override */ key: "beforeDestruct",
|
|
49474
49708
|
value: function beforeDestruct(jodit) {
|
|
49475
49709
|
this.__dropForm();
|
|
49710
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
49476
49711
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
49477
49712
|
}
|
|
49478
49713
|
}
|
|
@@ -49493,6 +49728,9 @@ __decorate([
|
|
|
49493
49728
|
__decorate([
|
|
49494
49729
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
49495
49730
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
49731
|
+
__decorate([
|
|
49732
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
49733
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
49496
49734
|
__decorate([
|
|
49497
49735
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
49498
49736
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -58624,6 +58862,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
58624
58862
|
exec: function exec(editor) {
|
|
58625
58863
|
editor.toggleFullSize();
|
|
58626
58864
|
},
|
|
58865
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
58866
|
+
isActive: function isActive(editor) {
|
|
58867
|
+
return editor.isFullSize;
|
|
58868
|
+
},
|
|
58627
58869
|
update: function update(editor, button) {
|
|
58628
58870
|
var mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
58629
58871
|
button.state.activated = editor.isFullSize;
|
|
@@ -59115,9 +59357,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
59115
59357
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
59116
59358
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
59117
59359
|
command: 'insertHorizontalRule',
|
|
59118
|
-
tags: [
|
|
59119
|
-
'hr'
|
|
59120
|
-
],
|
|
59121
59360
|
tooltip: 'Insert Horizontal Line'
|
|
59122
59361
|
};
|
|
59123
59362
|
function hr(editor) {
|
|
@@ -66576,9 +66815,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
66576
66815
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
66577
66816
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
66578
66817
|
command: 'applyLineHeight',
|
|
66579
|
-
tags: [
|
|
66580
|
-
'ol'
|
|
66581
|
-
],
|
|
66582
66818
|
tooltip: 'Line height',
|
|
66583
66819
|
list: [
|
|
66584
66820
|
1,
|
|
@@ -68300,7 +68536,9 @@ var formTemplate = function formTemplate(editor) {
|
|
|
68300
68536
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
68301
68537
|
new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
68302
68538
|
name: 'url',
|
|
68303
|
-
|
|
68539
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
68540
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
68541
|
+
type: 'url',
|
|
68304
68542
|
ref: 'url_input',
|
|
68305
68543
|
label: 'URL',
|
|
68306
68544
|
placeholder: 'http://',
|
|
@@ -73216,6 +73454,19 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
73216
73454
|
},
|
|
73217
73455
|
{
|
|
73218
73456
|
/**
|
|
73457
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
73458
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
73459
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
73460
|
+
*/ key: "onEditorTouchEnd",
|
|
73461
|
+
value: function onEditorTouchEnd(e) {
|
|
73462
|
+
var _this = this;
|
|
73463
|
+
this.j.async.setTimeout(function() {
|
|
73464
|
+
return _this.onEditorClick(e);
|
|
73465
|
+
}, 1);
|
|
73466
|
+
}
|
|
73467
|
+
},
|
|
73468
|
+
{
|
|
73469
|
+
/**
|
|
73219
73470
|
* Click in the editor area
|
|
73220
73471
|
*/ key: "onEditorClick",
|
|
73221
73472
|
value: function onEditorClick(e) {
|
|
@@ -73667,6 +73918,9 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
73667
73918
|
]);
|
|
73668
73919
|
return resizer;
|
|
73669
73920
|
}(_wrap_native_super(_core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__.Plugin));
|
|
73921
|
+
__decorate([
|
|
73922
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':touchend')
|
|
73923
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
73670
73924
|
__decorate([
|
|
73671
73925
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
73672
73926
|
], resizer.prototype, "onEditorClick", null);
|