jodit-pro 4.9.25 → 4.9.27
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 +7 -7
- 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/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 +7 -7
- 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/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 +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/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 +9 -9
- 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/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 +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/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.9.
|
|
4
|
+
* Version: v4.9.27
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -7726,9 +7726,14 @@ ToolbarCollection = __decorate([
|
|
|
7726
7726
|
/* harmony export */ "default": function() { return /* binding */ DataProvider; }
|
|
7727
7727
|
/* harmony export */ });
|
|
7728
7728
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
7729
|
-
/* harmony import */ var
|
|
7730
|
-
/* harmony import */ var
|
|
7731
|
-
/* harmony import */ var
|
|
7729
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
7730
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23282);
|
|
7731
|
+
/* harmony import */ var _core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70091);
|
|
7732
|
+
/* harmony import */ var _core_helpers_utils_config_proto_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68934);
|
|
7733
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89890);
|
|
7734
|
+
/* harmony import */ var _core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3703);
|
|
7735
|
+
/* harmony import */ var _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54079);
|
|
7736
|
+
/* harmony import */ var _builders_item_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(159);
|
|
7732
7737
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7733
7738
|
try {
|
|
7734
7739
|
var info = gen[key](arg);
|
|
@@ -7814,7 +7819,18 @@ function _object_spread_props(target, source) {
|
|
|
7814
7819
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7815
7820
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
7816
7821
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
7817
|
-
*/
|
|
7822
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
7823
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7824
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7825
|
+
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;
|
|
7826
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7827
|
+
};
|
|
7828
|
+
|
|
7829
|
+
|
|
7830
|
+
|
|
7831
|
+
|
|
7832
|
+
|
|
7833
|
+
|
|
7818
7834
|
|
|
7819
7835
|
|
|
7820
7836
|
|
|
@@ -7847,13 +7863,13 @@ class DataProvider {
|
|
|
7847
7863
|
ajax === null || ajax === void 0 ? void 0 : ajax.abort();
|
|
7848
7864
|
instances.delete(name);
|
|
7849
7865
|
}
|
|
7850
|
-
const opts = (0,
|
|
7866
|
+
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)({
|
|
7851
7867
|
onProgress: this.progressHandler
|
|
7852
7868
|
}, this.o.ajax));
|
|
7853
7869
|
if (opts.prepareData) {
|
|
7854
7870
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
7855
7871
|
}
|
|
7856
|
-
const ajax = new
|
|
7872
|
+
const ajax = new _core_request_ajax_js__WEBPACK_IMPORTED_MODULE_7__.Ajax(opts);
|
|
7857
7873
|
instances.set(name, ajax);
|
|
7858
7874
|
const promise = ajax.send();
|
|
7859
7875
|
promise.finally(()=>{
|
|
@@ -7883,7 +7899,7 @@ class DataProvider {
|
|
|
7883
7899
|
if (this.o.permissions.url) {
|
|
7884
7900
|
return this.get('permissions').then((resp)=>{
|
|
7885
7901
|
if (this.parent.isInDestruct) {
|
|
7886
|
-
throw (0,
|
|
7902
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.abort)();
|
|
7887
7903
|
}
|
|
7888
7904
|
let process = this.o.permissions.process;
|
|
7889
7905
|
if (!process) {
|
|
@@ -7906,7 +7922,7 @@ class DataProvider {
|
|
|
7906
7922
|
const rule = 'allow' + action;
|
|
7907
7923
|
if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
7908
7924
|
if (!possibleRules.has(rule)) {
|
|
7909
|
-
throw (0,
|
|
7925
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Wrong action ' + action);
|
|
7910
7926
|
}
|
|
7911
7927
|
}
|
|
7912
7928
|
const presetValue = this.o.permissionsPresets[rule];
|
|
@@ -7937,18 +7953,18 @@ class DataProvider {
|
|
|
7937
7953
|
/**
|
|
7938
7954
|
* Load items list by path and source
|
|
7939
7955
|
*/ items(path, source, mods = {}) {
|
|
7940
|
-
return this.__items(path, source, mods, (resp)=>this.
|
|
7956
|
+
return this.__items(path, source, mods, (resp)=>this.__generateItemsList(resp.data.sources, mods));
|
|
7941
7957
|
}
|
|
7942
7958
|
/**
|
|
7943
7959
|
* Load items list by path and source
|
|
7944
7960
|
*/ itemsEx(path, source, mods = {}) {
|
|
7945
7961
|
const calcTotal = (sources)=>sources.reduce((acc, source)=>acc + source.files.length, 0);
|
|
7946
7962
|
return this.__items(path, source, mods, (resp)=>({
|
|
7947
|
-
items: this.
|
|
7963
|
+
items: this.__generateItemsList(resp.data.sources, mods),
|
|
7948
7964
|
loadedTotal: calcTotal(resp.data.sources)
|
|
7949
7965
|
}));
|
|
7950
7966
|
}
|
|
7951
|
-
|
|
7967
|
+
__generateItemsList(sources, mods = {}) {
|
|
7952
7968
|
const elements = [];
|
|
7953
7969
|
const canBeFile = (item)=>item.type === 'folder' || !mods.onlyImages || item.isImage === undefined || item.isImage;
|
|
7954
7970
|
const inFilter = (item)=>{
|
|
@@ -7958,12 +7974,12 @@ class DataProvider {
|
|
|
7958
7974
|
sources.forEach((source)=>{
|
|
7959
7975
|
if (source.files && source.files.length) {
|
|
7960
7976
|
const { sort } = this.o;
|
|
7961
|
-
if ((0,
|
|
7977
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(sort) && mods.sortBy) {
|
|
7962
7978
|
source.files.sort((a, b)=>sort(a, b, mods.sortBy));
|
|
7963
7979
|
}
|
|
7964
7980
|
source.files.forEach((item)=>{
|
|
7965
7981
|
if (inFilter(item) && canBeFile(item)) {
|
|
7966
|
-
elements.push(
|
|
7982
|
+
elements.push(_builders_item_js__WEBPACK_IMPORTED_MODULE_8__.FileBrowserItem.create(_object_spread_props(_object_spread({}, item), {
|
|
7967
7983
|
sourceName: source.name,
|
|
7968
7984
|
source
|
|
7969
7985
|
})));
|
|
@@ -7975,7 +7991,7 @@ class DataProvider {
|
|
|
7975
7991
|
}
|
|
7976
7992
|
tree(path, source) {
|
|
7977
7993
|
return _async_to_generator(function*() {
|
|
7978
|
-
path = (0,
|
|
7994
|
+
path = (0,_core_helpers_normalize_normalize_relative_path_js__WEBPACK_IMPORTED_MODULE_3__.normalizeRelativePath)(path);
|
|
7979
7995
|
if (!this.o.folder) {
|
|
7980
7996
|
return Promise.reject(Error('Set Folder Api options'));
|
|
7981
7997
|
}
|
|
@@ -7997,12 +8013,12 @@ class DataProvider {
|
|
|
7997
8013
|
/**
|
|
7998
8014
|
* Get path by url. You can use this method in another modules
|
|
7999
8015
|
*/ getPathByUrl(url) {
|
|
8000
|
-
(0,
|
|
8016
|
+
(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_6__.set)('options.getLocalFileByUrl.data.url', url, this);
|
|
8001
8017
|
return this.get('getLocalFileByUrl').then((resp)=>{
|
|
8002
8018
|
if (this.isSuccess(resp)) {
|
|
8003
8019
|
return resp.data;
|
|
8004
8020
|
}
|
|
8005
|
-
throw (0,
|
|
8021
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
8006
8022
|
});
|
|
8007
8023
|
}
|
|
8008
8024
|
/**
|
|
@@ -8014,7 +8030,7 @@ class DataProvider {
|
|
|
8014
8030
|
*/ createFolder(name, path, source) {
|
|
8015
8031
|
const { create } = this.o;
|
|
8016
8032
|
if (!create) {
|
|
8017
|
-
throw (0,
|
|
8033
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Create api options');
|
|
8018
8034
|
}
|
|
8019
8035
|
create.data.source = source;
|
|
8020
8036
|
create.data.path = path;
|
|
@@ -8023,7 +8039,7 @@ class DataProvider {
|
|
|
8023
8039
|
if (this.isSuccess(resp)) {
|
|
8024
8040
|
return true;
|
|
8025
8041
|
}
|
|
8026
|
-
throw (0,
|
|
8042
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
8027
8043
|
});
|
|
8028
8044
|
}
|
|
8029
8045
|
/**
|
|
@@ -8035,7 +8051,7 @@ class DataProvider {
|
|
|
8035
8051
|
const mode = isFile ? 'fileMove' : 'folderMove';
|
|
8036
8052
|
const option = this.options[mode];
|
|
8037
8053
|
if (!option) {
|
|
8038
|
-
throw (0,
|
|
8054
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Set Move api options');
|
|
8039
8055
|
}
|
|
8040
8056
|
option.data.from = filepath;
|
|
8041
8057
|
option.data.path = path;
|
|
@@ -8044,7 +8060,7 @@ class DataProvider {
|
|
|
8044
8060
|
if (this.isSuccess(resp)) {
|
|
8045
8061
|
return true;
|
|
8046
8062
|
}
|
|
8047
|
-
throw (0,
|
|
8063
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(this.getMessage(resp));
|
|
8048
8064
|
});
|
|
8049
8065
|
}
|
|
8050
8066
|
/**
|
|
@@ -8053,10 +8069,10 @@ class DataProvider {
|
|
|
8053
8069
|
* @param path - Relative path
|
|
8054
8070
|
* @param file - The filename
|
|
8055
8071
|
* @param source - Source
|
|
8056
|
-
*/
|
|
8072
|
+
*/ __remove(action, path, file, source) {
|
|
8057
8073
|
const fr = this.o[action];
|
|
8058
8074
|
if (!fr) {
|
|
8059
|
-
throw (0,
|
|
8075
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(`Set "${action}" api options`);
|
|
8060
8076
|
}
|
|
8061
8077
|
fr.data.path = path;
|
|
8062
8078
|
fr.data.name = file;
|
|
@@ -8075,7 +8091,7 @@ class DataProvider {
|
|
|
8075
8091
|
* @param file - The filename
|
|
8076
8092
|
* @param source - Source
|
|
8077
8093
|
*/ fileRemove(path, file, source) {
|
|
8078
|
-
return this.
|
|
8094
|
+
return this.__remove('fileRemove', path, file, source);
|
|
8079
8095
|
}
|
|
8080
8096
|
/**
|
|
8081
8097
|
* Deleting a folder
|
|
@@ -8084,7 +8100,7 @@ class DataProvider {
|
|
|
8084
8100
|
* @param file - The filename
|
|
8085
8101
|
* @param source - Source
|
|
8086
8102
|
*/ folderRemove(path, file, source) {
|
|
8087
|
-
return this.
|
|
8103
|
+
return this.__remove('folderRemove', path, file, source);
|
|
8088
8104
|
}
|
|
8089
8105
|
/**
|
|
8090
8106
|
* Rename action
|
|
@@ -8093,10 +8109,10 @@ class DataProvider {
|
|
|
8093
8109
|
* @param name - Old name
|
|
8094
8110
|
* @param newname - New name
|
|
8095
8111
|
* @param source - Source
|
|
8096
|
-
*/
|
|
8112
|
+
*/ __rename(action, path, name, newname, source) {
|
|
8097
8113
|
const fr = this.o[action];
|
|
8098
8114
|
if (!fr) {
|
|
8099
|
-
throw (0,
|
|
8115
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_5__.error)(`Set "${action}" api options`);
|
|
8100
8116
|
}
|
|
8101
8117
|
fr.data.path = path;
|
|
8102
8118
|
fr.data.name = name;
|
|
@@ -8112,14 +8128,14 @@ class DataProvider {
|
|
|
8112
8128
|
/**
|
|
8113
8129
|
* Rename folder
|
|
8114
8130
|
*/ folderRename(path, name, newname, source) {
|
|
8115
|
-
return this.
|
|
8131
|
+
return this.__rename('folderRename', path, name, newname, source);
|
|
8116
8132
|
}
|
|
8117
8133
|
/**
|
|
8118
8134
|
* Rename file
|
|
8119
8135
|
*/ fileRename(path, name, newname, source) {
|
|
8120
|
-
return this.
|
|
8136
|
+
return this.__rename('fileRename', path, name, newname, source);
|
|
8121
8137
|
}
|
|
8122
|
-
|
|
8138
|
+
__changeImage(type, path, source, name, newname, box) {
|
|
8123
8139
|
if (!this.o[type]) {
|
|
8124
8140
|
this.o[type] = {
|
|
8125
8141
|
data: {}
|
|
@@ -8145,12 +8161,12 @@ class DataProvider {
|
|
|
8145
8161
|
/**
|
|
8146
8162
|
* Send command to server to crop image
|
|
8147
8163
|
*/ crop(path, source, name, newname, box) {
|
|
8148
|
-
return this.
|
|
8164
|
+
return this.__changeImage('crop', path, source, name, newname, box);
|
|
8149
8165
|
}
|
|
8150
8166
|
/**
|
|
8151
8167
|
* Send command to server to resize image
|
|
8152
8168
|
*/ resize(path, source, name, newname, box) {
|
|
8153
|
-
return this.
|
|
8169
|
+
return this.__changeImage('resize', path, source, name, newname, box);
|
|
8154
8170
|
}
|
|
8155
8171
|
getMessage(resp) {
|
|
8156
8172
|
return this.options.getMessage(resp);
|
|
@@ -8171,6 +8187,60 @@ class DataProvider {
|
|
|
8171
8187
|
}
|
|
8172
8188
|
}
|
|
8173
8189
|
|
|
8190
|
+
__decorate([
|
|
8191
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8192
|
+
], DataProvider.prototype, "onProgress", null);
|
|
8193
|
+
__decorate([
|
|
8194
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8195
|
+
], DataProvider.prototype, "permissions", null);
|
|
8196
|
+
__decorate([
|
|
8197
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8198
|
+
], DataProvider.prototype, "canI", null);
|
|
8199
|
+
__decorate([
|
|
8200
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8201
|
+
], DataProvider.prototype, "items", null);
|
|
8202
|
+
__decorate([
|
|
8203
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8204
|
+
], DataProvider.prototype, "itemsEx", null);
|
|
8205
|
+
__decorate([
|
|
8206
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8207
|
+
], DataProvider.prototype, "tree", null);
|
|
8208
|
+
__decorate([
|
|
8209
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8210
|
+
], DataProvider.prototype, "getPathByUrl", null);
|
|
8211
|
+
__decorate([
|
|
8212
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8213
|
+
], DataProvider.prototype, "createFolder", null);
|
|
8214
|
+
__decorate([
|
|
8215
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8216
|
+
], DataProvider.prototype, "move", null);
|
|
8217
|
+
__decorate([
|
|
8218
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8219
|
+
], DataProvider.prototype, "fileRemove", null);
|
|
8220
|
+
__decorate([
|
|
8221
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8222
|
+
], DataProvider.prototype, "folderRemove", null);
|
|
8223
|
+
__decorate([
|
|
8224
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8225
|
+
], DataProvider.prototype, "folderRename", null);
|
|
8226
|
+
__decorate([
|
|
8227
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8228
|
+
], DataProvider.prototype, "fileRename", null);
|
|
8229
|
+
__decorate([
|
|
8230
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8231
|
+
], DataProvider.prototype, "crop", null);
|
|
8232
|
+
__decorate([
|
|
8233
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8234
|
+
], DataProvider.prototype, "resize", null);
|
|
8235
|
+
__decorate([
|
|
8236
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8237
|
+
], DataProvider.prototype, "getMessage", null);
|
|
8238
|
+
__decorate([
|
|
8239
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8240
|
+
], DataProvider.prototype, "isSuccess", null);
|
|
8241
|
+
__decorate([
|
|
8242
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
8243
|
+
], DataProvider.prototype, "destruct", null);
|
|
8174
8244
|
|
|
8175
8245
|
|
|
8176
8246
|
/***/ }),
|
|
@@ -12547,6 +12617,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12547
12617
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.buildQuery; },
|
|
12548
12618
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.call; },
|
|
12549
12619
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callPromise; },
|
|
12620
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.callThis; },
|
|
12550
12621
|
/* harmony export */ camelCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.camelCase; },
|
|
12551
12622
|
/* harmony export */ cleanFromWord: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.cleanFromWord; },
|
|
12552
12623
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.clearAlign; },
|
|
@@ -21451,6 +21522,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
21451
21522
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21452
21523
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
21453
21524
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
21525
|
+
/* harmony export */ callThis: function() { return /* binding */ callThis; },
|
|
21454
21526
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
21455
21527
|
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
21456
21528
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
@@ -21481,6 +21553,17 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
21481
21553
|
*/ function call(func, ...args) {
|
|
21482
21554
|
return func(...args);
|
|
21483
21555
|
}
|
|
21556
|
+
/**
|
|
21557
|
+
* Call function with parameters
|
|
21558
|
+
*
|
|
21559
|
+
* @example
|
|
21560
|
+
* ```js
|
|
21561
|
+
* const f = Math.random();
|
|
21562
|
+
* Jodit.modules.Helpers.call(f > 0.5 ? Math.ceil : Math.floor, f);
|
|
21563
|
+
* ```
|
|
21564
|
+
*/ function callThis(func, thisArg, ...args) {
|
|
21565
|
+
return func.apply(thisArg, args);
|
|
21566
|
+
}
|
|
21484
21567
|
/**
|
|
21485
21568
|
* Mark element for debugging
|
|
21486
21569
|
*/ function markOwner(jodit, elm) {
|
|
@@ -24139,6 +24222,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24139
24222
|
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query_js__WEBPACK_IMPORTED_MODULE_5__.buildQuery; },
|
|
24140
24223
|
/* harmony export */ call: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.call; },
|
|
24141
24224
|
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callPromise; },
|
|
24225
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.callThis; },
|
|
24142
24226
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
24143
24227
|
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css_js__WEBPACK_IMPORTED_MODULE_9__.clearCenterAlign; },
|
|
24144
24228
|
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated_js__WEBPACK_IMPORTED_MODULE_18__.cns; },
|
|
@@ -26399,11 +26483,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26399
26483
|
/* harmony import */ var _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91907);
|
|
26400
26484
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
26401
26485
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
|
|
26402
|
-
/* harmony import */ var
|
|
26403
|
-
/* harmony import */ var
|
|
26404
|
-
/* harmony import */ var
|
|
26405
|
-
/* harmony import */ var
|
|
26406
|
-
/* harmony import */ var
|
|
26486
|
+
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4510);
|
|
26487
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
|
|
26488
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
26489
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
26490
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
26491
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37790);
|
|
26492
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62843);
|
|
26493
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6441);
|
|
26494
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62489);
|
|
26495
|
+
/* harmony import */ var _templates_form_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(22461);
|
|
26407
26496
|
/*!
|
|
26408
26497
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26409
26498
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26423,6 +26512,11 @@ var ImageEditor_1;
|
|
|
26423
26512
|
|
|
26424
26513
|
|
|
26425
26514
|
|
|
26515
|
+
|
|
26516
|
+
|
|
26517
|
+
|
|
26518
|
+
|
|
26519
|
+
|
|
26426
26520
|
const jie = 'jodit-image-editor';
|
|
26427
26521
|
const TABS = {
|
|
26428
26522
|
resize: 'resize',
|
|
@@ -26470,9 +26564,9 @@ const TABS = {
|
|
|
26470
26564
|
return this.j.async.promise((resolve)=>{
|
|
26471
26565
|
const timestamp = new Date().getTime();
|
|
26472
26566
|
this.image = this.j.c.element('img');
|
|
26473
|
-
(0,
|
|
26474
|
-
(0,
|
|
26475
|
-
(0,
|
|
26567
|
+
(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);
|
|
26568
|
+
(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);
|
|
26569
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'background', 'transparent');
|
|
26476
26570
|
this.onSave = save;
|
|
26477
26571
|
this.resize_box.appendChild(this.j.c.element('i', {
|
|
26478
26572
|
class: 'jodit-icon_loader'
|
|
@@ -26487,7 +26581,7 @@ const TABS = {
|
|
|
26487
26581
|
}
|
|
26488
26582
|
this.image.setAttribute('src', url);
|
|
26489
26583
|
this._dialog.open();
|
|
26490
|
-
const { widthInput, heightInput } = (0,
|
|
26584
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
26491
26585
|
const onload = ()=>{
|
|
26492
26586
|
if (this.isDestructed) {
|
|
26493
26587
|
return;
|
|
@@ -26501,7 +26595,7 @@ const TABS = {
|
|
|
26501
26595
|
this.resize_box.appendChild(this.image);
|
|
26502
26596
|
this.cropImage = this.image.cloneNode(true);
|
|
26503
26597
|
this.crop_box.appendChild(this.cropImage);
|
|
26504
|
-
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove.apply(null, (0,
|
|
26598
|
+
_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));
|
|
26505
26599
|
if (this.activeTab === TABS.crop) {
|
|
26506
26600
|
this.showCrop();
|
|
26507
26601
|
}
|
|
@@ -26523,9 +26617,9 @@ const TABS = {
|
|
|
26523
26617
|
if (!slide) {
|
|
26524
26618
|
return;
|
|
26525
26619
|
}
|
|
26526
|
-
(0,
|
|
26620
|
+
(0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)(`.${jie}__slider,.${jie}__area`, self.editor).forEach((elm)=>elm.classList.remove(`${jie}_active`));
|
|
26527
26621
|
slide.classList.add(`${jie}_active`);
|
|
26528
|
-
this.activeTab = (0,
|
|
26622
|
+
this.activeTab = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(slide, '-area') || TABS.resize;
|
|
26529
26623
|
const tab = self.editor.querySelector(`.${jie}__area.${jie}__area_` + self.activeTab);
|
|
26530
26624
|
if (tab) {
|
|
26531
26625
|
tab.classList.add(`${jie}_active`);
|
|
@@ -26535,14 +26629,14 @@ const TABS = {
|
|
|
26535
26629
|
}
|
|
26536
26630
|
}
|
|
26537
26631
|
onChangeSizeInput(e) {
|
|
26538
|
-
const self = this, input = e.target, { widthInput, heightInput } = (0,
|
|
26632
|
+
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;
|
|
26539
26633
|
let y;
|
|
26540
26634
|
if (x > minX) {
|
|
26541
|
-
(0,
|
|
26635
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, isWidth ? 'width' : 'height', x);
|
|
26542
26636
|
if (self.resizeUseRatio) {
|
|
26543
26637
|
y = isWidth ? Math.round(x / self.ratio) : Math.round(x * self.ratio);
|
|
26544
26638
|
if (y > minY) {
|
|
26545
|
-
(0,
|
|
26639
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, !isWidth ? 'width' : 'height', y);
|
|
26546
26640
|
if (isWidth) {
|
|
26547
26641
|
heightInput.value = y.toString();
|
|
26548
26642
|
} else {
|
|
@@ -26562,8 +26656,8 @@ const TABS = {
|
|
|
26562
26656
|
self.start_x = e.clientX;
|
|
26563
26657
|
self.start_y = e.clientY;
|
|
26564
26658
|
if (self.activeTab === TABS.crop) {
|
|
26565
|
-
self.top_x = (0,
|
|
26566
|
-
self.top_y = (0,
|
|
26659
|
+
self.top_x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left');
|
|
26660
|
+
self.top_y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top');
|
|
26567
26661
|
self.width = self.cropHandler.offsetWidth;
|
|
26568
26662
|
self.height = self.cropHandler.offsetHeight;
|
|
26569
26663
|
} else {
|
|
@@ -26584,7 +26678,7 @@ const TABS = {
|
|
|
26584
26678
|
if (!self.clicked) {
|
|
26585
26679
|
return;
|
|
26586
26680
|
}
|
|
26587
|
-
const { widthInput, heightInput } = (0,
|
|
26681
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
26588
26682
|
self.diff_x = e.clientX - self.start_x;
|
|
26589
26683
|
self.diff_y = e.clientY - self.start_y;
|
|
26590
26684
|
if (self.activeTab === TABS.resize && self.resizeUseRatio || self.activeTab === TABS.crop && self.cropUseRatio) {
|
|
@@ -26601,11 +26695,11 @@ const TABS = {
|
|
|
26601
26695
|
}
|
|
26602
26696
|
if (self.activeTab === TABS.resize) {
|
|
26603
26697
|
if (self.new_w > self.o.resizeMinWidth) {
|
|
26604
|
-
(0,
|
|
26698
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'width', self.new_w + 'px');
|
|
26605
26699
|
widthInput.value = self.new_w.toString();
|
|
26606
26700
|
}
|
|
26607
26701
|
if (self.new_h > self.o.resizeMinHeight) {
|
|
26608
|
-
(0,
|
|
26702
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, 'height', self.new_h + 'px');
|
|
26609
26703
|
heightInput.value = self.new_h.toString();
|
|
26610
26704
|
}
|
|
26611
26705
|
this.j.e.fire(self.resizeHandler, 'updatesize');
|
|
@@ -26617,7 +26711,7 @@ const TABS = {
|
|
|
26617
26711
|
if (self.top_y + self.new_h > self.cropImage.offsetHeight) {
|
|
26618
26712
|
self.new_h = self.cropImage.offsetHeight - self.top_y;
|
|
26619
26713
|
}
|
|
26620
|
-
(0,
|
|
26714
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
26621
26715
|
width: self.new_w,
|
|
26622
26716
|
height: self.new_h
|
|
26623
26717
|
});
|
|
@@ -26625,11 +26719,11 @@ const TABS = {
|
|
|
26625
26719
|
if (self.top_x + self.diff_x + self.cropHandler.offsetWidth > self.cropImage.offsetWidth) {
|
|
26626
26720
|
self.diff_x = self.cropImage.offsetWidth - self.top_x - self.cropHandler.offsetWidth;
|
|
26627
26721
|
}
|
|
26628
|
-
(0,
|
|
26722
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'left', self.top_x + self.diff_x);
|
|
26629
26723
|
if (self.top_y + self.diff_y + self.cropHandler.offsetHeight > self.cropImage.offsetHeight) {
|
|
26630
26724
|
self.diff_y = self.cropImage.offsetHeight - self.top_y - self.cropHandler.offsetHeight;
|
|
26631
26725
|
}
|
|
26632
|
-
(0,
|
|
26726
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, 'top', self.top_y + self.diff_y);
|
|
26633
26727
|
}
|
|
26634
26728
|
this.j.e.fire(self.cropHandler, 'updatesize');
|
|
26635
26729
|
}
|
|
@@ -26690,7 +26784,7 @@ const TABS = {
|
|
|
26690
26784
|
wn = nw * (h / nh);
|
|
26691
26785
|
hn = h;
|
|
26692
26786
|
}
|
|
26693
|
-
(0,
|
|
26787
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.crop_box, {
|
|
26694
26788
|
width: wn,
|
|
26695
26789
|
height: hn
|
|
26696
26790
|
});
|
|
@@ -26708,8 +26802,8 @@ const TABS = {
|
|
|
26708
26802
|
} else {
|
|
26709
26803
|
this.new_h = ImageEditor_1.calcValueByPercent(h, this.o.cropDefaultHeight);
|
|
26710
26804
|
}
|
|
26711
|
-
(0,
|
|
26712
|
-
backgroundImage: 'url(' + (0,
|
|
26805
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, {
|
|
26806
|
+
backgroundImage: 'url(' + (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(this.cropImage, 'src') + ')',
|
|
26713
26807
|
width: this.new_w,
|
|
26714
26808
|
height: this.new_h,
|
|
26715
26809
|
left: w / 2 - this.new_w / 2,
|
|
@@ -26722,8 +26816,8 @@ const TABS = {
|
|
|
26722
26816
|
return;
|
|
26723
26817
|
}
|
|
26724
26818
|
const ratioX = this.cropImage.offsetWidth / this.naturalWidth, ratioY = this.cropImage.offsetHeight / this.naturalHeight;
|
|
26725
|
-
this.cropBox.x = (0,
|
|
26726
|
-
this.cropBox.y = (0,
|
|
26819
|
+
this.cropBox.x = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'left') / ratioX;
|
|
26820
|
+
this.cropBox.y = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.cropHandler, 'top') / ratioY;
|
|
26727
26821
|
this.cropBox.w = this.cropHandler.offsetWidth / ratioX;
|
|
26728
26822
|
this.cropBox.h = this.cropHandler.offsetHeight / ratioY;
|
|
26729
26823
|
this.sizes.textContent = this.cropBox.w.toFixed(0) + 'x' + this.cropBox.h.toFixed(0);
|
|
@@ -26734,7 +26828,7 @@ const TABS = {
|
|
|
26734
26828
|
};
|
|
26735
26829
|
this.setHandlers = ()=>{
|
|
26736
26830
|
const self = this;
|
|
26737
|
-
const { widthInput, heightInput } = (0,
|
|
26831
|
+
const { widthInput, heightInput } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
26738
26832
|
self.j.e.on([
|
|
26739
26833
|
self.editor.querySelector('.jodit_bottomright'),
|
|
26740
26834
|
self.cropHandler
|
|
@@ -26743,11 +26837,11 @@ const TABS = {
|
|
|
26743
26837
|
self.showCrop();
|
|
26744
26838
|
this.j.e.fire(self.cropHandler, 'updatesize');
|
|
26745
26839
|
});
|
|
26746
|
-
self.j.e.on((0,
|
|
26840
|
+
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([
|
|
26747
26841
|
widthInput,
|
|
26748
26842
|
heightInput
|
|
26749
26843
|
], 'input', this.onChangeSizeInput);
|
|
26750
|
-
const { keepAspectRatioResize, keepAspectRatioCrop } = (0,
|
|
26844
|
+
const { keepAspectRatioResize, keepAspectRatioCrop } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
26751
26845
|
if (keepAspectRatioResize) {
|
|
26752
26846
|
keepAspectRatioResize.addEventListener('change', ()=>{
|
|
26753
26847
|
this.resizeUseRatio = keepAspectRatioResize.checked;
|
|
@@ -26759,7 +26853,7 @@ const TABS = {
|
|
|
26759
26853
|
});
|
|
26760
26854
|
}
|
|
26761
26855
|
self.j.e.on(self.resizeHandler, 'updatesize', ()=>{
|
|
26762
|
-
(0,
|
|
26856
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.resizeHandler, {
|
|
26763
26857
|
top: 0,
|
|
26764
26858
|
left: 0,
|
|
26765
26859
|
width: self.image.offsetWidth || self.naturalWidth,
|
|
@@ -26770,7 +26864,7 @@ const TABS = {
|
|
|
26770
26864
|
if (!self.cropImage) {
|
|
26771
26865
|
return;
|
|
26772
26866
|
}
|
|
26773
|
-
let new_x = (0,
|
|
26867
|
+
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;
|
|
26774
26868
|
if (new_x < 0) {
|
|
26775
26869
|
new_x = 0;
|
|
26776
26870
|
}
|
|
@@ -26789,7 +26883,7 @@ const TABS = {
|
|
|
26789
26883
|
new_width = new_height * self.ratio;
|
|
26790
26884
|
}
|
|
26791
26885
|
}
|
|
26792
|
-
(0,
|
|
26886
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.cropHandler, {
|
|
26793
26887
|
width: new_width,
|
|
26794
26888
|
height: new_height,
|
|
26795
26889
|
left: new_x,
|
|
@@ -26808,7 +26902,7 @@ const TABS = {
|
|
|
26808
26902
|
switch(button){
|
|
26809
26903
|
case self.buttons.saveas:
|
|
26810
26904
|
self.j.prompt('Enter new name', 'Save in new file', (name)=>{
|
|
26811
|
-
if (!(0,
|
|
26905
|
+
if (!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(name)) {
|
|
26812
26906
|
self.j.alert('The name should not be empty');
|
|
26813
26907
|
return false;
|
|
26814
26908
|
}
|
|
@@ -26824,7 +26918,7 @@ const TABS = {
|
|
|
26824
26918
|
break;
|
|
26825
26919
|
case self.buttons.reset:
|
|
26826
26920
|
if (self.activeTab === TABS.resize) {
|
|
26827
|
-
(0,
|
|
26921
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(self.image, {
|
|
26828
26922
|
width: null,
|
|
26829
26923
|
height: null
|
|
26830
26924
|
});
|
|
@@ -26839,18 +26933,24 @@ const TABS = {
|
|
|
26839
26933
|
});
|
|
26840
26934
|
});
|
|
26841
26935
|
};
|
|
26842
|
-
this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor :
|
|
26936
|
+
this.options = editor && editor.o && editor.o.imageeditor ? editor.o.imageeditor : _config_js__WEBPACK_IMPORTED_MODULE_10__.Config.defaultOptions.imageeditor;
|
|
26843
26937
|
const o = this.options;
|
|
26844
26938
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
26845
26939
|
this.cropUseRatio = o.cropUseRatio;
|
|
26846
26940
|
this.buttons = {
|
|
26847
|
-
reset: (0,
|
|
26848
|
-
save: (0,
|
|
26849
|
-
saveas: (0,
|
|
26941
|
+
reset: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, 'update', 'Reset'),
|
|
26942
|
+
save: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, 'save', 'Save'),
|
|
26943
|
+
saveas: (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_9__.Button)(this.j, {
|
|
26944
|
+
icon: {
|
|
26945
|
+
name: 'save'
|
|
26946
|
+
},
|
|
26947
|
+
name: 'save-as',
|
|
26948
|
+
text: 'Save as ...'
|
|
26949
|
+
})
|
|
26850
26950
|
};
|
|
26851
26951
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
26852
|
-
this.editor = (0,
|
|
26853
|
-
const { resizeBox, cropBox } = (0,
|
|
26952
|
+
this.editor = (0,_templates_form_js__WEBPACK_IMPORTED_MODULE_12__.form)(this.j, this.options);
|
|
26953
|
+
const { resizeBox, cropBox } = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.refs)(this.editor);
|
|
26854
26954
|
this.resize_box = resizeBox;
|
|
26855
26955
|
this.crop_box = cropBox;
|
|
26856
26956
|
this.sizes = this.editor.querySelector(`.${jie}__area.${jie}__area_crop .jodit-image-editor__sizes`);
|
|
@@ -26915,7 +27015,7 @@ ImageEditor = ImageEditor_1 = __decorate([
|
|
|
26915
27015
|
/**
|
|
26916
27016
|
* Open Image Editor
|
|
26917
27017
|
*/ function openImageEditor(href, name, path, source, onSuccess, onFailed) {
|
|
26918
|
-
return this.getInstance('ImageEditor', this.o).open(href, (newname, box, success, failed)=>(0,
|
|
27018
|
+
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)=>{
|
|
26919
27019
|
if (ok) {
|
|
26920
27020
|
success();
|
|
26921
27021
|
if (onSuccess) {
|
|
@@ -45736,7 +45836,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45736
45836
|
* ```
|
|
45737
45837
|
* @packageDocumentation
|
|
45738
45838
|
* @module constants
|
|
45739
|
-
*/ const APP_VERSION = "4.9.
|
|
45839
|
+
*/ const APP_VERSION = "4.9.27";
|
|
45740
45840
|
// prettier-ignore
|
|
45741
45841
|
const ES = "es2015";
|
|
45742
45842
|
const IS_ES_MODERN = true;
|