jodit-pro 4.1.9 → 4.1.11
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 +2 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +104 -75
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- 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/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.css +2 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +104 -75
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +2 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +103 -75
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- 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/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 +2 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +103 -75
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- 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/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 +3 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +106 -77
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- 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/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/package.json +1 -1
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 Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.1.
|
|
4
|
+
* Version: v4.1.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2275,7 +2275,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2275
2275
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2276
2276
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2277
2277
|
*/
|
|
2278
|
-
const APP_VERSION = "4.1.
|
|
2278
|
+
const APP_VERSION = "4.1.11";
|
|
2279
2279
|
// prettier-ignore
|
|
2280
2280
|
const ES = "es2021";
|
|
2281
2281
|
const IS_ES_MODERN = true;
|
|
@@ -2965,14 +2965,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2965
2965
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.s; },
|
|
2966
2966
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.s; },
|
|
2967
2967
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.C; },
|
|
2968
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
2968
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.N; },
|
|
2969
2969
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.A; },
|
|
2970
2970
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.N; },
|
|
2971
2971
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.m; },
|
|
2972
2972
|
/* harmony export */ persistent: function() { return /* reexport safe */ _persistent_persistent__WEBPACK_IMPORTED_MODULE_8__.y; },
|
|
2973
2973
|
/* harmony export */ throttle: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.n; },
|
|
2974
2974
|
/* harmony export */ wait: function() { return /* reexport safe */ _wait_wait__WEBPACK_IMPORTED_MODULE_9__.u; },
|
|
2975
|
-
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
2975
|
+
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.w; }
|
|
2976
2976
|
/* harmony export */ });
|
|
2977
2977
|
/* harmony import */ var _autobind_autobind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26412);
|
|
2978
2978
|
/* harmony import */ var _cache_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22002);
|
|
@@ -3133,8 +3133,8 @@ function wait(condition) {
|
|
|
3133
3133
|
|
|
3134
3134
|
"use strict";
|
|
3135
3135
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3136
|
-
/* harmony export */
|
|
3137
|
-
/* harmony export */
|
|
3136
|
+
/* harmony export */ N: function() { return /* binding */ getPropertyDescriptor; },
|
|
3137
|
+
/* harmony export */ w: function() { return /* binding */ watch; }
|
|
3138
3138
|
/* harmony export */ });
|
|
3139
3139
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
3140
3140
|
/* harmony import */ var jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31789);
|
|
@@ -3249,7 +3249,6 @@ function watch(observeFields, opts) {
|
|
|
3249
3249
|
}
|
|
3250
3250
|
};
|
|
3251
3251
|
}
|
|
3252
|
-
/* harmony default export */ __webpack_exports__.Ay = (watch);
|
|
3253
3252
|
|
|
3254
3253
|
|
|
3255
3254
|
/***/ }),
|
|
@@ -4809,7 +4808,7 @@ function observable(obj) {
|
|
|
4809
4808
|
const key = _key;
|
|
4810
4809
|
const prefix = prefixes.concat(key).filter(a => a.length);
|
|
4811
4810
|
store[key] = dict[key];
|
|
4812
|
-
const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .
|
|
4811
|
+
const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .N)(dict, key);
|
|
4813
4812
|
Object.defineProperty(dict, key, {
|
|
4814
4813
|
set: (value) => {
|
|
4815
4814
|
const oldValue = store[key];
|
|
@@ -16299,7 +16298,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16299
16298
|
}
|
|
16300
16299
|
}
|
|
16301
16300
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
16302
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .
|
|
16301
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16303
16302
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16304
16303
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
16305
16304
|
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Ay
|
|
@@ -19758,6 +19757,7 @@ let DataProvider = class DataProvider {
|
|
|
19758
19757
|
if (process) {
|
|
19759
19758
|
const respData = process.call(self, resp);
|
|
19760
19759
|
if (respData.data.permissions) {
|
|
19760
|
+
this.parent.events.fire(this, 'changePermissions', this.__currentPermissions, respData.data.permissions);
|
|
19761
19761
|
this.__currentPermissions = respData.data.permissions;
|
|
19762
19762
|
}
|
|
19763
19763
|
}
|
|
@@ -20196,25 +20196,26 @@ async function loadTree(fb) {
|
|
|
20196
20196
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20197
20197
|
/* harmony export */ V: function() { return /* binding */ FileBrowser; }
|
|
20198
20198
|
/* harmony export */ });
|
|
20199
|
-
/* harmony import */ var
|
|
20199
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(31635);
|
|
20200
20200
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
20201
20201
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
20202
20202
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53557);
|
|
20203
|
-
/* harmony import */ var
|
|
20204
|
-
/* harmony import */ var
|
|
20205
|
-
/* harmony import */ var
|
|
20206
|
-
/* harmony import */ var
|
|
20207
|
-
/* harmony import */ var
|
|
20208
|
-
/* harmony import */ var
|
|
20209
|
-
/* harmony import */ var
|
|
20210
|
-
/* harmony import */ var
|
|
20211
|
-
/* harmony import */ var
|
|
20212
|
-
/* harmony import */ var
|
|
20213
|
-
/* harmony import */ var
|
|
20214
|
-
/* harmony import */ var
|
|
20215
|
-
/* harmony import */ var
|
|
20216
|
-
/* harmony import */ var
|
|
20217
|
-
/* harmony import */ var
|
|
20203
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24014);
|
|
20204
|
+
/* harmony import */ var jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99582);
|
|
20205
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9596);
|
|
20206
|
+
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
|
|
20207
|
+
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
|
|
20208
|
+
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
|
|
20209
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83148);
|
|
20210
|
+
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
|
|
20211
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64164);
|
|
20212
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(50067);
|
|
20213
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25430);
|
|
20214
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34255);
|
|
20215
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(18714);
|
|
20216
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24538);
|
|
20217
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96243);
|
|
20218
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
|
|
20218
20219
|
/*!
|
|
20219
20220
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20220
20221
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20241,13 +20242,14 @@ async function loadTree(fb) {
|
|
|
20241
20242
|
|
|
20242
20243
|
|
|
20243
20244
|
|
|
20244
|
-
|
|
20245
|
+
|
|
20246
|
+
let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__/* .ViewWithToolbar */ .T {
|
|
20245
20247
|
/** @override */
|
|
20246
20248
|
className() {
|
|
20247
20249
|
return 'FileBrowser';
|
|
20248
20250
|
}
|
|
20249
20251
|
get dataProvider() {
|
|
20250
|
-
return (0,
|
|
20252
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
|
|
20251
20253
|
}
|
|
20252
20254
|
// eslint-disable-next-line no-unused-vars
|
|
20253
20255
|
onSelect(callback) {
|
|
@@ -20268,7 +20270,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20268
20270
|
files,
|
|
20269
20271
|
isImages
|
|
20270
20272
|
};
|
|
20271
|
-
if ((0,
|
|
20273
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(callback)) {
|
|
20272
20274
|
callback(data);
|
|
20273
20275
|
}
|
|
20274
20276
|
this.close();
|
|
@@ -20290,7 +20292,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20290
20292
|
* Container for set/get value
|
|
20291
20293
|
*/
|
|
20292
20294
|
get storage() {
|
|
20293
|
-
return
|
|
20295
|
+
return jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__/* .Storage */ .wc.makeStorage(Boolean(this.o.saveStateInStorage), this.componentName);
|
|
20294
20296
|
}
|
|
20295
20297
|
get isOpened() {
|
|
20296
20298
|
return this._dialog.isOpened && this.browser.style.display !== 'none';
|
|
@@ -20298,6 +20300,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20298
20300
|
/**
|
|
20299
20301
|
* It displays a message in the status bar of filebrowser
|
|
20300
20302
|
*
|
|
20303
|
+
* @param message - The message that will be displayed
|
|
20301
20304
|
* @param success - true It will be shown a message light . If no option is specified ,
|
|
20302
20305
|
* ßan error will be shown the red
|
|
20303
20306
|
* @example
|
|
@@ -20306,13 +20309,13 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20306
20309
|
* ```
|
|
20307
20310
|
*/
|
|
20308
20311
|
status(message, success) {
|
|
20309
|
-
if (!message || (0,
|
|
20312
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(message)) {
|
|
20310
20313
|
return;
|
|
20311
20314
|
}
|
|
20312
|
-
if (!(0,
|
|
20315
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message)) {
|
|
20313
20316
|
message = message.message;
|
|
20314
20317
|
}
|
|
20315
|
-
if (!(0,
|
|
20318
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message) || !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.trim)(message).length) {
|
|
20316
20319
|
return;
|
|
20317
20320
|
}
|
|
20318
20321
|
this.message.message(message, success ? 'success' : 'error', this.o.howLongShowMsg);
|
|
@@ -20339,7 +20342,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20339
20342
|
return this.async
|
|
20340
20343
|
.promise((resolve, reject) => {
|
|
20341
20344
|
if (!this.o.items || !this.o.items.url) {
|
|
20342
|
-
throw (0,
|
|
20345
|
+
throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.error)('Need set options.filebrowser.ajax.url');
|
|
20343
20346
|
}
|
|
20344
20347
|
let localTimeout = 0;
|
|
20345
20348
|
this.e
|
|
@@ -20356,10 +20359,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20356
20359
|
.off('select.filebrowser')
|
|
20357
20360
|
.on('select.filebrowser', this.onSelect(callback));
|
|
20358
20361
|
const header = this.c.div();
|
|
20359
|
-
this.toolbar?.
|
|
20362
|
+
this.toolbar?.appendTo(header);
|
|
20363
|
+
this.__updateToolbarButtons();
|
|
20360
20364
|
this._dialog.open(this.browser, header);
|
|
20361
20365
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
20362
|
-
(0,
|
|
20366
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this).then(resolve, reject);
|
|
20363
20367
|
})
|
|
20364
20368
|
.catch((e) => {
|
|
20365
20369
|
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
|
|
@@ -20370,7 +20374,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20370
20374
|
__getButtons() {
|
|
20371
20375
|
const options = (this.o.buttons ?? []);
|
|
20372
20376
|
return options.filter((btn) => {
|
|
20373
|
-
if (!(0,
|
|
20377
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(btn)) {
|
|
20374
20378
|
return true;
|
|
20375
20379
|
}
|
|
20376
20380
|
switch (btn) {
|
|
@@ -20386,8 +20390,8 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20386
20390
|
});
|
|
20387
20391
|
}
|
|
20388
20392
|
initUploader(editor) {
|
|
20389
|
-
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,
|
|
20390
|
-
const uploadHandler = () => (0,
|
|
20393
|
+
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
|
|
20394
|
+
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
20391
20395
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
20392
20396
|
self.uploader
|
|
20393
20397
|
.setPath(self.state.currentPath)
|
|
@@ -20406,11 +20410,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20406
20410
|
super(options);
|
|
20407
20411
|
this.browser = this.c.div(this.componentName);
|
|
20408
20412
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
20409
|
-
this.tree = new
|
|
20410
|
-
this.files = new
|
|
20411
|
-
this.state = (0,
|
|
20413
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
|
|
20414
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
|
|
20415
|
+
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
20412
20416
|
currentPath: '',
|
|
20413
|
-
currentSource:
|
|
20417
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
20414
20418
|
currentBaseUrl: '',
|
|
20415
20419
|
activeElements: [],
|
|
20416
20420
|
elements: [],
|
|
@@ -20421,7 +20425,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20421
20425
|
onlyImages: false
|
|
20422
20426
|
});
|
|
20423
20427
|
this.errorHandler = (resp) => {
|
|
20424
|
-
if ((0,
|
|
20428
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(resp)) {
|
|
20425
20429
|
return;
|
|
20426
20430
|
}
|
|
20427
20431
|
if (resp instanceof Error) {
|
|
@@ -20437,9 +20441,10 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20437
20441
|
this.close = () => {
|
|
20438
20442
|
this._dialog.close();
|
|
20439
20443
|
};
|
|
20444
|
+
this.__prevButtons = [];
|
|
20440
20445
|
this.attachEvents(options);
|
|
20441
20446
|
const self = this;
|
|
20442
|
-
self.options = (0,
|
|
20447
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
|
|
20443
20448
|
self.browser.component = this;
|
|
20444
20449
|
self.container = self.browser;
|
|
20445
20450
|
if (self.o.showFoldersPanel) {
|
|
@@ -20447,9 +20452,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20447
20452
|
}
|
|
20448
20453
|
self.browser.appendChild(self.files.container);
|
|
20449
20454
|
self.browser.appendChild(self.status_line);
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20455
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
|
|
20456
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
|
|
20457
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
|
|
20453
20458
|
const keys = [
|
|
20454
20459
|
'getLocalFileByUrl',
|
|
20455
20460
|
'crop',
|
|
@@ -20467,7 +20472,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20467
20472
|
];
|
|
20468
20473
|
keys.forEach(key => {
|
|
20469
20474
|
if (this.options[key] != null) {
|
|
20470
|
-
this.options[key] = (0,
|
|
20475
|
+
this.options[key] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(this.options[key], this.o.ajax);
|
|
20471
20476
|
}
|
|
20472
20477
|
});
|
|
20473
20478
|
const { storeView, storeSortBy, storeLastOpenedFolder } = this.o
|
|
@@ -20511,26 +20516,48 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20511
20516
|
this.events && this.e.off('.filebrowser');
|
|
20512
20517
|
this.uploader && this.uploader.destruct();
|
|
20513
20518
|
}
|
|
20519
|
+
__updateToolbarButtons() {
|
|
20520
|
+
const buttons = this.__getButtons();
|
|
20521
|
+
if (isEqualButtonList(this.__prevButtons, buttons)) {
|
|
20522
|
+
return;
|
|
20523
|
+
}
|
|
20524
|
+
this.__prevButtons = buttons;
|
|
20525
|
+
this.toolbar?.build(buttons);
|
|
20526
|
+
}
|
|
20514
20527
|
};
|
|
20515
|
-
(0,
|
|
20528
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20516
20529
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20517
20530
|
], FileBrowser.prototype, "dataProvider", null);
|
|
20518
|
-
(0,
|
|
20531
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20519
20532
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20520
20533
|
], FileBrowser.prototype, "_dialog", null);
|
|
20521
|
-
(0,
|
|
20534
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20522
20535
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20523
20536
|
], FileBrowser.prototype, "storage", null);
|
|
20524
|
-
(0,
|
|
20537
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20525
20538
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20526
20539
|
], FileBrowser.prototype, "status", null);
|
|
20527
|
-
(0,
|
|
20540
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20528
20541
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20529
20542
|
], FileBrowser.prototype, "open", null);
|
|
20530
|
-
|
|
20531
|
-
(0,
|
|
20543
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20544
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__/* .watch */ .w)('dataProvider:changePermissions')
|
|
20545
|
+
], FileBrowser.prototype, "__updateToolbarButtons", null);
|
|
20546
|
+
FileBrowser = (0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20547
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__/* .Dlgs */ .z)
|
|
20532
20548
|
], FileBrowser);
|
|
20533
20549
|
|
|
20550
|
+
function isEqualButtonList(prevButtons, buttons) {
|
|
20551
|
+
if (prevButtons.length !== buttons.length) {
|
|
20552
|
+
return false;
|
|
20553
|
+
}
|
|
20554
|
+
for (let i = 0; i < prevButtons.length; i++) {
|
|
20555
|
+
if (prevButtons[i] !== buttons[i]) {
|
|
20556
|
+
return false;
|
|
20557
|
+
}
|
|
20558
|
+
}
|
|
20559
|
+
return true;
|
|
20560
|
+
}
|
|
20534
20561
|
|
|
20535
20562
|
|
|
20536
20563
|
/***/ }),
|
|
@@ -25720,21 +25747,15 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25720
25747
|
}
|
|
25721
25748
|
];
|
|
25722
25749
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
25723
|
-
}
|
|
25724
|
-
/** @override */
|
|
25725
|
-
afterInit(jodit) { }
|
|
25726
|
-
onGenerateAiAssistantForm(prompt) {
|
|
25727
|
-
const { jodit } = this;
|
|
25728
25750
|
const dialog = jodit.dlg({
|
|
25729
25751
|
buttons: ['fullsize', 'dialog.close'],
|
|
25730
25752
|
closeOnClickOverlay: true,
|
|
25731
25753
|
closeOnEsc: true,
|
|
25732
25754
|
resizable: false,
|
|
25733
|
-
draggable: true
|
|
25734
|
-
|
|
25735
|
-
// maxWidth: 460
|
|
25755
|
+
draggable: true,
|
|
25756
|
+
minHeight: 160
|
|
25736
25757
|
});
|
|
25737
|
-
dialog
|
|
25758
|
+
this.__dialog = dialog;
|
|
25738
25759
|
const container = new _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__/* .UiAiAssistant */ .b(jodit, {
|
|
25739
25760
|
onInsertAfter(html) {
|
|
25740
25761
|
jodit.s.focus();
|
|
@@ -25748,9 +25769,13 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25748
25769
|
dialog.close();
|
|
25749
25770
|
}
|
|
25750
25771
|
});
|
|
25751
|
-
container
|
|
25752
|
-
|
|
25753
|
-
|
|
25772
|
+
this.__container = container;
|
|
25773
|
+
}
|
|
25774
|
+
/** @override */
|
|
25775
|
+
afterInit(jodit) { }
|
|
25776
|
+
onGenerateAiAssistantForm(prompt) {
|
|
25777
|
+
this.__dialog.open(this.__container, 'AI Assistant');
|
|
25778
|
+
this.__container.setPrompt(prompt);
|
|
25754
25779
|
}
|
|
25755
25780
|
onInvokeAiAssistant(prompt) {
|
|
25756
25781
|
const { jodit } = this;
|
|
@@ -25779,13 +25804,16 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25779
25804
|
});
|
|
25780
25805
|
}
|
|
25781
25806
|
/** @override */
|
|
25782
|
-
beforeDestruct(_) {
|
|
25807
|
+
beforeDestruct(_) {
|
|
25808
|
+
this.__container.destruct();
|
|
25809
|
+
this.__dialog.destruct();
|
|
25810
|
+
}
|
|
25783
25811
|
}
|
|
25784
25812
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25785
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
25813
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':generateAiAssistantForm.ai-assistant')
|
|
25786
25814
|
], aiAssistant.prototype, "onGenerateAiAssistantForm", null);
|
|
25787
25815
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25788
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
25816
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':invokeAiAssistant')
|
|
25789
25817
|
], aiAssistant.prototype, "onInvokeAiAssistant", null);
|
|
25790
25818
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('ai-assistant', aiAssistant);
|
|
25791
25819
|
|
|
@@ -26090,13 +26118,13 @@ let UiAiAssistant = class UiAiAssistant extends jodit_core_ui_element__WEBPACK_I
|
|
|
26090
26118
|
}
|
|
26091
26119
|
};
|
|
26092
26120
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26093
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26121
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-response')
|
|
26094
26122
|
], UiAiAssistant.prototype, "onAiAssistentResponse", null);
|
|
26095
26123
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26096
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26124
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-error')
|
|
26097
26125
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
26098
26126
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26099
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26127
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)('promptInput:change')
|
|
26100
26128
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
26101
26129
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26102
26130
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|
|
@@ -29324,10 +29352,10 @@ class dtd extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_2__/* .Plugin */ .k
|
|
|
29324
29352
|
}
|
|
29325
29353
|
}
|
|
29326
29354
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
29327
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
29355
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':beforeInsertNode')
|
|
29328
29356
|
], dtd.prototype, "__onBeforeInsertNode", null);
|
|
29329
29357
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
29330
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
29358
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':afterInsertNode')
|
|
29331
29359
|
], dtd.prototype, "__onAfterInsertNode", null);
|
|
29332
29360
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('dtd', dtd);
|
|
29333
29361
|
|