jodit-pro 4.20.2 → 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 +5 -5
- package/es2015/jodit.js +220 -52
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +5 -5
- 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 +5 -5
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +5 -5
- 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 +5 -5
- package/es2021/jodit.js +220 -52
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +5 -5
- 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 +5 -5
- package/es2021.en/jodit.js +220 -52
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +5 -5
- 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 +286 -54
- 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;
|
|
@@ -43990,10 +43990,24 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
|
|
|
43990
43990
|
}
|
|
43991
43991
|
},
|
|
43992
43992
|
{
|
|
43993
|
-
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",
|
|
43994
44008
|
value: function onChangeActivated() {
|
|
43995
|
-
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
43996
|
-
|
|
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);
|
|
43997
44011
|
}
|
|
43998
44012
|
},
|
|
43999
44013
|
{
|
|
@@ -44077,6 +44091,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
|
|
|
44077
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;
|
|
44078
44092
|
}
|
|
44079
44093
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
44094
|
+
// UIButton's template makes every button a toggle
|
|
44095
|
+
this.onChangeActivated();
|
|
44080
44096
|
}
|
|
44081
44097
|
},
|
|
44082
44098
|
{
|
|
@@ -44796,7 +44812,8 @@ ToolbarContent = __decorate([
|
|
|
44796
44812
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
44797
44813
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
44798
44814
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
44799
|
-
/* 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);
|
|
44800
44817
|
function _assert_this_initialized(self) {
|
|
44801
44818
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
44802
44819
|
return self;
|
|
@@ -44898,6 +44915,7 @@ function _type_of(obj) {
|
|
|
44898
44915
|
|
|
44899
44916
|
|
|
44900
44917
|
|
|
44918
|
+
|
|
44901
44919
|
var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
44902
44920
|
"use strict";
|
|
44903
44921
|
_inherits(ToolbarSelect, ToolbarButton);
|
|
@@ -44912,6 +44930,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
44912
44930
|
return 'ToolbarSelect';
|
|
44913
44931
|
}
|
|
44914
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
|
+
},
|
|
44915
44940
|
{
|
|
44916
44941
|
key: "update",
|
|
44917
44942
|
value: function update() {
|
|
@@ -44929,10 +44954,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
44929
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;
|
|
44930
44955
|
}
|
|
44931
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
|
+
}
|
|
44932
44972
|
}
|
|
44933
44973
|
]);
|
|
44934
44974
|
return ToolbarSelect;
|
|
44935
|
-
}(
|
|
44975
|
+
}(_button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton);
|
|
44936
44976
|
ToolbarSelect = __decorate([
|
|
44937
44977
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
44938
44978
|
], ToolbarSelect);
|
|
@@ -47063,10 +47103,39 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
47063
47103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
47064
47104
|
/* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
|
|
47065
47105
|
/* harmony export */ });
|
|
47066
|
-
/* harmony import */ var
|
|
47067
|
-
/* harmony import */ var
|
|
47068
|
-
/* harmony import */ var
|
|
47069
|
-
/* 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;
|
|
47070
47139
|
/*!
|
|
47071
47140
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
47072
47141
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -47075,7 +47144,8 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
47075
47144
|
|
|
47076
47145
|
|
|
47077
47146
|
|
|
47078
|
-
|
|
47147
|
+
|
|
47148
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
47079
47149
|
/**
|
|
47080
47150
|
* Build color picker
|
|
47081
47151
|
*
|
|
@@ -47093,29 +47163,66 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47093
47163
|
* });
|
|
47094
47164
|
* ```
|
|
47095
47165
|
*/ var ColorPickerWidget = function ColorPickerWidget(editor, callback, coldColor) {
|
|
47096
|
-
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) {
|
|
47097
47168
|
var stack = [];
|
|
47098
|
-
if ((0,
|
|
47169
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
47099
47170
|
Object.keys(colors).forEach(function(key) {
|
|
47100
47171
|
stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
|
|
47101
47172
|
stack.push(eachColor(colors[key]));
|
|
47102
47173
|
stack.push('</div>');
|
|
47103
47174
|
});
|
|
47104
|
-
} else if ((0,
|
|
47175
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
47105
47176
|
colors.forEach(function(color) {
|
|
47106
|
-
|
|
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>'));
|
|
47107
47179
|
});
|
|
47108
47180
|
}
|
|
47109
47181
|
return stack.join('');
|
|
47110
47182
|
};
|
|
47111
47183
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
47112
47184
|
// too. See #1487
|
|
47113
|
-
var groups = (0,
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
|
|
47117
|
-
|
|
47118
|
-
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;
|
|
47119
47226
|
// Enter applies the value and closes the popup; removing the focused
|
|
47120
47227
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
47121
47228
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -47130,8 +47237,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47130
47237
|
if (!isHex && !isRgb) {
|
|
47131
47238
|
return;
|
|
47132
47239
|
}
|
|
47133
|
-
var color = (0,
|
|
47134
|
-
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)) {
|
|
47135
47242
|
appliedHexValue = raw;
|
|
47136
47243
|
callback(color);
|
|
47137
47244
|
}
|
|
@@ -47146,40 +47253,79 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
47146
47253
|
e.stopPropagation();
|
|
47147
47254
|
applyHexInput();
|
|
47148
47255
|
});
|
|
47149
|
-
|
|
47150
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
47151
|
-
|
|
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>')));
|
|
47152
47259
|
editor.e.on(form, 'change', function(e) {
|
|
47153
47260
|
e.stopPropagation();
|
|
47154
47261
|
var target = e.target;
|
|
47155
|
-
if (!target || !target.tagName || !
|
|
47262
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
47156
47263
|
return;
|
|
47157
47264
|
}
|
|
47158
47265
|
var color = target.value || '';
|
|
47159
|
-
if ((0,
|
|
47266
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
47160
47267
|
callback(color);
|
|
47161
47268
|
}
|
|
47162
47269
|
e.preventDefault();
|
|
47163
47270
|
});
|
|
47164
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;
|
|
47165
47288
|
editor.e.on(form, 'mousedown touchend', function(e) {
|
|
47166
47289
|
// let the hex/native inputs receive focus and clicks
|
|
47167
|
-
if (
|
|
47290
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
47168
47291
|
e.stopPropagation();
|
|
47169
47292
|
return;
|
|
47170
47293
|
}
|
|
47171
47294
|
e.stopPropagation();
|
|
47172
47295
|
e.preventDefault();
|
|
47173
|
-
var
|
|
47174
|
-
if (
|
|
47175
|
-
|
|
47296
|
+
var color = colorOf(e.target);
|
|
47297
|
+
if (color !== undefined) {
|
|
47298
|
+
pointerPressed = e.type === 'mousedown';
|
|
47299
|
+
apply(color);
|
|
47176
47300
|
}
|
|
47177
|
-
|
|
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)) {
|
|
47178
47318
|
return;
|
|
47179
47319
|
}
|
|
47180
|
-
|
|
47181
|
-
|
|
47182
|
-
|
|
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
|
+
});
|
|
47183
47329
|
}
|
|
47184
47330
|
});
|
|
47185
47331
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -49098,7 +49244,8 @@ UiAiAssistant = __decorate([
|
|
|
49098
49244
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
49099
49245
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
49100
49246
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
49101
|
-
/* 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);
|
|
49102
49249
|
function _assert_this_initialized(self) {
|
|
49103
49250
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
49104
49251
|
return self;
|
|
@@ -49228,16 +49375,23 @@ function _wrap_native_super(Class) {
|
|
|
49228
49375
|
|
|
49229
49376
|
|
|
49230
49377
|
|
|
49231
|
-
|
|
49232
|
-
var MARKER = [
|
|
49233
|
-
'id',
|
|
49234
|
-
'name'
|
|
49235
|
-
].map(function(key) {
|
|
49236
|
-
return ".jodit-wysiwyg a[".concat(key, "]:not([href]):empty::before");
|
|
49237
|
-
}).join(',');
|
|
49378
|
+
|
|
49238
49379
|
/**
|
|
49239
|
-
*
|
|
49240
|
-
|
|
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';
|
|
49383
|
+
/**
|
|
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
|
+
}
|
|
49241
49395
|
/**
|
|
49242
49396
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
49243
49397
|
*/ var MARK = ' contenteditable="false"';
|
|
@@ -49268,8 +49422,14 @@ var MARKER = [
|
|
|
49268
49422
|
{
|
|
49269
49423
|
/** @override */ key: "afterInit",
|
|
49270
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
|
+
}
|
|
49271
49431
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
49272
|
-
;(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 : '');
|
|
49273
49433
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
49274
49434
|
top: true
|
|
49275
49435
|
});
|
|
@@ -49316,6 +49476,27 @@ var MARKER = [
|
|
|
49316
49476
|
},
|
|
49317
49477
|
{
|
|
49318
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
|
+
/**
|
|
49319
49500
|
* The form that names a new anchor, or renames or removes `target`
|
|
49320
49501
|
*/ key: "__generateForm",
|
|
49321
49502
|
value: function __generateForm(target, close) {
|
|
@@ -49473,10 +49654,60 @@ var MARKER = [
|
|
|
49473
49654
|
});
|
|
49474
49655
|
}
|
|
49475
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
|
+
},
|
|
49476
49706
|
{
|
|
49477
49707
|
/** @override */ key: "beforeDestruct",
|
|
49478
49708
|
value: function beforeDestruct(jodit) {
|
|
49479
49709
|
this.__dropForm();
|
|
49710
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
49480
49711
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
49481
49712
|
}
|
|
49482
49713
|
}
|
|
@@ -49497,6 +49728,9 @@ __decorate([
|
|
|
49497
49728
|
__decorate([
|
|
49498
49729
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
49499
49730
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
49731
|
+
__decorate([
|
|
49732
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
49733
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
49500
49734
|
__decorate([
|
|
49501
49735
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
49502
49736
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -58628,6 +58862,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
58628
58862
|
exec: function exec(editor) {
|
|
58629
58863
|
editor.toggleFullSize();
|
|
58630
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
|
+
},
|
|
58631
58869
|
update: function update(editor, button) {
|
|
58632
58870
|
var mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
58633
58871
|
button.state.activated = editor.isFullSize;
|
|
@@ -59119,9 +59357,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
59119
59357
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
59120
59358
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
59121
59359
|
command: 'insertHorizontalRule',
|
|
59122
|
-
tags: [
|
|
59123
|
-
'hr'
|
|
59124
|
-
],
|
|
59125
59360
|
tooltip: 'Insert Horizontal Line'
|
|
59126
59361
|
};
|
|
59127
59362
|
function hr(editor) {
|
|
@@ -66580,9 +66815,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
66580
66815
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
66581
66816
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
66582
66817
|
command: 'applyLineHeight',
|
|
66583
|
-
tags: [
|
|
66584
|
-
'ol'
|
|
66585
|
-
],
|
|
66586
66818
|
tooltip: 'Line height',
|
|
66587
66819
|
list: [
|
|
66588
66820
|
1,
|