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/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.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
|
*/
|
|
@@ -2232,6 +2232,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2232
2232
|
/* harmony export */ CLIPBOARD_ID: function() { return /* binding */ CLIPBOARD_ID; },
|
|
2233
2233
|
/* harmony export */ COMMAND_KEYS: function() { return /* binding */ COMMAND_KEYS; },
|
|
2234
2234
|
/* harmony export */ EMULATE_DBLCLICK_TIMEOUT: function() { return /* binding */ EMULATE_DBLCLICK_TIMEOUT; },
|
|
2235
|
+
/* harmony export */ ERROR_CODE_CONFLICT: function() { return /* binding */ ERROR_CODE_CONFLICT; },
|
|
2235
2236
|
/* harmony export */ ES: function() { return /* binding */ ES; },
|
|
2236
2237
|
/* harmony export */ FAT_MODE: function() { return /* binding */ FAT_MODE; },
|
|
2237
2238
|
/* harmony export */ HOMEPAGE: function() { return /* binding */ HOMEPAGE; },
|
|
@@ -2333,7 +2334,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2333
2334
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2334
2335
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2335
2336
|
}
|
|
2336
|
-
var APP_VERSION = "4.19.
|
|
2337
|
+
var APP_VERSION = "4.19.8";
|
|
2337
2338
|
// prettier-ignore
|
|
2338
2339
|
var ES = "es5";
|
|
2339
2340
|
var IS_ES_MODERN = false;
|
|
@@ -2485,6 +2486,8 @@ var EMULATE_DBLCLICK_TIMEOUT = 300;
|
|
|
2485
2486
|
* ```
|
|
2486
2487
|
*/ var INSERT_ONLY_TEXT = 'insert_only_text';
|
|
2487
2488
|
var SAFE_COUNT_CHANGE_CALL = 10;
|
|
2489
|
+
// Connector answer code for a file name that is already taken (same as the HTTP status)
|
|
2490
|
+
var ERROR_CODE_CONFLICT = 409;
|
|
2488
2491
|
var IS_MAC = typeof globalWindow !== 'undefined' && /Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
2489
2492
|
var KEY_ALIASES = {
|
|
2490
2493
|
add: '+',
|
|
@@ -8363,6 +8366,7 @@ function isAdjacent(prev, item) {
|
|
|
8363
8366
|
__webpack_require__.r(__webpack_exports__);
|
|
8364
8367
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8365
8368
|
/* harmony export */ $$: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.$$; },
|
|
8369
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.AnswerError; },
|
|
8366
8370
|
/* harmony export */ CamelCaseToKebabCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.CamelCaseToKebabCase; },
|
|
8367
8371
|
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
|
|
8368
8372
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
|
|
@@ -8376,6 +8380,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8376
8380
|
/* harmony export */ abort: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.abort; },
|
|
8377
8381
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alignElement; },
|
|
8378
8382
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alreadyLoadedList; },
|
|
8383
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.answer; },
|
|
8379
8384
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendScriptAsync; },
|
|
8380
8385
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendStyleAsync; },
|
|
8381
8386
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.applyStyles; },
|
|
@@ -10640,6 +10645,7 @@ var dataBind = function dataBind(elm, key, value) {
|
|
|
10640
10645
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10641
10646
|
|
|
10642
10647
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10648
|
+
/* harmony export */ answer: function() { return /* binding */ answer; },
|
|
10643
10649
|
/* harmony export */ connection: function() { return /* binding */ connection; },
|
|
10644
10650
|
/* harmony export */ error: function() { return /* binding */ error; },
|
|
10645
10651
|
/* harmony export */ options: function() { return /* binding */ options; }
|
|
@@ -10663,6 +10669,9 @@ function connection(message) {
|
|
|
10663
10669
|
function options(message) {
|
|
10664
10670
|
return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.OptionsError(message);
|
|
10665
10671
|
}
|
|
10672
|
+
function answer(message, resp, code) {
|
|
10673
|
+
return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError(message, resp, code);
|
|
10674
|
+
}
|
|
10666
10675
|
|
|
10667
10676
|
|
|
10668
10677
|
/***/ }),
|
|
@@ -10683,6 +10692,135 @@ function options(message) {
|
|
|
10683
10692
|
}
|
|
10684
10693
|
|
|
10685
10694
|
|
|
10695
|
+
/***/ }),
|
|
10696
|
+
|
|
10697
|
+
/***/ 5311:
|
|
10698
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10699
|
+
|
|
10700
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10701
|
+
/* harmony export */ AnswerError: function() { return /* binding */ AnswerError; }
|
|
10702
|
+
/* harmony export */ });
|
|
10703
|
+
function _assert_this_initialized(self) {
|
|
10704
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10705
|
+
return self;
|
|
10706
|
+
}
|
|
10707
|
+
function _call_super(_this, derived, args) {
|
|
10708
|
+
derived = _get_prototype_of(derived);
|
|
10709
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10710
|
+
}
|
|
10711
|
+
function _class_call_check(instance, Constructor) {
|
|
10712
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
10713
|
+
}
|
|
10714
|
+
function _construct(Parent, args, Class) {
|
|
10715
|
+
if (_is_native_reflect_construct()) _construct = Reflect.construct;
|
|
10716
|
+
else {
|
|
10717
|
+
_construct = function construct(Parent, args, Class) {
|
|
10718
|
+
var a = [
|
|
10719
|
+
null
|
|
10720
|
+
];
|
|
10721
|
+
a.push.apply(a, args);
|
|
10722
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
10723
|
+
var instance = new Constructor();
|
|
10724
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
10725
|
+
return instance;
|
|
10726
|
+
};
|
|
10727
|
+
}
|
|
10728
|
+
return _construct.apply(null, arguments);
|
|
10729
|
+
}
|
|
10730
|
+
function _get_prototype_of(o) {
|
|
10731
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
10732
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
10733
|
+
};
|
|
10734
|
+
return _get_prototype_of(o);
|
|
10735
|
+
}
|
|
10736
|
+
function _inherits(subClass, superClass) {
|
|
10737
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
10738
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
10739
|
+
}
|
|
10740
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
10741
|
+
constructor: {
|
|
10742
|
+
value: subClass,
|
|
10743
|
+
writable: true,
|
|
10744
|
+
configurable: true
|
|
10745
|
+
}
|
|
10746
|
+
});
|
|
10747
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
10748
|
+
}
|
|
10749
|
+
function _is_native_function(fn) {
|
|
10750
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
10751
|
+
}
|
|
10752
|
+
function _is_native_reflect_construct() {
|
|
10753
|
+
try {
|
|
10754
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
10755
|
+
} catch (_) {}
|
|
10756
|
+
return (_is_native_reflect_construct = function() {
|
|
10757
|
+
return !!result;
|
|
10758
|
+
})();
|
|
10759
|
+
}
|
|
10760
|
+
function _possible_constructor_return(self, call) {
|
|
10761
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
10762
|
+
return _assert_this_initialized(self);
|
|
10763
|
+
}
|
|
10764
|
+
function _set_prototype_of(o, p) {
|
|
10765
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
10766
|
+
o.__proto__ = p;
|
|
10767
|
+
return o;
|
|
10768
|
+
};
|
|
10769
|
+
return _set_prototype_of(o, p);
|
|
10770
|
+
}
|
|
10771
|
+
function _type_of(obj) {
|
|
10772
|
+
"@swc/helpers - typeof";
|
|
10773
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10774
|
+
}
|
|
10775
|
+
function _wrap_native_super(Class) {
|
|
10776
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
10777
|
+
_wrap_native_super = function(Class) {
|
|
10778
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
10779
|
+
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
10780
|
+
if (typeof _cache !== "undefined") {
|
|
10781
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
10782
|
+
_cache.set(Class, Wrapper);
|
|
10783
|
+
}
|
|
10784
|
+
function Wrapper() {
|
|
10785
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
10786
|
+
}
|
|
10787
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
10788
|
+
constructor: {
|
|
10789
|
+
value: Wrapper,
|
|
10790
|
+
enumerable: false,
|
|
10791
|
+
writable: true,
|
|
10792
|
+
configurable: true
|
|
10793
|
+
}
|
|
10794
|
+
});
|
|
10795
|
+
return _set_prototype_of(Wrapper, Class);
|
|
10796
|
+
};
|
|
10797
|
+
return _wrap_native_super(Class);
|
|
10798
|
+
}
|
|
10799
|
+
/*!
|
|
10800
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10801
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
10802
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
10803
|
+
*/ /**
|
|
10804
|
+
* @module helpers/utils
|
|
10805
|
+
*/ // A connector refused the request: the answer and its `data.code` stay reachable for the handler
|
|
10806
|
+
var AnswerError = /*#__PURE__*/ function(Error1) {
|
|
10807
|
+
"use strict";
|
|
10808
|
+
_inherits(AnswerError, Error1);
|
|
10809
|
+
function AnswerError(message, answer, code) {
|
|
10810
|
+
_class_call_check(this, AnswerError);
|
|
10811
|
+
var _this;
|
|
10812
|
+
_this = _call_super(this, AnswerError, [
|
|
10813
|
+
message
|
|
10814
|
+
]);
|
|
10815
|
+
_this.answer = answer;
|
|
10816
|
+
_this.code = code;
|
|
10817
|
+
Object.setPrototypeOf(_this, AnswerError.prototype);
|
|
10818
|
+
return _this;
|
|
10819
|
+
}
|
|
10820
|
+
return AnswerError;
|
|
10821
|
+
}(_wrap_native_super(Error));
|
|
10822
|
+
|
|
10823
|
+
|
|
10686
10824
|
/***/ }),
|
|
10687
10825
|
|
|
10688
10826
|
/***/ 86397:
|
|
@@ -10815,13 +10953,15 @@ function _wrap_native_super(Class) {
|
|
|
10815
10953
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10816
10954
|
|
|
10817
10955
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10818
|
-
/* harmony export */
|
|
10819
|
-
/* harmony export */
|
|
10956
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _answer_error_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
|
|
10957
|
+
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_2__.ConnectionError; },
|
|
10958
|
+
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_3__.OptionsError; },
|
|
10820
10959
|
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
10821
10960
|
/* harmony export */ });
|
|
10822
10961
|
/* harmony import */ var _abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
|
|
10823
|
-
/* harmony import */ var
|
|
10824
|
-
/* harmony import */ var
|
|
10962
|
+
/* harmony import */ var _answer_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5311);
|
|
10963
|
+
/* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86397);
|
|
10964
|
+
/* harmony import */ var _options_error_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(57865);
|
|
10825
10965
|
/*!
|
|
10826
10966
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10827
10967
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10833,6 +10973,7 @@ function _wrap_native_super(Class) {
|
|
|
10833
10973
|
|
|
10834
10974
|
|
|
10835
10975
|
|
|
10976
|
+
|
|
10836
10977
|
/***/ }),
|
|
10837
10978
|
|
|
10838
10979
|
/***/ 57865:
|
|
@@ -10965,9 +11106,11 @@ function _wrap_native_super(Class) {
|
|
|
10965
11106
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10966
11107
|
|
|
10967
11108
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11109
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
|
|
10968
11110
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
10969
11111
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.OptionsError; },
|
|
10970
11112
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
11113
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.answer; },
|
|
10971
11114
|
/* harmony export */ connection: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
10972
11115
|
/* harmony export */ error: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
10973
11116
|
/* harmony export */ options: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
@@ -11219,6 +11362,7 @@ var isPart = function isPart(node, part) {
|
|
|
11219
11362
|
|
|
11220
11363
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11221
11364
|
/* harmony export */ $$: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_27__.$$; },
|
|
11365
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.AnswerError; },
|
|
11222
11366
|
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigDeepFlatten; },
|
|
11223
11367
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigFlatten; },
|
|
11224
11368
|
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigMerge; },
|
|
@@ -11230,6 +11374,7 @@ var isPart = function isPart(node, part) {
|
|
|
11230
11374
|
/* harmony export */ abort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.abort; },
|
|
11231
11375
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
11232
11376
|
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.alreadyLoadedList; },
|
|
11377
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.answer; },
|
|
11233
11378
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendScriptAsync; },
|
|
11234
11379
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendStyleAsync; },
|
|
11235
11380
|
/* harmony export */ assert: function() { return /* reexport safe */ _assert_js__WEBPACK_IMPORTED_MODULE_2__.assert; },
|
|
@@ -11923,6 +12068,7 @@ var map = {};
|
|
|
11923
12068
|
/**
|
|
11924
12069
|
* Check if element is in view
|
|
11925
12070
|
*/ function inView(elm, root, doc) {
|
|
12071
|
+
var _a;
|
|
11926
12072
|
var rect = elm.getBoundingClientRect(), el = elm;
|
|
11927
12073
|
var top = rect.top, height = rect.height;
|
|
11928
12074
|
while(el && el !== root && el.parentNode){
|
|
@@ -11947,7 +12093,14 @@ var map = {};
|
|
|
11947
12093
|
// element scrolled above the top was wrongly reported as visible and never
|
|
11948
12094
|
// scrolled to. See #1279
|
|
11949
12095
|
var clientHeight = doc.documentElement && doc.documentElement.clientHeight || 0;
|
|
11950
|
-
|
|
12096
|
+
// `scrollIntoView` keeps clear of the document's `scroll-padding`, which
|
|
12097
|
+
// is how a page allows for a fixed header or footer, so its edges are the
|
|
12098
|
+
// viewport's edges here too
|
|
12099
|
+
var style = (_a = doc.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(doc.documentElement), padding = function padding() {
|
|
12100
|
+
var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '';
|
|
12101
|
+
return value.endsWith('%') ? parseFloat(value) * clientHeight / 100 : parseFloat(value) || 0;
|
|
12102
|
+
}, viewTop = padding(style === null || style === void 0 ? void 0 : style.scrollPaddingTop), viewBottom = clientHeight - padding(style === null || style === void 0 ? void 0 : style.scrollPaddingBottom);
|
|
12103
|
+
return (top + height <= viewBottom + SUBPIXEL_TOLERANCE || top <= viewTop) && top + height >= viewTop;
|
|
11951
12104
|
}
|
|
11952
12105
|
/**
|
|
11953
12106
|
* Scroll element into view if it is not in view
|
|
@@ -13556,6 +13709,26 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
13556
13709
|
return this;
|
|
13557
13710
|
}
|
|
13558
13711
|
},
|
|
13712
|
+
{
|
|
13713
|
+
// 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
|
|
13714
|
+
key: "__hasAnswerEnvelope",
|
|
13715
|
+
value: function __hasAnswerEnvelope() {
|
|
13716
|
+
var xhr = this.xhr;
|
|
13717
|
+
if (xhr.responseType && xhr.responseType !== 'text') {
|
|
13718
|
+
return false;
|
|
13719
|
+
}
|
|
13720
|
+
var text = xhr.responseText;
|
|
13721
|
+
if (!text || text[0] !== '{') {
|
|
13722
|
+
return false;
|
|
13723
|
+
}
|
|
13724
|
+
try {
|
|
13725
|
+
var answer = JSON.parse(text);
|
|
13726
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(answer) && 'success' in answer;
|
|
13727
|
+
} catch (_a) {
|
|
13728
|
+
return false;
|
|
13729
|
+
}
|
|
13730
|
+
}
|
|
13731
|
+
},
|
|
13559
13732
|
{
|
|
13560
13733
|
key: "send",
|
|
13561
13734
|
value: function send() {
|
|
@@ -13600,7 +13773,7 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
13600
13773
|
var _a, _b;
|
|
13601
13774
|
(_b = (_a = _this.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, 10);
|
|
13602
13775
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
13603
|
-
if (o.successStatuses.includes(xhr.status)) {
|
|
13776
|
+
if (o.successStatuses.includes(xhr.status) || _this.__hasAnswerEnvelope()) {
|
|
13604
13777
|
onResolve();
|
|
13605
13778
|
} else if (xhr.statusText) {
|
|
13606
13779
|
_this.__isFulfilled = true;
|
|
@@ -15406,7 +15579,9 @@ var Selection = /*#__PURE__*/ function() {
|
|
|
15406
15579
|
}
|
|
15407
15580
|
if (sel && sel.rangeCount) {
|
|
15408
15581
|
var range = sel.getRangeAt(0);
|
|
15409
|
-
|
|
15582
|
+
// A block has no first child outside itself to go by, and what's
|
|
15583
|
+
// left beside it would show as a line of its own
|
|
15584
|
+
var isBlock = _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(node), first = isBlock ? node : node.firstChild;
|
|
15410
15585
|
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(_this.area, range.commonAncestorContainer)) {
|
|
15411
15586
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeInsertNode(range, node);
|
|
15412
15587
|
} else {
|
|
@@ -15414,14 +15589,17 @@ var Selection = /*#__PURE__*/ function() {
|
|
|
15414
15589
|
}
|
|
15415
15590
|
[
|
|
15416
15591
|
function() {
|
|
15417
|
-
return
|
|
15592
|
+
return first === null || first === void 0 ? void 0 : first.previousSibling;
|
|
15418
15593
|
},
|
|
15419
15594
|
function() {
|
|
15420
|
-
return
|
|
15595
|
+
return first === null || first === void 0 ? void 0 : first.previousSibling;
|
|
15421
15596
|
},
|
|
15422
15597
|
function() {
|
|
15423
15598
|
var _a;
|
|
15424
|
-
return (_a =
|
|
15599
|
+
return (_a = first === null || first === void 0 ? void 0 : first.previousSibling) === null || _a === void 0 ? void 0 : _a.lastChild;
|
|
15600
|
+
},
|
|
15601
|
+
function() {
|
|
15602
|
+
return isBlock ? node.nextSibling : null;
|
|
15425
15603
|
}
|
|
15426
15604
|
].forEach(function(getChildNode) {
|
|
15427
15605
|
var childNode = getChildNode();
|
|
@@ -37129,8 +37307,9 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
37129
37307
|
return promise.then(function(resp) {
|
|
37130
37308
|
return resp.json();
|
|
37131
37309
|
}).then(function(resp) {
|
|
37310
|
+
var _a;
|
|
37132
37311
|
if (resp && !_this.isSuccess(resp)) {
|
|
37133
|
-
throw
|
|
37312
|
+
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);
|
|
37134
37313
|
}
|
|
37135
37314
|
return resp;
|
|
37136
37315
|
});
|
|
@@ -37347,10 +37526,11 @@ var DataProvider = /*#__PURE__*/ function() {
|
|
|
37347
37526
|
var _this = this;
|
|
37348
37527
|
(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
37349
37528
|
return this.get('getLocalFileByUrl').then(function(resp) {
|
|
37529
|
+
var _a;
|
|
37350
37530
|
if (_this.isSuccess(resp)) {
|
|
37351
37531
|
return resp.data;
|
|
37352
37532
|
}
|
|
37353
|
-
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.
|
|
37533
|
+
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);
|
|
37354
37534
|
});
|
|
37355
37535
|
}
|
|
37356
37536
|
},
|
|
@@ -44713,6 +44893,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
44713
44893
|
defaultHandlerError: function defaultHandlerError(e) {
|
|
44714
44894
|
this.j.message.error(e.message);
|
|
44715
44895
|
},
|
|
44896
|
+
promptOnExists: true,
|
|
44897
|
+
promptOnExistsSuggestName: function promptOnExistsSuggestName(name) {
|
|
44898
|
+
return name;
|
|
44899
|
+
},
|
|
44716
44900
|
contentType: function contentType(requestData) {
|
|
44717
44901
|
return this.ow.FormData !== undefined && typeof requestData !== 'string' ? false : 'application/x-www-form-urlencoded; charset=UTF-8';
|
|
44718
44902
|
}
|
|
@@ -44914,8 +45098,12 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
44914
45098
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44915
45099
|
/* harmony export */ sendFiles: function() { return /* binding */ sendFiles; }
|
|
44916
45100
|
/* harmony export */ });
|
|
44917
|
-
/* harmony import */ var
|
|
44918
|
-
/* harmony import */ var
|
|
45101
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
45102
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
45103
|
+
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
|
|
45104
|
+
/* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
|
|
45105
|
+
/* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71686);
|
|
45106
|
+
/* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76198);
|
|
44919
45107
|
function _array_like_to_array(arr, len) {
|
|
44920
45108
|
if (len == null || len > arr.length) len = arr.length;
|
|
44921
45109
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -44924,6 +45112,43 @@ function _array_like_to_array(arr, len) {
|
|
|
44924
45112
|
function _array_with_holes(arr) {
|
|
44925
45113
|
if (Array.isArray(arr)) return arr;
|
|
44926
45114
|
}
|
|
45115
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
45116
|
+
try {
|
|
45117
|
+
var info = gen[key](arg);
|
|
45118
|
+
var value = info.value;
|
|
45119
|
+
} catch (error) {
|
|
45120
|
+
reject(error);
|
|
45121
|
+
return;
|
|
45122
|
+
}
|
|
45123
|
+
if (info.done) resolve(value);
|
|
45124
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
45125
|
+
}
|
|
45126
|
+
function _async_to_generator(fn) {
|
|
45127
|
+
return function() {
|
|
45128
|
+
var self = this, args = arguments;
|
|
45129
|
+
return new Promise(function(resolve, reject) {
|
|
45130
|
+
var gen = fn.apply(self, args);
|
|
45131
|
+
function _next(value) {
|
|
45132
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
45133
|
+
}
|
|
45134
|
+
function _throw(err) {
|
|
45135
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
45136
|
+
}
|
|
45137
|
+
_next(undefined);
|
|
45138
|
+
});
|
|
45139
|
+
};
|
|
45140
|
+
}
|
|
45141
|
+
function _define_property(obj, key, value) {
|
|
45142
|
+
if (key in obj) {
|
|
45143
|
+
Object.defineProperty(obj, key, {
|
|
45144
|
+
value: value,
|
|
45145
|
+
enumerable: true,
|
|
45146
|
+
configurable: true,
|
|
45147
|
+
writable: true
|
|
45148
|
+
});
|
|
45149
|
+
} else obj[key] = value;
|
|
45150
|
+
return obj;
|
|
45151
|
+
}
|
|
44927
45152
|
function _iterable_to_array_limit(arr, i) {
|
|
44928
45153
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44929
45154
|
if (_i == null) return;
|
|
@@ -44951,9 +45176,123 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
44951
45176
|
function _non_iterable_rest() {
|
|
44952
45177
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44953
45178
|
}
|
|
45179
|
+
function _object_spread(target) {
|
|
45180
|
+
for(var i = 1; i < arguments.length; i++){
|
|
45181
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
45182
|
+
var ownKeys = Object.keys(source);
|
|
45183
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
45184
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
45185
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
45186
|
+
}));
|
|
45187
|
+
}
|
|
45188
|
+
ownKeys.forEach(function(key) {
|
|
45189
|
+
_define_property(target, key, source[key]);
|
|
45190
|
+
});
|
|
45191
|
+
}
|
|
45192
|
+
return target;
|
|
45193
|
+
}
|
|
44954
45194
|
function _sliced_to_array(arr, i) {
|
|
44955
45195
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
44956
45196
|
}
|
|
45197
|
+
function _ts_generator(thisArg, body) {
|
|
45198
|
+
var f, y, t, _ = {
|
|
45199
|
+
label: 0,
|
|
45200
|
+
sent: function() {
|
|
45201
|
+
if (t[0] & 1) throw t[1];
|
|
45202
|
+
return t[1];
|
|
45203
|
+
},
|
|
45204
|
+
trys: [],
|
|
45205
|
+
ops: []
|
|
45206
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
45207
|
+
return d(g, "next", {
|
|
45208
|
+
value: verb(0)
|
|
45209
|
+
}), d(g, "throw", {
|
|
45210
|
+
value: verb(1)
|
|
45211
|
+
}), d(g, "return", {
|
|
45212
|
+
value: verb(2)
|
|
45213
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
45214
|
+
value: function() {
|
|
45215
|
+
return this;
|
|
45216
|
+
}
|
|
45217
|
+
}), g;
|
|
45218
|
+
function verb(n) {
|
|
45219
|
+
return function(v) {
|
|
45220
|
+
return step([
|
|
45221
|
+
n,
|
|
45222
|
+
v
|
|
45223
|
+
]);
|
|
45224
|
+
};
|
|
45225
|
+
}
|
|
45226
|
+
function step(op) {
|
|
45227
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45228
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
45229
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45230
|
+
if (y = 0, t) op = [
|
|
45231
|
+
op[0] & 2,
|
|
45232
|
+
t.value
|
|
45233
|
+
];
|
|
45234
|
+
switch(op[0]){
|
|
45235
|
+
case 0:
|
|
45236
|
+
case 1:
|
|
45237
|
+
t = op;
|
|
45238
|
+
break;
|
|
45239
|
+
case 4:
|
|
45240
|
+
_.label++;
|
|
45241
|
+
return {
|
|
45242
|
+
value: op[1],
|
|
45243
|
+
done: false
|
|
45244
|
+
};
|
|
45245
|
+
case 5:
|
|
45246
|
+
_.label++;
|
|
45247
|
+
y = op[1];
|
|
45248
|
+
op = [
|
|
45249
|
+
0
|
|
45250
|
+
];
|
|
45251
|
+
continue;
|
|
45252
|
+
case 7:
|
|
45253
|
+
op = _.ops.pop();
|
|
45254
|
+
_.trys.pop();
|
|
45255
|
+
continue;
|
|
45256
|
+
default:
|
|
45257
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
45258
|
+
_ = 0;
|
|
45259
|
+
continue;
|
|
45260
|
+
}
|
|
45261
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
45262
|
+
_.label = op[1];
|
|
45263
|
+
break;
|
|
45264
|
+
}
|
|
45265
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
45266
|
+
_.label = t[1];
|
|
45267
|
+
t = op;
|
|
45268
|
+
break;
|
|
45269
|
+
}
|
|
45270
|
+
if (t && _.label < t[2]) {
|
|
45271
|
+
_.label = t[2];
|
|
45272
|
+
_.ops.push(op);
|
|
45273
|
+
break;
|
|
45274
|
+
}
|
|
45275
|
+
if (t[2]) _.ops.pop();
|
|
45276
|
+
_.trys.pop();
|
|
45277
|
+
continue;
|
|
45278
|
+
}
|
|
45279
|
+
op = body.call(thisArg, _);
|
|
45280
|
+
} catch (e) {
|
|
45281
|
+
op = [
|
|
45282
|
+
6,
|
|
45283
|
+
e
|
|
45284
|
+
];
|
|
45285
|
+
y = 0;
|
|
45286
|
+
} finally{
|
|
45287
|
+
f = t = 0;
|
|
45288
|
+
}
|
|
45289
|
+
if (op[0] & 5) throw op[1];
|
|
45290
|
+
return {
|
|
45291
|
+
value: op[0] ? op[1] : void 0,
|
|
45292
|
+
done: true
|
|
45293
|
+
};
|
|
45294
|
+
}
|
|
45295
|
+
}
|
|
44957
45296
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
44958
45297
|
if (!o) return;
|
|
44959
45298
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -44968,85 +45307,197 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
44968
45307
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
44969
45308
|
*/ ;
|
|
44970
45309
|
|
|
45310
|
+
|
|
45311
|
+
|
|
45312
|
+
|
|
45313
|
+
|
|
44971
45314
|
/**
|
|
44972
45315
|
* Send files to server
|
|
44973
|
-
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process
|
|
44974
|
-
|
|
44975
|
-
|
|
44976
|
-
|
|
44977
|
-
|
|
44978
|
-
|
|
44979
|
-
|
|
44980
|
-
|
|
44981
|
-
|
|
44982
|
-
// Client-side validation hook — returning `false` aborts the upload.
|
|
44983
|
-
// See https://github.com/xdan/jodit/issues/1329
|
|
44984
|
-
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(o.beforeUpload)) {
|
|
44985
|
-
if (o.beforeUpload.call(uploader, fileList) === false) {
|
|
44986
|
-
var err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.error)('Upload canceled');
|
|
44987
|
-
(handlerError || o.defaultHandlerError).call(uploader, err);
|
|
44988
|
-
return Promise.reject(err);
|
|
44989
|
-
}
|
|
44990
|
-
}
|
|
44991
|
-
var promises = [];
|
|
44992
|
-
if (o.insertImageAsBase64URI) {
|
|
44993
|
-
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
44994
|
-
}
|
|
44995
|
-
fileList = fileList.filter(function(a) {
|
|
44996
|
-
return a;
|
|
44997
|
-
});
|
|
44998
|
-
if (fileList.length) {
|
|
44999
|
-
var form = new FormData();
|
|
45000
|
-
form.append(o.pathVariableName, uploader.path);
|
|
45001
|
-
form.append('source', uploader.source);
|
|
45002
|
-
var file;
|
|
45003
|
-
for(var i = 0; i < fileList.length; i += 1){
|
|
45004
|
-
file = fileList[i];
|
|
45005
|
-
if (file) {
|
|
45006
|
-
var hasRealExtension = /\.\w+$/.test(file.name);
|
|
45007
|
-
var mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
45008
|
-
var extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
45009
|
-
var newName = fileList[i].name || Math.random().toString().replace('.', '');
|
|
45010
|
-
if (!hasRealExtension && extension) {
|
|
45011
|
-
var extForReg = extension;
|
|
45012
|
-
if ([
|
|
45013
|
-
'jpeg',
|
|
45014
|
-
'jpg'
|
|
45015
|
-
].includes(extForReg)) {
|
|
45016
|
-
extForReg = 'jpeg|jpg';
|
|
45316
|
+
*/ function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
45317
|
+
retryOf) {
|
|
45318
|
+
return _async_to_generator(function() {
|
|
45319
|
+
var o, fileList, extraData, plan, e, err, promises, form, file, i, hasRealExtension, mime, extension, newName, extForReg, reEnd, _o_processFileName_call, key, iFile, name;
|
|
45320
|
+
return _ts_generator(this, function(_state) {
|
|
45321
|
+
switch(_state.label){
|
|
45322
|
+
case 0:
|
|
45323
|
+
if (!files) {
|
|
45324
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
45017
45325
|
}
|
|
45018
|
-
|
|
45019
|
-
|
|
45020
|
-
|
|
45326
|
+
o = uploader.o;
|
|
45327
|
+
fileList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(files);
|
|
45328
|
+
if (!fileList.length) {
|
|
45329
|
+
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
|
|
45021
45330
|
}
|
|
45022
|
-
|
|
45023
|
-
|
|
45024
|
-
|
|
45331
|
+
extraData = retryOf === null || retryOf === void 0 ? void 0 : retryOf.data;
|
|
45332
|
+
if (!(!retryOf && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(o.beforeUpload))) return [
|
|
45333
|
+
3,
|
|
45334
|
+
5
|
|
45335
|
+
];
|
|
45336
|
+
_state.label = 1;
|
|
45337
|
+
case 1:
|
|
45338
|
+
_state.trys.push([
|
|
45339
|
+
1,
|
|
45340
|
+
3,
|
|
45341
|
+
,
|
|
45342
|
+
4
|
|
45343
|
+
]);
|
|
45344
|
+
return [
|
|
45345
|
+
4,
|
|
45346
|
+
o.beforeUpload.call(uploader, fileList)
|
|
45347
|
+
];
|
|
45348
|
+
case 2:
|
|
45349
|
+
plan = _state.sent();
|
|
45350
|
+
return [
|
|
45351
|
+
3,
|
|
45352
|
+
4
|
|
45353
|
+
];
|
|
45354
|
+
case 3:
|
|
45355
|
+
e = _state.sent();
|
|
45356
|
+
(handlerError || o.defaultHandlerError).call(uploader, e);
|
|
45357
|
+
throw e;
|
|
45358
|
+
case 4:
|
|
45359
|
+
if (plan === false) {
|
|
45360
|
+
err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Upload canceled');
|
|
45361
|
+
(handlerError || o.defaultHandlerError).call(uploader, err);
|
|
45362
|
+
throw err;
|
|
45363
|
+
}
|
|
45364
|
+
if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan)) {
|
|
45365
|
+
fileList = plan;
|
|
45366
|
+
} 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)) {
|
|
45367
|
+
fileList = plan.files;
|
|
45368
|
+
extraData = plan.data;
|
|
45369
|
+
}
|
|
45370
|
+
if (!fileList.length) {
|
|
45371
|
+
return [
|
|
45372
|
+
2,
|
|
45373
|
+
[]
|
|
45374
|
+
];
|
|
45375
|
+
}
|
|
45376
|
+
_state.label = 5;
|
|
45377
|
+
case 5:
|
|
45378
|
+
promises = [];
|
|
45379
|
+
if (o.insertImageAsBase64URI) {
|
|
45380
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
45381
|
+
}
|
|
45382
|
+
fileList = fileList.filter(function(a) {
|
|
45383
|
+
return a;
|
|
45384
|
+
});
|
|
45385
|
+
if (fileList.length) {
|
|
45386
|
+
form = new FormData();
|
|
45387
|
+
form.append(o.pathVariableName, uploader.path);
|
|
45388
|
+
form.append('source', uploader.source);
|
|
45389
|
+
;
|
|
45390
|
+
for(i = 0; i < fileList.length; i += 1){
|
|
45391
|
+
file = fileList[i];
|
|
45392
|
+
if (file) {
|
|
45393
|
+
hasRealExtension = /\.\w+$/.test(file.name);
|
|
45394
|
+
mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
45395
|
+
extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
45396
|
+
newName = fileList[i].name || Math.random().toString().replace('.', '');
|
|
45397
|
+
if (!hasRealExtension && extension) {
|
|
45398
|
+
extForReg = extension;
|
|
45399
|
+
if ([
|
|
45400
|
+
'jpeg',
|
|
45401
|
+
'jpg'
|
|
45402
|
+
].includes(extForReg)) {
|
|
45403
|
+
extForReg = 'jpeg|jpg';
|
|
45404
|
+
}
|
|
45405
|
+
reEnd = new RegExp('.(' + extForReg + ')$', 'i');
|
|
45406
|
+
if (!reEnd.test(newName)) {
|
|
45407
|
+
newName += '.' + extension;
|
|
45408
|
+
}
|
|
45409
|
+
}
|
|
45410
|
+
_o_processFileName_call = _sliced_to_array(o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName), 3), key = _o_processFileName_call[0], iFile = _o_processFileName_call[1], name = _o_processFileName_call[2];
|
|
45411
|
+
form.append(key, iFile, name);
|
|
45412
|
+
}
|
|
45413
|
+
}
|
|
45414
|
+
if (process) {
|
|
45415
|
+
process(form);
|
|
45416
|
+
}
|
|
45417
|
+
if (o.data && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(o.data)) {
|
|
45418
|
+
Object.keys(o.data).forEach(function(key) {
|
|
45419
|
+
form.append(key, o.data[key]);
|
|
45420
|
+
});
|
|
45421
|
+
}
|
|
45422
|
+
if (extraData) {
|
|
45423
|
+
Object.keys(extraData).forEach(function(key) {
|
|
45424
|
+
form.append(key, extraData[key]);
|
|
45425
|
+
});
|
|
45426
|
+
}
|
|
45427
|
+
o.prepareData.call(uploader, form);
|
|
45428
|
+
promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_4__.send)(uploader, form).then(function(resp) {
|
|
45429
|
+
if (o.isSuccess.call(uploader, resp)) {
|
|
45430
|
+
var handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
45431
|
+
handler.call(uploader, o.process.call(uploader, resp));
|
|
45432
|
+
return resp;
|
|
45433
|
+
}
|
|
45434
|
+
var err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_5__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, function(plan) {
|
|
45435
|
+
var _a;
|
|
45436
|
+
return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
|
|
45437
|
+
data: _object_spread({}, extraData, plan === null || plan === void 0 ? void 0 : plan.data)
|
|
45438
|
+
});
|
|
45439
|
+
});
|
|
45440
|
+
// A taken name is part of the upload, not a failure: ask for another one first
|
|
45441
|
+
if (err.code === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.ERROR_CODE_CONFLICT && o.promptOnExists) {
|
|
45442
|
+
return askAnotherName(uploader, err);
|
|
45443
|
+
}
|
|
45444
|
+
var handler1 = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
45445
|
+
handler1.call(uploader, err);
|
|
45446
|
+
return resp;
|
|
45447
|
+
}).then(function() {
|
|
45448
|
+
uploader.j.events && uploader.j.e.fire('filesWereUploaded');
|
|
45449
|
+
}));
|
|
45450
|
+
}
|
|
45451
|
+
return [
|
|
45452
|
+
2,
|
|
45453
|
+
Promise.all(promises)
|
|
45454
|
+
];
|
|
45025
45455
|
}
|
|
45026
|
-
}
|
|
45027
|
-
|
|
45028
|
-
|
|
45029
|
-
|
|
45030
|
-
|
|
45031
|
-
|
|
45032
|
-
|
|
45456
|
+
});
|
|
45457
|
+
})();
|
|
45458
|
+
}
|
|
45459
|
+
function askAnotherName(uploader, err) {
|
|
45460
|
+
var files = err.files;
|
|
45461
|
+
// A batch is refused as a whole (the connector saved nothing) and the answer does not say which name is taken,
|
|
45462
|
+
// so the files go again one by one: the free ones are simply stored, the taken one answers 409 alone and gets its prompt
|
|
45463
|
+
if (files.length > 1) {
|
|
45464
|
+
return files.reduce(function(chain, file) {
|
|
45465
|
+
return chain.then(function() {
|
|
45466
|
+
return err.retry({
|
|
45467
|
+
files: [
|
|
45468
|
+
file
|
|
45469
|
+
]
|
|
45470
|
+
});
|
|
45033
45471
|
});
|
|
45034
|
-
}
|
|
45035
|
-
|
|
45036
|
-
|
|
45037
|
-
|
|
45038
|
-
|
|
45039
|
-
|
|
45040
|
-
|
|
45472
|
+
}, Promise.resolve());
|
|
45473
|
+
}
|
|
45474
|
+
var _files = _sliced_to_array(files, 1), file = _files[0];
|
|
45475
|
+
var j = uploader.j, o = uploader.o;
|
|
45476
|
+
return new Promise(function(resolve) {
|
|
45477
|
+
var answered = false;
|
|
45478
|
+
// `Dlgs.prototype.dlg`: the uploader's view does not always carry the Dlgs trait
|
|
45479
|
+
var dialog = _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__.Prompt.call(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__.Dlgs.prototype.dlg.call(j, {
|
|
45480
|
+
closeOnClickOverlay: true
|
|
45481
|
+
}), j.i18n(err.message), j.i18n('Rename'), function(newName) {
|
|
45482
|
+
newName = newName.trim();
|
|
45483
|
+
if (!newName) {
|
|
45484
|
+
return false;
|
|
45041
45485
|
}
|
|
45042
|
-
|
|
45043
|
-
|
|
45044
|
-
|
|
45045
|
-
|
|
45046
|
-
|
|
45047
|
-
|
|
45048
|
-
|
|
45049
|
-
|
|
45486
|
+
answered = true;
|
|
45487
|
+
resolve(err.retry({
|
|
45488
|
+
files: [
|
|
45489
|
+
new File([
|
|
45490
|
+
file
|
|
45491
|
+
], newName, {
|
|
45492
|
+
type: file.type
|
|
45493
|
+
})
|
|
45494
|
+
]
|
|
45495
|
+
}));
|
|
45496
|
+
}, j.i18n('Enter new name'), o.promptOnExistsSuggestName.call(uploader, file.name));
|
|
45497
|
+
dialog.e.on(dialog, 'afterClose', function() {
|
|
45498
|
+
!answered && resolve(undefined);
|
|
45499
|
+
});
|
|
45500
|
+
});
|
|
45050
45501
|
}
|
|
45051
45502
|
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
45052
45503
|
var _loop = function() {
|
|
@@ -45074,7 +45525,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
45074
45525
|
name
|
|
45075
45526
|
]
|
|
45076
45527
|
};
|
|
45077
|
-
var handler = (0,
|
|
45528
|
+
var handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
45078
45529
|
handler.call(uploader, resp);
|
|
45079
45530
|
resolve(resp);
|
|
45080
45531
|
};
|
|
@@ -45191,6 +45642,95 @@ function send(uploader, data) {
|
|
|
45191
45642
|
}
|
|
45192
45643
|
|
|
45193
45644
|
|
|
45645
|
+
/***/ }),
|
|
45646
|
+
|
|
45647
|
+
/***/ 76198:
|
|
45648
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
45649
|
+
|
|
45650
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45651
|
+
/* harmony export */ UploadError: function() { return /* binding */ UploadError; }
|
|
45652
|
+
/* harmony export */ });
|
|
45653
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89890);
|
|
45654
|
+
function _assert_this_initialized(self) {
|
|
45655
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45656
|
+
return self;
|
|
45657
|
+
}
|
|
45658
|
+
function _call_super(_this, derived, args) {
|
|
45659
|
+
derived = _get_prototype_of(derived);
|
|
45660
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
45661
|
+
}
|
|
45662
|
+
function _class_call_check(instance, Constructor) {
|
|
45663
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
45664
|
+
}
|
|
45665
|
+
function _get_prototype_of(o) {
|
|
45666
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45667
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45668
|
+
};
|
|
45669
|
+
return _get_prototype_of(o);
|
|
45670
|
+
}
|
|
45671
|
+
function _inherits(subClass, superClass) {
|
|
45672
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
45673
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
45674
|
+
}
|
|
45675
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45676
|
+
constructor: {
|
|
45677
|
+
value: subClass,
|
|
45678
|
+
writable: true,
|
|
45679
|
+
configurable: true
|
|
45680
|
+
}
|
|
45681
|
+
});
|
|
45682
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
45683
|
+
}
|
|
45684
|
+
function _is_native_reflect_construct() {
|
|
45685
|
+
try {
|
|
45686
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
45687
|
+
} catch (_) {}
|
|
45688
|
+
return (_is_native_reflect_construct = function() {
|
|
45689
|
+
return !!result;
|
|
45690
|
+
})();
|
|
45691
|
+
}
|
|
45692
|
+
function _possible_constructor_return(self, call) {
|
|
45693
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
45694
|
+
return _assert_this_initialized(self);
|
|
45695
|
+
}
|
|
45696
|
+
function _set_prototype_of(o, p) {
|
|
45697
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
45698
|
+
o.__proto__ = p;
|
|
45699
|
+
return o;
|
|
45700
|
+
};
|
|
45701
|
+
return _set_prototype_of(o, p);
|
|
45702
|
+
}
|
|
45703
|
+
function _type_of(obj) {
|
|
45704
|
+
"@swc/helpers - typeof";
|
|
45705
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45706
|
+
}
|
|
45707
|
+
/*!
|
|
45708
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45709
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
45710
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
45711
|
+
*/ ;
|
|
45712
|
+
// The connector refused these files: the handler can change the request and send it again
|
|
45713
|
+
var UploadError = /*#__PURE__*/ function(AnswerError) {
|
|
45714
|
+
"use strict";
|
|
45715
|
+
_inherits(UploadError, AnswerError);
|
|
45716
|
+
function UploadError(message, answer, files, retry) {
|
|
45717
|
+
_class_call_check(this, UploadError);
|
|
45718
|
+
var _this;
|
|
45719
|
+
var _a;
|
|
45720
|
+
_this = _call_super(this, UploadError, [
|
|
45721
|
+
message,
|
|
45722
|
+
answer,
|
|
45723
|
+
(_a = answer.data) === null || _a === void 0 ? void 0 : _a.code
|
|
45724
|
+
]);
|
|
45725
|
+
_this.files = files;
|
|
45726
|
+
_this.retry = retry;
|
|
45727
|
+
Object.setPrototypeOf(_this, UploadError.prototype);
|
|
45728
|
+
return _this;
|
|
45729
|
+
}
|
|
45730
|
+
return UploadError;
|
|
45731
|
+
}(_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError);
|
|
45732
|
+
|
|
45733
|
+
|
|
45194
45734
|
/***/ }),
|
|
45195
45735
|
|
|
45196
45736
|
/***/ 57380:
|
|
@@ -45203,9 +45743,10 @@ function send(uploader, data) {
|
|
|
45203
45743
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
45204
45744
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
45205
45745
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
45206
|
-
/* harmony import */ var
|
|
45207
|
-
/* harmony import */ var
|
|
45208
|
-
/* harmony import */ var
|
|
45746
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89890);
|
|
45747
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
45748
|
+
/* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(94122);
|
|
45749
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80536);
|
|
45209
45750
|
function _assert_this_initialized(self) {
|
|
45210
45751
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45211
45752
|
return self;
|
|
@@ -45304,6 +45845,7 @@ function _type_of(obj) {
|
|
|
45304
45845
|
|
|
45305
45846
|
|
|
45306
45847
|
|
|
45848
|
+
|
|
45307
45849
|
var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
45308
45850
|
"use strict";
|
|
45309
45851
|
_inherits(Uploader, ViewComponent);
|
|
@@ -45315,7 +45857,7 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45315
45857
|
]);
|
|
45316
45858
|
_this.path = '';
|
|
45317
45859
|
_this.source = 'default';
|
|
45318
|
-
_this.options = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(
|
|
45860
|
+
_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 : {}));
|
|
45319
45861
|
return _this;
|
|
45320
45862
|
}
|
|
45321
45863
|
_create_class(Uploader, [
|
|
@@ -45390,14 +45932,14 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45390
45932
|
}
|
|
45391
45933
|
};
|
|
45392
45934
|
// send data on server
|
|
45393
|
-
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
45394
|
-
(0,
|
|
45935
|
+
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(cData)) {
|
|
45936
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
45395
45937
|
return false;
|
|
45396
45938
|
}
|
|
45397
45939
|
if (_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
45398
|
-
return (0,
|
|
45940
|
+
return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.processOldBrowserDrag)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
45399
45941
|
}
|
|
45400
|
-
if ((0,
|
|
45942
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(cData)) {
|
|
45401
45943
|
var items = cData.items;
|
|
45402
45944
|
for(i = 0; i < items.length; i += 1){
|
|
45403
45945
|
if (items[i].kind === 'file' && items[i].type === 'image/png') {
|
|
@@ -45405,7 +45947,7 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45405
45947
|
if (file) {
|
|
45406
45948
|
var mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
45407
45949
|
extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
45408
|
-
(0,
|
|
45950
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, [
|
|
45409
45951
|
file
|
|
45410
45952
|
], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
45411
45953
|
}
|
|
@@ -45430,21 +45972,21 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45430
45972
|
self.j.e.on(form, 'dragend dragover dragenter dragleave drop', function(e) {
|
|
45431
45973
|
e.preventDefault();
|
|
45432
45974
|
}).on(form, 'dragover', function(event) {
|
|
45433
|
-
if ((0,
|
|
45975
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer) || (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(event.dataTransfer)) {
|
|
45434
45976
|
form.classList.add('jodit_drag_hover');
|
|
45435
45977
|
event.preventDefault();
|
|
45436
45978
|
}
|
|
45437
45979
|
}).on(form, 'dragend dragleave', function(event) {
|
|
45438
45980
|
form.classList.remove('jodit_drag_hover');
|
|
45439
|
-
if ((0,
|
|
45981
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
45440
45982
|
event.preventDefault();
|
|
45441
45983
|
}
|
|
45442
45984
|
}).on(form, 'drop', function(event) {
|
|
45443
45985
|
form.classList.remove('jodit_drag_hover');
|
|
45444
|
-
if ((0,
|
|
45986
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
|
|
45445
45987
|
event.preventDefault();
|
|
45446
45988
|
event.stopImmediatePropagation();
|
|
45447
|
-
(0,
|
|
45989
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
45448
45990
|
}
|
|
45449
45991
|
});
|
|
45450
45992
|
var inputFile = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(form, function(node) {
|
|
@@ -45453,7 +45995,7 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45453
45995
|
});
|
|
45454
45996
|
if (inputFile) {
|
|
45455
45997
|
self.j.e.on(inputFile, 'change', function() {
|
|
45456
|
-
(0,
|
|
45998
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, inputFile.files, handlerSuccess, handlerError).then(function() {
|
|
45457
45999
|
inputFile.value = '';
|
|
45458
46000
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
45459
46001
|
inputFile.type = '';
|
|
@@ -45471,16 +46013,17 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45471
46013
|
value: function uploadRemoteImage(url, handlerSuccess, handlerError) {
|
|
45472
46014
|
var uploader = this, o = uploader.o;
|
|
45473
46015
|
var handlerE = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
|
|
45474
|
-
(0,
|
|
46016
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.send)(uploader, {
|
|
45475
46017
|
action: 'fileUploadRemote',
|
|
45476
46018
|
url: url
|
|
45477
46019
|
}).then(function(resp) {
|
|
46020
|
+
var _a;
|
|
45478
46021
|
if (o.isSuccess.call(uploader, resp)) {
|
|
45479
46022
|
var handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
45480
46023
|
handler.call(uploader, o.process.call(uploader, resp));
|
|
45481
46024
|
return;
|
|
45482
46025
|
}
|
|
45483
|
-
handlerE.call(uploader, (0,
|
|
46026
|
+
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));
|
|
45484
46027
|
}).catch(function(e) {
|
|
45485
46028
|
return handlerE.call(uploader, e);
|
|
45486
46029
|
});
|
|
@@ -45491,7 +46034,23 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45491
46034
|
value: function upload(files) {
|
|
45492
46035
|
var _this = this;
|
|
45493
46036
|
return this.async.promise(function(resolve, reject) {
|
|
45494
|
-
|
|
46037
|
+
var settled = false;
|
|
46038
|
+
var settle = function settle(end) {
|
|
46039
|
+
return function(value) {
|
|
46040
|
+
settled = true;
|
|
46041
|
+
end(value);
|
|
46042
|
+
};
|
|
46043
|
+
};
|
|
46044
|
+
(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(_this, files, settle(resolve), settle(reject)).then(function() {
|
|
46045
|
+
// `beforeUpload` kept no file, so no handler ran
|
|
46046
|
+
if (!settled) {
|
|
46047
|
+
resolve({
|
|
46048
|
+
baseurl: '',
|
|
46049
|
+
files: [],
|
|
46050
|
+
isImages: []
|
|
46051
|
+
});
|
|
46052
|
+
}
|
|
46053
|
+
}, settle(reject));
|
|
45495
46054
|
});
|
|
45496
46055
|
}
|
|
45497
46056
|
},
|
|
@@ -45499,7 +46058,7 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
45499
46058
|
key: "destruct",
|
|
45500
46059
|
value: function destruct() {
|
|
45501
46060
|
this.setStatus(_core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.STATUSES.beforeDestruct);
|
|
45502
|
-
var instances =
|
|
46061
|
+
var instances = _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.ajaxInstances.get(this);
|
|
45503
46062
|
if (instances) {
|
|
45504
46063
|
instances.forEach(function(ajax) {
|
|
45505
46064
|
try {
|
|
@@ -54405,7 +54964,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('enter', enter);
|
|
|
54405
54964
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(br, clone);
|
|
54406
54965
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(clone, fake);
|
|
54407
54966
|
}
|
|
54408
|
-
|
|
54967
|
+
// The new `br` ends the line above, so it takes something on the
|
|
54968
|
+
// caret's own line to bring that line into view. Chrome won't scroll to
|
|
54969
|
+
// an inline element without width, but it will to a `br`
|
|
54970
|
+
var mark = br.cloneNode();
|
|
54971
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(fake, mark);
|
|
54972
|
+
(0,_core_helpers_utils_scroll_into_view_js__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(mark, jodit.editor, jodit.ed);
|
|
54973
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(mark);
|
|
54409
54974
|
return true;
|
|
54410
54975
|
}
|
|
54411
54976
|
return false;
|
|
@@ -55137,6 +55702,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.font = {
|
|
|
55137
55702
|
}
|
|
55138
55703
|
};
|
|
55139
55704
|
_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"]);
|
|
55705
|
+
var hadSelection = new WeakSet();
|
|
55140
55706
|
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
55141
55707
|
command: 'fontsize',
|
|
55142
55708
|
data: {
|
|
@@ -55173,17 +55739,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
|
55173
55739
|
tooltip: 'Font size',
|
|
55174
55740
|
value: function value(editor, button) {
|
|
55175
55741
|
var _a;
|
|
55176
|
-
var current = editor.s.current();
|
|
55177
|
-
|
|
55178
|
-
|
|
55179
|
-
|
|
55180
|
-
|
|
55181
|
-
if (
|
|
55742
|
+
var 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;
|
|
55743
|
+
// A select names its value, so until there is a selection it shows the
|
|
55744
|
+
// editor's own size, and afterwards the size of the last one
|
|
55745
|
+
if (box) {
|
|
55746
|
+
hadSelection.add(button);
|
|
55747
|
+
} else if (control.component !== 'select' || hadSelection.has(button)) {
|
|
55182
55748
|
return;
|
|
55183
55749
|
}
|
|
55184
|
-
var control = button.control;
|
|
55185
55750
|
var cssKey = ((_a = control.data) === null || _a === void 0 ? void 0 : _a.cssRule) || 'font-size';
|
|
55186
|
-
var value = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__.css)(box, cssKey);
|
|
55751
|
+
var value = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_3__.css)(box || editor.editor, cssKey);
|
|
55187
55752
|
if (cssKey === 'font-size') {
|
|
55188
55753
|
var numValue = parseFloat(value.toString());
|
|
55189
55754
|
if (editor.o.defaultFontSizePoints === 'pt') {
|
|
@@ -55219,7 +55784,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.fontsize = {
|
|
|
55219
55784
|
return keySet.has(normalize(value.toString()));
|
|
55220
55785
|
}
|
|
55221
55786
|
};
|
|
55222
|
-
var hadSelection = new WeakSet();
|
|
55223
55787
|
_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), {
|
|
55224
55788
|
command: 'fontname',
|
|
55225
55789
|
textTemplate: function textTemplate(j, value) {
|
|
@@ -56853,6 +57417,17 @@ function _wrap_native_super(Class) {
|
|
|
56853
57417
|
40: 'down',
|
|
56854
57418
|
45: 'insert',
|
|
56855
57419
|
46: 'del',
|
|
57420
|
+
// With Shift the digit keys send other characters: `&` for 7
|
|
57421
|
+
48: '0',
|
|
57422
|
+
49: '1',
|
|
57423
|
+
50: '2',
|
|
57424
|
+
51: '3',
|
|
57425
|
+
52: '4',
|
|
57426
|
+
53: '5',
|
|
57427
|
+
54: '6',
|
|
57428
|
+
55: '7',
|
|
57429
|
+
56: '8',
|
|
57430
|
+
57: '9',
|
|
56856
57431
|
59: ';',
|
|
56857
57432
|
61: '=',
|
|
56858
57433
|
91: 'meta',
|