jodit-pro 4.19.5 → 4.19.6
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 +4 -4
- package/es2015/jodit.js +342 -101
- package/es2015/jodit.min.js +8 -8
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/chart/chart.css +1 -1
- package/es2015/plugins/chart/chart.js +1 -1
- package/es2015/plugins/chart/chart.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/math/math.css +1 -1
- package/es2015/plugins/math/math.js +1 -1
- package/es2015/plugins/math/math.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +4 -4
- package/es2018/jodit.min.js +8 -8
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/chart/chart.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/math/math.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +5 -5
- package/es2021/jodit.js +234 -44
- 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 +5 -5
- package/es2021.en/jodit.js +234 -44
- package/es2021.en/jodit.min.js +5 -5
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/chart/chart.css +1 -1
- package/es2021.en/plugins/chart/chart.js +1 -1
- package/es2021.en/plugins/chart/chart.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/math/math.css +1 -1
- package/es2021.en/plugins/math/math.js +1 -1
- package/es2021.en/plugins/math/math.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +648 -102
- 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.6
|
|
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.6";
|
|
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; },
|
|
@@ -10718,6 +10759,23 @@ class Ajax {
|
|
|
10718
10759
|
} catch (_a) {}
|
|
10719
10760
|
return this;
|
|
10720
10761
|
}
|
|
10762
|
+
// 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
|
|
10763
|
+
__hasAnswerEnvelope() {
|
|
10764
|
+
const { xhr } = this;
|
|
10765
|
+
if (xhr.responseType && xhr.responseType !== 'text') {
|
|
10766
|
+
return false;
|
|
10767
|
+
}
|
|
10768
|
+
const text = xhr.responseText;
|
|
10769
|
+
if (!text || text[0] !== '{') {
|
|
10770
|
+
return false;
|
|
10771
|
+
}
|
|
10772
|
+
try {
|
|
10773
|
+
const answer = JSON.parse(text);
|
|
10774
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(answer) && 'success' in answer;
|
|
10775
|
+
} catch (_a) {
|
|
10776
|
+
return false;
|
|
10777
|
+
}
|
|
10778
|
+
}
|
|
10721
10779
|
send() {
|
|
10722
10780
|
this.__activated = true;
|
|
10723
10781
|
const { xhr, o } = this;
|
|
@@ -10754,7 +10812,7 @@ class Ajax {
|
|
|
10754
10812
|
var _a, _b;
|
|
10755
10813
|
(_b = (_a = this.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, 10);
|
|
10756
10814
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
10757
|
-
if (o.successStatuses.includes(xhr.status)) {
|
|
10815
|
+
if (o.successStatuses.includes(xhr.status) || this.__hasAnswerEnvelope()) {
|
|
10758
10816
|
onResolve();
|
|
10759
10817
|
} else if (xhr.statusText) {
|
|
10760
10818
|
this.__isFulfilled = true;
|
|
@@ -28562,8 +28620,9 @@ class DataProvider {
|
|
|
28562
28620
|
this.progressHandler(100);
|
|
28563
28621
|
}).catch(()=>null);
|
|
28564
28622
|
return promise.then((resp)=>resp.json()).then((resp)=>{
|
|
28623
|
+
var _a;
|
|
28565
28624
|
if (resp && !this.isSuccess(resp)) {
|
|
28566
|
-
throw
|
|
28625
|
+
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
28626
|
}
|
|
28568
28627
|
return resp;
|
|
28569
28628
|
});
|
|
@@ -28702,10 +28761,11 @@ class DataProvider {
|
|
|
28702
28761
|
*/ getPathByUrl(url) {
|
|
28703
28762
|
;(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
28704
28763
|
return this.get('getLocalFileByUrl').then((resp)=>{
|
|
28764
|
+
var _a;
|
|
28705
28765
|
if (this.isSuccess(resp)) {
|
|
28706
28766
|
return resp.data;
|
|
28707
28767
|
}
|
|
28708
|
-
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.
|
|
28768
|
+
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
28769
|
});
|
|
28710
28770
|
}
|
|
28711
28771
|
/**
|
|
@@ -33629,6 +33689,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
33629
33689
|
defaultHandlerError (e) {
|
|
33630
33690
|
this.j.message.error(e.message);
|
|
33631
33691
|
},
|
|
33692
|
+
promptOnExists: true,
|
|
33693
|
+
promptOnExistsSuggestName (name) {
|
|
33694
|
+
return name;
|
|
33695
|
+
},
|
|
33632
33696
|
contentType (requestData) {
|
|
33633
33697
|
return this.ow.FormData !== undefined && typeof requestData !== 'string' ? false : 'application/x-www-form-urlencoded; charset=UTF-8';
|
|
33634
33698
|
}
|
|
@@ -33795,91 +33859,225 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
33795
33859
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33796
33860
|
/* harmony export */ sendFiles: function() { return /* binding */ sendFiles; }
|
|
33797
33861
|
/* harmony export */ });
|
|
33798
|
-
/* harmony import */ var
|
|
33799
|
-
/* harmony import */ var
|
|
33862
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
33863
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
33864
|
+
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
33865
|
+
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
33866
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71686);
|
|
33867
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76198);
|
|
33868
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33869
|
+
try {
|
|
33870
|
+
var info = gen[key](arg);
|
|
33871
|
+
var value = info.value;
|
|
33872
|
+
} catch (error) {
|
|
33873
|
+
reject(error);
|
|
33874
|
+
return;
|
|
33875
|
+
}
|
|
33876
|
+
if (info.done) resolve(value);
|
|
33877
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
33878
|
+
}
|
|
33879
|
+
function _async_to_generator(fn) {
|
|
33880
|
+
return function() {
|
|
33881
|
+
var self = this, args = arguments;
|
|
33882
|
+
return new Promise(function(resolve, reject) {
|
|
33883
|
+
var gen = fn.apply(self, args);
|
|
33884
|
+
function _next(value) {
|
|
33885
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33886
|
+
}
|
|
33887
|
+
function _throw(err) {
|
|
33888
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33889
|
+
}
|
|
33890
|
+
_next(undefined);
|
|
33891
|
+
});
|
|
33892
|
+
};
|
|
33893
|
+
}
|
|
33894
|
+
function _define_property(obj, key, value) {
|
|
33895
|
+
if (key in obj) {
|
|
33896
|
+
Object.defineProperty(obj, key, {
|
|
33897
|
+
value: value,
|
|
33898
|
+
enumerable: true,
|
|
33899
|
+
configurable: true,
|
|
33900
|
+
writable: true
|
|
33901
|
+
});
|
|
33902
|
+
} else obj[key] = value;
|
|
33903
|
+
return obj;
|
|
33904
|
+
}
|
|
33905
|
+
function _object_spread(target) {
|
|
33906
|
+
for(var i = 1; i < arguments.length; i++){
|
|
33907
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
33908
|
+
var ownKeys = Object.keys(source);
|
|
33909
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
33910
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
33911
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
33912
|
+
}));
|
|
33913
|
+
}
|
|
33914
|
+
ownKeys.forEach(function(key) {
|
|
33915
|
+
_define_property(target, key, source[key]);
|
|
33916
|
+
});
|
|
33917
|
+
}
|
|
33918
|
+
return target;
|
|
33919
|
+
}
|
|
33800
33920
|
/*!
|
|
33801
33921
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33802
33922
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
33803
33923
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
33804
|
-
*/
|
|
33924
|
+
*/ ;
|
|
33925
|
+
|
|
33926
|
+
|
|
33927
|
+
|
|
33928
|
+
|
|
33805
33929
|
|
|
33806
33930
|
/**
|
|
33807
33931
|
* 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
|
-
|
|
33932
|
+
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
33933
|
+
retryOf) {
|
|
33934
|
+
return _async_to_generator(function*() {
|
|
33935
|
+
if (!files) {
|
|
33936
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
33937
|
+
}
|
|
33938
|
+
const { o } = uploader;
|
|
33939
|
+
let fileList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(files);
|
|
33940
|
+
if (!fileList.length) {
|
|
33941
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
33942
|
+
}
|
|
33943
|
+
let extraData = retryOf === null || retryOf === void 0 ? void 0 : retryOf.data;
|
|
33944
|
+
// Client-side validation hook — returning `false` aborts the upload, and it may hand back the files to send instead
|
|
33945
|
+
// See https://github.com/xdan/jodit/issues/1329
|
|
33946
|
+
if (!retryOf && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(o.beforeUpload)) {
|
|
33947
|
+
let plan;
|
|
33948
|
+
try {
|
|
33949
|
+
plan = yield o.beforeUpload.call(uploader, fileList);
|
|
33950
|
+
} catch (e) {
|
|
33951
|
+
(handlerError || o.defaultHandlerError).call(uploader, e);
|
|
33952
|
+
throw e;
|
|
33953
|
+
}
|
|
33954
|
+
if (plan === false) {
|
|
33955
|
+
const err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Upload canceled');
|
|
33956
|
+
(handlerError || o.defaultHandlerError).call(uploader, err);
|
|
33957
|
+
throw err;
|
|
33958
|
+
}
|
|
33959
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan)) {
|
|
33960
|
+
fileList = plan;
|
|
33961
|
+
} 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)) {
|
|
33962
|
+
fileList = plan.files;
|
|
33963
|
+
extraData = plan.data;
|
|
33964
|
+
}
|
|
33965
|
+
if (!fileList.length) {
|
|
33966
|
+
return [];
|
|
33967
|
+
}
|
|
33968
|
+
}
|
|
33969
|
+
const promises = [];
|
|
33970
|
+
if (o.insertImageAsBase64URI) {
|
|
33971
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
33972
|
+
}
|
|
33973
|
+
fileList = fileList.filter((a)=>a);
|
|
33974
|
+
if (fileList.length) {
|
|
33975
|
+
const form = new FormData();
|
|
33976
|
+
form.append(o.pathVariableName, uploader.path);
|
|
33977
|
+
form.append('source', uploader.source);
|
|
33978
|
+
let file;
|
|
33979
|
+
for(let i = 0; i < fileList.length; i += 1){
|
|
33980
|
+
file = fileList[i];
|
|
33981
|
+
if (file) {
|
|
33982
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
33983
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
33984
|
+
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
33985
|
+
let newName = fileList[i].name || Math.random().toString().replace('.', '');
|
|
33986
|
+
if (!hasRealExtension && extension) {
|
|
33987
|
+
let extForReg = extension;
|
|
33988
|
+
if ([
|
|
33989
|
+
'jpeg',
|
|
33990
|
+
'jpg'
|
|
33991
|
+
].includes(extForReg)) {
|
|
33992
|
+
extForReg = 'jpeg|jpg';
|
|
33993
|
+
}
|
|
33994
|
+
const reEnd = new RegExp('.(' + extForReg + ')$', 'i');
|
|
33995
|
+
if (!reEnd.test(newName)) {
|
|
33996
|
+
newName += '.' + extension;
|
|
33997
|
+
}
|
|
33854
33998
|
}
|
|
33999
|
+
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
|
|
34000
|
+
form.append(key, iFile, name);
|
|
33855
34001
|
}
|
|
33856
|
-
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
|
|
33857
|
-
form.append(key, iFile, name);
|
|
33858
34002
|
}
|
|
33859
|
-
|
|
33860
|
-
|
|
33861
|
-
|
|
33862
|
-
|
|
33863
|
-
|
|
33864
|
-
|
|
33865
|
-
|
|
33866
|
-
}
|
|
33867
|
-
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
34003
|
+
if (process) {
|
|
34004
|
+
process(form);
|
|
34005
|
+
}
|
|
34006
|
+
if (o.data && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(o.data)) {
|
|
34007
|
+
Object.keys(o.data).forEach((key)=>{
|
|
34008
|
+
form.append(key, o.data[key]);
|
|
34009
|
+
});
|
|
34010
|
+
}
|
|
34011
|
+
if (extraData) {
|
|
34012
|
+
Object.keys(extraData).forEach((key)=>{
|
|
34013
|
+
form.append(key, extraData[key]);
|
|
34014
|
+
});
|
|
34015
|
+
}
|
|
34016
|
+
o.prepareData.call(uploader, form);
|
|
34017
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_4__.send)(uploader, form).then((resp)=>{
|
|
34018
|
+
if (o.isSuccess.call(uploader, resp)) {
|
|
34019
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34020
|
+
handler.call(uploader, o.process.call(uploader, resp));
|
|
34021
|
+
return resp;
|
|
34022
|
+
}
|
|
34023
|
+
const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_5__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
|
|
34024
|
+
var _a;
|
|
34025
|
+
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
34026
|
+
data: _object_spread({}, extraData, plan === null || plan === void 0 ? void 0 : plan.data)
|
|
34027
|
+
});
|
|
34028
|
+
});
|
|
34029
|
+
// A taken name is part of the upload, not a failure: ask for another one first
|
|
34030
|
+
if (err.code === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.ERROR_CODE_CONFLICT && o.promptOnExists) {
|
|
34031
|
+
return askAnotherName(uploader, err);
|
|
34032
|
+
}
|
|
34033
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
34034
|
+
handler.call(uploader, err);
|
|
33873
34035
|
return resp;
|
|
34036
|
+
}).then(()=>{
|
|
34037
|
+
uploader.j.events && uploader.j.e.fire('filesWereUploaded');
|
|
34038
|
+
}));
|
|
34039
|
+
}
|
|
34040
|
+
return Promise.all(promises);
|
|
34041
|
+
})();
|
|
34042
|
+
}
|
|
34043
|
+
function askAnotherName(uploader, err) {
|
|
34044
|
+
const { files } = err;
|
|
34045
|
+
// A batch is refused as a whole (the connector saved nothing) and the answer does not say which name is taken,
|
|
34046
|
+
// so the files go again one by one: the free ones are simply stored, the taken one answers 409 alone and gets its prompt
|
|
34047
|
+
if (files.length > 1) {
|
|
34048
|
+
return files.reduce((chain, file)=>chain.then(()=>err.retry({
|
|
34049
|
+
files: [
|
|
34050
|
+
file
|
|
34051
|
+
]
|
|
34052
|
+
})), Promise.resolve());
|
|
34053
|
+
}
|
|
34054
|
+
const [file] = files;
|
|
34055
|
+
const { j, o } = uploader;
|
|
34056
|
+
return new Promise((resolve)=>{
|
|
34057
|
+
let answered = false;
|
|
34058
|
+
// `Dlgs.prototype.dlg`: the uploader's view does not always carry the Dlgs trait
|
|
34059
|
+
const dialog = _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__.Prompt.call(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__.Dlgs.prototype.dlg.call(j, {
|
|
34060
|
+
closeOnClickOverlay: true
|
|
34061
|
+
}), j.i18n(err.message), j.i18n('Rename'), (newName)=>{
|
|
34062
|
+
newName = newName.trim();
|
|
34063
|
+
if (!newName) {
|
|
34064
|
+
return false;
|
|
33874
34065
|
}
|
|
33875
|
-
|
|
33876
|
-
|
|
33877
|
-
|
|
33878
|
-
|
|
33879
|
-
|
|
33880
|
-
|
|
33881
|
-
|
|
33882
|
-
|
|
34066
|
+
answered = true;
|
|
34067
|
+
resolve(err.retry({
|
|
34068
|
+
files: [
|
|
34069
|
+
new File([
|
|
34070
|
+
file
|
|
34071
|
+
], newName, {
|
|
34072
|
+
type: file.type
|
|
34073
|
+
})
|
|
34074
|
+
]
|
|
34075
|
+
}));
|
|
34076
|
+
}, j.i18n('Enter new name'), o.promptOnExistsSuggestName.call(uploader, file.name));
|
|
34077
|
+
dialog.e.on(dialog, 'afterClose', ()=>{
|
|
34078
|
+
!answered && resolve(undefined);
|
|
34079
|
+
});
|
|
34080
|
+
});
|
|
33883
34081
|
}
|
|
33884
34082
|
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
33885
34083
|
const readerPromises = [];
|
|
@@ -33909,7 +34107,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
33909
34107
|
name
|
|
33910
34108
|
]
|
|
33911
34109
|
};
|
|
33912
|
-
const handler = (0,
|
|
34110
|
+
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
33913
34111
|
handler.call(uploader, resp);
|
|
33914
34112
|
resolve(resp);
|
|
33915
34113
|
};
|
|
@@ -34022,6 +34220,32 @@ function send(uploader, data) {
|
|
|
34022
34220
|
/* harmony export */ ]);
|
|
34023
34221
|
|
|
34024
34222
|
|
|
34223
|
+
/***/ }),
|
|
34224
|
+
|
|
34225
|
+
/***/ 76198:
|
|
34226
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
34227
|
+
|
|
34228
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34229
|
+
/* harmony export */ UploadError: function() { return /* binding */ UploadError; }
|
|
34230
|
+
/* harmony export */ });
|
|
34231
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89890);
|
|
34232
|
+
/*!
|
|
34233
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34234
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
34235
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
34236
|
+
*/
|
|
34237
|
+
// The connector refused these files: the handler can change the request and send it again
|
|
34238
|
+
class UploadError extends _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError {
|
|
34239
|
+
constructor(message, answer, files, retry){
|
|
34240
|
+
var _a;
|
|
34241
|
+
super(message, answer, (_a = answer.data) === null || _a === void 0 ? void 0 : _a.code);
|
|
34242
|
+
this.files = files;
|
|
34243
|
+
this.retry = retry;
|
|
34244
|
+
Object.setPrototypeOf(this, UploadError.prototype);
|
|
34245
|
+
}
|
|
34246
|
+
}
|
|
34247
|
+
|
|
34248
|
+
|
|
34025
34249
|
/***/ }),
|
|
34026
34250
|
|
|
34027
34251
|
/***/ 57380:
|
|
@@ -34034,9 +34258,10 @@ function send(uploader, data) {
|
|
|
34034
34258
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
34035
34259
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
34036
34260
|
/* 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
|
|
34261
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89890);
|
|
34262
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
34263
|
+
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(94122);
|
|
34264
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80536);
|
|
34040
34265
|
/*!
|
|
34041
34266
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34042
34267
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34048,6 +34273,7 @@ function send(uploader, data) {
|
|
|
34048
34273
|
|
|
34049
34274
|
|
|
34050
34275
|
|
|
34276
|
+
|
|
34051
34277
|
class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
|
|
34052
34278
|
get j() {
|
|
34053
34279
|
return this.jodit;
|
|
@@ -34103,14 +34329,14 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34103
34329
|
}
|
|
34104
34330
|
};
|
|
34105
34331
|
// send data on server
|
|
34106
|
-
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
34107
|
-
(0,
|
|
34332
|
+
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(cData)) {
|
|
34333
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
34108
34334
|
return false;
|
|
34109
34335
|
}
|
|
34110
34336
|
if (_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
34111
|
-
return (0,
|
|
34337
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.processOldBrowserDrag)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
34112
34338
|
}
|
|
34113
|
-
if ((0,
|
|
34339
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(cData)) {
|
|
34114
34340
|
const { items } = cData;
|
|
34115
34341
|
for(i = 0; i < items.length; i += 1){
|
|
34116
34342
|
if (items[i].kind === 'file' && items[i].type === 'image/png') {
|
|
@@ -34118,7 +34344,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34118
34344
|
if (file) {
|
|
34119
34345
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
34120
34346
|
extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
34121
|
-
(0,
|
|
34347
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, [
|
|
34122
34348
|
file
|
|
34123
34349
|
], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
34124
34350
|
}
|
|
@@ -34140,21 +34366,21 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34140
34366
|
self.j.e.on(form, 'dragend dragover dragenter dragleave drop', (e)=>{
|
|
34141
34367
|
e.preventDefault();
|
|
34142
34368
|
}).on(form, 'dragover', (event)=>{
|
|
34143
|
-
if ((0,
|
|
34369
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer) || (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(event.dataTransfer)) {
|
|
34144
34370
|
form.classList.add('jodit_drag_hover');
|
|
34145
34371
|
event.preventDefault();
|
|
34146
34372
|
}
|
|
34147
34373
|
}).on(form, 'dragend dragleave', (event)=>{
|
|
34148
34374
|
form.classList.remove('jodit_drag_hover');
|
|
34149
|
-
if ((0,
|
|
34375
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
34150
34376
|
event.preventDefault();
|
|
34151
34377
|
}
|
|
34152
34378
|
}).on(form, 'drop', (event)=>{
|
|
34153
34379
|
form.classList.remove('jodit_drag_hover');
|
|
34154
|
-
if ((0,
|
|
34380
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
34155
34381
|
event.preventDefault();
|
|
34156
34382
|
event.stopImmediatePropagation();
|
|
34157
|
-
(0,
|
|
34383
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
34158
34384
|
}
|
|
34159
34385
|
});
|
|
34160
34386
|
const inputFile = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(form, (node)=>{
|
|
@@ -34163,7 +34389,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34163
34389
|
});
|
|
34164
34390
|
if (inputFile) {
|
|
34165
34391
|
self.j.e.on(inputFile, 'change', ()=>{
|
|
34166
|
-
(0,
|
|
34392
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, inputFile.files, handlerSuccess, handlerError).then(()=>{
|
|
34167
34393
|
inputFile.value = '';
|
|
34168
34394
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
34169
34395
|
inputFile.type = '';
|
|
@@ -34178,26 +34404,41 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34178
34404
|
*/ uploadRemoteImage(url, handlerSuccess, handlerError) {
|
|
34179
34405
|
const uploader = this, { o } = uploader;
|
|
34180
34406
|
const handlerE = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
34181
|
-
(0,
|
|
34407
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.send)(uploader, {
|
|
34182
34408
|
action: 'fileUploadRemote',
|
|
34183
34409
|
url
|
|
34184
34410
|
}).then((resp)=>{
|
|
34411
|
+
var _a;
|
|
34185
34412
|
if (o.isSuccess.call(uploader, resp)) {
|
|
34186
34413
|
const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
34187
34414
|
handler.call(uploader, o.process.call(uploader, resp));
|
|
34188
34415
|
return;
|
|
34189
34416
|
}
|
|
34190
|
-
handlerE.call(uploader, (0,
|
|
34417
|
+
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
34418
|
}).catch((e)=>handlerE.call(uploader, e));
|
|
34192
34419
|
}
|
|
34193
34420
|
upload(files) {
|
|
34194
34421
|
return this.async.promise((resolve, reject)=>{
|
|
34195
|
-
|
|
34422
|
+
let settled = false;
|
|
34423
|
+
const settle = (end)=>(value)=>{
|
|
34424
|
+
settled = true;
|
|
34425
|
+
end(value);
|
|
34426
|
+
};
|
|
34427
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(this, files, settle(resolve), settle(reject)).then(()=>{
|
|
34428
|
+
// `beforeUpload` kept no file, so no handler ran
|
|
34429
|
+
if (!settled) {
|
|
34430
|
+
resolve({
|
|
34431
|
+
baseurl: '',
|
|
34432
|
+
files: [],
|
|
34433
|
+
isImages: []
|
|
34434
|
+
});
|
|
34435
|
+
}
|
|
34436
|
+
}, settle(reject));
|
|
34196
34437
|
});
|
|
34197
34438
|
}
|
|
34198
34439
|
destruct() {
|
|
34199
34440
|
this.setStatus(_core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.STATUSES.beforeDestruct);
|
|
34200
|
-
const instances =
|
|
34441
|
+
const instances = _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.ajaxInstances.get(this);
|
|
34201
34442
|
if (instances) {
|
|
34202
34443
|
instances.forEach((ajax)=>{
|
|
34203
34444
|
try {
|
|
@@ -34212,7 +34453,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
|
|
|
34212
34453
|
super(editor);
|
|
34213
34454
|
this.path = '';
|
|
34214
34455
|
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)(
|
|
34456
|
+
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
34457
|
}
|
|
34217
34458
|
}
|
|
34218
34459
|
|