jodit-pro 4.19.5 → 4.19.8
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 +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +382 -117
- package/es2015/jodit.min.js +9 -9
- 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.js +5 -5
- package/es2018/jodit.min.js +9 -9
- 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 +1 -1
- package/es2021/jodit.fat.min.js +7 -7
- package/es2021/jodit.js +274 -60
- package/es2021/jodit.min.js +19 -19
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +7 -7
- package/es2021.en/jodit.js +274 -60
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +692 -117
- package/es5/jodit.min.css +2 -2
- 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.19.
|
|
4
|
+
* Version: v4.19.8
|
|
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.19.
|
|
1819
|
+
*/ const APP_VERSION = "4.19.8";
|
|
1820
1820
|
// prettier-ignore
|
|
1821
1821
|
const ES = "es2015";
|
|
1822
1822
|
const IS_ES_MODERN = true;
|
|
@@ -1955,6 +1955,8 @@ const EMULATE_DBLCLICK_TIMEOUT = 300;
|
|
|
1955
1955
|
* ```
|
|
1956
1956
|
*/ const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
1957
1957
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
1958
|
+
// Connector answer code for a file name that is already taken (same as the HTTP status)
|
|
1959
|
+
const ERROR_CODE_CONFLICT = 409;
|
|
1958
1960
|
const IS_MAC = typeof globalWindow !== 'undefined' && /Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
1959
1961
|
const KEY_ALIASES = {
|
|
1960
1962
|
add: '+',
|
|
@@ -2038,6 +2040,7 @@ const PASSIVE_EVENTS = new Set([
|
|
|
2038
2040
|
/* harmony export */ "CLIPBOARD_ID", 0, /* binding */ CLIPBOARD_ID,
|
|
2039
2041
|
/* harmony export */ "COMMAND_KEYS", 0, /* binding */ COMMAND_KEYS,
|
|
2040
2042
|
/* harmony export */ "EMULATE_DBLCLICK_TIMEOUT", 0, /* binding */ EMULATE_DBLCLICK_TIMEOUT,
|
|
2043
|
+
/* harmony export */ "ERROR_CODE_CONFLICT", 0, /* binding */ ERROR_CODE_CONFLICT,
|
|
2041
2044
|
/* harmony export */ "ES", 0, /* binding */ ES,
|
|
2042
2045
|
/* harmony export */ "FAT_MODE", 0, /* binding */ FAT_MODE,
|
|
2043
2046
|
/* harmony export */ "HOMEPAGE", 0, /* binding */ HOMEPAGE,
|
|
@@ -6586,6 +6589,7 @@ function isAdjacent(prev, item) {
|
|
|
6586
6589
|
__webpack_require__.r(__webpack_exports__);
|
|
6587
6590
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6588
6591
|
/* harmony export */ $$: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.$$; },
|
|
6592
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.AnswerError; },
|
|
6589
6593
|
/* harmony export */ CamelCaseToKebabCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.CamelCaseToKebabCase; },
|
|
6590
6594
|
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
|
|
6591
6595
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
|
|
@@ -6599,6 +6603,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6599
6603
|
/* harmony export */ abort: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.abort; },
|
|
6600
6604
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alignElement; },
|
|
6601
6605
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alreadyLoadedList; },
|
|
6606
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.answer; },
|
|
6602
6607
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendScriptAsync; },
|
|
6603
6608
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendStyleAsync; },
|
|
6604
6609
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.applyStyles; },
|
|
@@ -8676,6 +8681,7 @@ const dataBind = (elm, key, value)=>{
|
|
|
8676
8681
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8677
8682
|
|
|
8678
8683
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8684
|
+
/* harmony export */ answer: function() { return /* binding */ answer; },
|
|
8679
8685
|
/* harmony export */ connection: function() { return /* binding */ connection; },
|
|
8680
8686
|
/* harmony export */ error: function() { return /* binding */ error; },
|
|
8681
8687
|
/* harmony export */ options: function() { return /* binding */ options; }
|
|
@@ -8699,6 +8705,9 @@ function connection(message) {
|
|
|
8699
8705
|
function options(message) {
|
|
8700
8706
|
return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.OptionsError(message);
|
|
8701
8707
|
}
|
|
8708
|
+
function answer(message, resp, code) {
|
|
8709
|
+
return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError(message, resp, code);
|
|
8710
|
+
}
|
|
8702
8711
|
|
|
8703
8712
|
|
|
8704
8713
|
/***/ }),
|
|
@@ -8718,6 +8727,31 @@ function options(message) {
|
|
|
8718
8727
|
}
|
|
8719
8728
|
|
|
8720
8729
|
|
|
8730
|
+
/***/ }),
|
|
8731
|
+
|
|
8732
|
+
/***/ 5311:
|
|
8733
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8734
|
+
|
|
8735
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8736
|
+
/* harmony export */ AnswerError: function() { return /* binding */ AnswerError; }
|
|
8737
|
+
/* harmony export */ });
|
|
8738
|
+
/*!
|
|
8739
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8740
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8741
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8742
|
+
*/ /**
|
|
8743
|
+
* @module helpers/utils
|
|
8744
|
+
*/ // A connector refused the request: the answer and its `data.code` stay reachable for the handler
|
|
8745
|
+
class AnswerError extends Error {
|
|
8746
|
+
constructor(message, answer, code){
|
|
8747
|
+
super(message);
|
|
8748
|
+
this.answer = answer;
|
|
8749
|
+
this.code = code;
|
|
8750
|
+
Object.setPrototypeOf(this, AnswerError.prototype);
|
|
8751
|
+
}
|
|
8752
|
+
}
|
|
8753
|
+
|
|
8754
|
+
|
|
8721
8755
|
/***/ }),
|
|
8722
8756
|
|
|
8723
8757
|
/***/ 86397:
|
|
@@ -8746,13 +8780,15 @@ function options(message) {
|
|
|
8746
8780
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8747
8781
|
|
|
8748
8782
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8749
|
-
/* harmony export */
|
|
8750
|
-
/* harmony export */
|
|
8783
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _answer_error_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
|
|
8784
|
+
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_2__.ConnectionError; },
|
|
8785
|
+
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_3__.OptionsError; },
|
|
8751
8786
|
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
8752
8787
|
/* harmony export */ });
|
|
8753
8788
|
/* harmony import */ var _abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
|
|
8754
|
-
/* harmony import */ var
|
|
8755
|
-
/* harmony import */ var
|
|
8789
|
+
/* harmony import */ var _answer_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5311);
|
|
8790
|
+
/* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86397);
|
|
8791
|
+
/* harmony import */ var _options_error_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(57865);
|
|
8756
8792
|
/*!
|
|
8757
8793
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8758
8794
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8764,6 +8800,7 @@ function options(message) {
|
|
|
8764
8800
|
|
|
8765
8801
|
|
|
8766
8802
|
|
|
8803
|
+
|
|
8767
8804
|
/***/ }),
|
|
8768
8805
|
|
|
8769
8806
|
/***/ 57865:
|
|
@@ -8792,9 +8829,11 @@ function options(message) {
|
|
|
8792
8829
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8793
8830
|
|
|
8794
8831
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8832
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
|
|
8795
8833
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
8796
8834
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.OptionsError; },
|
|
8797
8835
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
8836
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.answer; },
|
|
8798
8837
|
/* harmony export */ connection: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
8799
8838
|
/* harmony export */ error: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
8800
8839
|
/* harmony export */ options: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
@@ -9025,6 +9064,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9025
9064
|
|
|
9026
9065
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9027
9066
|
/* harmony export */ $$: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_27__.$$; },
|
|
9067
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.AnswerError; },
|
|
9028
9068
|
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigDeepFlatten; },
|
|
9029
9069
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigFlatten; },
|
|
9030
9070
|
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigMerge; },
|
|
@@ -9036,6 +9076,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
|
|
|
9036
9076
|
/* harmony export */ abort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.abort; },
|
|
9037
9077
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9038
9078
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.alreadyLoadedList; },
|
|
9079
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.answer; },
|
|
9039
9080
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendScriptAsync; },
|
|
9040
9081
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendStyleAsync; },
|
|
9041
9082
|
/* harmony export */ assert: function() { return /* reexport safe */ _assert_js__WEBPACK_IMPORTED_MODULE_2__.assert; },
|
|
@@ -9628,6 +9669,7 @@ const map = {};
|
|
|
9628
9669
|
/**
|
|
9629
9670
|
* Check if element is in view
|
|
9630
9671
|
*/ function inView(elm, root, doc) {
|
|
9672
|
+
var _a;
|
|
9631
9673
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
9632
9674
|
const top = rect.top, height = rect.height;
|
|
9633
9675
|
while(el && el !== root && el.parentNode){
|
|
@@ -9652,7 +9694,11 @@ const map = {};
|
|
|
9652
9694
|
// element scrolled above the top was wrongly reported as visible and never
|
|
9653
9695
|
// scrolled to. See #1279
|
|
9654
9696
|
const clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
|
|
9655
|
-
|
|
9697
|
+
// `scrollIntoView` keeps clear of the document's `scroll-padding`, which
|
|
9698
|
+
// is how a page allows for a fixed header or footer, so its edges are the
|
|
9699
|
+
// viewport's edges here too
|
|
9700
|
+
const style = (_a = doc.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(doc.documentElement), padding = (value = '')=>value.endsWith('%') ? parseFloat(value) * clientHeight / 100 : parseFloat(value) || 0, viewTop = padding(style === null || style === void 0 ? void 0 : style.scrollPaddingTop), viewBottom = clientHeight - padding(style === null || style === void 0 ? void 0 : style.scrollPaddingBottom);
|
|
9701
|
+
return (top + height <= viewBottom + SUBPIXEL_TOLERANCE || top <= viewTop) && top + height >= viewTop;
|
|
9656
9702
|
}
|
|
9657
9703
|
/**
|
|
9658
9704
|
* Scroll element into view if it is not in view
|
|
@@ -10718,6 +10764,23 @@ class Ajax {
|
|
|
10718
10764
|
} catch (_a) {}
|
|
10719
10765
|
return this;
|
|
10720
10766
|
}
|
|
10767
|
+
// A connector answers an error with its JSON envelope and a real HTTP status (403, 409): the body says why, the reason phrase does not
|
|
10768
|
+
__hasAnswerEnvelope() {
|
|
10769
|
+
const { xhr } = this;
|
|
10770
|
+
if (xhr.responseType && xhr.responseType !== 'text') {
|
|
10771
|
+
return false;
|
|
10772
|
+
}
|
|
10773
|
+
const text = xhr.responseText;
|
|
10774
|
+
if (!text || text[0] !== '{') {
|
|
10775
|
+
return false;
|
|
10776
|
+
}
|
|
10777
|
+
try {
|
|
10778
|
+
const answer = JSON.parse(text);
|
|
10779
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(answer) && 'success' in answer;
|
|
10780
|
+
} catch (_a) {
|
|
10781
|
+
return false;
|
|
10782
|
+
}
|
|
10783
|
+
}
|
|
10721
10784
|
send() {
|
|
10722
10785
|
this.__activated = true;
|
|
10723
10786
|
const { xhr, o } = this;
|
|
@@ -10754,7 +10817,7 @@ class Ajax {
|
|
|
10754
10817
|
var _a, _b;
|
|
10755
10818
|
(_b = (_a = this.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, 10);
|
|
10756
10819
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
10757
|
-
if (o.successStatuses.includes(xhr.status)) {
|
|
10820
|
+
if (o.successStatuses.includes(xhr.status) || this.__hasAnswerEnvelope()) {
|
|
10758
10821
|
onResolve();
|
|
10759
10822
|
} else if (xhr.statusText) {
|
|
10760
10823
|
this.__isFulfilled = true;
|
|
@@ -11951,19 +12014,22 @@ class Selection {
|
|
|
11951
12014
|
}
|
|
11952
12015
|
if (sel && sel.rangeCount) {
|
|
11953
12016
|
const range = sel.getRangeAt(0);
|
|
11954
|
-
|
|
12017
|
+
// A block has no first child outside itself to go by, and what's
|
|
12018
|
+
// left beside it would show as a line of its own
|
|
12019
|
+
const isBlock = _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(node), first = isBlock ? node : node.firstChild;
|
|
11955
12020
|
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
11956
12021
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeInsertNode(range, node);
|
|
11957
12022
|
} else {
|
|
11958
12023
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append(this.area, node);
|
|
11959
12024
|
}
|
|
11960
12025
|
[
|
|
11961
|
-
()=>
|
|
11962
|
-
()=>
|
|
12026
|
+
()=>first === null || first === void 0 ? void 0 : first.previousSibling,
|
|
12027
|
+
()=>first === null || first === void 0 ? void 0 : first.previousSibling,
|
|
11963
12028
|
()=>{
|
|
11964
12029
|
var _a;
|
|
11965
|
-
return (_a =
|
|
11966
|
-
}
|
|
12030
|
+
return (_a = first === null || first === void 0 ? void 0 : first.previousSibling) === null || _a === void 0 ? void 0 : _a.lastChild;
|
|
12031
|
+
},
|
|
12032
|
+
()=>isBlock ? node.nextSibling : null
|
|
11967
12033
|
].forEach((getChildNode)=>{
|
|
11968
12034
|
const childNode = getChildNode();
|
|
11969
12035
|
// Only a text node left with nothing in it by the split
|
|
@@ -28562,8 +28628,9 @@ class DataProvider {
|
|
|
28562
28628
|
this.progressHandler(100);
|
|
28563
28629
|
}).catch(()=>null);
|
|
28564
28630
|
return promise.then((resp)=>resp.json()).then((resp)=>{
|
|
28631
|
+
var _a;
|
|
28565
28632
|
if (resp && !this.isSuccess(resp)) {
|
|
28566
|
-
throw
|
|
28633
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.answer)(this.getMessage(resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code);
|
|
28567
28634
|
}
|
|
28568
28635
|
return resp;
|
|
28569
28636
|
});
|
|
@@ -28702,10 +28769,11 @@ class DataProvider {
|
|
|
28702
28769
|
*/ getPathByUrl(url) {
|
|
28703
28770
|
;(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
28704
28771
|
return this.get('getLocalFileByUrl').then((resp)=>{
|
|
28772
|
+
var _a;
|
|
28705
28773
|
if (this.isSuccess(resp)) {
|
|
28706
28774
|
return resp.data;
|
|
28707
28775
|
}
|
|
28708
|
-
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.
|
|
28776
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.answer)(this.getMessage(resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code);
|
|
28709
28777
|
});
|
|
28710
28778
|
}
|
|
28711
28779
|
/**
|
|
@@ -33629,6 +33697,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
33629
33697
|
defaultHandlerError (e) {
|
|
33630
33698
|
this.j.message.error(e.message);
|
|
33631
33699
|
},
|
|
33700
|
+
promptOnExists: true,
|
|
33701
|
+
promptOnExistsSuggestName (name) {
|
|
33702
|
+
return name;
|
|
33703
|
+
},
|
|
33632
33704
|
contentType (requestData) {
|
|
33633
33705
|
return this.ow.FormData !== undefined && typeof requestData !== 'string' ? false : 'application/x-www-form-urlencoded; charset=UTF-8';
|
|
33634
33706
|
}
|
|
@@ -33795,91 +33867,225 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
33795
33867
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33796
33868
|
/* harmony export */ sendFiles: function() { return /* binding */ sendFiles; }
|
|
33797
33869
|
/* harmony export */ });
|
|
33798
|
-
/* harmony import */ var
|
|
33799
|
-
/* harmony import */ var
|
|
33870
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
33871
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
33872
|
+
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
33873
|
+
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
33874
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71686);
|
|
33875
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76198);
|
|
33876
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33877
|
+
try {
|
|
33878
|
+
var info = gen[key](arg);
|
|
33879
|
+
var value = info.value;
|
|
33880
|
+
} catch (error) {
|
|
33881
|
+
reject(error);
|
|
33882
|
+
return;
|
|
33883
|
+
}
|
|
33884
|
+
if (info.done) resolve(value);
|
|
33885
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
33886
|
+
}
|
|
33887
|
+
function _async_to_generator(fn) {
|
|
33888
|
+
return function() {
|
|
33889
|
+
var self = this, args = arguments;
|
|
33890
|
+
return new Promise(function(resolve, reject) {
|
|
33891
|
+
var gen = fn.apply(self, args);
|
|
33892
|
+
function _next(value) {
|
|
33893
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33894
|
+
}
|
|
33895
|
+
function _throw(err) {
|
|
33896
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33897
|
+
}
|
|
33898
|
+
_next(undefined);
|
|
33899
|
+
});
|
|
33900
|
+
};
|
|
33901
|
+
}
|
|
33902
|
+
function _define_property(obj, key, value) {
|
|
33903
|
+
if (key in obj) {
|
|
33904
|
+
Object.defineProperty(obj, key, {
|
|
33905
|
+
value: value,
|
|
33906
|
+
enumerable: true,
|
|
33907
|
+
configurable: true,
|
|
33908
|
+
writable: true
|
|
33909
|
+
});
|
|
33910
|
+
} else obj[key] = value;
|
|
33911
|
+
return obj;
|
|
33912
|
+
}
|
|
33913
|
+
function _object_spread(target) {
|
|
33914
|
+
for(var i = 1; i < arguments.length; i++){
|
|
33915
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
33916
|
+
var ownKeys = Object.keys(source);
|
|
33917
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
33918
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
33919
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
33920
|
+
}));
|
|
33921
|
+
}
|
|
33922
|
+
ownKeys.forEach(function(key) {
|
|
33923
|
+
_define_property(target, key, source[key]);
|
|
33924
|
+
});
|
|
33925
|
+
}
|
|
33926
|
+
return target;
|
|
33927
|
+
}
|
|
33800
33928
|
/*!
|
|
33801
33929
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33802
33930
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
33803
33931
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
33804
|
-
*/
|
|
33932
|
+
*/ ;
|
|
33933
|
+
|
|
33934
|
+
|
|
33935
|
+
|
|
33936
|
+
|
|
33805
33937
|
|
|
33806
33938
|
/**
|
|
33807
33939
|
* Send files to server
|
|
33808
|
-
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
|
|
33820
|
-
|
|
33821
|
-
|
|
33822
|
-
|
|
33823
|
-
|
|
33824
|
-
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
|
|
33828
|
-
|
|
33829
|
-
|
|
33830
|
-
|
|
33831
|
-
|
|
33832
|
-
|
|
33833
|
-
|
|
33834
|
-
|
|
33835
|
-
|
|
33836
|
-
|
|
33837
|
-
|
|
33838
|
-
|
|
33839
|
-
|
|
33840
|
-
|
|
33841
|
-
|
|
33842
|
-
|
|
33843
|
-
|
|
33844
|
-
|
|
33845
|
-
|
|
33846
|
-
|
|
33847
|
-
|
|
33848
|
-
|
|
33849
|
-
|
|
33850
|
-
|
|
33851
|
-
|
|
33852
|
-
|
|
33853
|
-
|
|
33940
|
+
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
33941
|
+
retryOf) {
|
|
33942
|
+
return _async_to_generator(function*() {
|
|
33943
|
+
if (!files) {
|
|
33944
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
33945
|
+
}
|
|
33946
|
+
const { o } = uploader;
|
|
33947
|
+
let fileList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(files);
|
|
33948
|
+
if (!fileList.length) {
|
|
33949
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
33950
|
+
}
|
|
33951
|
+
let extraData = retryOf === null || retryOf === void 0 ? void 0 : retryOf.data;
|
|
33952
|
+
// Client-side validation hook — returning `false` aborts the upload, and it may hand back the files to send instead
|
|
33953
|
+
// See https://github.com/xdan/jodit/issues/1329
|
|
33954
|
+
if (!retryOf && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(o.beforeUpload)) {
|
|
33955
|
+
let plan;
|
|
33956
|
+
try {
|
|
33957
|
+
plan = yield o.beforeUpload.call(uploader, fileList);
|
|
33958
|
+
} catch (e) {
|
|
33959
|
+
(handlerError || o.defaultHandlerError).call(uploader, e);
|
|
33960
|
+
throw e;
|
|
33961
|
+
}
|
|
33962
|
+
if (plan === false) {
|
|
33963
|
+
const err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Upload canceled');
|
|
33964
|
+
(handlerError || o.defaultHandlerError).call(uploader, err);
|
|
33965
|
+
throw err;
|
|
33966
|
+
}
|
|
33967
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan)) {
|
|
33968
|
+
fileList = plan;
|
|
33969
|
+
} else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(plan) && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan.files)) {
|
|
33970
|
+
fileList = plan.files;
|
|
33971
|
+
extraData = plan.data;
|
|
33972
|
+
}
|
|
33973
|
+
if (!fileList.length) {
|
|
33974
|
+
return [];
|
|
33975
|
+
}
|
|
33976
|
+
}
|
|
33977
|
+
const promises = [];
|
|
33978
|
+
if (o.insertImageAsBase64URI) {
|
|
33979
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
33980
|
+
}
|
|
33981
|
+
fileList = fileList.filter((a)=>a);
|
|
33982
|
+
if (fileList.length) {
|
|
33983
|
+
const form = new FormData();
|
|
33984
|
+
form.append(o.pathVariableName, uploader.path);
|
|
33985
|
+
form.append('source', uploader.source);
|
|
33986
|
+
let file;
|
|
33987
|
+
for(let i = 0; i < fileList.length; i += 1){
|
|
33988
|
+
file = fileList[i];
|
|
33989
|
+
if (file) {
|
|
33990
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
33991
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
33992
|
+
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
33993
|
+
let newName = fileList[i].name || Math.random().toString().replace('.', '');
|
|
33994
|
+
if (!hasRealExtension && extension) {
|
|
33995
|
+
let extForReg = extension;
|
|
33996
|
+
if ([
|
|
33997
|
+
'jpeg',
|
|
33998
|
+
'jpg'
|
|
33999
|
+
].includes(extForReg)) {
|
|
34000
|
+
extForReg = 'jpeg|jpg';
|
|
34001
|
+
}
|
|
34002
|
+
const reEnd = new RegExp('.(' + extForReg + ')$', 'i');
|
|
34003
|
+
if (!reEnd.test(newName)) {
|
|
34004
|
+
newName += '.' + extension;
|
|
34005
|
+
}
|
|
33854
34006
|
}
|
|
34007
|
+
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
|
|
34008
|
+
form.append(key, iFile, name);
|
|
33855
34009
|
}
|
|
33856
|
-
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
|
|
33857
|
-
form.append(key, iFile, name);
|
|
33858
34010
|
}
|
|
33859
|
-
|
|
33860
|
-
|
|
33861
|
-
|
|
33862
|
-
|
|
33863
|
-
|
|
33864
|
-
|
|
33865
|
-
|
|
33866
|
-
}
|
|
33867
|
-
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
34011
|
+
if (process) {
|
|
34012
|
+
process(form);
|
|
34013
|
+
}
|
|
34014
|
+
if (o.data && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(o.data)) {
|
|
34015
|
+
Object.keys(o.data).forEach((key)=>{
|
|
34016
|
+
form.append(key, o.data[key]);
|
|
34017
|
+
});
|
|
34018
|
+
}
|
|
34019
|
+
if (extraData) {
|
|
34020
|
+
Object.keys(extraData).forEach((key)=>{
|
|
34021
|
+
form.append(key, extraData[key]);
|
|
34022
|
+
});
|
|
34023
|
+
}
|
|
34024
|
+
o.prepareData.call(uploader, form);
|
|
34025
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_4__.send)(uploader, form).then((resp)=>{
|
|
34026
|
+
if (o.isSuccess.call(uploader, resp)) {
|
|
34027
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34028
|
+
handler.call(uploader, o.process.call(uploader, resp));
|
|
34029
|
+
return resp;
|
|
34030
|
+
}
|
|
34031
|
+
const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_5__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
|
|
34032
|
+
var _a;
|
|
34033
|
+
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
34034
|
+
data: _object_spread({}, extraData, plan === null || plan === void 0 ? void 0 : plan.data)
|
|
34035
|
+
});
|
|
34036
|
+
});
|
|
34037
|
+
// A taken name is part of the upload, not a failure: ask for another one first
|
|
34038
|
+
if (err.code === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.ERROR_CODE_CONFLICT && o.promptOnExists) {
|
|
34039
|
+
return askAnotherName(uploader, err);
|
|
34040
|
+
}
|
|
34041
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
34042
|
+
handler.call(uploader, err);
|
|
33873
34043
|
return resp;
|
|
34044
|
+
}).then(()=>{
|
|
34045
|
+
uploader.j.events && uploader.j.e.fire('filesWereUploaded');
|
|
34046
|
+
}));
|
|
34047
|
+
}
|
|
34048
|
+
return Promise.all(promises);
|
|
34049
|
+
})();
|
|
34050
|
+
}
|
|
34051
|
+
function askAnotherName(uploader, err) {
|
|
34052
|
+
const { files } = err;
|
|
34053
|
+
// A batch is refused as a whole (the connector saved nothing) and the answer does not say which name is taken,
|
|
34054
|
+
// so the files go again one by one: the free ones are simply stored, the taken one answers 409 alone and gets its prompt
|
|
34055
|
+
if (files.length > 1) {
|
|
34056
|
+
return files.reduce((chain, file)=>chain.then(()=>err.retry({
|
|
34057
|
+
files: [
|
|
34058
|
+
file
|
|
34059
|
+
]
|
|
34060
|
+
})), Promise.resolve());
|
|
34061
|
+
}
|
|
34062
|
+
const [file] = files;
|
|
34063
|
+
const { j, o } = uploader;
|
|
34064
|
+
return new Promise((resolve)=>{
|
|
34065
|
+
let answered = false;
|
|
34066
|
+
// `Dlgs.prototype.dlg`: the uploader's view does not always carry the Dlgs trait
|
|
34067
|
+
const dialog = _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__.Prompt.call(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__.Dlgs.prototype.dlg.call(j, {
|
|
34068
|
+
closeOnClickOverlay: true
|
|
34069
|
+
}), j.i18n(err.message), j.i18n('Rename'), (newName)=>{
|
|
34070
|
+
newName = newName.trim();
|
|
34071
|
+
if (!newName) {
|
|
34072
|
+
return false;
|
|
33874
34073
|
}
|
|
33875
|
-
|
|
33876
|
-
|
|
33877
|
-
|
|
33878
|
-
|
|
33879
|
-
|
|
33880
|
-
|
|
33881
|
-
|
|
33882
|
-
|
|
34074
|
+
answered = true;
|
|
34075
|
+
resolve(err.retry({
|
|
34076
|
+
files: [
|
|
34077
|
+
new File([
|
|
34078
|
+
file
|
|
34079
|
+
], newName, {
|
|
34080
|
+
type: file.type
|
|
34081
|
+
})
|
|
34082
|
+
]
|
|
34083
|
+
}));
|
|
34084
|
+
}, j.i18n('Enter new name'), o.promptOnExistsSuggestName.call(uploader, file.name));
|
|
34085
|
+
dialog.e.on(dialog, 'afterClose', ()=>{
|
|
34086
|
+
!answered && resolve(undefined);
|
|
34087
|
+
});
|
|
34088
|
+
});
|
|
33883
34089
|
}
|
|
33884
34090
|
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
33885
34091
|
const readerPromises = [];
|
|
@@ -33909,7 +34115,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
33909
34115
|
name
|
|
33910
34116
|
]
|
|
33911
34117
|
};
|
|
33912
|
-
const handler = (0,
|
|
34118
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
33913
34119
|
handler.call(uploader, resp);
|
|
33914
34120
|
resolve(resp);
|
|
33915
34121
|
};
|
|
@@ -34022,6 +34228,32 @@ function send(uploader, data) {
|
|
|
34022
34228
|
/* harmony export */ ]);
|
|
34023
34229
|
|
|
34024
34230
|
|
|
34231
|
+
/***/ }),
|
|
34232
|
+
|
|
34233
|
+
/***/ 76198:
|
|
34234
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34235
|
+
|
|
34236
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34237
|
+
/* harmony export */ UploadError: function() { return /* binding */ UploadError; }
|
|
34238
|
+
/* harmony export */ });
|
|
34239
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89890);
|
|
34240
|
+
/*!
|
|
34241
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34242
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
34243
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
34244
|
+
*/
|
|
34245
|
+
// The connector refused these files: the handler can change the request and send it again
|
|
34246
|
+
class UploadError extends _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError {
|
|
34247
|
+
constructor(message, answer, files, retry){
|
|
34248
|
+
var _a;
|
|
34249
|
+
super(message, answer, (_a = answer.data) === null || _a === void 0 ? void 0 : _a.code);
|
|
34250
|
+
this.files = files;
|
|
34251
|
+
this.retry = retry;
|
|
34252
|
+
Object.setPrototypeOf(this, UploadError.prototype);
|
|
34253
|
+
}
|
|
34254
|
+
}
|
|
34255
|
+
|
|
34256
|
+
|
|
34025
34257
|
/***/ }),
|
|
34026
34258
|
|
|
34027
34259
|
/***/ 57380:
|
|
@@ -34034,9 +34266,10 @@ function send(uploader, data) {
|
|
|
34034
34266
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
34035
34267
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
34036
34268
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
34037
|
-
/* harmony import */ var
|
|
34038
|
-
/* harmony import */ var
|
|
34039
|
-
/* harmony import */ var
|
|
34269
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89890);
|
|
34270
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
34271
|
+
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(94122);
|
|
34272
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80536);
|
|
34040
34273
|
/*!
|
|
34041
34274
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34042
34275
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34048,6 +34281,7 @@ function send(uploader, data) {
|
|
|
34048
34281
|
|
|
34049
34282
|
|
|
34050
34283
|
|
|
34284
|
+
|
|
34051
34285
|
class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
|
|
34052
34286
|
get j() {
|
|
34053
34287
|
return this.jodit;
|
|
@@ -34103,14 +34337,14 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34103
34337
|
}
|
|
34104
34338
|
};
|
|
34105
34339
|
// send data on server
|
|
34106
|
-
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
34107
|
-
(0,
|
|
34340
|
+
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(cData)) {
|
|
34341
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
34108
34342
|
return false;
|
|
34109
34343
|
}
|
|
34110
34344
|
if (_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
34111
|
-
return (0,
|
|
34345
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.processOldBrowserDrag)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
34112
34346
|
}
|
|
34113
|
-
if ((0,
|
|
34347
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(cData)) {
|
|
34114
34348
|
const { items } = cData;
|
|
34115
34349
|
for(i = 0; i < items.length; i += 1){
|
|
34116
34350
|
if (items[i].kind === 'file' && items[i].type === 'image/png') {
|
|
@@ -34118,7 +34352,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34118
34352
|
if (file) {
|
|
34119
34353
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
34120
34354
|
extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
34121
|
-
(0,
|
|
34355
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, [
|
|
34122
34356
|
file
|
|
34123
34357
|
], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
34124
34358
|
}
|
|
@@ -34140,21 +34374,21 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34140
34374
|
self.j.e.on(form, 'dragend dragover dragenter dragleave drop', (e)=>{
|
|
34141
34375
|
e.preventDefault();
|
|
34142
34376
|
}).on(form, 'dragover', (event)=>{
|
|
34143
|
-
if ((0,
|
|
34377
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer) || (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(event.dataTransfer)) {
|
|
34144
34378
|
form.classList.add('jodit_drag_hover');
|
|
34145
34379
|
event.preventDefault();
|
|
34146
34380
|
}
|
|
34147
34381
|
}).on(form, 'dragend dragleave', (event)=>{
|
|
34148
34382
|
form.classList.remove('jodit_drag_hover');
|
|
34149
|
-
if ((0,
|
|
34383
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
34150
34384
|
event.preventDefault();
|
|
34151
34385
|
}
|
|
34152
34386
|
}).on(form, 'drop', (event)=>{
|
|
34153
34387
|
form.classList.remove('jodit_drag_hover');
|
|
34154
|
-
if ((0,
|
|
34388
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
34155
34389
|
event.preventDefault();
|
|
34156
34390
|
event.stopImmediatePropagation();
|
|
34157
|
-
(0,
|
|
34391
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
34158
34392
|
}
|
|
34159
34393
|
});
|
|
34160
34394
|
const inputFile = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(form, (node)=>{
|
|
@@ -34163,7 +34397,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34163
34397
|
});
|
|
34164
34398
|
if (inputFile) {
|
|
34165
34399
|
self.j.e.on(inputFile, 'change', ()=>{
|
|
34166
|
-
(0,
|
|
34400
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, inputFile.files, handlerSuccess, handlerError).then(()=>{
|
|
34167
34401
|
inputFile.value = '';
|
|
34168
34402
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
34169
34403
|
inputFile.type = '';
|
|
@@ -34178,26 +34412,41 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34178
34412
|
*/ uploadRemoteImage(url, handlerSuccess, handlerError) {
|
|
34179
34413
|
const uploader = this, { o } = uploader;
|
|
34180
34414
|
const handlerE = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
34181
|
-
(0,
|
|
34415
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.send)(uploader, {
|
|
34182
34416
|
action: 'fileUploadRemote',
|
|
34183
34417
|
url
|
|
34184
34418
|
}).then((resp)=>{
|
|
34419
|
+
var _a;
|
|
34185
34420
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34186
34421
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34187
34422
|
handler.call(uploader, o.process.call(uploader, resp));
|
|
34188
34423
|
return;
|
|
34189
34424
|
}
|
|
34190
|
-
handlerE.call(uploader, (0,
|
|
34425
|
+
handlerE.call(uploader, (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.answer)(o.getMessage.call(uploader, resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code));
|
|
34191
34426
|
}).catch((e)=>handlerE.call(uploader, e));
|
|
34192
34427
|
}
|
|
34193
34428
|
upload(files) {
|
|
34194
34429
|
return this.async.promise((resolve, reject)=>{
|
|
34195
|
-
|
|
34430
|
+
let settled = false;
|
|
34431
|
+
const settle = (end)=>(value)=>{
|
|
34432
|
+
settled = true;
|
|
34433
|
+
end(value);
|
|
34434
|
+
};
|
|
34435
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(this, files, settle(resolve), settle(reject)).then(()=>{
|
|
34436
|
+
// `beforeUpload` kept no file, so no handler ran
|
|
34437
|
+
if (!settled) {
|
|
34438
|
+
resolve({
|
|
34439
|
+
baseurl: '',
|
|
34440
|
+
files: [],
|
|
34441
|
+
isImages: []
|
|
34442
|
+
});
|
|
34443
|
+
}
|
|
34444
|
+
}, settle(reject));
|
|
34196
34445
|
});
|
|
34197
34446
|
}
|
|
34198
34447
|
destruct() {
|
|
34199
34448
|
this.setStatus(_core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.STATUSES.beforeDestruct);
|
|
34200
|
-
const instances =
|
|
34449
|
+
const instances = _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.ajaxInstances.get(this);
|
|
34201
34450
|
if (instances) {
|
|
34202
34451
|
instances.forEach((ajax)=>{
|
|
34203
34452
|
try {
|
|
@@ -34212,7 +34461,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34212
34461
|
super(editor);
|
|
34213
34462
|
this.path = '';
|
|
34214
34463
|
this.source = 'default';
|
|
34215
|
-
this.options = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(
|
|
34464
|
+
this.options = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.defaultOptions.uploader, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isJoditObject)(editor) ? editor.o.uploader : {}));
|
|
34216
34465
|
}
|
|
34217
34466
|
}
|
|
34218
34467
|
|
|
@@ -40947,7 +41196,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('enter', enter);
|
|
|
40947
41196
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(br, clone);
|
|
40948
41197
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(clone, fake);
|
|
40949
41198
|
}
|
|
40950
|
-
|
|
41199
|
+
// The new `br` ends the line above, so it takes something on the
|
|
41200
|
+
// caret's own line to bring that line into view. Chrome won't scroll to
|
|
41201
|
+
// an inline element without width, but it will to a `br`
|
|
41202
|
+
const mark = br.cloneNode();
|
|
41203
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(fake, mark);
|
|
41204
|
+
(0,_core_helpers_utils_scroll_into_view_js__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(mark, jodit.editor, jodit.ed);
|
|
41205
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(mark);
|
|
40951
41206
|
return true;
|
|
40952
41207
|
}
|
|
40953
41208
|
return false;
|
|
@@ -41619,6 +41874,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.font = {
|
|
|
41619
41874
|
}
|
|
41620
41875
|
};
|
|
41621
41876
|
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('font', _icons_font_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]).set('fontsize', _icons_fontsize_svg_js__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
|
41877
|
+
const hadSelection = new WeakSet();
|
|
41622
41878
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
41623
41879
|
command: 'fontsize',
|
|
41624
41880
|
data: {
|
|
@@ -41655,17 +41911,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
|
41655
41911
|
tooltip: 'Font size',
|
|
41656
41912
|
value: (editor, button)=>{
|
|
41657
41913
|
var _a;
|
|
41658
|
-
const current = editor.s.current();
|
|
41659
|
-
|
|
41660
|
-
|
|
41661
|
-
|
|
41662
|
-
|
|
41663
|
-
if (
|
|
41914
|
+
const current = editor.s.current(), box = current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isElement, editor.editor), control = button.control;
|
|
41915
|
+
// A select names its value, so until there is a selection it shows the
|
|
41916
|
+
// editor's own size, and afterwards the size of the last one
|
|
41917
|
+
if (box) {
|
|
41918
|
+
hadSelection.add(button);
|
|
41919
|
+
} else if (control.component !== 'select' || hadSelection.has(button)) {
|
|
41664
41920
|
return;
|
|
41665
41921
|
}
|
|
41666
|
-
const control = button.control;
|
|
41667
41922
|
const cssKey = ((_a = control.data) === null || _a === void 0 ? void 0 : _a.cssRule) || 'font-size';
|
|
41668
|
-
const value = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__.css)(box, cssKey);
|
|
41923
|
+
const value = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__.css)(box || editor.editor, cssKey);
|
|
41669
41924
|
if (cssKey === 'font-size') {
|
|
41670
41925
|
const numValue = parseFloat(value.toString());
|
|
41671
41926
|
if (editor.o.defaultFontSizePoints === 'pt') {
|
|
@@ -41697,7 +41952,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
|
41697
41952
|
return keySet.has(normalize(value.toString()));
|
|
41698
41953
|
}
|
|
41699
41954
|
};
|
|
41700
|
-
const hadSelection = new WeakSet();
|
|
41701
41955
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.font = _object_spread_props(_object_spread({}, _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize), {
|
|
41702
41956
|
command: 'fontname',
|
|
41703
41957
|
textTemplate: (j, value)=>{
|
|
@@ -42852,6 +43106,17 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.commandToHotkeys = {
|
|
|
42852
43106
|
40: 'down',
|
|
42853
43107
|
45: 'insert',
|
|
42854
43108
|
46: 'del',
|
|
43109
|
+
// With Shift the digit keys send other characters: `&` for 7
|
|
43110
|
+
48: '0',
|
|
43111
|
+
49: '1',
|
|
43112
|
+
50: '2',
|
|
43113
|
+
51: '3',
|
|
43114
|
+
52: '4',
|
|
43115
|
+
53: '5',
|
|
43116
|
+
54: '6',
|
|
43117
|
+
55: '7',
|
|
43118
|
+
56: '8',
|
|
43119
|
+
57: '9',
|
|
42855
43120
|
59: ';',
|
|
42856
43121
|
61: '=',
|
|
42857
43122
|
91: 'meta',
|