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/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
|
*/
|
|
@@ -2415,7 +2415,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2415
2415
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2416
2416
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2417
2417
|
*/
|
|
2418
|
-
const APP_VERSION = "4.1.
|
|
2418
|
+
const APP_VERSION = "4.1.11";
|
|
2419
2419
|
// prettier-ignore
|
|
2420
2420
|
const ES = "es2021";
|
|
2421
2421
|
const IS_ES_MODERN = true;
|
|
@@ -3105,14 +3105,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3105
3105
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.s; },
|
|
3106
3106
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.s; },
|
|
3107
3107
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.C; },
|
|
3108
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
3108
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.N; },
|
|
3109
3109
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.A; },
|
|
3110
3110
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.N; },
|
|
3111
3111
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.m; },
|
|
3112
3112
|
/* harmony export */ persistent: function() { return /* reexport safe */ _persistent_persistent__WEBPACK_IMPORTED_MODULE_8__.y; },
|
|
3113
3113
|
/* harmony export */ throttle: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.n; },
|
|
3114
3114
|
/* harmony export */ wait: function() { return /* reexport safe */ _wait_wait__WEBPACK_IMPORTED_MODULE_9__.u; },
|
|
3115
|
-
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
3115
|
+
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.w; }
|
|
3116
3116
|
/* harmony export */ });
|
|
3117
3117
|
/* harmony import */ var _autobind_autobind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26412);
|
|
3118
3118
|
/* harmony import */ var _cache_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22002);
|
|
@@ -3273,8 +3273,8 @@ function wait(condition) {
|
|
|
3273
3273
|
|
|
3274
3274
|
"use strict";
|
|
3275
3275
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3276
|
-
/* harmony export */
|
|
3277
|
-
/* harmony export */
|
|
3276
|
+
/* harmony export */ N: function() { return /* binding */ getPropertyDescriptor; },
|
|
3277
|
+
/* harmony export */ w: function() { return /* binding */ watch; }
|
|
3278
3278
|
/* harmony export */ });
|
|
3279
3279
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
3280
3280
|
/* harmony import */ var jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31789);
|
|
@@ -3389,7 +3389,6 @@ function watch(observeFields, opts) {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
|
-
/* harmony default export */ __webpack_exports__.Ay = (watch);
|
|
3393
3392
|
|
|
3394
3393
|
|
|
3395
3394
|
/***/ }),
|
|
@@ -4949,7 +4948,7 @@ function observable(obj) {
|
|
|
4949
4948
|
const key = _key;
|
|
4950
4949
|
const prefix = prefixes.concat(key).filter(a => a.length);
|
|
4951
4950
|
store[key] = dict[key];
|
|
4952
|
-
const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .
|
|
4951
|
+
const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .N)(dict, key);
|
|
4953
4952
|
Object.defineProperty(dict, key, {
|
|
4954
4953
|
set: (value) => {
|
|
4955
4954
|
const oldValue = store[key];
|
|
@@ -16439,7 +16438,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16439
16438
|
}
|
|
16440
16439
|
}
|
|
16441
16440
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
16442
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .
|
|
16441
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16443
16442
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16444
16443
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
16445
16444
|
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Ay
|
|
@@ -19916,6 +19915,7 @@ let DataProvider = class DataProvider {
|
|
|
19916
19915
|
if (process) {
|
|
19917
19916
|
const respData = process.call(self, resp);
|
|
19918
19917
|
if (respData.data.permissions) {
|
|
19918
|
+
this.parent.events.fire(this, 'changePermissions', this.__currentPermissions, respData.data.permissions);
|
|
19919
19919
|
this.__currentPermissions = respData.data.permissions;
|
|
19920
19920
|
}
|
|
19921
19921
|
}
|
|
@@ -20354,25 +20354,26 @@ async function loadTree(fb) {
|
|
|
20354
20354
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20355
20355
|
/* harmony export */ V: function() { return /* binding */ FileBrowser; }
|
|
20356
20356
|
/* harmony export */ });
|
|
20357
|
-
/* harmony import */ var
|
|
20357
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(31635);
|
|
20358
20358
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
20359
20359
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
20360
20360
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53557);
|
|
20361
|
-
/* harmony import */ var
|
|
20362
|
-
/* harmony import */ var
|
|
20363
|
-
/* harmony import */ var
|
|
20364
|
-
/* harmony import */ var
|
|
20365
|
-
/* harmony import */ var
|
|
20366
|
-
/* harmony import */ var
|
|
20367
|
-
/* harmony import */ var
|
|
20368
|
-
/* harmony import */ var
|
|
20369
|
-
/* harmony import */ var
|
|
20370
|
-
/* harmony import */ var
|
|
20371
|
-
/* harmony import */ var
|
|
20372
|
-
/* harmony import */ var
|
|
20373
|
-
/* harmony import */ var
|
|
20374
|
-
/* harmony import */ var
|
|
20375
|
-
/* harmony import */ var
|
|
20361
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24014);
|
|
20362
|
+
/* harmony import */ var jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99582);
|
|
20363
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9596);
|
|
20364
|
+
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
|
|
20365
|
+
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
|
|
20366
|
+
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
|
|
20367
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83148);
|
|
20368
|
+
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
|
|
20369
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64164);
|
|
20370
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(50067);
|
|
20371
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25430);
|
|
20372
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34255);
|
|
20373
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(18714);
|
|
20374
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24538);
|
|
20375
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96243);
|
|
20376
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
|
|
20376
20377
|
/*!
|
|
20377
20378
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20378
20379
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20399,13 +20400,14 @@ async function loadTree(fb) {
|
|
|
20399
20400
|
|
|
20400
20401
|
|
|
20401
20402
|
|
|
20402
|
-
|
|
20403
|
+
|
|
20404
|
+
let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__/* .ViewWithToolbar */ .T {
|
|
20403
20405
|
/** @override */
|
|
20404
20406
|
className() {
|
|
20405
20407
|
return 'FileBrowser';
|
|
20406
20408
|
}
|
|
20407
20409
|
get dataProvider() {
|
|
20408
|
-
return (0,
|
|
20410
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
|
|
20409
20411
|
}
|
|
20410
20412
|
// eslint-disable-next-line no-unused-vars
|
|
20411
20413
|
onSelect(callback) {
|
|
@@ -20426,7 +20428,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20426
20428
|
files,
|
|
20427
20429
|
isImages
|
|
20428
20430
|
};
|
|
20429
|
-
if ((0,
|
|
20431
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(callback)) {
|
|
20430
20432
|
callback(data);
|
|
20431
20433
|
}
|
|
20432
20434
|
this.close();
|
|
@@ -20448,7 +20450,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20448
20450
|
* Container for set/get value
|
|
20449
20451
|
*/
|
|
20450
20452
|
get storage() {
|
|
20451
|
-
return
|
|
20453
|
+
return jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__/* .Storage */ .wc.makeStorage(Boolean(this.o.saveStateInStorage), this.componentName);
|
|
20452
20454
|
}
|
|
20453
20455
|
get isOpened() {
|
|
20454
20456
|
return this._dialog.isOpened && this.browser.style.display !== 'none';
|
|
@@ -20456,6 +20458,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20456
20458
|
/**
|
|
20457
20459
|
* It displays a message in the status bar of filebrowser
|
|
20458
20460
|
*
|
|
20461
|
+
* @param message - The message that will be displayed
|
|
20459
20462
|
* @param success - true It will be shown a message light . If no option is specified ,
|
|
20460
20463
|
* ßan error will be shown the red
|
|
20461
20464
|
* @example
|
|
@@ -20464,13 +20467,13 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20464
20467
|
* ```
|
|
20465
20468
|
*/
|
|
20466
20469
|
status(message, success) {
|
|
20467
|
-
if (!message || (0,
|
|
20470
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(message)) {
|
|
20468
20471
|
return;
|
|
20469
20472
|
}
|
|
20470
|
-
if (!(0,
|
|
20473
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message)) {
|
|
20471
20474
|
message = message.message;
|
|
20472
20475
|
}
|
|
20473
|
-
if (!(0,
|
|
20476
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message) || !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.trim)(message).length) {
|
|
20474
20477
|
return;
|
|
20475
20478
|
}
|
|
20476
20479
|
this.message.message(message, success ? 'success' : 'error', this.o.howLongShowMsg);
|
|
@@ -20497,7 +20500,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20497
20500
|
return this.async
|
|
20498
20501
|
.promise((resolve, reject) => {
|
|
20499
20502
|
if (!this.o.items || !this.o.items.url) {
|
|
20500
|
-
throw (0,
|
|
20503
|
+
throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.error)('Need set options.filebrowser.ajax.url');
|
|
20501
20504
|
}
|
|
20502
20505
|
let localTimeout = 0;
|
|
20503
20506
|
this.e
|
|
@@ -20514,10 +20517,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20514
20517
|
.off('select.filebrowser')
|
|
20515
20518
|
.on('select.filebrowser', this.onSelect(callback));
|
|
20516
20519
|
const header = this.c.div();
|
|
20517
|
-
this.toolbar?.
|
|
20520
|
+
this.toolbar?.appendTo(header);
|
|
20521
|
+
this.__updateToolbarButtons();
|
|
20518
20522
|
this._dialog.open(this.browser, header);
|
|
20519
20523
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
20520
|
-
(0,
|
|
20524
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this).then(resolve, reject);
|
|
20521
20525
|
})
|
|
20522
20526
|
.catch((e) => {
|
|
20523
20527
|
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
|
|
@@ -20528,7 +20532,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20528
20532
|
__getButtons() {
|
|
20529
20533
|
const options = (this.o.buttons ?? []);
|
|
20530
20534
|
return options.filter((btn) => {
|
|
20531
|
-
if (!(0,
|
|
20535
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(btn)) {
|
|
20532
20536
|
return true;
|
|
20533
20537
|
}
|
|
20534
20538
|
switch (btn) {
|
|
@@ -20544,8 +20548,8 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20544
20548
|
});
|
|
20545
20549
|
}
|
|
20546
20550
|
initUploader(editor) {
|
|
20547
|
-
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,
|
|
20548
|
-
const uploadHandler = () => (0,
|
|
20551
|
+
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);
|
|
20552
|
+
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
20549
20553
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
20550
20554
|
self.uploader
|
|
20551
20555
|
.setPath(self.state.currentPath)
|
|
@@ -20564,11 +20568,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20564
20568
|
super(options);
|
|
20565
20569
|
this.browser = this.c.div(this.componentName);
|
|
20566
20570
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
20567
|
-
this.tree = new
|
|
20568
|
-
this.files = new
|
|
20569
|
-
this.state = (0,
|
|
20571
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
|
|
20572
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
|
|
20573
|
+
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
20570
20574
|
currentPath: '',
|
|
20571
|
-
currentSource:
|
|
20575
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
20572
20576
|
currentBaseUrl: '',
|
|
20573
20577
|
activeElements: [],
|
|
20574
20578
|
elements: [],
|
|
@@ -20579,7 +20583,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20579
20583
|
onlyImages: false
|
|
20580
20584
|
});
|
|
20581
20585
|
this.errorHandler = (resp) => {
|
|
20582
|
-
if ((0,
|
|
20586
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(resp)) {
|
|
20583
20587
|
return;
|
|
20584
20588
|
}
|
|
20585
20589
|
if (resp instanceof Error) {
|
|
@@ -20595,9 +20599,10 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20595
20599
|
this.close = () => {
|
|
20596
20600
|
this._dialog.close();
|
|
20597
20601
|
};
|
|
20602
|
+
this.__prevButtons = [];
|
|
20598
20603
|
this.attachEvents(options);
|
|
20599
20604
|
const self = this;
|
|
20600
|
-
self.options = (0,
|
|
20605
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
|
|
20601
20606
|
self.browser.component = this;
|
|
20602
20607
|
self.container = self.browser;
|
|
20603
20608
|
if (self.o.showFoldersPanel) {
|
|
@@ -20605,9 +20610,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20605
20610
|
}
|
|
20606
20611
|
self.browser.appendChild(self.files.container);
|
|
20607
20612
|
self.browser.appendChild(self.status_line);
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20613
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
|
|
20614
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
|
|
20615
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
|
|
20611
20616
|
const keys = [
|
|
20612
20617
|
'getLocalFileByUrl',
|
|
20613
20618
|
'crop',
|
|
@@ -20625,7 +20630,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20625
20630
|
];
|
|
20626
20631
|
keys.forEach(key => {
|
|
20627
20632
|
if (this.options[key] != null) {
|
|
20628
|
-
this.options[key] = (0,
|
|
20633
|
+
this.options[key] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(this.options[key], this.o.ajax);
|
|
20629
20634
|
}
|
|
20630
20635
|
});
|
|
20631
20636
|
const { storeView, storeSortBy, storeLastOpenedFolder } = this.o
|
|
@@ -20669,26 +20674,48 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20669
20674
|
this.events && this.e.off('.filebrowser');
|
|
20670
20675
|
this.uploader && this.uploader.destruct();
|
|
20671
20676
|
}
|
|
20677
|
+
__updateToolbarButtons() {
|
|
20678
|
+
const buttons = this.__getButtons();
|
|
20679
|
+
if (isEqualButtonList(this.__prevButtons, buttons)) {
|
|
20680
|
+
return;
|
|
20681
|
+
}
|
|
20682
|
+
this.__prevButtons = buttons;
|
|
20683
|
+
this.toolbar?.build(buttons);
|
|
20684
|
+
}
|
|
20672
20685
|
};
|
|
20673
|
-
(0,
|
|
20686
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20674
20687
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20675
20688
|
], FileBrowser.prototype, "dataProvider", null);
|
|
20676
|
-
(0,
|
|
20689
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20677
20690
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20678
20691
|
], FileBrowser.prototype, "_dialog", null);
|
|
20679
|
-
(0,
|
|
20692
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20680
20693
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
20681
20694
|
], FileBrowser.prototype, "storage", null);
|
|
20682
|
-
(0,
|
|
20695
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20683
20696
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20684
20697
|
], FileBrowser.prototype, "status", null);
|
|
20685
|
-
(0,
|
|
20698
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20686
20699
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20687
20700
|
], FileBrowser.prototype, "open", null);
|
|
20688
|
-
|
|
20689
|
-
(0,
|
|
20701
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20702
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__/* .watch */ .w)('dataProvider:changePermissions')
|
|
20703
|
+
], FileBrowser.prototype, "__updateToolbarButtons", null);
|
|
20704
|
+
FileBrowser = (0,tslib__WEBPACK_IMPORTED_MODULE_19__/* .__decorate */ .Cg)([
|
|
20705
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__/* .Dlgs */ .z)
|
|
20690
20706
|
], FileBrowser);
|
|
20691
20707
|
|
|
20708
|
+
function isEqualButtonList(prevButtons, buttons) {
|
|
20709
|
+
if (prevButtons.length !== buttons.length) {
|
|
20710
|
+
return false;
|
|
20711
|
+
}
|
|
20712
|
+
for (let i = 0; i < prevButtons.length; i++) {
|
|
20713
|
+
if (prevButtons[i] !== buttons[i]) {
|
|
20714
|
+
return false;
|
|
20715
|
+
}
|
|
20716
|
+
}
|
|
20717
|
+
return true;
|
|
20718
|
+
}
|
|
20692
20719
|
|
|
20693
20720
|
|
|
20694
20721
|
/***/ }),
|
|
@@ -25878,21 +25905,15 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25878
25905
|
}
|
|
25879
25906
|
];
|
|
25880
25907
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
25881
|
-
}
|
|
25882
|
-
/** @override */
|
|
25883
|
-
afterInit(jodit) { }
|
|
25884
|
-
onGenerateAiAssistantForm(prompt) {
|
|
25885
|
-
const { jodit } = this;
|
|
25886
25908
|
const dialog = jodit.dlg({
|
|
25887
25909
|
buttons: ['fullsize', 'dialog.close'],
|
|
25888
25910
|
closeOnClickOverlay: true,
|
|
25889
25911
|
closeOnEsc: true,
|
|
25890
25912
|
resizable: false,
|
|
25891
|
-
draggable: true
|
|
25892
|
-
|
|
25893
|
-
// maxWidth: 460
|
|
25913
|
+
draggable: true,
|
|
25914
|
+
minHeight: 160
|
|
25894
25915
|
});
|
|
25895
|
-
dialog
|
|
25916
|
+
this.__dialog = dialog;
|
|
25896
25917
|
const container = new _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__/* .UiAiAssistant */ .b(jodit, {
|
|
25897
25918
|
onInsertAfter(html) {
|
|
25898
25919
|
jodit.s.focus();
|
|
@@ -25906,9 +25927,13 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25906
25927
|
dialog.close();
|
|
25907
25928
|
}
|
|
25908
25929
|
});
|
|
25909
|
-
container
|
|
25910
|
-
|
|
25911
|
-
|
|
25930
|
+
this.__container = container;
|
|
25931
|
+
}
|
|
25932
|
+
/** @override */
|
|
25933
|
+
afterInit(jodit) { }
|
|
25934
|
+
onGenerateAiAssistantForm(prompt) {
|
|
25935
|
+
this.__dialog.open(this.__container, 'AI Assistant');
|
|
25936
|
+
this.__container.setPrompt(prompt);
|
|
25912
25937
|
}
|
|
25913
25938
|
onInvokeAiAssistant(prompt) {
|
|
25914
25939
|
const { jodit } = this;
|
|
@@ -25937,13 +25962,16 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25937
25962
|
});
|
|
25938
25963
|
}
|
|
25939
25964
|
/** @override */
|
|
25940
|
-
beforeDestruct(_) {
|
|
25965
|
+
beforeDestruct(_) {
|
|
25966
|
+
this.__container.destruct();
|
|
25967
|
+
this.__dialog.destruct();
|
|
25968
|
+
}
|
|
25941
25969
|
}
|
|
25942
25970
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25943
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
25971
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':generateAiAssistantForm.ai-assistant')
|
|
25944
25972
|
], aiAssistant.prototype, "onGenerateAiAssistantForm", null);
|
|
25945
25973
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25946
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
25974
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':invokeAiAssistant')
|
|
25947
25975
|
], aiAssistant.prototype, "onInvokeAiAssistant", null);
|
|
25948
25976
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('ai-assistant', aiAssistant);
|
|
25949
25977
|
|
|
@@ -26301,13 +26329,13 @@ let UiAiAssistant = class UiAiAssistant extends jodit_core_ui_element__WEBPACK_I
|
|
|
26301
26329
|
}
|
|
26302
26330
|
};
|
|
26303
26331
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26304
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26332
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-response')
|
|
26305
26333
|
], UiAiAssistant.prototype, "onAiAssistentResponse", null);
|
|
26306
26334
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26307
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26335
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-error')
|
|
26308
26336
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
26309
26337
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26310
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
26338
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)('promptInput:change')
|
|
26311
26339
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
26312
26340
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
26313
26341
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|
|
@@ -29932,10 +29960,10 @@ class dtd extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_2__/* .Plugin */ .k
|
|
|
29932
29960
|
}
|
|
29933
29961
|
}
|
|
29934
29962
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
29935
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
29963
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':beforeInsertNode')
|
|
29936
29964
|
], dtd.prototype, "__onBeforeInsertNode", null);
|
|
29937
29965
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
29938
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
29966
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':afterInsertNode')
|
|
29939
29967
|
], dtd.prototype, "__onAfterInsertNode", null);
|
|
29940
29968
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('dtd', dtd);
|
|
29941
29969
|
|