jodit-pro 4.11.28 → 4.12.1
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 +9 -12
- package/es2015/jodit.js +87 -7
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +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 +11 -14
- package/es2018/jodit.min.js +5 -5
- 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 +13 -16
- package/es2021/jodit.js +87 -7
- package/es2021/jodit.min.js +6 -6
- 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 +10 -13
- package/es2021.en/jodit.js +87 -7
- package/es2021.en/jodit.min.js +6 -6
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +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 -6
- 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/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.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1254,7 +1254,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.aiAssistantPro =
|
|
|
1254
1254
|
'readDocument',
|
|
1255
1255
|
'readBlocks',
|
|
1256
1256
|
'readSelection',
|
|
1257
|
-
'insertHTML'
|
|
1257
|
+
'insertHTML',
|
|
1258
|
+
'addHTML'
|
|
1258
1259
|
],
|
|
1259
1260
|
alwaysDenyTools: [],
|
|
1260
1261
|
defaultPermissionScope: 'conversation',
|
|
@@ -4041,6 +4042,126 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4041
4042
|
}
|
|
4042
4043
|
|
|
4043
4044
|
|
|
4045
|
+
/***/ }),
|
|
4046
|
+
|
|
4047
|
+
/***/ 65374:
|
|
4048
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4049
|
+
|
|
4050
|
+
"use strict";
|
|
4051
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4052
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4053
|
+
/* harmony export */ description: function() { return /* binding */ description; },
|
|
4054
|
+
/* harmony export */ name: function() { return /* binding */ name; },
|
|
4055
|
+
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
4056
|
+
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
4057
|
+
/* harmony export */ });
|
|
4058
|
+
/*!
|
|
4059
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4060
|
+
* See LICENSE.md in the project root for license information.
|
|
4061
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4062
|
+
*/ const name = 'addHTML';
|
|
4063
|
+
const description = 'Add HTML content to the beginning or end of the document';
|
|
4064
|
+
const parameters = [
|
|
4065
|
+
{
|
|
4066
|
+
name: 'html',
|
|
4067
|
+
type: 'string',
|
|
4068
|
+
description: 'HTML content to add',
|
|
4069
|
+
required: true
|
|
4070
|
+
},
|
|
4071
|
+
{
|
|
4072
|
+
name: 'position',
|
|
4073
|
+
type: 'string',
|
|
4074
|
+
description: 'Where to add: "start" adds at the beginning of the document, "end" appends to the end',
|
|
4075
|
+
required: false,
|
|
4076
|
+
default: 'end'
|
|
4077
|
+
}
|
|
4078
|
+
];
|
|
4079
|
+
const requiresPermission = true;
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
/***/ }),
|
|
4083
|
+
|
|
4084
|
+
/***/ 686:
|
|
4085
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4086
|
+
|
|
4087
|
+
"use strict";
|
|
4088
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4089
|
+
/* harmony export */ execute: function() { return /* binding */ execute; }
|
|
4090
|
+
/* harmony export */ });
|
|
4091
|
+
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77688);
|
|
4092
|
+
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689);
|
|
4093
|
+
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49459);
|
|
4094
|
+
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22732);
|
|
4095
|
+
/*!
|
|
4096
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4097
|
+
* See LICENSE.md in the project root for license information.
|
|
4098
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4099
|
+
*/
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
/**
|
|
4104
|
+
* Add HTML content to the beginning or end of the document
|
|
4105
|
+
*/ function execute(jodit, args, signal) {
|
|
4106
|
+
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function*() {
|
|
4107
|
+
const html = (0,_core_arg_utils__WEBPACK_IMPORTED_MODULE_2__.requireString)(args, 'html', {
|
|
4108
|
+
allowEmpty: true
|
|
4109
|
+
});
|
|
4110
|
+
const { position = 'end' } = args;
|
|
4111
|
+
if (!html.trim()) {
|
|
4112
|
+
return {
|
|
4113
|
+
success: true,
|
|
4114
|
+
message: 'Nothing to add: HTML is empty'
|
|
4115
|
+
};
|
|
4116
|
+
}
|
|
4117
|
+
(0,_core_abort_utils__WEBPACK_IMPORTED_MODULE_1__.throwIfAborted)(signal);
|
|
4118
|
+
try {
|
|
4119
|
+
const fragment = jodit.createInside.fragment();
|
|
4120
|
+
const tmp = jodit.createInside.div();
|
|
4121
|
+
tmp.innerHTML = html;
|
|
4122
|
+
while(tmp.firstChild){
|
|
4123
|
+
fragment.appendChild(tmp.firstChild);
|
|
4124
|
+
}
|
|
4125
|
+
if (position === 'start') {
|
|
4126
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.prepend(jodit.editor, fragment);
|
|
4127
|
+
} else {
|
|
4128
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.append(jodit.editor, fragment);
|
|
4129
|
+
}
|
|
4130
|
+
jodit.synchronizeValues();
|
|
4131
|
+
return {
|
|
4132
|
+
success: true,
|
|
4133
|
+
message: `Added ${html.length} characters of HTML at the ${position === 'start' ? 'beginning' : 'end'} of the document`
|
|
4134
|
+
};
|
|
4135
|
+
} catch (error) {
|
|
4136
|
+
throw new Error(`Failed to add HTML: ${(error === null || error === void 0 ? void 0 : error.message) || 'Unknown error'}`);
|
|
4137
|
+
}
|
|
4138
|
+
})();
|
|
4139
|
+
}
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
/***/ }),
|
|
4143
|
+
|
|
4144
|
+
/***/ 78907:
|
|
4145
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4146
|
+
|
|
4147
|
+
"use strict";
|
|
4148
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56075);
|
|
4149
|
+
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11886);
|
|
4150
|
+
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65374);
|
|
4151
|
+
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(686);
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
/*!
|
|
4155
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4156
|
+
* See LICENSE.md in the project root for license information.
|
|
4157
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4158
|
+
*/
|
|
4159
|
+
|
|
4160
|
+
/* harmony default export */ __webpack_exports__["default"] = ((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, _definition__WEBPACK_IMPORTED_MODULE_2__), {
|
|
4161
|
+
execute: _executor__WEBPACK_IMPORTED_MODULE_3__.execute
|
|
4162
|
+
}));
|
|
4163
|
+
|
|
4164
|
+
|
|
4044
4165
|
/***/ }),
|
|
4045
4166
|
|
|
4046
4167
|
/***/ 73943:
|
|
@@ -4205,15 +4326,16 @@ const requiresPermission = true;
|
|
|
4205
4326
|
/* harmony export */ getToolNames: function() { return /* binding */ getToolNames; }
|
|
4206
4327
|
/* harmony export */ });
|
|
4207
4328
|
/* unused harmony exports getTool, hasTool */
|
|
4208
|
-
/* harmony import */ var
|
|
4209
|
-
/* harmony import */ var
|
|
4210
|
-
/* harmony import */ var
|
|
4211
|
-
/* harmony import */ var
|
|
4212
|
-
/* harmony import */ var
|
|
4213
|
-
/* harmony import */ var
|
|
4214
|
-
/* harmony import */ var
|
|
4215
|
-
/* harmony import */ var
|
|
4216
|
-
/* harmony import */ var
|
|
4329
|
+
/* harmony import */ var _add_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78907);
|
|
4330
|
+
/* harmony import */ var _apply_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39296);
|
|
4331
|
+
/* harmony import */ var _insert_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16745);
|
|
4332
|
+
/* harmony import */ var _read_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78717);
|
|
4333
|
+
/* harmony import */ var _read_document__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5618);
|
|
4334
|
+
/* harmony import */ var _read_selection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90991);
|
|
4335
|
+
/* harmony import */ var _replace_block__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2020);
|
|
4336
|
+
/* harmony import */ var _replace_in_document__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12570);
|
|
4337
|
+
/* harmony import */ var _replace_selection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(95323);
|
|
4338
|
+
/* harmony import */ var _write_document__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97603);
|
|
4217
4339
|
/*!
|
|
4218
4340
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4219
4341
|
* See LICENSE.md in the project root for license information.
|
|
@@ -4227,22 +4349,24 @@ const requiresPermission = true;
|
|
|
4227
4349
|
|
|
4228
4350
|
|
|
4229
4351
|
|
|
4352
|
+
|
|
4230
4353
|
/**
|
|
4231
4354
|
* Built-in tools collection
|
|
4232
4355
|
* Each tool contains definition and executor
|
|
4233
4356
|
*/ const BUILT_IN_TOOLS = {
|
|
4234
4357
|
// Read operations
|
|
4235
|
-
readDocument:
|
|
4236
|
-
readBlocks:
|
|
4237
|
-
readSelection:
|
|
4358
|
+
readDocument: _read_document__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
4359
|
+
readBlocks: _read_blocks__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
4360
|
+
readSelection: _read_selection__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
4238
4361
|
// Write operations
|
|
4239
|
-
writeDocument:
|
|
4240
|
-
replaceSelection:
|
|
4241
|
-
replaceBlock:
|
|
4242
|
-
replaceInDocument:
|
|
4243
|
-
insertHTML:
|
|
4362
|
+
writeDocument: _write_document__WEBPACK_IMPORTED_MODULE_9__["default"],
|
|
4363
|
+
replaceSelection: _replace_selection__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
4364
|
+
replaceBlock: _replace_block__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
4365
|
+
replaceInDocument: _replace_in_document__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
4366
|
+
insertHTML: _insert_html__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
4367
|
+
addHTML: _add_html__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
4244
4368
|
// Formatting operations
|
|
4245
|
-
applyFormat:
|
|
4369
|
+
applyFormat: _apply_format__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
4246
4370
|
};
|
|
4247
4371
|
/**
|
|
4248
4372
|
* Get tool names
|
|
@@ -4463,7 +4587,7 @@ const requiresPermission = false;
|
|
|
4463
4587
|
let filteredBlocks = allBlocks;
|
|
4464
4588
|
if (query && typeof query === 'string') {
|
|
4465
4589
|
const lowerQuery = query.toLowerCase();
|
|
4466
|
-
filteredBlocks = allBlocks.filter((block)=>block.textContent.toLowerCase().includes(lowerQuery));
|
|
4590
|
+
filteredBlocks = allBlocks.filter((block)=>block.textContent.toLowerCase().includes(lowerQuery) || block.tagName.includes(lowerQuery) || block.content.toLowerCase().includes(lowerQuery));
|
|
4467
4591
|
}
|
|
4468
4592
|
// Apply pagination
|
|
4469
4593
|
const startIndex = Math.max(0, Math.min(typeof offset === 'number' ? offset : 0, filteredBlocks.length));
|
|
@@ -6875,7 +6999,10 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6875
6999
|
this.scrollContainer = this.container;
|
|
6876
7000
|
}
|
|
6877
7001
|
/**
|
|
6878
|
-
* Handle user scroll events - check if user has scrolled away from bottom
|
|
7002
|
+
* Handle user scroll events - check if user has scrolled away from bottom.
|
|
7003
|
+
* Only listen to user-initiated events (wheel, touchmove) to avoid
|
|
7004
|
+
* false positives from programmatic scrollTop changes which also fire
|
|
7005
|
+
* the 'scroll' event.
|
|
6879
7006
|
*/ onUserScroll() {
|
|
6880
7007
|
if (!this.scrollContainer) return;
|
|
6881
7008
|
const { scrollTop, scrollHeight, clientHeight } = this.scrollContainer;
|
|
@@ -6944,7 +7071,10 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6944
7071
|
}
|
|
6945
7072
|
scrollToBottom() {
|
|
6946
7073
|
if (this.j.isDestructed || !this.autoScrollEnabled) return;
|
|
6947
|
-
this.container.
|
|
7074
|
+
this.container.scrollTo({
|
|
7075
|
+
top: this.container.scrollHeight,
|
|
7076
|
+
behavior: 'smooth'
|
|
7077
|
+
});
|
|
6948
7078
|
}
|
|
6949
7079
|
destruct() {
|
|
6950
7080
|
this.messageItems.clear();
|
|
@@ -6961,7 +7091,6 @@ class UIMessageList extends jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODU
|
|
|
6961
7091
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
6962
7092
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
6963
7093
|
'scrollContainer:wheel',
|
|
6964
|
-
'scrollContainer:scroll',
|
|
6965
7094
|
'scrollContainer:touchmove'
|
|
6966
7095
|
]),
|
|
6967
7096
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.throttle)((j)=>j.defaultTimeout)
|
|
@@ -7057,7 +7186,7 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
7057
7186
|
this.j.e.on(this.denyButton, 'click', this.onDeny);
|
|
7058
7187
|
// Approve button
|
|
7059
7188
|
this.approveButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__.UIButton(this.j, {
|
|
7060
|
-
text:
|
|
7189
|
+
text: 'Allow',
|
|
7061
7190
|
variant: 'initial',
|
|
7062
7191
|
size: 'small',
|
|
7063
7192
|
name: 'approve-permission'
|
|
@@ -7089,10 +7218,13 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
7089
7218
|
updateContent() {
|
|
7090
7219
|
if (!this.toolCall) return;
|
|
7091
7220
|
const toolInfo = this.getElm('tool-info');
|
|
7092
|
-
toolInfo.innerHTML =
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7221
|
+
toolInfo.innerHTML = '';
|
|
7222
|
+
const nameEl = this.j.c.div(this.getFullElName('tool-name'));
|
|
7223
|
+
nameEl.textContent = this.j.i18n(this.toolCall.name);
|
|
7224
|
+
const argsEl = this.j.c.div(this.getFullElName('tool-args'));
|
|
7225
|
+
argsEl.textContent = this.formatArguments(this.toolCall.arguments);
|
|
7226
|
+
toolInfo.appendChild(nameEl);
|
|
7227
|
+
toolInfo.appendChild(argsEl);
|
|
7096
7228
|
}
|
|
7097
7229
|
formatArguments(args) {
|
|
7098
7230
|
return Object.entries(args).map(([key, value])=>`${key}: ${JSON.stringify(value)}`).join(', ');
|