jodit-pro 4.20.2 → 4.20.4
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 +7 -7
- package/es2015/jodit.js +308 -71
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +7 -7
- 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 +7 -7
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +7 -7
- 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 +7 -7
- package/es2021/jodit.js +308 -71
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +7 -7
- 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 +7 -7
- package/es2021.en/jodit.js +308 -71
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +7 -7
- 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 +382 -73
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/chart/chart.css +1 -1
- package/es5/plugins/chart/chart.js +1 -1
- package/es5/plugins/chart/chart.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/math/math.css +1 -1
- package/es5/plugins/math/math.js +1 -1
- package/es5/plugins/math/math.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/es2021/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.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1768,7 +1768,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1768
1768
|
* ```
|
|
1769
1769
|
* @packageDocumentation
|
|
1770
1770
|
* @module constants
|
|
1771
|
-
*/ const APP_VERSION = "4.20.
|
|
1771
|
+
*/ const APP_VERSION = "4.20.4";
|
|
1772
1772
|
// prettier-ignore
|
|
1773
1773
|
const ES = "es2021";
|
|
1774
1774
|
const IS_ES_MODERN = true;
|
|
@@ -27754,12 +27754,13 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
27754
27754
|
}), temp_content = self.c.div(CLASS_PREVIEW, '<div class="jodit-icon_loader"></div>'), preview_box = self.c.div(CLASS_PREVIEW + '__box'), next = self.c.fromHTML(preview_tpl_next()), prev = self.c.fromHTML(preview_tpl_next('prev', 'left')), addLoadHandler = (src)=>{
|
|
27755
27755
|
const image = self.c.element('img');
|
|
27756
27756
|
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'src', src);
|
|
27757
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'alt', ga('data-name'));
|
|
27757
27758
|
const onload = ()=>{
|
|
27758
27759
|
var _a;
|
|
27759
27760
|
if (self.isInDestruct) {
|
|
27760
27761
|
return;
|
|
27761
27762
|
}
|
|
27762
|
-
self.e.off(image, 'load');
|
|
27763
|
+
self.e.off(image, 'load error');
|
|
27763
27764
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
|
|
27764
27765
|
if (opt.showPreviewNavigation) {
|
|
27765
27766
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'))) {
|
|
@@ -27774,7 +27775,10 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
27774
27775
|
preview.setPosition();
|
|
27775
27776
|
(_a = self === null || self === void 0 ? void 0 : self.events) === null || _a === void 0 ? void 0 : _a.fire('previewOpenedAndLoaded');
|
|
27776
27777
|
};
|
|
27777
|
-
|
|
27778
|
+
// An image that can't load is shown too,
|
|
27779
|
+
// broken with the file's name, rather
|
|
27780
|
+
// than the loader for good
|
|
27781
|
+
self.e.on(image, 'load error', onload);
|
|
27778
27782
|
if (image.complete) {
|
|
27779
27783
|
onload();
|
|
27780
27784
|
}
|
|
@@ -32354,9 +32358,20 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
32354
32358
|
}
|
|
32355
32359
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
32356
32360
|
}
|
|
32357
|
-
|
|
32358
|
-
|
|
32359
|
-
|
|
32361
|
+
/**
|
|
32362
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
32363
|
+
* it's pressed
|
|
32364
|
+
*/ get isToggle() {
|
|
32365
|
+
const { isActive, tags, css } = this.control;
|
|
32366
|
+
return Boolean(isActive || tags || css);
|
|
32367
|
+
}
|
|
32368
|
+
/**
|
|
32369
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
32370
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
32371
|
+
* `aria-pressed`
|
|
32372
|
+
*/ onChangeActivated() {
|
|
32373
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
32374
|
+
this.setMod('activated', this.state.activated || null);
|
|
32360
32375
|
}
|
|
32361
32376
|
onChangeText() {
|
|
32362
32377
|
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
@@ -32417,6 +32432,8 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
32417
32432
|
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
32418
32433
|
}
|
|
32419
32434
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
32435
|
+
// UIButton's template makes every button a toggle
|
|
32436
|
+
this.onChangeActivated();
|
|
32420
32437
|
}
|
|
32421
32438
|
__initIconFromControl() {
|
|
32422
32439
|
var _a;
|
|
@@ -32993,7 +33010,8 @@ ToolbarContent = __decorate([
|
|
|
32993
33010
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
32994
33011
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
32995
33012
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
32996
|
-
/* harmony import */ var
|
|
33013
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
33014
|
+
/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
|
|
32997
33015
|
/*!
|
|
32998
33016
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32999
33017
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33008,10 +33026,15 @@ ToolbarContent = __decorate([
|
|
|
33008
33026
|
|
|
33009
33027
|
|
|
33010
33028
|
|
|
33011
|
-
|
|
33029
|
+
|
|
33030
|
+
let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton {
|
|
33012
33031
|
className() {
|
|
33013
33032
|
return 'ToolbarSelect';
|
|
33014
33033
|
}
|
|
33034
|
+
// It shows its value, rather than being on or off
|
|
33035
|
+
get isToggle() {
|
|
33036
|
+
return false;
|
|
33037
|
+
}
|
|
33015
33038
|
update() {
|
|
33016
33039
|
var _a, _b, _c;
|
|
33017
33040
|
super.update();
|
|
@@ -33027,6 +33050,18 @@ let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MOD
|
|
|
33027
33050
|
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;
|
|
33028
33051
|
}
|
|
33029
33052
|
}
|
|
33053
|
+
/**
|
|
33054
|
+
* The button shows only the value, so its name says which control it
|
|
33055
|
+
* is too: "Font size, 16px"
|
|
33056
|
+
*/ updateAriaLabel() {
|
|
33057
|
+
var _a;
|
|
33058
|
+
super.updateAriaLabel();
|
|
33059
|
+
const { tooltip } = this.state;
|
|
33060
|
+
const value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
33061
|
+
if (tooltip && value) {
|
|
33062
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', `${this.jodit.i18n(tooltip)}, ${value}`);
|
|
33063
|
+
}
|
|
33064
|
+
}
|
|
33030
33065
|
};
|
|
33031
33066
|
ToolbarSelect = __decorate([
|
|
33032
33067
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
@@ -33357,7 +33392,9 @@ ToolbarEditorCollection = __decorate([
|
|
|
33357
33392
|
}
|
|
33358
33393
|
function makeSelect(view, control, target = null) {
|
|
33359
33394
|
const ToolbarSelect = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
33360
|
-
|
|
33395
|
+
const select = new ToolbarSelect(view, control, target);
|
|
33396
|
+
select.state.tabIndex = view.o.allowTabNavigation ? 0 : -1;
|
|
33397
|
+
return select;
|
|
33361
33398
|
}
|
|
33362
33399
|
|
|
33363
33400
|
|
|
@@ -34261,10 +34298,11 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34261
34298
|
/***/ 22859:
|
|
34262
34299
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34263
34300
|
|
|
34264
|
-
/* harmony import */ var
|
|
34265
|
-
/* harmony import */ var
|
|
34266
|
-
/* harmony import */ var
|
|
34267
|
-
/* harmony import */ var
|
|
34301
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
34302
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
34303
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
34304
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
34305
|
+
/* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
|
|
34268
34306
|
/*!
|
|
34269
34307
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34270
34308
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34273,7 +34311,8 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34273
34311
|
|
|
34274
34312
|
|
|
34275
34313
|
|
|
34276
|
-
|
|
34314
|
+
|
|
34315
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
34277
34316
|
/**
|
|
34278
34317
|
* Build color picker
|
|
34279
34318
|
*
|
|
@@ -34291,29 +34330,54 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34291
34330
|
* });
|
|
34292
34331
|
* ```
|
|
34293
34332
|
*/ const ColorPickerWidget = (editor, callback, coldColor)=>{
|
|
34294
|
-
|
|
34333
|
+
var _a;
|
|
34334
|
+
const cn = 'jodit-color-picker', valueHex = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(coldColor), form = editor.c.div(cn), iconPalette = editor.o.textIcons ? `<span>${editor.i18n('palette')}</span>` : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('palette'), eachColor = (colors)=>{
|
|
34295
34335
|
const stack = [];
|
|
34296
|
-
if ((0,
|
|
34336
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
34297
34337
|
Object.keys(colors).forEach((key)=>{
|
|
34298
34338
|
stack.push(`<div class="${cn}__group ${cn}__group-${key}">`);
|
|
34299
34339
|
stack.push(eachColor(colors[key]));
|
|
34300
34340
|
stack.push('</div>');
|
|
34301
34341
|
});
|
|
34302
|
-
} else if ((0,
|
|
34342
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
34303
34343
|
colors.forEach((color)=>{
|
|
34304
|
-
|
|
34344
|
+
const active = valueHex === color;
|
|
34345
|
+
stack.push(`<button type="button" class='${cn}__color-item ${active ? cn + '__color-item_active_true' : ''}' title="${color}" aria-pressed="${active}" tabindex="-1" style="background-color:${color}" data-color="${color}"></button>`);
|
|
34305
34346
|
});
|
|
34306
34347
|
}
|
|
34307
34348
|
return stack.join('');
|
|
34308
34349
|
};
|
|
34309
34350
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
34310
34351
|
// too. See #1487
|
|
34311
|
-
const groups = (0,
|
|
34312
|
-
|
|
34313
|
-
|
|
34314
|
-
|
|
34315
|
-
|
|
34316
|
-
const
|
|
34352
|
+
const groups = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(editor.o.colors) ? `<div class="${cn}__group">${eachColor(editor.o.colors)}</div>` : eachColor(editor.o.colors);
|
|
34353
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div class="${cn}__groups">${groups}</div>`));
|
|
34354
|
+
const items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(`.${cn}__color-item`));
|
|
34355
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
34356
|
+
// keys move from it
|
|
34357
|
+
const tabStop = (_a = items.find((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'aria-pressed') === 'true')) !== null && _a !== void 0 ? _a : items[0];
|
|
34358
|
+
if (tabStop) {
|
|
34359
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
|
|
34360
|
+
}
|
|
34361
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
34362
|
+
// palette is laid out
|
|
34363
|
+
const nextItem = (item, key)=>{
|
|
34364
|
+
const index = items.indexOf(item);
|
|
34365
|
+
if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
|
|
34366
|
+
const step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
|
|
34367
|
+
const rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
|
|
34368
|
+
return items[index + (rtl ? -step : step)];
|
|
34369
|
+
}
|
|
34370
|
+
const down = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN, rows = items.filter((other)=>down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop);
|
|
34371
|
+
if (!rows.length) {
|
|
34372
|
+
return;
|
|
34373
|
+
}
|
|
34374
|
+
const top = (down ? Math.min : Math.max)(...rows.map((other)=>other.offsetTop)), distance = (other)=>Math.abs(other.offsetLeft - item.offsetLeft);
|
|
34375
|
+
return rows.filter((other)=>other.offsetTop === top).reduce((nearest, other)=>distance(other) < distance(nearest) ? other : nearest);
|
|
34376
|
+
};
|
|
34377
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div data-ref="extra" class="${cn}__extra"></div>`));
|
|
34378
|
+
const { extra } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
34379
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<div class="${cn}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${valueHex || ''}"/></div>`));
|
|
34380
|
+
const { hexInput } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
34317
34381
|
// Enter applies the value and closes the popup; removing the focused
|
|
34318
34382
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
34319
34383
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -34328,8 +34392,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34328
34392
|
if (!isHex && !isRgb) {
|
|
34329
34393
|
return;
|
|
34330
34394
|
}
|
|
34331
|
-
const color = (0,
|
|
34332
|
-
if (color && (0,
|
|
34395
|
+
const color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
34396
|
+
if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34333
34397
|
appliedHexValue = raw;
|
|
34334
34398
|
callback(color);
|
|
34335
34399
|
}
|
|
@@ -34344,40 +34408,75 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
34344
34408
|
e.stopPropagation();
|
|
34345
34409
|
applyHexInput();
|
|
34346
34410
|
});
|
|
34347
|
-
|
|
34348
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
34349
|
-
|
|
34411
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<button type="button" class="${cn}__remove" data-color="" title="${editor.i18n('Remove')}">${editor.o.textIcons ? editor.i18n('Remove') : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('eraser')}</button>`));
|
|
34412
|
+
if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
|
|
34413
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML(`<div class="${cn}__native">${iconPalette}<input type="color" value="#ffffff"/></div>`));
|
|
34350
34414
|
editor.e.on(form, 'change', (e)=>{
|
|
34351
34415
|
e.stopPropagation();
|
|
34352
34416
|
const target = e.target;
|
|
34353
|
-
if (!target || !target.tagName || !
|
|
34417
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
34354
34418
|
return;
|
|
34355
34419
|
}
|
|
34356
34420
|
const color = target.value || '';
|
|
34357
|
-
if ((0,
|
|
34421
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34358
34422
|
callback(color);
|
|
34359
34423
|
}
|
|
34360
34424
|
e.preventDefault();
|
|
34361
34425
|
});
|
|
34362
34426
|
}
|
|
34427
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
34428
|
+
const colorOf = (node)=>{
|
|
34429
|
+
const button = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, (elm)=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove')), form);
|
|
34430
|
+
return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
|
|
34431
|
+
};
|
|
34432
|
+
const apply = (color)=>{
|
|
34433
|
+
if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
34434
|
+
callback(color);
|
|
34435
|
+
}
|
|
34436
|
+
};
|
|
34437
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
34438
|
+
// The keyboard and screen readers press the button, which sends only
|
|
34439
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
34440
|
+
let pointerPressed = false;
|
|
34363
34441
|
editor.e.on(form, 'mousedown touchend', (e)=>{
|
|
34364
34442
|
// let the hex/native inputs receive focus and clicks
|
|
34365
|
-
if (
|
|
34443
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
34366
34444
|
e.stopPropagation();
|
|
34367
34445
|
return;
|
|
34368
34446
|
}
|
|
34369
34447
|
e.stopPropagation();
|
|
34370
34448
|
e.preventDefault();
|
|
34371
|
-
|
|
34372
|
-
if (
|
|
34373
|
-
|
|
34449
|
+
const color = colorOf(e.target);
|
|
34450
|
+
if (color !== undefined) {
|
|
34451
|
+
pointerPressed = e.type === 'mousedown';
|
|
34452
|
+
apply(color);
|
|
34374
34453
|
}
|
|
34375
|
-
|
|
34454
|
+
});
|
|
34455
|
+
editor.e.on(form, 'click', (e)=>{
|
|
34456
|
+
const color = colorOf(e.target);
|
|
34457
|
+
if (color !== undefined && !pointerPressed) {
|
|
34458
|
+
apply(color);
|
|
34459
|
+
}
|
|
34460
|
+
pointerPressed = false;
|
|
34461
|
+
}).on(form, 'keydown', (e)=>{
|
|
34462
|
+
var _a;
|
|
34463
|
+
pointerPressed = false;
|
|
34464
|
+
const item = e.target;
|
|
34465
|
+
if (!items.includes(item) || ![
|
|
34466
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
|
|
34467
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
|
|
34468
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
|
|
34469
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
34470
|
+
].includes(e.key)) {
|
|
34376
34471
|
return;
|
|
34377
34472
|
}
|
|
34378
|
-
|
|
34379
|
-
|
|
34380
|
-
|
|
34473
|
+
// The toolbar's dropdown would walk every color one by one
|
|
34474
|
+
e.preventDefault();
|
|
34475
|
+
e.stopPropagation();
|
|
34476
|
+
(_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
34477
|
+
}).on(form, 'focusin', (e)=>{
|
|
34478
|
+
if (items.includes(e.target)) {
|
|
34479
|
+
items.forEach((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1));
|
|
34381
34480
|
}
|
|
34382
34481
|
});
|
|
34383
34482
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -35759,7 +35858,8 @@ UiAiAssistant = __decorate([
|
|
|
35759
35858
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
35760
35859
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
35761
35860
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
35762
|
-
/* harmony import */ var
|
|
35861
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
|
|
35862
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
|
|
35763
35863
|
/*!
|
|
35764
35864
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35765
35865
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35779,14 +35879,21 @@ UiAiAssistant = __decorate([
|
|
|
35779
35879
|
|
|
35780
35880
|
|
|
35781
35881
|
|
|
35782
|
-
|
|
35783
|
-
const MARKER = [
|
|
35784
|
-
'id',
|
|
35785
|
-
'name'
|
|
35786
|
-
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
35882
|
+
|
|
35787
35883
|
/**
|
|
35788
|
-
*
|
|
35789
|
-
|
|
35884
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
35885
|
+
* with the page and so with any other editor on it
|
|
35886
|
+
*/ const WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
35887
|
+
/**
|
|
35888
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
35889
|
+
*/ function markerStyle(scope) {
|
|
35890
|
+
const marker = [
|
|
35891
|
+
'id',
|
|
35892
|
+
'name'
|
|
35893
|
+
].map((key)=>`.jodit-wysiwyg${scope} a[${key}]:not([href]):empty::before`).join(',');
|
|
35894
|
+
const icon = `url("data:image/svg+xml,${encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor'))}") center/contain no-repeat`;
|
|
35895
|
+
return `${marker}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:${icon};mask:${icon};cursor:pointer;content:''}`;
|
|
35896
|
+
}
|
|
35790
35897
|
/**
|
|
35791
35898
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
35792
35899
|
*/ const MARK = ' contenteditable="false"';
|
|
@@ -35795,8 +35902,14 @@ const MARKER = [
|
|
|
35795
35902
|
* `#name`, and renames and removes them
|
|
35796
35903
|
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
35797
35904
|
/** @override */ afterInit(jodit) {
|
|
35905
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
35906
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
35907
|
+
const shared = jodit.ed === jodit.od;
|
|
35908
|
+
if (shared) {
|
|
35909
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
35910
|
+
}
|
|
35798
35911
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
35799
|
-
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
35912
|
+
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
35800
35913
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
35801
35914
|
top: true
|
|
35802
35915
|
});
|
|
@@ -35829,6 +35942,24 @@ const MARKER = [
|
|
|
35829
35942
|
*/ onAfterGetValueFromEditor(data) {
|
|
35830
35943
|
data.value = unmarkAnchors(data.value);
|
|
35831
35944
|
}
|
|
35945
|
+
/**
|
|
35946
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
35947
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
35948
|
+
*/ onBeforePasteInsert(html) {
|
|
35949
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
|
|
35950
|
+
this.__renameCopies(html);
|
|
35951
|
+
return;
|
|
35952
|
+
}
|
|
35953
|
+
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
|
|
35954
|
+
return;
|
|
35955
|
+
}
|
|
35956
|
+
// Inert, so nothing in it loads
|
|
35957
|
+
const template = this.j.createInside.element('template');
|
|
35958
|
+
template.innerHTML = html;
|
|
35959
|
+
if (this.__renameCopies(template.content)) {
|
|
35960
|
+
return template.innerHTML;
|
|
35961
|
+
}
|
|
35962
|
+
}
|
|
35832
35963
|
/**
|
|
35833
35964
|
* The form that names a new anchor, or renames or removes `target`
|
|
35834
35965
|
*/ __generateForm(target, close) {
|
|
@@ -35968,8 +36099,52 @@ const MARKER = [
|
|
|
35968
36099
|
}
|
|
35969
36100
|
});
|
|
35970
36101
|
}
|
|
36102
|
+
/**
|
|
36103
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
36104
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
36105
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
36106
|
+
*/ __renameCopies(root) {
|
|
36107
|
+
const inRoot = new Set((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('[id], a[name]')).map((elm)=>elm.id || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name')));
|
|
36108
|
+
const renamed = new Map();
|
|
36109
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
|
|
36110
|
+
root
|
|
36111
|
+
] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
|
|
36112
|
+
anchors.forEach((anchor)=>{
|
|
36113
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
36114
|
+
if (!this.__isTaken(name, null)) {
|
|
36115
|
+
return;
|
|
36116
|
+
}
|
|
36117
|
+
let copy = name;
|
|
36118
|
+
for(let n = 2; inRoot.has(copy) || this.__isTaken(copy, null); n += 1){
|
|
36119
|
+
copy = `${name}-${n}`;
|
|
36120
|
+
}
|
|
36121
|
+
[
|
|
36122
|
+
'id',
|
|
36123
|
+
'name'
|
|
36124
|
+
].forEach((key)=>{
|
|
36125
|
+
if (anchor.hasAttribute(key)) {
|
|
36126
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
|
|
36127
|
+
}
|
|
36128
|
+
});
|
|
36129
|
+
inRoot.add(copy);
|
|
36130
|
+
renamed.set(name, copy);
|
|
36131
|
+
});
|
|
36132
|
+
if (!renamed.size) {
|
|
36133
|
+
return false;
|
|
36134
|
+
}
|
|
36135
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach((link)=>{
|
|
36136
|
+
var _a;
|
|
36137
|
+
const href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
|
|
36138
|
+
const copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
36139
|
+
if (copy) {
|
|
36140
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
|
|
36141
|
+
}
|
|
36142
|
+
});
|
|
36143
|
+
return true;
|
|
36144
|
+
}
|
|
35971
36145
|
/** @override */ beforeDestruct(jodit) {
|
|
35972
36146
|
this.__dropForm();
|
|
36147
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
35973
36148
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
35974
36149
|
}
|
|
35975
36150
|
constructor(){
|
|
@@ -36001,6 +36176,9 @@ __decorate([
|
|
|
36001
36176
|
__decorate([
|
|
36002
36177
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
36003
36178
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
36179
|
+
__decorate([
|
|
36180
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
36181
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
36004
36182
|
__decorate([
|
|
36005
36183
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
36006
36184
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -36718,7 +36896,7 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
|
|
|
36718
36896
|
* @private
|
|
36719
36897
|
*/ function checkNotCollapsed(jodit) {
|
|
36720
36898
|
if (!jodit.s.isCollapsed()) {
|
|
36721
|
-
jodit.execCommand('
|
|
36899
|
+
jodit.execCommand('delete', false, true);
|
|
36722
36900
|
return true;
|
|
36723
36901
|
}
|
|
36724
36902
|
return false;
|
|
@@ -40137,6 +40315,13 @@ const KEEPS_SPACES = new Set([
|
|
|
40137
40315
|
'pre-wrap',
|
|
40138
40316
|
'break-spaces'
|
|
40139
40317
|
]);
|
|
40318
|
+
/**
|
|
40319
|
+
* Formatting that the next letter keeps once all of the text in it is
|
|
40320
|
+
* deleted with a key: a formatting tag, or a span with styles of its own.
|
|
40321
|
+
* Not a link, which new text isn't added to, or a wrapper such as a video's
|
|
40322
|
+
*/ function keepsFormat(node) {
|
|
40323
|
+
return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(node) && !node.hasAttribute('contenteditable') && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTemporary(node) && (/^(STRONG|B|EM|I|U|S|SUB|SUP)$/.test(node.nodeName) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'span') && node.hasAttribute('style'));
|
|
40324
|
+
}
|
|
40140
40325
|
/**
|
|
40141
40326
|
* A plain space beside this neighbor isn't shown: there is none, or it's a
|
|
40142
40327
|
* line break, a block or text starting (or ending) with a plain space
|
|
@@ -40185,7 +40370,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40185
40370
|
jodit.s.removeNode(node);
|
|
40186
40371
|
}
|
|
40187
40372
|
}
|
|
40188
|
-
__onDeleteCommand() {
|
|
40373
|
+
__onDeleteCommand(command, showUI, keepFormat) {
|
|
40189
40374
|
const { jodit } = this;
|
|
40190
40375
|
if (jodit.s.isCollapsed()) {
|
|
40191
40376
|
return;
|
|
@@ -40193,6 +40378,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40193
40378
|
jodit.s.expandSelection();
|
|
40194
40379
|
const range = jodit.s.range;
|
|
40195
40380
|
this.__moveEdgesIntoCells(range);
|
|
40381
|
+
const format = keepFormat === true ? this.__formatTakenWhole(range) : [];
|
|
40196
40382
|
const caret = this.__clearSelectedCells(range);
|
|
40197
40383
|
if (caret && range.collapsed) {
|
|
40198
40384
|
jodit.s.selectRange(caret);
|
|
@@ -40208,8 +40394,12 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40208
40394
|
this.__keepSpacesVisibleBesideTable(fake);
|
|
40209
40395
|
range.setStartBefore(fake);
|
|
40210
40396
|
range.collapse(true);
|
|
40211
|
-
|
|
40212
|
-
|
|
40397
|
+
if (format.length && !caret) {
|
|
40398
|
+
this.__keepFormat(format, fake, range);
|
|
40399
|
+
} else {
|
|
40400
|
+
this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
|
|
40401
|
+
this.__addBrInEmptyBlock(fake, range);
|
|
40402
|
+
}
|
|
40213
40403
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
|
|
40214
40404
|
jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
|
|
40215
40405
|
return false;
|
|
@@ -40230,6 +40420,48 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
40230
40420
|
range.setEnd(last, last.childNodes.length);
|
|
40231
40421
|
}
|
|
40232
40422
|
}
|
|
40423
|
+
/**
|
|
40424
|
+
* The formatting elements the deletion takes whole from its start,
|
|
40425
|
+
* outermost first: `<strong>` and `<em>` for all of the text in
|
|
40426
|
+
* `<strong><em>cd</em></strong>`
|
|
40427
|
+
*/ __formatTakenWhole(range) {
|
|
40428
|
+
const format = [];
|
|
40429
|
+
const whole = this.jodit.s.createRange();
|
|
40430
|
+
const { startContainer, startOffset } = range;
|
|
40431
|
+
let node = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(startContainer) ? null : startContainer.childNodes[startOffset];
|
|
40432
|
+
// Through a block taken whole, as a line holding only the word is
|
|
40433
|
+
while(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(node)){
|
|
40434
|
+
whole.selectNode(node);
|
|
40435
|
+
if (range.compareBoundaryPoints(Range.END_TO_END, whole) < 0) {
|
|
40436
|
+
break;
|
|
40437
|
+
}
|
|
40438
|
+
if (keepsFormat(node)) {
|
|
40439
|
+
format.push(node);
|
|
40440
|
+
} else if (format.length || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(node)) {
|
|
40441
|
+
break;
|
|
40442
|
+
}
|
|
40443
|
+
node = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(node.childNodes).find((child)=>{
|
|
40444
|
+
var _a;
|
|
40445
|
+
return !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(child) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.trimInv)((_a = child.nodeValue) !== null && _a !== void 0 ? _a : '');
|
|
40446
|
+
});
|
|
40447
|
+
}
|
|
40448
|
+
return format;
|
|
40449
|
+
}
|
|
40450
|
+
/**
|
|
40451
|
+
* As the browsers do, the next letter typed keeps the formatting that was
|
|
40452
|
+
* deleted whole: empty copies go where it was, round an invisible space,
|
|
40453
|
+
* as Bold does at a collapsed caret, and the caret goes inside (#1784)
|
|
40454
|
+
*/ __keepFormat(format, fake, range) {
|
|
40455
|
+
const copies = format.map((element)=>element.cloneNode(false));
|
|
40456
|
+
for(let i = 1; i < copies.length; i += 1){
|
|
40457
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[i - 1], copies[i]);
|
|
40458
|
+
}
|
|
40459
|
+
const text = this.jodit.createInside.text(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
40460
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[copies.length - 1], text);
|
|
40461
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(fake, copies[0]);
|
|
40462
|
+
range.setStartAfter(text);
|
|
40463
|
+
range.collapse(true);
|
|
40464
|
+
}
|
|
40233
40465
|
/**
|
|
40234
40466
|
* A selection that starts or ends in a table cell clears the selected part
|
|
40235
40467
|
* of each cell it covers and keeps the cells, as the browsers do.
|
|
@@ -40978,7 +41210,13 @@ const brBoxes = new Set([
|
|
|
40978
41210
|
// text; moving it before the `<br>` would put it on a line of its own
|
|
40979
41211
|
// below the block (#1315)
|
|
40980
41212
|
if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(node, jodit.s.range.startContainer)) {
|
|
40981
|
-
|
|
41213
|
+
// Not with setCursorBefore: the text node it adds for the caret
|
|
41214
|
+
// stays after the inserted element once the `<br>` has gone, and
|
|
41215
|
+
// Right or End then take the caret into it, out of the element
|
|
41216
|
+
const range = jodit.s.createRange();
|
|
41217
|
+
range.setStartBefore(br);
|
|
41218
|
+
range.collapse(true);
|
|
41219
|
+
jodit.s.selectRange(range);
|
|
40982
41220
|
}
|
|
40983
41221
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(br);
|
|
40984
41222
|
}
|
|
@@ -42924,6 +43162,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
42924
43162
|
exec: (editor)=>{
|
|
42925
43163
|
editor.toggleFullSize();
|
|
42926
43164
|
},
|
|
43165
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
43166
|
+
isActive: (editor)=>editor.isFullSize,
|
|
42927
43167
|
update (editor, button) {
|
|
42928
43168
|
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
42929
43169
|
button.state.activated = editor.isFullSize;
|
|
@@ -43290,9 +43530,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
43290
43530
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
43291
43531
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
43292
43532
|
command: 'insertHorizontalRule',
|
|
43293
|
-
tags: [
|
|
43294
|
-
'hr'
|
|
43295
|
-
],
|
|
43296
43533
|
tooltip: 'Insert Horizontal Line'
|
|
43297
43534
|
};
|
|
43298
43535
|
function hr(editor) {
|
|
@@ -47869,9 +48106,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
47869
48106
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
47870
48107
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
47871
48108
|
command: 'applyLineHeight',
|
|
47872
|
-
tags: [
|
|
47873
|
-
'ol'
|
|
47874
|
-
],
|
|
47875
48109
|
tooltip: 'Line height',
|
|
47876
48110
|
list: [
|
|
47877
48111
|
1,
|
|
@@ -50887,10 +51121,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder =
|
|
|
50887
51121
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
50888
51122
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
50889
51123
|
/* harmony import */ var _core_helpers_checker_is_marker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78116);
|
|
50890
|
-
/* harmony import */ var
|
|
50891
|
-
/* harmony import */ var
|
|
50892
|
-
/* harmony import */ var
|
|
50893
|
-
/* harmony import */ var
|
|
51124
|
+
/* harmony import */ var _core_helpers_utils_anchor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70442);
|
|
51125
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29960);
|
|
51126
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41180);
|
|
51127
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20356);
|
|
51128
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61926);
|
|
50894
51129
|
/*!
|
|
50895
51130
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50896
51131
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -50911,6 +51146,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder =
|
|
|
50911
51146
|
|
|
50912
51147
|
|
|
50913
51148
|
|
|
51149
|
+
|
|
50914
51150
|
/**
|
|
50915
51151
|
* Check if root node is empty
|
|
50916
51152
|
* @private
|
|
@@ -50937,18 +51173,19 @@ function isBlank(root) {
|
|
|
50937
51173
|
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(first) && !next) {
|
|
50938
51174
|
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(first);
|
|
50939
51175
|
}
|
|
50940
|
-
|
|
51176
|
+
// An anchor has no text, but it's content, shown as a marker
|
|
51177
|
+
return !next && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.each(first, (elm)=>!(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isLeaf(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isList(elm) || (0,_core_helpers_utils_anchor_js__WEBPACK_IMPORTED_MODULE_5__.isAnchor)(elm)) && (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmpty(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'br')));
|
|
50941
51178
|
}
|
|
50942
51179
|
/**
|
|
50943
51180
|
* Show placeholder inside empty editor
|
|
50944
|
-
*/ class placeholder extends
|
|
51181
|
+
*/ class placeholder extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__.Plugin {
|
|
50945
51182
|
afterInit(editor) {
|
|
50946
51183
|
if (!editor.o.showPlaceholder) {
|
|
50947
51184
|
return;
|
|
50948
51185
|
}
|
|
50949
51186
|
this.placeholderElm = editor.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${editor.i18n(editor.o.placeholder)}</span>`);
|
|
50950
51187
|
if (editor.o.direction === 'rtl') {
|
|
50951
|
-
(0,
|
|
51188
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
50952
51189
|
right: 0,
|
|
50953
51190
|
direction: 'rtl'
|
|
50954
51191
|
});
|
|
@@ -50977,19 +51214,19 @@ function isBlank(root) {
|
|
|
50977
51214
|
const style2 = editor.ew.getComputedStyle(firstChild);
|
|
50978
51215
|
marginTop = parseInt(style2.getPropertyValue('margin-top'), 10);
|
|
50979
51216
|
marginLeft = parseInt(style2.getPropertyValue('margin-left'), 10);
|
|
50980
|
-
(0,
|
|
51217
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
50981
51218
|
fontFamily: style2.getPropertyValue('font-family'),
|
|
50982
51219
|
fontSize: parseInt(style2.getPropertyValue('font-size'), 10),
|
|
50983
51220
|
lineHeight: style2.getPropertyValue('line-height')
|
|
50984
51221
|
});
|
|
50985
51222
|
} else {
|
|
50986
|
-
(0,
|
|
51223
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
50987
51224
|
fontFamily: style.getPropertyValue('font-family'),
|
|
50988
51225
|
fontSize: parseInt(style.getPropertyValue('font-size'), 10),
|
|
50989
51226
|
lineHeight: style.getPropertyValue('line-height')
|
|
50990
51227
|
});
|
|
50991
51228
|
}
|
|
50992
|
-
;(0,
|
|
51229
|
+
;(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
50993
51230
|
display: 'block',
|
|
50994
51231
|
textAlign: style.getPropertyValue('text-align'),
|
|
50995
51232
|
paddingTop: parseInt(styleEditor.paddingTop, 10) + 'px',
|
|
@@ -51029,7 +51266,7 @@ function isBlank(root) {
|
|
|
51029
51266
|
this.addEvents = ()=>{
|
|
51030
51267
|
const editor = this.j;
|
|
51031
51268
|
if (editor.o.useInputsPlaceholder && editor.element.hasAttribute('placeholder')) {
|
|
51032
|
-
this.placeholderElm.innerHTML = (0,
|
|
51269
|
+
this.placeholderElm.innerHTML = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attr)(editor.element, 'placeholder') || '';
|
|
51033
51270
|
}
|
|
51034
51271
|
editor.e.fire('placeholder', this.placeholderElm.innerHTML);
|
|
51035
51272
|
editor.e.off('.placeholder').on('changePlace.placeholder', this.addNativeListeners).on('change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder ' + 'mousedown.placeholder afterSetMode.placeholder changePlace.placeholder ' + 'internalChange.placeholder afterCommand.placeholder resize.placeholder', this.toggle).on(window, 'load', this.toggle);
|