jodit-pro 4.11.29 → 4.12.3
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 +8 -11
- package/es2015/jodit.js +86 -5
- package/es2015/jodit.min.js +4 -4
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +161 -29
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +4 -7
- 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 +2 -2
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +10 -13
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +5 -8
- 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 +2 -2
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.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 +12 -15
- package/es2021/jodit.js +86 -5
- package/es2021/jodit.min.js +5 -5
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +154 -29
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +5 -8
- 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 +2 -2
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +9 -12
- package/es2021.en/jodit.js +86 -5
- package/es2021.en/jodit.min.js +5 -5
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +154 -29
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -29
- 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 +2 -2
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +89 -5
- 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 +174 -26
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.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 +2 -2
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/config.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/add-html/definition.d.ts +10 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/definition.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.d.ts +13 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/index.d.ts +9 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/index.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/index.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/read-blocks/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +4 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/permission-request/permission-request.js +2 -5
- package/esm/plugins/finder/ui/item/item.js +2 -2
- package/esm/plugins/license/helpers/helpers.js +1 -1
- package/esm/typings.d.ts +1 -0
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/tools/add-html/definition.d.ts +10 -0
- package/types/plugins/ai-assistant-pro/tools/add-html/executor.d.ts +13 -0
- package/types/plugins/ai-assistant-pro/tools/add-html/index.d.ts +9 -0
- package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +4 -1
- package/types/typings.d.ts +1 -0
|
@@ -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.
|
|
4
|
+
* Version: v4.12.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1207,7 +1207,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_10__.Config.prototype.aiAssistantPro =
|
|
|
1207
1207
|
'readDocument',
|
|
1208
1208
|
'readBlocks',
|
|
1209
1209
|
'readSelection',
|
|
1210
|
-
'insertHTML'
|
|
1210
|
+
'insertHTML',
|
|
1211
|
+
'addHTML'
|
|
1211
1212
|
],
|
|
1212
1213
|
alwaysDenyTools: [],
|
|
1213
1214
|
defaultPermissionScope: 'conversation',
|
|
@@ -3767,6 +3768,119 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3767
3768
|
}
|
|
3768
3769
|
|
|
3769
3770
|
|
|
3771
|
+
/***/ }),
|
|
3772
|
+
|
|
3773
|
+
/***/ 65374:
|
|
3774
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3775
|
+
|
|
3776
|
+
"use strict";
|
|
3777
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3778
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3779
|
+
/* harmony export */ description: function() { return /* binding */ description; },
|
|
3780
|
+
/* harmony export */ name: function() { return /* binding */ name; },
|
|
3781
|
+
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3782
|
+
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3783
|
+
/* harmony export */ });
|
|
3784
|
+
/*!
|
|
3785
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3786
|
+
* See LICENSE.md in the project root for license information.
|
|
3787
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3788
|
+
*/ const name = 'addHTML';
|
|
3789
|
+
const description = 'Add HTML content to the beginning or end of the document';
|
|
3790
|
+
const parameters = [
|
|
3791
|
+
{
|
|
3792
|
+
name: 'html',
|
|
3793
|
+
type: 'string',
|
|
3794
|
+
description: 'HTML content to add',
|
|
3795
|
+
required: true
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
name: 'position',
|
|
3799
|
+
type: 'string',
|
|
3800
|
+
description: 'Where to add: "start" adds at the beginning of the document, "end" appends to the end',
|
|
3801
|
+
required: false,
|
|
3802
|
+
default: 'end'
|
|
3803
|
+
}
|
|
3804
|
+
];
|
|
3805
|
+
const requiresPermission = true;
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
/***/ }),
|
|
3809
|
+
|
|
3810
|
+
/***/ 686:
|
|
3811
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3812
|
+
|
|
3813
|
+
"use strict";
|
|
3814
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3815
|
+
/* harmony export */ execute: function() { return /* binding */ execute; }
|
|
3816
|
+
/* harmony export */ });
|
|
3817
|
+
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3818
|
+
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
3819
|
+
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
|
|
3820
|
+
/*!
|
|
3821
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3822
|
+
* See LICENSE.md in the project root for license information.
|
|
3823
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3824
|
+
*/
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* Add HTML content to the beginning or end of the document
|
|
3829
|
+
*/ async function execute(jodit, args, signal) {
|
|
3830
|
+
const html = (0,_core_arg_utils__WEBPACK_IMPORTED_MODULE_1__.requireString)(args, 'html', {
|
|
3831
|
+
allowEmpty: true
|
|
3832
|
+
});
|
|
3833
|
+
const { position = 'end' } = args;
|
|
3834
|
+
if (!html.trim()) {
|
|
3835
|
+
return {
|
|
3836
|
+
success: true,
|
|
3837
|
+
message: 'Nothing to add: HTML is empty'
|
|
3838
|
+
};
|
|
3839
|
+
}
|
|
3840
|
+
(0,_core_abort_utils__WEBPACK_IMPORTED_MODULE_0__.throwIfAborted)(signal);
|
|
3841
|
+
try {
|
|
3842
|
+
const fragment = jodit.createInside.fragment();
|
|
3843
|
+
const tmp = jodit.createInside.div();
|
|
3844
|
+
tmp.innerHTML = html;
|
|
3845
|
+
while(tmp.firstChild){
|
|
3846
|
+
fragment.appendChild(tmp.firstChild);
|
|
3847
|
+
}
|
|
3848
|
+
if (position === 'start') {
|
|
3849
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.prepend(jodit.editor, fragment);
|
|
3850
|
+
} else {
|
|
3851
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(jodit.editor, fragment);
|
|
3852
|
+
}
|
|
3853
|
+
jodit.synchronizeValues();
|
|
3854
|
+
return {
|
|
3855
|
+
success: true,
|
|
3856
|
+
message: `Added ${html.length} characters of HTML at the ${position === 'start' ? 'beginning' : 'end'} of the document`
|
|
3857
|
+
};
|
|
3858
|
+
} catch (error) {
|
|
3859
|
+
throw new Error(`Failed to add HTML: ${error?.message || 'Unknown error'}`);
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
/***/ }),
|
|
3865
|
+
|
|
3866
|
+
/***/ 78907:
|
|
3867
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3868
|
+
|
|
3869
|
+
"use strict";
|
|
3870
|
+
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65374);
|
|
3871
|
+
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(686);
|
|
3872
|
+
/*!
|
|
3873
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3874
|
+
* See LICENSE.md in the project root for license information.
|
|
3875
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3876
|
+
*/
|
|
3877
|
+
|
|
3878
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3879
|
+
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
3880
|
+
execute: _executor__WEBPACK_IMPORTED_MODULE_1__.execute
|
|
3881
|
+
});
|
|
3882
|
+
|
|
3883
|
+
|
|
3770
3884
|
/***/ }),
|
|
3771
3885
|
|
|
3772
3886
|
/***/ 73943:
|
|
@@ -3921,15 +4035,16 @@ const requiresPermission = true;
|
|
|
3921
4035
|
/* harmony export */ getToolNames: function() { return /* binding */ getToolNames; }
|
|
3922
4036
|
/* harmony export */ });
|
|
3923
4037
|
/* unused harmony exports getTool, hasTool */
|
|
3924
|
-
/* harmony import */ var
|
|
3925
|
-
/* harmony import */ var
|
|
3926
|
-
/* harmony import */ var
|
|
3927
|
-
/* harmony import */ var
|
|
3928
|
-
/* harmony import */ var
|
|
3929
|
-
/* harmony import */ var
|
|
3930
|
-
/* harmony import */ var
|
|
3931
|
-
/* harmony import */ var
|
|
3932
|
-
/* harmony import */ var
|
|
4038
|
+
/* harmony import */ var _add_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78907);
|
|
4039
|
+
/* harmony import */ var _apply_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39296);
|
|
4040
|
+
/* harmony import */ var _insert_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16745);
|
|
4041
|
+
/* harmony import */ var _read_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78717);
|
|
4042
|
+
/* harmony import */ var _read_document__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5618);
|
|
4043
|
+
/* harmony import */ var _read_selection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90991);
|
|
4044
|
+
/* harmony import */ var _replace_block__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2020);
|
|
4045
|
+
/* harmony import */ var _replace_in_document__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12570);
|
|
4046
|
+
/* harmony import */ var _replace_selection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(95323);
|
|
4047
|
+
/* harmony import */ var _write_document__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97603);
|
|
3933
4048
|
/*!
|
|
3934
4049
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3935
4050
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3943,22 +4058,24 @@ const requiresPermission = true;
|
|
|
3943
4058
|
|
|
3944
4059
|
|
|
3945
4060
|
|
|
4061
|
+
|
|
3946
4062
|
/**
|
|
3947
4063
|
* Built-in tools collection
|
|
3948
4064
|
* Each tool contains definition and executor
|
|
3949
4065
|
*/ const BUILT_IN_TOOLS = {
|
|
3950
4066
|
// Read operations
|
|
3951
|
-
readDocument:
|
|
3952
|
-
readBlocks:
|
|
3953
|
-
readSelection:
|
|
4067
|
+
readDocument: _read_document__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
4068
|
+
readBlocks: _read_blocks__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
4069
|
+
readSelection: _read_selection__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
3954
4070
|
// Write operations
|
|
3955
|
-
writeDocument:
|
|
3956
|
-
replaceSelection:
|
|
3957
|
-
replaceBlock:
|
|
3958
|
-
replaceInDocument:
|
|
3959
|
-
insertHTML:
|
|
4071
|
+
writeDocument: _write_document__WEBPACK_IMPORTED_MODULE_9__["default"],
|
|
4072
|
+
replaceSelection: _replace_selection__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
4073
|
+
replaceBlock: _replace_block__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
4074
|
+
replaceInDocument: _replace_in_document__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
4075
|
+
insertHTML: _insert_html__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
4076
|
+
addHTML: _add_html__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
3960
4077
|
// Formatting operations
|
|
3961
|
-
applyFormat:
|
|
4078
|
+
applyFormat: _apply_format__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
3962
4079
|
};
|
|
3963
4080
|
/**
|
|
3964
4081
|
* Get tool names
|
|
@@ -4169,7 +4286,7 @@ const requiresPermission = false;
|
|
|
4169
4286
|
let filteredBlocks = allBlocks;
|
|
4170
4287
|
if (query && typeof query === 'string') {
|
|
4171
4288
|
const lowerQuery = query.toLowerCase();
|
|
4172
|
-
filteredBlocks = allBlocks.filter((block)=>block.textContent.toLowerCase().includes(lowerQuery));
|
|
4289
|
+
filteredBlocks = allBlocks.filter((block)=>block.textContent.toLowerCase().includes(lowerQuery) || block.tagName.includes(lowerQuery) || block.content.toLowerCase().includes(lowerQuery));
|
|
4173
4290
|
}
|
|
4174
4291
|
// Apply pagination
|
|
4175
4292
|
const startIndex = Math.max(0, Math.min(typeof offset === 'number' ? offset : 0, filteredBlocks.length));
|
|
@@ -6514,7 +6631,10 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6514
6631
|
this.scrollContainer = this.container;
|
|
6515
6632
|
}
|
|
6516
6633
|
/**
|
|
6517
|
-
* Handle user scroll events - check if user has scrolled away from bottom
|
|
6634
|
+
* Handle user scroll events - check if user has scrolled away from bottom.
|
|
6635
|
+
* Only listen to user-initiated events (wheel, touchmove) to avoid
|
|
6636
|
+
* false positives from programmatic scrollTop changes which also fire
|
|
6637
|
+
* the 'scroll' event.
|
|
6518
6638
|
*/ onUserScroll() {
|
|
6519
6639
|
if (!this.scrollContainer) return;
|
|
6520
6640
|
const { scrollTop, scrollHeight, clientHeight } = this.scrollContainer;
|
|
@@ -6583,7 +6703,10 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6583
6703
|
}
|
|
6584
6704
|
scrollToBottom() {
|
|
6585
6705
|
if (this.j.isDestructed || !this.autoScrollEnabled) return;
|
|
6586
|
-
this.container.
|
|
6706
|
+
this.container.scrollTo({
|
|
6707
|
+
top: this.container.scrollHeight,
|
|
6708
|
+
behavior: 'smooth'
|
|
6709
|
+
});
|
|
6587
6710
|
}
|
|
6588
6711
|
destruct() {
|
|
6589
6712
|
this.messageItems.clear();
|
|
@@ -6600,7 +6723,6 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6600
6723
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
6601
6724
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
6602
6725
|
'scrollContainer:wheel',
|
|
6603
|
-
'scrollContainer:scroll',
|
|
6604
6726
|
'scrollContainer:touchmove'
|
|
6605
6727
|
]),
|
|
6606
6728
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.throttle)((j)=>j.defaultTimeout)
|
|
@@ -6695,7 +6817,7 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
6695
6817
|
this.j.e.on(this.denyButton, 'click', this.onDeny);
|
|
6696
6818
|
// Approve button
|
|
6697
6819
|
this.approveButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__.UIButton(this.j, {
|
|
6698
|
-
text:
|
|
6820
|
+
text: 'Allow',
|
|
6699
6821
|
variant: 'initial',
|
|
6700
6822
|
size: 'small',
|
|
6701
6823
|
name: 'approve-permission'
|
|
@@ -6727,10 +6849,13 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
6727
6849
|
updateContent() {
|
|
6728
6850
|
if (!this.toolCall) return;
|
|
6729
6851
|
const toolInfo = this.getElm('tool-info');
|
|
6730
|
-
toolInfo.innerHTML =
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6852
|
+
toolInfo.innerHTML = '';
|
|
6853
|
+
const nameEl = this.j.c.div(this.getFullElName('tool-name'));
|
|
6854
|
+
nameEl.textContent = this.j.i18n(this.toolCall.name);
|
|
6855
|
+
const argsEl = this.j.c.div(this.getFullElName('tool-args'));
|
|
6856
|
+
argsEl.textContent = this.formatArguments(this.toolCall.arguments);
|
|
6857
|
+
toolInfo.appendChild(nameEl);
|
|
6858
|
+
toolInfo.appendChild(argsEl);
|
|
6734
6859
|
}
|
|
6735
6860
|
formatArguments(args) {
|
|
6736
6861
|
return Object.entries(args).map(([key, value])=>`${key}: ${JSON.stringify(value)}`).join(', ');
|