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/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.20.
|
|
4
|
+
* Version: v4.20.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1816,7 +1816,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1816
1816
|
* ```
|
|
1817
1817
|
* @packageDocumentation
|
|
1818
1818
|
* @module constants
|
|
1819
|
-
*/ const APP_VERSION = "4.20.
|
|
1819
|
+
*/ const APP_VERSION = "4.20.4";
|
|
1820
1820
|
// prettier-ignore
|
|
1821
1821
|
const ES = "es2015";
|
|
1822
1822
|
const IS_ES_MODERN = true;
|
|
@@ -28536,12 +28536,13 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
28536
28536
|
}), 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)=>{
|
|
28537
28537
|
const image = self.c.element('img');
|
|
28538
28538
|
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'src', src);
|
|
28539
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'alt', ga('data-name'));
|
|
28539
28540
|
const onload = ()=>{
|
|
28540
28541
|
var _a;
|
|
28541
28542
|
if (self.isInDestruct) {
|
|
28542
28543
|
return;
|
|
28543
28544
|
}
|
|
28544
|
-
self.e.off(image, 'load');
|
|
28545
|
+
self.e.off(image, 'load error');
|
|
28545
28546
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
|
|
28546
28547
|
if (opt.showPreviewNavigation) {
|
|
28547
28548
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'))) {
|
|
@@ -28556,7 +28557,10 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
28556
28557
|
preview.setPosition();
|
|
28557
28558
|
(_a = self === null || self === void 0 ? void 0 : self.events) === null || _a === void 0 ? void 0 : _a.fire('previewOpenedAndLoaded');
|
|
28558
28559
|
};
|
|
28559
|
-
|
|
28560
|
+
// An image that can't load is shown too,
|
|
28561
|
+
// broken with the file's name, rather
|
|
28562
|
+
// than the loader for good
|
|
28563
|
+
self.e.on(image, 'load error', onload);
|
|
28560
28564
|
if (image.complete) {
|
|
28561
28565
|
onload();
|
|
28562
28566
|
}
|
|
@@ -33339,9 +33343,20 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
33339
33343
|
}
|
|
33340
33344
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
33341
33345
|
}
|
|
33342
|
-
|
|
33343
|
-
|
|
33344
|
-
|
|
33346
|
+
/**
|
|
33347
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
33348
|
+
* it's pressed
|
|
33349
|
+
*/ get isToggle() {
|
|
33350
|
+
const { isActive, tags, css } = this.control;
|
|
33351
|
+
return Boolean(isActive || tags || css);
|
|
33352
|
+
}
|
|
33353
|
+
/**
|
|
33354
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
33355
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
33356
|
+
* `aria-pressed`
|
|
33357
|
+
*/ onChangeActivated() {
|
|
33358
|
+
;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
33359
|
+
this.setMod('activated', this.state.activated || null);
|
|
33345
33360
|
}
|
|
33346
33361
|
onChangeText() {
|
|
33347
33362
|
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
|
|
@@ -33402,6 +33417,8 @@ let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends _core_ui_butto
|
|
|
33402
33417
|
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
33403
33418
|
}
|
|
33404
33419
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
33420
|
+
// UIButton's template makes every button a toggle
|
|
33421
|
+
this.onChangeActivated();
|
|
33405
33422
|
}
|
|
33406
33423
|
__initIconFromControl() {
|
|
33407
33424
|
var _a;
|
|
@@ -33973,7 +33990,8 @@ ToolbarContent = __decorate([
|
|
|
33973
33990
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
33974
33991
|
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
33975
33992
|
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
33976
|
-
/* harmony import */ var
|
|
33993
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
33994
|
+
/* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
|
|
33977
33995
|
/*!
|
|
33978
33996
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33979
33997
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33988,10 +34006,15 @@ ToolbarContent = __decorate([
|
|
|
33988
34006
|
|
|
33989
34007
|
|
|
33990
34008
|
|
|
33991
|
-
|
|
34009
|
+
|
|
34010
|
+
let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton {
|
|
33992
34011
|
className() {
|
|
33993
34012
|
return 'ToolbarSelect';
|
|
33994
34013
|
}
|
|
34014
|
+
// It shows its value, rather than being on or off
|
|
34015
|
+
get isToggle() {
|
|
34016
|
+
return false;
|
|
34017
|
+
}
|
|
33995
34018
|
update() {
|
|
33996
34019
|
var _a, _b, _c;
|
|
33997
34020
|
super.update();
|
|
@@ -34007,6 +34030,18 @@ let ToolbarSelect = class ToolbarSelect extends _button_js__WEBPACK_IMPORTED_MOD
|
|
|
34007
34030
|
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;
|
|
34008
34031
|
}
|
|
34009
34032
|
}
|
|
34033
|
+
/**
|
|
34034
|
+
* The button shows only the value, so its name says which control it
|
|
34035
|
+
* is too: "Font size, 16px"
|
|
34036
|
+
*/ updateAriaLabel() {
|
|
34037
|
+
var _a;
|
|
34038
|
+
super.updateAriaLabel();
|
|
34039
|
+
const { tooltip } = this.state;
|
|
34040
|
+
const value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
34041
|
+
if (tooltip && value) {
|
|
34042
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', `${this.jodit.i18n(tooltip)}, ${value}`);
|
|
34043
|
+
}
|
|
34044
|
+
}
|
|
34010
34045
|
};
|
|
34011
34046
|
ToolbarSelect = __decorate([
|
|
34012
34047
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
|
|
@@ -34337,7 +34372,9 @@ ToolbarEditorCollection = __decorate([
|
|
|
34337
34372
|
}
|
|
34338
34373
|
function makeSelect(view, control, target = null) {
|
|
34339
34374
|
const ToolbarSelect = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
34340
|
-
|
|
34375
|
+
const select = new ToolbarSelect(view, control, target);
|
|
34376
|
+
select.state.tabIndex = view.o.allowTabNavigation ? 0 : -1;
|
|
34377
|
+
return select;
|
|
34341
34378
|
}
|
|
34342
34379
|
|
|
34343
34380
|
|
|
@@ -35338,10 +35375,11 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
35338
35375
|
/***/ 22859:
|
|
35339
35376
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35340
35377
|
|
|
35341
|
-
/* harmony import */ var
|
|
35342
|
-
/* harmony import */ var
|
|
35343
|
-
/* harmony import */ var
|
|
35344
|
-
/* harmony import */ var
|
|
35378
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
35379
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
35380
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
35381
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
35382
|
+
/* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
|
|
35345
35383
|
/*!
|
|
35346
35384
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35347
35385
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35350,7 +35388,8 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
35350
35388
|
|
|
35351
35389
|
|
|
35352
35390
|
|
|
35353
|
-
|
|
35391
|
+
|
|
35392
|
+
_core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
35354
35393
|
/**
|
|
35355
35394
|
* Build color picker
|
|
35356
35395
|
*
|
|
@@ -35368,29 +35407,54 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35368
35407
|
* });
|
|
35369
35408
|
* ```
|
|
35370
35409
|
*/ const ColorPickerWidget = (editor, callback, coldColor)=>{
|
|
35371
|
-
|
|
35410
|
+
var _a;
|
|
35411
|
+
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)=>{
|
|
35372
35412
|
const stack = [];
|
|
35373
|
-
if ((0,
|
|
35413
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
|
|
35374
35414
|
Object.keys(colors).forEach((key)=>{
|
|
35375
35415
|
stack.push(`<div class="${cn}__group ${cn}__group-${key}">`);
|
|
35376
35416
|
stack.push(eachColor(colors[key]));
|
|
35377
35417
|
stack.push('</div>');
|
|
35378
35418
|
});
|
|
35379
|
-
} else if ((0,
|
|
35419
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
|
|
35380
35420
|
colors.forEach((color)=>{
|
|
35381
|
-
|
|
35421
|
+
const active = valueHex === color;
|
|
35422
|
+
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>`);
|
|
35382
35423
|
});
|
|
35383
35424
|
}
|
|
35384
35425
|
return stack.join('');
|
|
35385
35426
|
};
|
|
35386
35427
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
35387
35428
|
// too. See #1487
|
|
35388
|
-
const groups = (0,
|
|
35389
|
-
|
|
35390
|
-
|
|
35391
|
-
|
|
35392
|
-
|
|
35393
|
-
const
|
|
35429
|
+
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);
|
|
35430
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div class="${cn}__groups">${groups}</div>`));
|
|
35431
|
+
const items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(`.${cn}__color-item`));
|
|
35432
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
35433
|
+
// keys move from it
|
|
35434
|
+
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];
|
|
35435
|
+
if (tabStop) {
|
|
35436
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
|
|
35437
|
+
}
|
|
35438
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
35439
|
+
// palette is laid out
|
|
35440
|
+
const nextItem = (item, key)=>{
|
|
35441
|
+
const index = items.indexOf(item);
|
|
35442
|
+
if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
|
|
35443
|
+
const step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
|
|
35444
|
+
const rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
|
|
35445
|
+
return items[index + (rtl ? -step : step)];
|
|
35446
|
+
}
|
|
35447
|
+
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);
|
|
35448
|
+
if (!rows.length) {
|
|
35449
|
+
return;
|
|
35450
|
+
}
|
|
35451
|
+
const top = (down ? Math.min : Math.max)(...rows.map((other)=>other.offsetTop)), distance = (other)=>Math.abs(other.offsetLeft - item.offsetLeft);
|
|
35452
|
+
return rows.filter((other)=>other.offsetTop === top).reduce((nearest, other)=>distance(other) < distance(nearest) ? other : nearest);
|
|
35453
|
+
};
|
|
35454
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML(`<div data-ref="extra" class="${cn}__extra"></div>`));
|
|
35455
|
+
const { extra } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
35456
|
+
_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>`));
|
|
35457
|
+
const { hexInput } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form);
|
|
35394
35458
|
// Enter applies the value and closes the popup; removing the focused
|
|
35395
35459
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
35396
35460
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -35405,8 +35469,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35405
35469
|
if (!isHex && !isRgb) {
|
|
35406
35470
|
return;
|
|
35407
35471
|
}
|
|
35408
|
-
const color = (0,
|
|
35409
|
-
if (color && (0,
|
|
35472
|
+
const color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
35473
|
+
if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35410
35474
|
appliedHexValue = raw;
|
|
35411
35475
|
callback(color);
|
|
35412
35476
|
}
|
|
@@ -35421,40 +35485,75 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
|
|
|
35421
35485
|
e.stopPropagation();
|
|
35422
35486
|
applyHexInput();
|
|
35423
35487
|
});
|
|
35424
|
-
|
|
35425
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
35426
|
-
|
|
35488
|
+
_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>`));
|
|
35489
|
+
if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
|
|
35490
|
+
_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>`));
|
|
35427
35491
|
editor.e.on(form, 'change', (e)=>{
|
|
35428
35492
|
e.stopPropagation();
|
|
35429
35493
|
const target = e.target;
|
|
35430
|
-
if (!target || !target.tagName || !
|
|
35494
|
+
if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
35431
35495
|
return;
|
|
35432
35496
|
}
|
|
35433
35497
|
const color = target.value || '';
|
|
35434
|
-
if ((0,
|
|
35498
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35435
35499
|
callback(color);
|
|
35436
35500
|
}
|
|
35437
35501
|
e.preventDefault();
|
|
35438
35502
|
});
|
|
35439
35503
|
}
|
|
35504
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
35505
|
+
const colorOf = (node)=>{
|
|
35506
|
+
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);
|
|
35507
|
+
return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
|
|
35508
|
+
};
|
|
35509
|
+
const apply = (color)=>{
|
|
35510
|
+
if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
|
|
35511
|
+
callback(color);
|
|
35512
|
+
}
|
|
35513
|
+
};
|
|
35514
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
35515
|
+
// The keyboard and screen readers press the button, which sends only
|
|
35516
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
35517
|
+
let pointerPressed = false;
|
|
35440
35518
|
editor.e.on(form, 'mousedown touchend', (e)=>{
|
|
35441
35519
|
// let the hex/native inputs receive focus and clicks
|
|
35442
|
-
if (
|
|
35520
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
|
|
35443
35521
|
e.stopPropagation();
|
|
35444
35522
|
return;
|
|
35445
35523
|
}
|
|
35446
35524
|
e.stopPropagation();
|
|
35447
35525
|
e.preventDefault();
|
|
35448
|
-
|
|
35449
|
-
if (
|
|
35450
|
-
|
|
35526
|
+
const color = colorOf(e.target);
|
|
35527
|
+
if (color !== undefined) {
|
|
35528
|
+
pointerPressed = e.type === 'mousedown';
|
|
35529
|
+
apply(color);
|
|
35530
|
+
}
|
|
35531
|
+
});
|
|
35532
|
+
editor.e.on(form, 'click', (e)=>{
|
|
35533
|
+
const color = colorOf(e.target);
|
|
35534
|
+
if (color !== undefined && !pointerPressed) {
|
|
35535
|
+
apply(color);
|
|
35451
35536
|
}
|
|
35452
|
-
|
|
35537
|
+
pointerPressed = false;
|
|
35538
|
+
}).on(form, 'keydown', (e)=>{
|
|
35539
|
+
var _a;
|
|
35540
|
+
pointerPressed = false;
|
|
35541
|
+
const item = e.target;
|
|
35542
|
+
if (!items.includes(item) || ![
|
|
35543
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
|
|
35544
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
|
|
35545
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
|
|
35546
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
35547
|
+
].includes(e.key)) {
|
|
35453
35548
|
return;
|
|
35454
35549
|
}
|
|
35455
|
-
|
|
35456
|
-
|
|
35457
|
-
|
|
35550
|
+
// The toolbar's dropdown would walk every color one by one
|
|
35551
|
+
e.preventDefault();
|
|
35552
|
+
e.stopPropagation();
|
|
35553
|
+
(_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35554
|
+
}).on(form, 'focusin', (e)=>{
|
|
35555
|
+
if (items.includes(e.target)) {
|
|
35556
|
+
items.forEach((item)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1));
|
|
35458
35557
|
}
|
|
35459
35558
|
});
|
|
35460
35559
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -36862,7 +36961,8 @@ UiAiAssistant = __decorate([
|
|
|
36862
36961
|
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
36863
36962
|
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
|
|
36864
36963
|
/* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
|
|
36865
|
-
/* harmony import */ var
|
|
36964
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
|
|
36965
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
|
|
36866
36966
|
/*!
|
|
36867
36967
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36868
36968
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36882,14 +36982,21 @@ UiAiAssistant = __decorate([
|
|
|
36882
36982
|
|
|
36883
36983
|
|
|
36884
36984
|
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36888
|
-
|
|
36889
|
-
|
|
36985
|
+
|
|
36986
|
+
/**
|
|
36987
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
36988
|
+
* with the page and so with any other editor on it
|
|
36989
|
+
*/ const WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
36890
36990
|
/**
|
|
36891
|
-
* Each anchor's marker, in the editing
|
|
36892
|
-
*/
|
|
36991
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
36992
|
+
*/ function markerStyle(scope) {
|
|
36993
|
+
const marker = [
|
|
36994
|
+
'id',
|
|
36995
|
+
'name'
|
|
36996
|
+
].map((key)=>`.jodit-wysiwyg${scope} a[${key}]:not([href]):empty::before`).join(',');
|
|
36997
|
+
const icon = `url("data:image/svg+xml,${encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor'))}") center/contain no-repeat`;
|
|
36998
|
+
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:''}`;
|
|
36999
|
+
}
|
|
36893
37000
|
/**
|
|
36894
37001
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
36895
37002
|
*/ const MARK = ' contenteditable="false"';
|
|
@@ -36898,8 +37005,14 @@ const MARKER = [
|
|
|
36898
37005
|
* `#name`, and renames and removes them
|
|
36899
37006
|
*/ class anchor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
36900
37007
|
/** @override */ afterInit(jodit) {
|
|
37008
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
37009
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
37010
|
+
const shared = jodit.ed === jodit.od;
|
|
37011
|
+
if (shared) {
|
|
37012
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
37013
|
+
}
|
|
36901
37014
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
36902
|
-
(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
37015
|
+
;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
36903
37016
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
36904
37017
|
top: true
|
|
36905
37018
|
});
|
|
@@ -36932,6 +37045,24 @@ const MARKER = [
|
|
|
36932
37045
|
*/ onAfterGetValueFromEditor(data) {
|
|
36933
37046
|
data.value = unmarkAnchors(data.value);
|
|
36934
37047
|
}
|
|
37048
|
+
/**
|
|
37049
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
37050
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
37051
|
+
*/ onBeforePasteInsert(html) {
|
|
37052
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
|
|
37053
|
+
this.__renameCopies(html);
|
|
37054
|
+
return;
|
|
37055
|
+
}
|
|
37056
|
+
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
|
|
37057
|
+
return;
|
|
37058
|
+
}
|
|
37059
|
+
// Inert, so nothing in it loads
|
|
37060
|
+
const template = this.j.createInside.element('template');
|
|
37061
|
+
template.innerHTML = html;
|
|
37062
|
+
if (this.__renameCopies(template.content)) {
|
|
37063
|
+
return template.innerHTML;
|
|
37064
|
+
}
|
|
37065
|
+
}
|
|
36935
37066
|
/**
|
|
36936
37067
|
* The form that names a new anchor, or renames or removes `target`
|
|
36937
37068
|
*/ __generateForm(target, close) {
|
|
@@ -37071,8 +37202,52 @@ const MARKER = [
|
|
|
37071
37202
|
}
|
|
37072
37203
|
});
|
|
37073
37204
|
}
|
|
37205
|
+
/**
|
|
37206
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
37207
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
37208
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
37209
|
+
*/ __renameCopies(root) {
|
|
37210
|
+
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')));
|
|
37211
|
+
const renamed = new Map();
|
|
37212
|
+
const anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
|
|
37213
|
+
root
|
|
37214
|
+
] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
|
|
37215
|
+
anchors.forEach((anchor)=>{
|
|
37216
|
+
const name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
|
|
37217
|
+
if (!this.__isTaken(name, null)) {
|
|
37218
|
+
return;
|
|
37219
|
+
}
|
|
37220
|
+
let copy = name;
|
|
37221
|
+
for(let n = 2; inRoot.has(copy) || this.__isTaken(copy, null); n += 1){
|
|
37222
|
+
copy = `${name}-${n}`;
|
|
37223
|
+
}
|
|
37224
|
+
[
|
|
37225
|
+
'id',
|
|
37226
|
+
'name'
|
|
37227
|
+
].forEach((key)=>{
|
|
37228
|
+
if (anchor.hasAttribute(key)) {
|
|
37229
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
|
|
37230
|
+
}
|
|
37231
|
+
});
|
|
37232
|
+
inRoot.add(copy);
|
|
37233
|
+
renamed.set(name, copy);
|
|
37234
|
+
});
|
|
37235
|
+
if (!renamed.size) {
|
|
37236
|
+
return false;
|
|
37237
|
+
}
|
|
37238
|
+
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach((link)=>{
|
|
37239
|
+
var _a;
|
|
37240
|
+
const href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
|
|
37241
|
+
const copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
37242
|
+
if (copy) {
|
|
37243
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
|
|
37244
|
+
}
|
|
37245
|
+
});
|
|
37246
|
+
return true;
|
|
37247
|
+
}
|
|
37074
37248
|
/** @override */ beforeDestruct(jodit) {
|
|
37075
37249
|
this.__dropForm();
|
|
37250
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
37076
37251
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
37077
37252
|
}
|
|
37078
37253
|
constructor(){
|
|
@@ -37104,6 +37279,9 @@ __decorate([
|
|
|
37104
37279
|
__decorate([
|
|
37105
37280
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
|
|
37106
37281
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
37282
|
+
__decorate([
|
|
37283
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
|
|
37284
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
37107
37285
|
__decorate([
|
|
37108
37286
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
37109
37287
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -37821,7 +37999,7 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
|
|
|
37821
37999
|
* @private
|
|
37822
38000
|
*/ function checkNotCollapsed(jodit) {
|
|
37823
38001
|
if (!jodit.s.isCollapsed()) {
|
|
37824
|
-
jodit.execCommand('
|
|
38002
|
+
jodit.execCommand('delete', false, true);
|
|
37825
38003
|
return true;
|
|
37826
38004
|
}
|
|
37827
38005
|
return false;
|
|
@@ -41264,6 +41442,13 @@ const KEEPS_SPACES = new Set([
|
|
|
41264
41442
|
'pre-wrap',
|
|
41265
41443
|
'break-spaces'
|
|
41266
41444
|
]);
|
|
41445
|
+
/**
|
|
41446
|
+
* Formatting that the next letter keeps once all of the text in it is
|
|
41447
|
+
* deleted with a key: a formatting tag, or a span with styles of its own.
|
|
41448
|
+
* Not a link, which new text isn't added to, or a wrapper such as a video's
|
|
41449
|
+
*/ function keepsFormat(node) {
|
|
41450
|
+
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'));
|
|
41451
|
+
}
|
|
41267
41452
|
/**
|
|
41268
41453
|
* A plain space beside this neighbor isn't shown: there is none, or it's a
|
|
41269
41454
|
* line break, a block or text starting (or ending) with a plain space
|
|
@@ -41312,7 +41497,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
41312
41497
|
jodit.s.removeNode(node);
|
|
41313
41498
|
}
|
|
41314
41499
|
}
|
|
41315
|
-
__onDeleteCommand() {
|
|
41500
|
+
__onDeleteCommand(command, showUI, keepFormat) {
|
|
41316
41501
|
const { jodit } = this;
|
|
41317
41502
|
if (jodit.s.isCollapsed()) {
|
|
41318
41503
|
return;
|
|
@@ -41320,6 +41505,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
41320
41505
|
jodit.s.expandSelection();
|
|
41321
41506
|
const range = jodit.s.range;
|
|
41322
41507
|
this.__moveEdgesIntoCells(range);
|
|
41508
|
+
const format = keepFormat === true ? this.__formatTakenWhole(range) : [];
|
|
41323
41509
|
const caret = this.__clearSelectedCells(range);
|
|
41324
41510
|
if (caret && range.collapsed) {
|
|
41325
41511
|
jodit.s.selectRange(caret);
|
|
@@ -41335,8 +41521,12 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
41335
41521
|
this.__keepSpacesVisibleBesideTable(fake);
|
|
41336
41522
|
range.setStartBefore(fake);
|
|
41337
41523
|
range.collapse(true);
|
|
41338
|
-
|
|
41339
|
-
|
|
41524
|
+
if (format.length && !caret) {
|
|
41525
|
+
this.__keepFormat(format, fake, range);
|
|
41526
|
+
} else {
|
|
41527
|
+
this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
|
|
41528
|
+
this.__addBrInEmptyBlock(fake, range);
|
|
41529
|
+
}
|
|
41340
41530
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
|
|
41341
41531
|
jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
|
|
41342
41532
|
return false;
|
|
@@ -41357,6 +41547,48 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.P
|
|
|
41357
41547
|
range.setEnd(last, last.childNodes.length);
|
|
41358
41548
|
}
|
|
41359
41549
|
}
|
|
41550
|
+
/**
|
|
41551
|
+
* The formatting elements the deletion takes whole from its start,
|
|
41552
|
+
* outermost first: `<strong>` and `<em>` for all of the text in
|
|
41553
|
+
* `<strong><em>cd</em></strong>`
|
|
41554
|
+
*/ __formatTakenWhole(range) {
|
|
41555
|
+
const format = [];
|
|
41556
|
+
const whole = this.jodit.s.createRange();
|
|
41557
|
+
const { startContainer, startOffset } = range;
|
|
41558
|
+
let node = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(startContainer) ? null : startContainer.childNodes[startOffset];
|
|
41559
|
+
// Through a block taken whole, as a line holding only the word is
|
|
41560
|
+
while(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(node)){
|
|
41561
|
+
whole.selectNode(node);
|
|
41562
|
+
if (range.compareBoundaryPoints(Range.END_TO_END, whole) < 0) {
|
|
41563
|
+
break;
|
|
41564
|
+
}
|
|
41565
|
+
if (keepsFormat(node)) {
|
|
41566
|
+
format.push(node);
|
|
41567
|
+
} else if (format.length || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(node)) {
|
|
41568
|
+
break;
|
|
41569
|
+
}
|
|
41570
|
+
node = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(node.childNodes).find((child)=>{
|
|
41571
|
+
var _a;
|
|
41572
|
+
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 : '');
|
|
41573
|
+
});
|
|
41574
|
+
}
|
|
41575
|
+
return format;
|
|
41576
|
+
}
|
|
41577
|
+
/**
|
|
41578
|
+
* As the browsers do, the next letter typed keeps the formatting that was
|
|
41579
|
+
* deleted whole: empty copies go where it was, round an invisible space,
|
|
41580
|
+
* as Bold does at a collapsed caret, and the caret goes inside (#1784)
|
|
41581
|
+
*/ __keepFormat(format, fake, range) {
|
|
41582
|
+
const copies = format.map((element)=>element.cloneNode(false));
|
|
41583
|
+
for(let i = 1; i < copies.length; i += 1){
|
|
41584
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[i - 1], copies[i]);
|
|
41585
|
+
}
|
|
41586
|
+
const text = this.jodit.createInside.text(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
41587
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[copies.length - 1], text);
|
|
41588
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(fake, copies[0]);
|
|
41589
|
+
range.setStartAfter(text);
|
|
41590
|
+
range.collapse(true);
|
|
41591
|
+
}
|
|
41360
41592
|
/**
|
|
41361
41593
|
* A selection that starts or ends in a table cell clears the selected part
|
|
41362
41594
|
* of each cell it covers and keeps the cells, as the browsers do.
|
|
@@ -42105,7 +42337,13 @@ const brBoxes = new Set([
|
|
|
42105
42337
|
// text; moving it before the `<br>` would put it on a line of its own
|
|
42106
42338
|
// below the block (#1315)
|
|
42107
42339
|
if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(node, jodit.s.range.startContainer)) {
|
|
42108
|
-
|
|
42340
|
+
// Not with setCursorBefore: the text node it adds for the caret
|
|
42341
|
+
// stays after the inserted element once the `<br>` has gone, and
|
|
42342
|
+
// Right or End then take the caret into it, out of the element
|
|
42343
|
+
const range = jodit.s.createRange();
|
|
42344
|
+
range.setStartBefore(br);
|
|
42345
|
+
range.collapse(true);
|
|
42346
|
+
jodit.s.selectRange(range);
|
|
42109
42347
|
}
|
|
42110
42348
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(br);
|
|
42111
42349
|
}
|
|
@@ -44099,6 +44337,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
44099
44337
|
exec: (editor)=>{
|
|
44100
44338
|
editor.toggleFullSize();
|
|
44101
44339
|
},
|
|
44340
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
44341
|
+
isActive: (editor)=>editor.isFullSize,
|
|
44102
44342
|
update (editor, button) {
|
|
44103
44343
|
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
44104
44344
|
button.state.activated = editor.isFullSize;
|
|
@@ -44465,9 +44705,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
44465
44705
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
44466
44706
|
_config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
44467
44707
|
command: 'insertHorizontalRule',
|
|
44468
|
-
tags: [
|
|
44469
|
-
'hr'
|
|
44470
|
-
],
|
|
44471
44708
|
tooltip: 'Insert Horizontal Line'
|
|
44472
44709
|
};
|
|
44473
44710
|
function hr(editor) {
|
|
@@ -49332,9 +49569,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
|
|
|
49332
49569
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
49333
49570
|
_config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
49334
49571
|
command: 'applyLineHeight',
|
|
49335
|
-
tags: [
|
|
49336
|
-
'ol'
|
|
49337
|
-
],
|
|
49338
49572
|
tooltip: 'Line height',
|
|
49339
49573
|
list: [
|
|
49340
49574
|
1,
|
|
@@ -52378,10 +52612,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder =
|
|
|
52378
52612
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
52379
52613
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
52380
52614
|
/* harmony import */ var _core_helpers_checker_is_marker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78116);
|
|
52381
|
-
/* harmony import */ var
|
|
52382
|
-
/* harmony import */ var
|
|
52383
|
-
/* harmony import */ var
|
|
52384
|
-
/* harmony import */ var
|
|
52615
|
+
/* harmony import */ var _core_helpers_utils_anchor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70442);
|
|
52616
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29960);
|
|
52617
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41180);
|
|
52618
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20356);
|
|
52619
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61926);
|
|
52385
52620
|
/*!
|
|
52386
52621
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
52387
52622
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -52402,6 +52637,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder =
|
|
|
52402
52637
|
|
|
52403
52638
|
|
|
52404
52639
|
|
|
52640
|
+
|
|
52405
52641
|
/**
|
|
52406
52642
|
* Check if root node is empty
|
|
52407
52643
|
* @private
|
|
@@ -52428,18 +52664,19 @@ function isBlank(root) {
|
|
|
52428
52664
|
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(first) && !next) {
|
|
52429
52665
|
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(first);
|
|
52430
52666
|
}
|
|
52431
|
-
|
|
52667
|
+
// An anchor has no text, but it's content, shown as a marker
|
|
52668
|
+
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')));
|
|
52432
52669
|
}
|
|
52433
52670
|
/**
|
|
52434
52671
|
* Show placeholder inside empty editor
|
|
52435
|
-
*/ class placeholder extends
|
|
52672
|
+
*/ class placeholder extends _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__.Plugin {
|
|
52436
52673
|
afterInit(editor) {
|
|
52437
52674
|
if (!editor.o.showPlaceholder) {
|
|
52438
52675
|
return;
|
|
52439
52676
|
}
|
|
52440
52677
|
this.placeholderElm = editor.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${editor.i18n(editor.o.placeholder)}</span>`);
|
|
52441
52678
|
if (editor.o.direction === 'rtl') {
|
|
52442
|
-
(0,
|
|
52679
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
52443
52680
|
right: 0,
|
|
52444
52681
|
direction: 'rtl'
|
|
52445
52682
|
});
|
|
@@ -52468,19 +52705,19 @@ function isBlank(root) {
|
|
|
52468
52705
|
const style2 = editor.ew.getComputedStyle(firstChild);
|
|
52469
52706
|
marginTop = parseInt(style2.getPropertyValue('margin-top'), 10);
|
|
52470
52707
|
marginLeft = parseInt(style2.getPropertyValue('margin-left'), 10);
|
|
52471
|
-
(0,
|
|
52708
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
52472
52709
|
fontFamily: style2.getPropertyValue('font-family'),
|
|
52473
52710
|
fontSize: parseInt(style2.getPropertyValue('font-size'), 10),
|
|
52474
52711
|
lineHeight: style2.getPropertyValue('line-height')
|
|
52475
52712
|
});
|
|
52476
52713
|
} else {
|
|
52477
|
-
(0,
|
|
52714
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
52478
52715
|
fontFamily: style.getPropertyValue('font-family'),
|
|
52479
52716
|
fontSize: parseInt(style.getPropertyValue('font-size'), 10),
|
|
52480
52717
|
lineHeight: style.getPropertyValue('line-height')
|
|
52481
52718
|
});
|
|
52482
52719
|
}
|
|
52483
|
-
;(0,
|
|
52720
|
+
;(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
|
|
52484
52721
|
display: 'block',
|
|
52485
52722
|
textAlign: style.getPropertyValue('text-align'),
|
|
52486
52723
|
paddingTop: parseInt(styleEditor.paddingTop, 10) + 'px',
|
|
@@ -52520,7 +52757,7 @@ function isBlank(root) {
|
|
|
52520
52757
|
this.addEvents = ()=>{
|
|
52521
52758
|
const editor = this.j;
|
|
52522
52759
|
if (editor.o.useInputsPlaceholder && editor.element.hasAttribute('placeholder')) {
|
|
52523
|
-
this.placeholderElm.innerHTML = (0,
|
|
52760
|
+
this.placeholderElm.innerHTML = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attr)(editor.element, 'placeholder') || '';
|
|
52524
52761
|
}
|
|
52525
52762
|
editor.e.fire('placeholder', this.placeholderElm.innerHTML);
|
|
52526
52763
|
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);
|