jodit-pro 4.9.25 → 4.9.30
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/CHANGELOG.md +34 -1
- package/config.js +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +176 -76
- package/es2015/jodit.min.js +5 -5
- 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.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/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/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/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 +82 -0
- package/es2015/plugins/templates/templates.js +178 -0
- package/es2015/plugins/templates/templates.min.css +1 -0
- package/es2015/plugins/templates/templates.min.js +8 -0
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +12 -12
- package/es2018/jodit.min.js +16 -16
- 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/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/keyboard/keyboard.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.css +1 -0
- package/es2018/plugins/templates/templates.min.js +8 -0
- 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.css +1 -1
- package/es2021/jodit.fat.min.js +12 -12
- package/es2021/jodit.js +176 -76
- package/es2021/jodit.min.js +24 -24
- 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.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/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/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/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 +82 -0
- package/es2021/plugins/templates/templates.js +178 -0
- package/es2021/plugins/templates/templates.min.css +1 -0
- package/es2021/plugins/templates/templates.min.js +8 -0
- 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.css +1 -1
- package/es2021.en/jodit.fat.min.js +12 -12
- package/es2021.en/jodit.js +176 -76
- package/es2021.en/jodit.min.js +6 -6
- 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.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/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/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/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 +82 -0
- package/es2021.en/plugins/templates/templates.js +178 -0
- package/es2021.en/plugins/templates/templates.min.css +1 -0
- package/es2021.en/plugins/templates/templates.min.js +8 -0
- 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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +187 -80
- 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.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/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/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/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 +82 -0
- package/es5/plugins/templates/templates.js +220 -0
- package/es5/plugins/templates/templates.min.css +1 -0
- package/es5/plugins/templates/templates.min.js +8 -0
- 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/esm/config.d.ts +6 -0
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/templates/config.d.ts +13 -0
- package/esm/plugins/templates/config.js +1 -0
- package/esm/plugins/templates/icon.svg.js +1 -0
- package/esm/plugins/templates/interface.d.ts +11 -0
- package/esm/plugins/templates/interface.js +0 -0
- package/esm/plugins/templates/templates.d.ts +18 -0
- package/esm/plugins/templates/templates.js +1 -0
- package/esm/plugins/templates/ui/templates-popup.d.ts +8 -0
- package/esm/plugins/templates/ui/templates-popup.js +1 -0
- package/package.json +1 -1
- package/types/config.d.ts +6 -0
- package/types/plugins/templates/config.d.ts +13 -0
- package/types/plugins/templates/interface.d.ts +11 -0
- package/types/plugins/templates/templates.d.ts +18 -0
- package/types/plugins/templates/ui/templates-popup.d.ts +8 -0
package/es2021.en/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.9.
|
|
4
|
+
* Version: v4.9.30
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -7340,14 +7340,30 @@ ToolbarCollection = __decorate([
|
|
|
7340
7340
|
/* harmony export */ "default": function() { return /* binding */ DataProvider; }
|
|
7341
7341
|
/* harmony export */ });
|
|
7342
7342
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
7343
|
-
/* harmony import */ var
|
|
7344
|
-
/* harmony import */ var
|
|
7345
|
-
/* harmony import */ var
|
|
7343
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
7344
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23282);
|
|
7345
|
+
/* harmony import */ var _core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70091);
|
|
7346
|
+
/* harmony import */ var _core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68934);
|
|
7347
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89890);
|
|
7348
|
+
/* harmony import */ var _core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3703);
|
|
7349
|
+
/* harmony import */ var _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54079);
|
|
7350
|
+
/* harmony import */ var _builders_item_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(159);
|
|
7346
7351
|
/*!
|
|
7347
7352
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7348
7353
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
7349
7354
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
7350
|
-
*/
|
|
7355
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
7356
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7357
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7358
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7359
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7360
|
+
};
|
|
7361
|
+
|
|
7362
|
+
|
|
7363
|
+
|
|
7364
|
+
|
|
7365
|
+
|
|
7366
|
+
|
|
7351
7367
|
|
|
7352
7368
|
|
|
7353
7369
|
|
|
@@ -7380,13 +7396,13 @@ class DataProvider {
|
|
|
7380
7396
|
ajax === null || ajax === void 0 ? void 0 : ajax.abort();
|
|
7381
7397
|
instances.delete(name);
|
|
7382
7398
|
}
|
|
7383
|
-
const opts = (0,
|
|
7399
|
+
const opts = (0,_core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__.ConfigProto)(this.options[name] !== undefined ? this.options[name] : {}, (0,_core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__.ConfigProto)({
|
|
7384
7400
|
onProgress: this.progressHandler
|
|
7385
7401
|
}, this.o.ajax));
|
|
7386
7402
|
if (opts.prepareData) {
|
|
7387
7403
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
7388
7404
|
}
|
|
7389
|
-
const ajax = new
|
|
7405
|
+
const ajax = new _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__.Ajax(opts);
|
|
7390
7406
|
instances.set(name, ajax);
|
|
7391
7407
|
const promise = ajax.send();
|
|
7392
7408
|
promise.finally(()=>{
|
|
@@ -7415,7 +7431,7 @@ class DataProvider {
|
|
|
7415
7431
|
if (this.o.permissions.url) {
|
|
7416
7432
|
return this.get('permissions').then((resp)=>{
|
|
7417
7433
|
if (this.parent.isInDestruct) {
|
|
7418
|
-
throw (0,
|
|
7434
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.abort)();
|
|
7419
7435
|
}
|
|
7420
7436
|
let process = this.o.permissions.process;
|
|
7421
7437
|
if (!process) {
|
|
@@ -7437,7 +7453,7 @@ class DataProvider {
|
|
|
7437
7453
|
const rule = 'allow' + action;
|
|
7438
7454
|
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
7439
7455
|
if (!possibleRules.has(rule)) {
|
|
7440
|
-
throw (0,
|
|
7456
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Wrong action ' + action);
|
|
7441
7457
|
}
|
|
7442
7458
|
}
|
|
7443
7459
|
const presetValue = this.o.permissionsPresets[rule];
|
|
@@ -7468,18 +7484,18 @@ class DataProvider {
|
|
|
7468
7484
|
/**
|
|
7469
7485
|
* Load items list by path and source
|
|
7470
7486
|
*/ items(path, source, mods = {}) {
|
|
7471
|
-
return this.__items(path, source, mods, (resp)=>this.
|
|
7487
|
+
return this.__items(path, source, mods, (resp)=>this.__generateItemsList(resp.data.sources, mods));
|
|
7472
7488
|
}
|
|
7473
7489
|
/**
|
|
7474
7490
|
* Load items list by path and source
|
|
7475
7491
|
*/ itemsEx(path, source, mods = {}) {
|
|
7476
7492
|
const calcTotal = (sources)=>sources.reduce((acc, source)=>acc + source.files.length, 0);
|
|
7477
7493
|
return this.__items(path, source, mods, (resp)=>({
|
|
7478
|
-
items: this.
|
|
7494
|
+
items: this.__generateItemsList(resp.data.sources, mods),
|
|
7479
7495
|
loadedTotal: calcTotal(resp.data.sources)
|
|
7480
7496
|
}));
|
|
7481
7497
|
}
|
|
7482
|
-
|
|
7498
|
+
__generateItemsList(sources, mods = {}) {
|
|
7483
7499
|
const elements = [];
|
|
7484
7500
|
const canBeFile = (item)=>item.type === 'folder' || !mods.onlyImages || item.isImage === undefined || item.isImage;
|
|
7485
7501
|
const inFilter = (item)=>{
|
|
@@ -7489,12 +7505,12 @@ class DataProvider {
|
|
|
7489
7505
|
sources.forEach((source)=>{
|
|
7490
7506
|
if (source.files && source.files.length) {
|
|
7491
7507
|
const { sort } = this.o;
|
|
7492
|
-
if ((0,
|
|
7508
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(sort) && mods.sortBy) {
|
|
7493
7509
|
source.files.sort((a, b)=>sort(a, b, mods.sortBy));
|
|
7494
7510
|
}
|
|
7495
7511
|
source.files.forEach((item)=>{
|
|
7496
7512
|
if (inFilter(item) && canBeFile(item)) {
|
|
7497
|
-
elements.push(
|
|
7513
|
+
elements.push(_builders_item_js__WEBPACK_IMPORTED_MODULE_8__.FileBrowserItem.create({
|
|
7498
7514
|
...item,
|
|
7499
7515
|
sourceName: source.name,
|
|
7500
7516
|
source
|
|
@@ -7506,7 +7522,7 @@ class DataProvider {
|
|
|
7506
7522
|
return elements;
|
|
7507
7523
|
}
|
|
7508
7524
|
async tree(path, source) {
|
|
7509
|
-
path = (0,
|
|
7525
|
+
path = (0,_core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__.normalizeRelativePath)(path);
|
|
7510
7526
|
if (!this.o.folder) {
|
|
7511
7527
|
return Promise.reject(Error('Set Folder Api options'));
|
|
7512
7528
|
}
|
|
@@ -7527,12 +7543,12 @@ class DataProvider {
|
|
|
7527
7543
|
/**
|
|
7528
7544
|
* Get path by url. You can use this method in another modules
|
|
7529
7545
|
*/ getPathByUrl(url) {
|
|
7530
|
-
(0,
|
|
7546
|
+
(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
7531
7547
|
return this.get('getLocalFileByUrl').then((resp)=>{
|
|
7532
7548
|
if (this.isSuccess(resp)) {
|
|
7533
7549
|
return resp.data;
|
|
7534
7550
|
}
|
|
7535
|
-
throw (0,
|
|
7551
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
7536
7552
|
});
|
|
7537
7553
|
}
|
|
7538
7554
|
/**
|
|
@@ -7544,7 +7560,7 @@ class DataProvider {
|
|
|
7544
7560
|
*/ createFolder(name, path, source) {
|
|
7545
7561
|
const { create } = this.o;
|
|
7546
7562
|
if (!create) {
|
|
7547
|
-
throw (0,
|
|
7563
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Create api options');
|
|
7548
7564
|
}
|
|
7549
7565
|
create.data.source = source;
|
|
7550
7566
|
create.data.path = path;
|
|
@@ -7553,7 +7569,7 @@ class DataProvider {
|
|
|
7553
7569
|
if (this.isSuccess(resp)) {
|
|
7554
7570
|
return true;
|
|
7555
7571
|
}
|
|
7556
|
-
throw (0,
|
|
7572
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
7557
7573
|
});
|
|
7558
7574
|
}
|
|
7559
7575
|
/**
|
|
@@ -7565,7 +7581,7 @@ class DataProvider {
|
|
|
7565
7581
|
const mode = isFile ? 'fileMove' : 'folderMove';
|
|
7566
7582
|
const option = this.options[mode];
|
|
7567
7583
|
if (!option) {
|
|
7568
|
-
throw (0,
|
|
7584
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Move api options');
|
|
7569
7585
|
}
|
|
7570
7586
|
option.data.from = filepath;
|
|
7571
7587
|
option.data.path = path;
|
|
@@ -7574,7 +7590,7 @@ class DataProvider {
|
|
|
7574
7590
|
if (this.isSuccess(resp)) {
|
|
7575
7591
|
return true;
|
|
7576
7592
|
}
|
|
7577
|
-
throw (0,
|
|
7593
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
7578
7594
|
});
|
|
7579
7595
|
}
|
|
7580
7596
|
/**
|
|
@@ -7583,10 +7599,10 @@ class DataProvider {
|
|
|
7583
7599
|
* @param path - Relative path
|
|
7584
7600
|
* @param file - The filename
|
|
7585
7601
|
* @param source - Source
|
|
7586
|
-
*/
|
|
7602
|
+
*/ __remove(action, path, file, source) {
|
|
7587
7603
|
const fr = this.o[action];
|
|
7588
7604
|
if (!fr) {
|
|
7589
|
-
throw (0,
|
|
7605
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(`Set "${action}" api options`);
|
|
7590
7606
|
}
|
|
7591
7607
|
fr.data.path = path;
|
|
7592
7608
|
fr.data.name = file;
|
|
@@ -7605,7 +7621,7 @@ class DataProvider {
|
|
|
7605
7621
|
* @param file - The filename
|
|
7606
7622
|
* @param source - Source
|
|
7607
7623
|
*/ fileRemove(path, file, source) {
|
|
7608
|
-
return this.
|
|
7624
|
+
return this.__remove('fileRemove', path, file, source);
|
|
7609
7625
|
}
|
|
7610
7626
|
/**
|
|
7611
7627
|
* Deleting a folder
|
|
@@ -7614,7 +7630,7 @@ class DataProvider {
|
|
|
7614
7630
|
* @param file - The filename
|
|
7615
7631
|
* @param source - Source
|
|
7616
7632
|
*/ folderRemove(path, file, source) {
|
|
7617
|
-
return this.
|
|
7633
|
+
return this.__remove('folderRemove', path, file, source);
|
|
7618
7634
|
}
|
|
7619
7635
|
/**
|
|
7620
7636
|
* Rename action
|
|
@@ -7623,10 +7639,10 @@ class DataProvider {
|
|
|
7623
7639
|
* @param name - Old name
|
|
7624
7640
|
* @param newname - New name
|
|
7625
7641
|
* @param source - Source
|
|
7626
|
-
*/
|
|
7642
|
+
*/ __rename(action, path, name, newname, source) {
|
|
7627
7643
|
const fr = this.o[action];
|
|
7628
7644
|
if (!fr) {
|
|
7629
|
-
throw (0,
|
|
7645
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(`Set "${action}" api options`);
|
|
7630
7646
|
}
|
|
7631
7647
|
fr.data.path = path;
|
|
7632
7648
|
fr.data.name = name;
|
|
@@ -7642,14 +7658,14 @@ class DataProvider {
|
|
|
7642
7658
|
/**
|
|
7643
7659
|
* Rename folder
|
|
7644
7660
|
*/ folderRename(path, name, newname, source) {
|
|
7645
|
-
return this.
|
|
7661
|
+
return this.__rename('folderRename', path, name, newname, source);
|
|
7646
7662
|
}
|
|
7647
7663
|
/**
|
|
7648
7664
|
* Rename file
|
|
7649
7665
|
*/ fileRename(path, name, newname, source) {
|
|
7650
|
-
return this.
|
|
7666
|
+
return this.__rename('fileRename', path, name, newname, source);
|
|
7651
7667
|
}
|
|
7652
|
-
|
|
7668
|
+
__changeImage(type, path, source, name, newname, box) {
|
|
7653
7669
|
if (!this.o[type]) {
|
|
7654
7670
|
this.o[type] = {
|
|
7655
7671
|
data: {}
|
|
@@ -7675,12 +7691,12 @@ class DataProvider {
|
|
|
7675
7691
|
/**
|
|
7676
7692
|
* Send command to server to crop image
|
|
7677
7693
|
*/ crop(path, source, name, newname, box) {
|
|
7678
|
-
return this.
|
|
7694
|
+
return this.__changeImage('crop', path, source, name, newname, box);
|
|
7679
7695
|
}
|
|
7680
7696
|
/**
|
|
7681
7697
|
* Send command to server to resize image
|
|
7682
7698
|
*/ resize(path, source, name, newname, box) {
|
|
7683
|
-
return this.
|
|
7699
|
+
return this.__changeImage('resize', path, source, name, newname, box);
|
|
7684
7700
|
}
|
|
7685
7701
|
getMessage(resp) {
|
|
7686
7702
|
return this.options.getMessage(resp);
|
|
@@ -7701,6 +7717,60 @@ class DataProvider {
|
|
|
7701
7717
|
}
|
|
7702
7718
|
}
|
|
7703
7719
|
|
|
7720
|
+
__decorate([
|
|
7721
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7722
|
+
], DataProvider.prototype, "onProgress", null);
|
|
7723
|
+
__decorate([
|
|
7724
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7725
|
+
], DataProvider.prototype, "permissions", null);
|
|
7726
|
+
__decorate([
|
|
7727
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7728
|
+
], DataProvider.prototype, "canI", null);
|
|
7729
|
+
__decorate([
|
|
7730
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7731
|
+
], DataProvider.prototype, "items", null);
|
|
7732
|
+
__decorate([
|
|
7733
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7734
|
+
], DataProvider.prototype, "itemsEx", null);
|
|
7735
|
+
__decorate([
|
|
7736
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7737
|
+
], DataProvider.prototype, "tree", null);
|
|
7738
|
+
__decorate([
|
|
7739
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7740
|
+
], DataProvider.prototype, "getPathByUrl", null);
|
|
7741
|
+
__decorate([
|
|
7742
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7743
|
+
], DataProvider.prototype, "createFolder", null);
|
|
7744
|
+
__decorate([
|
|
7745
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7746
|
+
], DataProvider.prototype, "move", null);
|
|
7747
|
+
__decorate([
|
|
7748
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7749
|
+
], DataProvider.prototype, "fileRemove", null);
|
|
7750
|
+
__decorate([
|
|
7751
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7752
|
+
], DataProvider.prototype, "folderRemove", null);
|
|
7753
|
+
__decorate([
|
|
7754
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7755
|
+
], DataProvider.prototype, "folderRename", null);
|
|
7756
|
+
__decorate([
|
|
7757
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7758
|
+
], DataProvider.prototype, "fileRename", null);
|
|
7759
|
+
__decorate([
|
|
7760
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7761
|
+
], DataProvider.prototype, "crop", null);
|
|
7762
|
+
__decorate([
|
|
7763
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7764
|
+
], DataProvider.prototype, "resize", null);
|
|
7765
|
+
__decorate([
|
|
7766
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7767
|
+
], DataProvider.prototype, "getMessage", null);
|
|
7768
|
+
__decorate([
|
|
7769
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7770
|
+
], DataProvider.prototype, "isSuccess", null);
|
|
7771
|
+
__decorate([
|
|
7772
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7773
|
+
], DataProvider.prototype, "destruct", null);
|
|
7704
7774
|
|
|
7705
7775
|
|
|
7706
7776
|
/***/ }),
|
|
@@ -11787,6 +11857,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11787
11857
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.buildQuery; },
|
|
11788
11858
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.call; },
|
|
11789
11859
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callPromise; },
|
|
11860
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callThis; },
|
|
11790
11861
|
/* harmony export */ camelCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.camelCase; },
|
|
11791
11862
|
/* harmony export */ cleanFromWord: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.cleanFromWord; },
|
|
11792
11863
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.clearAlign; },
|
|
@@ -20024,6 +20095,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
20024
20095
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20025
20096
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
20026
20097
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
20098
|
+
/* harmony export */ callThis: function() { return /* binding */ callThis; },
|
|
20027
20099
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
20028
20100
|
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
20029
20101
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
@@ -20054,6 +20126,17 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
20054
20126
|
*/ function call(func, ...args) {
|
|
20055
20127
|
return func(...args);
|
|
20056
20128
|
}
|
|
20129
|
+
/**
|
|
20130
|
+
* Call function with parameters
|
|
20131
|
+
*
|
|
20132
|
+
* @example
|
|
20133
|
+
* ```js
|
|
20134
|
+
* const f = Math.random();
|
|
20135
|
+
* Jodit.modules.Helpers.call(f > 0.5 ? Math.ceil : Math.floor, f);
|
|
20136
|
+
* ```
|
|
20137
|
+
*/ function callThis(func, thisArg, ...args) {
|
|
20138
|
+
return func.apply(thisArg, args);
|
|
20139
|
+
}
|
|
20057
20140
|
/**
|
|
20058
20141
|
* Mark element for debugging
|
|
20059
20142
|
*/ function markOwner(jodit, elm) {
|
|
@@ -22503,6 +22586,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22503
22586
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query_js__WEBPACK_IMPORTED_MODULE_5__.buildQuery; },
|
|
22504
22587
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.call; },
|
|
22505
22588
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callPromise; },
|
|
22589
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callThis; },
|
|
22506
22590
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
22507
22591
|
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_9__.clearCenterAlign; },
|
|
22508
22592
|
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_18__.cns; },
|
|
@@ -24622,11 +24706,16 @@ function trimChars(value, chars) {
|
|
|
24622
24706
|
/* harmony import */ var _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91907);
|
|
24623
24707
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
24624
24708
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
|
|
24625
|
-
/* harmony import */ var
|
|
24626
|
-
/* harmony import */ var
|
|
24627
|
-
/* harmony import */ var
|
|
24628
|
-
/* harmony import */ var
|
|
24629
|
-
/* harmony import */ var
|
|
24709
|
+
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
24710
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
|
|
24711
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
24712
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
24713
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
24714
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37790);
|
|
24715
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62843);
|
|
24716
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6441);
|
|
24717
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62489);
|
|
24718
|
+
/* harmony import */ var _templates_form_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22461);
|
|
24630
24719
|
/*!
|
|
24631
24720
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24632
24721
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24646,6 +24735,11 @@ var ImageEditor_1;
|
|
|
24646
24735
|
|
|
24647
24736
|
|
|
24648
24737
|
|
|
24738
|
+
|
|
24739
|
+
|
|
24740
|
+
|
|
24741
|
+
|
|
24742
|
+
|
|
24649
24743
|
const jie = 'jodit-image-editor';
|
|
24650
24744
|
const TABS = {
|
|
24651
24745
|
resize: 'resize',
|
|
@@ -24693,9 +24787,9 @@ const TABS = {
|
|
|
24693
24787
|
return this.j.async.promise((resolve)=>{
|
|
24694
24788
|
const timestamp = new Date().getTime();
|
|
24695
24789
|
this.image = this.j.c.element('img');
|
|
24696
|
-
(0,
|
|
24697
|
-
(0,
|
|
24698
|
-
(0,
|
|
24790
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('img,.jodit-icon_loader', this.resize_box).forEach(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove);
|
|
24791
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('img,.jodit-icon_loader', this.crop_box).forEach(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove);
|
|
24792
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'background', 'transparent');
|
|
24699
24793
|
this.onSave = save;
|
|
24700
24794
|
this.resize_box.appendChild(this.j.c.element('i', {
|
|
24701
24795
|
class: 'jodit-icon_loader'
|
|
@@ -24710,7 +24804,7 @@ const TABS = {
|
|
|
24710
24804
|
}
|
|
24711
24805
|
this.image.setAttribute('src', url);
|
|
24712
24806
|
this._dialog.open();
|
|
24713
|
-
const { widthInput, heightInput } = (0,
|
|
24807
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
24714
24808
|
const onload = ()=>{
|
|
24715
24809
|
if (this.isDestructed) {
|
|
24716
24810
|
return;
|
|
@@ -24724,7 +24818,7 @@ const TABS = {
|
|
|
24724
24818
|
this.resize_box.appendChild(this.image);
|
|
24725
24819
|
this.cropImage = this.image.cloneNode(true);
|
|
24726
24820
|
this.crop_box.appendChild(this.cropImage);
|
|
24727
|
-
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove.apply(null, (0,
|
|
24821
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove.apply(null, (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)('.jodit-icon_loader', this.editor));
|
|
24728
24822
|
if (this.activeTab === TABS.crop) {
|
|
24729
24823
|
this.showCrop();
|
|
24730
24824
|
}
|
|
@@ -24746,9 +24840,9 @@ const TABS = {
|
|
|
24746
24840
|
if (!slide) {
|
|
24747
24841
|
return;
|
|
24748
24842
|
}
|
|
24749
|
-
(0,
|
|
24843
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)(`.${jie}__slider,.${jie}__area`, self.editor).forEach((elm)=>elm.classList.remove(`${jie}_active`));
|
|
24750
24844
|
slide.classList.add(`${jie}_active`);
|
|
24751
|
-
this.activeTab = (0,
|
|
24845
|
+
this.activeTab = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(slide, '-area') || TABS.resize;
|
|
24752
24846
|
const tab = self.editor.querySelector(`.${jie}__area.${jie}__area_` + self.activeTab);
|
|
24753
24847
|
if (tab) {
|
|
24754
24848
|
tab.classList.add(`${jie}_active`);
|
|
@@ -24758,14 +24852,14 @@ const TABS = {
|
|
|
24758
24852
|
}
|
|
24759
24853
|
}
|
|
24760
24854
|
onChangeSizeInput(e) {
|
|
24761
|
-
const self = this, input = e.target, { widthInput, heightInput } = (0,
|
|
24855
|
+
const self = this, input = e.target, { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor), isWidth = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(input, 'data-ref') === 'widthInput', x = parseInt(input.value, 10), minX = isWidth ? self.o.min_width : self.o.min_height, minY = !isWidth ? self.o.min_width : self.o.min_height;
|
|
24762
24856
|
let y;
|
|
24763
24857
|
if (x > minX) {
|
|
24764
|
-
(0,
|
|
24858
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, isWidth ? 'width' : 'height', x);
|
|
24765
24859
|
if (self.resizeUseRatio) {
|
|
24766
24860
|
y = isWidth ? Math.round(x / self.ratio) : Math.round(x * self.ratio);
|
|
24767
24861
|
if (y > minY) {
|
|
24768
|
-
(0,
|
|
24862
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, !isWidth ? 'width' : 'height', y);
|
|
24769
24863
|
if (isWidth) {
|
|
24770
24864
|
heightInput.value = y.toString();
|
|
24771
24865
|
} else {
|
|
@@ -24785,8 +24879,8 @@ const TABS = {
|
|
|
24785
24879
|
self.start_x = e.clientX;
|
|
24786
24880
|
self.start_y = e.clientY;
|
|
24787
24881
|
if (self.activeTab === TABS.crop) {
|
|
24788
|
-
self.top_x = (0,
|
|
24789
|
-
self.top_y = (0,
|
|
24882
|
+
self.top_x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left');
|
|
24883
|
+
self.top_y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top');
|
|
24790
24884
|
self.width = self.cropHandler.offsetWidth;
|
|
24791
24885
|
self.height = self.cropHandler.offsetHeight;
|
|
24792
24886
|
} else {
|
|
@@ -24807,7 +24901,7 @@ const TABS = {
|
|
|
24807
24901
|
if (!self.clicked) {
|
|
24808
24902
|
return;
|
|
24809
24903
|
}
|
|
24810
|
-
const { widthInput, heightInput } = (0,
|
|
24904
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
24811
24905
|
self.diff_x = e.clientX - self.start_x;
|
|
24812
24906
|
self.diff_y = e.clientY - self.start_y;
|
|
24813
24907
|
if (self.activeTab === TABS.resize && self.resizeUseRatio || self.activeTab === TABS.crop && self.cropUseRatio) {
|
|
@@ -24824,11 +24918,11 @@ const TABS = {
|
|
|
24824
24918
|
}
|
|
24825
24919
|
if (self.activeTab === TABS.resize) {
|
|
24826
24920
|
if (self.new_w > self.o.resizeMinWidth) {
|
|
24827
|
-
(0,
|
|
24921
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'width', self.new_w + 'px');
|
|
24828
24922
|
widthInput.value = self.new_w.toString();
|
|
24829
24923
|
}
|
|
24830
24924
|
if (self.new_h > self.o.resizeMinHeight) {
|
|
24831
|
-
(0,
|
|
24925
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'height', self.new_h + 'px');
|
|
24832
24926
|
heightInput.value = self.new_h.toString();
|
|
24833
24927
|
}
|
|
24834
24928
|
this.j.e.fire(self.resizeHandler, 'updatesize');
|
|
@@ -24840,7 +24934,7 @@ const TABS = {
|
|
|
24840
24934
|
if (self.top_y + self.new_h > self.cropImage.offsetHeight) {
|
|
24841
24935
|
self.new_h = self.cropImage.offsetHeight - self.top_y;
|
|
24842
24936
|
}
|
|
24843
|
-
(0,
|
|
24937
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
24844
24938
|
width: self.new_w,
|
|
24845
24939
|
height: self.new_h
|
|
24846
24940
|
});
|
|
@@ -24848,11 +24942,11 @@ const TABS = {
|
|
|
24848
24942
|
if (self.top_x + self.diff_x + self.cropHandler.offsetWidth > self.cropImage.offsetWidth) {
|
|
24849
24943
|
self.diff_x = self.cropImage.offsetWidth - self.top_x - self.cropHandler.offsetWidth;
|
|
24850
24944
|
}
|
|
24851
|
-
(0,
|
|
24945
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left', self.top_x + self.diff_x);
|
|
24852
24946
|
if (self.top_y + self.diff_y + self.cropHandler.offsetHeight > self.cropImage.offsetHeight) {
|
|
24853
24947
|
self.diff_y = self.cropImage.offsetHeight - self.top_y - self.cropHandler.offsetHeight;
|
|
24854
24948
|
}
|
|
24855
|
-
(0,
|
|
24949
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top', self.top_y + self.diff_y);
|
|
24856
24950
|
}
|
|
24857
24951
|
this.j.e.fire(self.cropHandler, 'updatesize');
|
|
24858
24952
|
}
|
|
@@ -24913,7 +25007,7 @@ const TABS = {
|
|
|
24913
25007
|
wn = nw * (h / nh);
|
|
24914
25008
|
hn = h;
|
|
24915
25009
|
}
|
|
24916
|
-
(0,
|
|
25010
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.crop_box, {
|
|
24917
25011
|
width: wn,
|
|
24918
25012
|
height: hn
|
|
24919
25013
|
});
|
|
@@ -24931,8 +25025,8 @@ const TABS = {
|
|
|
24931
25025
|
} else {
|
|
24932
25026
|
this.new_h = ImageEditor_1.calcValueByPercent(h, this.o.cropDefaultHeight);
|
|
24933
25027
|
}
|
|
24934
|
-
(0,
|
|
24935
|
-
backgroundImage: 'url(' + (0,
|
|
25028
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, {
|
|
25029
|
+
backgroundImage: 'url(' + (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(this.cropImage, 'src') + ')',
|
|
24936
25030
|
width: this.new_w,
|
|
24937
25031
|
height: this.new_h,
|
|
24938
25032
|
left: w / 2 - this.new_w / 2,
|
|
@@ -24945,8 +25039,8 @@ const TABS = {
|
|
|
24945
25039
|
return;
|
|
24946
25040
|
}
|
|
24947
25041
|
const ratioX = this.cropImage.offsetWidth / this.naturalWidth, ratioY = this.cropImage.offsetHeight / this.naturalHeight;
|
|
24948
|
-
this.cropBox.x = (0,
|
|
24949
|
-
this.cropBox.y = (0,
|
|
25042
|
+
this.cropBox.x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'left') / ratioX;
|
|
25043
|
+
this.cropBox.y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'top') / ratioY;
|
|
24950
25044
|
this.cropBox.w = this.cropHandler.offsetWidth / ratioX;
|
|
24951
25045
|
this.cropBox.h = this.cropHandler.offsetHeight / ratioY;
|
|
24952
25046
|
this.sizes.textContent = this.cropBox.w.toFixed(0) + 'x' + this.cropBox.h.toFixed(0);
|
|
@@ -24957,7 +25051,7 @@ const TABS = {
|
|
|
24957
25051
|
};
|
|
24958
25052
|
this.setHandlers = ()=>{
|
|
24959
25053
|
const self = this;
|
|
24960
|
-
const { widthInput, heightInput } = (0,
|
|
25054
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
24961
25055
|
self.j.e.on([
|
|
24962
25056
|
self.editor.querySelector('.jodit_bottomright'),
|
|
24963
25057
|
self.cropHandler
|
|
@@ -24966,11 +25060,11 @@ const TABS = {
|
|
|
24966
25060
|
self.showCrop();
|
|
24967
25061
|
this.j.e.fire(self.cropHandler, 'updatesize');
|
|
24968
25062
|
});
|
|
24969
|
-
self.j.e.on((0,
|
|
25063
|
+
self.j.e.on((0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(this.editor.querySelectorAll(`.${jie}__slider-title`)), 'click', this.onTitleModeClick).on([
|
|
24970
25064
|
widthInput,
|
|
24971
25065
|
heightInput
|
|
24972
25066
|
], 'input', this.onChangeSizeInput);
|
|
24973
|
-
const { keepAspectRatioResize, keepAspectRatioCrop } = (0,
|
|
25067
|
+
const { keepAspectRatioResize, keepAspectRatioCrop } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
24974
25068
|
if (keepAspectRatioResize) {
|
|
24975
25069
|
keepAspectRatioResize.addEventListener('change', ()=>{
|
|
24976
25070
|
this.resizeUseRatio = keepAspectRatioResize.checked;
|
|
@@ -24982,7 +25076,7 @@ const TABS = {
|
|
|
24982
25076
|
});
|
|
24983
25077
|
}
|
|
24984
25078
|
self.j.e.on(self.resizeHandler, 'updatesize', ()=>{
|
|
24985
|
-
(0,
|
|
25079
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.resizeHandler, {
|
|
24986
25080
|
top: 0,
|
|
24987
25081
|
left: 0,
|
|
24988
25082
|
width: self.image.offsetWidth || self.naturalWidth,
|
|
@@ -24993,7 +25087,7 @@ const TABS = {
|
|
|
24993
25087
|
if (!self.cropImage) {
|
|
24994
25088
|
return;
|
|
24995
25089
|
}
|
|
24996
|
-
let new_x = (0,
|
|
25090
|
+
let new_x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left'), new_y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top'), new_width = self.cropHandler.offsetWidth, new_height = self.cropHandler.offsetHeight;
|
|
24997
25091
|
if (new_x < 0) {
|
|
24998
25092
|
new_x = 0;
|
|
24999
25093
|
}
|
|
@@ -25012,7 +25106,7 @@ const TABS = {
|
|
|
25012
25106
|
new_width = new_height * self.ratio;
|
|
25013
25107
|
}
|
|
25014
25108
|
}
|
|
25015
|
-
(0,
|
|
25109
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
25016
25110
|
width: new_width,
|
|
25017
25111
|
height: new_height,
|
|
25018
25112
|
left: new_x,
|
|
@@ -25031,7 +25125,7 @@ const TABS = {
|
|
|
25031
25125
|
switch(button){
|
|
25032
25126
|
case self.buttons.saveas:
|
|
25033
25127
|
self.j.prompt('Enter new name', 'Save in new file', (name)=>{
|
|
25034
|
-
if (!(0,
|
|
25128
|
+
if (!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(name)) {
|
|
25035
25129
|
self.j.alert('The name should not be empty');
|
|
25036
25130
|
return false;
|
|
25037
25131
|
}
|
|
@@ -25047,7 +25141,7 @@ const TABS = {
|
|
|
25047
25141
|
break;
|
|
25048
25142
|
case self.buttons.reset:
|
|
25049
25143
|
if (self.activeTab === TABS.resize) {
|
|
25050
|
-
(0,
|
|
25144
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, {
|
|
25051
25145
|
width: null,
|
|
25052
25146
|
height: null
|
|
25053
25147
|
});
|
|
@@ -25062,18 +25156,24 @@ const TABS = {
|
|
|
25062
25156
|
});
|
|
25063
25157
|
});
|
|
25064
25158
|
};
|
|
25065
|
-
this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor :
|
|
25159
|
+
this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor : _config_js__WEBPACK_IMPORTED_MODULE_10__.Config.defaultOptions.imageeditor;
|
|
25066
25160
|
const o = this.options;
|
|
25067
25161
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
25068
25162
|
this.cropUseRatio = o.cropUseRatio;
|
|
25069
25163
|
this.buttons = {
|
|
25070
|
-
reset: (0,
|
|
25071
|
-
save: (0,
|
|
25072
|
-
saveas: (0,
|
|
25164
|
+
reset: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, 'update', 'Reset'),
|
|
25165
|
+
save: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, 'save', 'Save'),
|
|
25166
|
+
saveas: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, {
|
|
25167
|
+
icon: {
|
|
25168
|
+
name: 'save'
|
|
25169
|
+
},
|
|
25170
|
+
name: 'save-as',
|
|
25171
|
+
text: 'Save as ...'
|
|
25172
|
+
})
|
|
25073
25173
|
};
|
|
25074
25174
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
25075
|
-
this.editor = (0,
|
|
25076
|
-
const { resizeBox, cropBox } = (0,
|
|
25175
|
+
this.editor = (0,_templates_form_js__WEBPACK_IMPORTED_MODULE_12__.form)(this.j, this.options);
|
|
25176
|
+
const { resizeBox, cropBox } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
25077
25177
|
this.resize_box = resizeBox;
|
|
25078
25178
|
this.crop_box = cropBox;
|
|
25079
25179
|
this.sizes = this.editor.querySelector(`.${jie}__area.${jie}__area_crop .jodit-image-editor__sizes`);
|
|
@@ -25138,7 +25238,7 @@ ImageEditor = ImageEditor_1 = __decorate([
|
|
|
25138
25238
|
/**
|
|
25139
25239
|
* Open Image Editor
|
|
25140
25240
|
*/ function openImageEditor(href, name, path, source, onSuccess, onFailed) {
|
|
25141
|
-
return this.getInstance('ImageEditor', this.o).open(href, (newname, box, success, failed)=>(0,
|
|
25241
|
+
return this.getInstance('ImageEditor', this.o).open(href, (newname, box, success, failed)=>(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_8__.call)(box.action === 'resize' ? this.dataProvider.resize : this.dataProvider.crop, path, source, name, newname, box.box).then((ok)=>{
|
|
25142
25242
|
if (ok) {
|
|
25143
25243
|
success();
|
|
25144
25244
|
if (onSuccess) {
|
|
@@ -42766,7 +42866,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42766
42866
|
* ```
|
|
42767
42867
|
* @packageDocumentation
|
|
42768
42868
|
* @module constants
|
|
42769
|
-
*/ const APP_VERSION = "4.9.
|
|
42869
|
+
*/ const APP_VERSION = "4.9.30";
|
|
42770
42870
|
// prettier-ignore
|
|
42771
42871
|
const ES = "es2021";
|
|
42772
42872
|
const IS_ES_MODERN = true;
|