jodit-pro 4.6.18 → 4.6.21
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 +2 -2
- package/es2015/jodit.js +147 -50
- 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 +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +148 -50
- 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 +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +148 -50
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +148 -50
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +154 -51
- package/es5/jodit.min.css +2 -2
- 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/esm/config.d.ts +2 -2
- package/esm/plugins/autocomplete/autocomplete.d.ts +5 -15
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/config.d.ts +17 -0
- package/esm/plugins/autocomplete/config.js +6 -0
- package/esm/plugins/autocomplete/interface.d.ts +6 -6
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +5 -1
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/esm/plugins/license/helpers/helpers.d.ts +1 -0
- package/esm/plugins/license/helpers/helpers.js +1 -1
- package/esm/plugins/license/license.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +2 -2
- package/types/plugins/autocomplete/autocomplete.d.ts +5 -15
- package/types/plugins/autocomplete/config.d.ts +17 -0
- package/types/plugins/autocomplete/interface.d.ts +6 -6
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -1
- package/types/plugins/autocomplete/ui/item.d.ts +5 -1
- package/types/plugins/license/helpers/helpers.d.ts +1 -0
package/es2018/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.6.
|
|
4
|
+
* Version: v4.6.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -7201,6 +7201,27 @@ ToolbarCollection = __decorate([
|
|
|
7201
7201
|
|
|
7202
7202
|
|
|
7203
7203
|
|
|
7204
|
+
/***/ }),
|
|
7205
|
+
|
|
7206
|
+
/***/ 11691:
|
|
7207
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
7208
|
+
|
|
7209
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
7210
|
+
/*!
|
|
7211
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
7212
|
+
* See LICENSE.md in the project root for license information.
|
|
7213
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
7214
|
+
*/
|
|
7215
|
+
|
|
7216
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
7217
|
+
sources: [],
|
|
7218
|
+
maxItems: 50,
|
|
7219
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
7220
|
+
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
7221
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
7222
|
+
};
|
|
7223
|
+
|
|
7224
|
+
|
|
7204
7225
|
/***/ }),
|
|
7205
7226
|
|
|
7206
7227
|
/***/ 11787:
|
|
@@ -8490,6 +8511,10 @@ class license extends jodit_esm_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
8490
8511
|
afterInit(jodit) {
|
|
8491
8512
|
this.j.e.on('checkReserve', async (checkDomain) => {
|
|
8492
8513
|
const code = this.j.o.license;
|
|
8514
|
+
// For local and testing stages
|
|
8515
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__/* .isAllowedSubdomain */ .fI)(checkDomain)) {
|
|
8516
|
+
return 'normal';
|
|
8517
|
+
}
|
|
8493
8518
|
if (!code) {
|
|
8494
8519
|
return '';
|
|
8495
8520
|
}
|
|
@@ -9707,7 +9732,8 @@ function replaceOldTags(elm) {
|
|
|
9707
9732
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9708
9733
|
|
|
9709
9734
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9710
|
-
/* harmony export */ M0: function() { return /* binding */ validateLicense; }
|
|
9735
|
+
/* harmony export */ M0: function() { return /* binding */ validateLicense; },
|
|
9736
|
+
/* harmony export */ fI: function() { return /* binding */ isAllowedSubdomain; }
|
|
9711
9737
|
/* harmony export */ });
|
|
9712
9738
|
/* unused harmony exports validateEntLicense, domainsHash */
|
|
9713
9739
|
/*!
|
|
@@ -26315,8 +26341,10 @@ function persistent(target, propertyKey) {
|
|
|
26315
26341
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26316
26342
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
26317
26343
|
/* harmony export */ });
|
|
26318
|
-
/* harmony import */ var
|
|
26319
|
-
/* harmony import */ var
|
|
26344
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
26345
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
26346
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
26347
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
26320
26348
|
/*!
|
|
26321
26349
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
26322
26350
|
* See LICENSE.md in the project root for license information.
|
|
@@ -26325,19 +26353,24 @@ function persistent(target, propertyKey) {
|
|
|
26325
26353
|
|
|
26326
26354
|
|
|
26327
26355
|
|
|
26328
|
-
|
|
26356
|
+
|
|
26357
|
+
|
|
26358
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
26329
26359
|
/** @override */
|
|
26330
26360
|
className() {
|
|
26331
26361
|
return 'AutocompleteItem';
|
|
26332
26362
|
}
|
|
26333
|
-
constructor(jodit, item) {
|
|
26363
|
+
constructor(jodit, item, onClick) {
|
|
26334
26364
|
var _a;
|
|
26335
26365
|
super(jodit);
|
|
26336
26366
|
this.item = item;
|
|
26367
|
+
this.onClick = onClick;
|
|
26368
|
+
this.value = '';
|
|
26337
26369
|
const { container } = this;
|
|
26338
|
-
|
|
26370
|
+
this.value = item.value;
|
|
26371
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
26339
26372
|
const elm = item.itemRenderer(item);
|
|
26340
|
-
if ((0,
|
|
26373
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
26341
26374
|
container.innerHTML = elm;
|
|
26342
26375
|
}
|
|
26343
26376
|
else {
|
|
@@ -26348,7 +26381,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
26348
26381
|
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
26349
26382
|
}
|
|
26350
26383
|
}
|
|
26351
|
-
|
|
26384
|
+
onClickPrevent(e) {
|
|
26385
|
+
e.preventDefault();
|
|
26386
|
+
e.stopPropagation();
|
|
26387
|
+
}
|
|
26388
|
+
onClickHandler() {
|
|
26389
|
+
this.onClick(this.value);
|
|
26390
|
+
}
|
|
26391
|
+
};
|
|
26392
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26393
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
26394
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
26395
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26396
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
26397
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
26398
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
26399
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
26400
|
+
], AutocompleteItem);
|
|
26401
|
+
|
|
26352
26402
|
|
|
26353
26403
|
|
|
26354
26404
|
/***/ }),
|
|
@@ -27113,16 +27163,27 @@ const transactions = {
|
|
|
27113
27163
|
},
|
|
27114
27164
|
[states.EXTRACT]: {
|
|
27115
27165
|
exec (value) {
|
|
27166
|
+
var _a;
|
|
27116
27167
|
const { element, jodit, style } = value;
|
|
27117
27168
|
const suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_4__/* .suitableClosest */ .$s)(style, element, jodit.editor);
|
|
27118
27169
|
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(suit, 'This place should have an element');
|
|
27119
|
-
|
|
27120
|
-
|
|
27170
|
+
// If we're applying inline styles to a block element, don't split the block
|
|
27171
|
+
const isApplyingInlineStyle = !style.elementIsBlock && ((_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style);
|
|
27172
|
+
const shouldNotSplitBlock = isApplyingInlineStyle && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(suit);
|
|
27173
|
+
if (!shouldNotSplitBlock) {
|
|
27174
|
+
if (!style.elementIsBlock) {
|
|
27175
|
+
(0,_api_index_js__WEBPACK_IMPORTED_MODULE_4__/* .extractSelectedPart */ .yP)(suit, element, jodit);
|
|
27176
|
+
}
|
|
27177
|
+
return {
|
|
27178
|
+
...value,
|
|
27179
|
+
element: suit,
|
|
27180
|
+
next: states.ELEMENT
|
|
27181
|
+
};
|
|
27121
27182
|
}
|
|
27183
|
+
// Create a new wrapper instead of splitting the block
|
|
27122
27184
|
return {
|
|
27123
27185
|
...value,
|
|
27124
|
-
|
|
27125
|
-
next: states.ELEMENT
|
|
27186
|
+
next: states.WRAP
|
|
27126
27187
|
};
|
|
27127
27188
|
}
|
|
27128
27189
|
},
|
|
@@ -39350,33 +39411,52 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
39350
39411
|
super(...arguments);
|
|
39351
39412
|
this.elements = [];
|
|
39352
39413
|
this.currentSelection = -1;
|
|
39414
|
+
this.__previousList = [];
|
|
39353
39415
|
}
|
|
39354
39416
|
/** @override */
|
|
39355
39417
|
className() {
|
|
39356
39418
|
return 'Autocomplete';
|
|
39357
39419
|
}
|
|
39358
|
-
onChangeSelection(
|
|
39359
|
-
var _a;
|
|
39360
|
-
|
|
39361
|
-
this.elements[this.currentSelection].setMod('active', true);
|
|
39362
|
-
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
39420
|
+
onChangeSelection() {
|
|
39421
|
+
var _a, _b;
|
|
39422
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
39423
|
+
(_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.setMod('active', true);
|
|
39424
|
+
(_b = this.elements[this.currentSelection]) === null || _b === void 0 ? void 0 : _b.container.scrollIntoView(false);
|
|
39363
39425
|
}
|
|
39364
39426
|
build(list) {
|
|
39365
|
-
|
|
39366
|
-
|
|
39367
|
-
|
|
39368
|
-
|
|
39369
|
-
|
|
39370
|
-
|
|
39371
|
-
|
|
39372
|
-
.
|
|
39373
|
-
|
|
39427
|
+
var _a;
|
|
39428
|
+
const currentValue = (_a = this.elements[this.currentSelection]) === null || _a === void 0 ? void 0 : _a.item.value;
|
|
39429
|
+
const removed = [];
|
|
39430
|
+
let elementIndex = -1;
|
|
39431
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
39432
|
+
elementIndex += 1;
|
|
39433
|
+
if (this.__previousList[i] != null &&
|
|
39434
|
+
list[i].value === this.__previousList[i].value) {
|
|
39435
|
+
continue;
|
|
39436
|
+
}
|
|
39437
|
+
if (this.elements[elementIndex]) {
|
|
39438
|
+
removed.push(this.elements[elementIndex]);
|
|
39439
|
+
elementIndex += 1;
|
|
39440
|
+
}
|
|
39441
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
39442
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
39374
39443
|
this.select();
|
|
39375
39444
|
});
|
|
39376
|
-
this.append(item);
|
|
39445
|
+
this.append(item, elementIndex);
|
|
39446
|
+
}
|
|
39447
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
39448
|
+
removed.push(this.elements[fromIndex]);
|
|
39449
|
+
}
|
|
39450
|
+
removed.forEach((item) => {
|
|
39451
|
+
this.remove(item);
|
|
39452
|
+
item.destruct();
|
|
39377
39453
|
});
|
|
39378
|
-
this.currentSelection
|
|
39379
|
-
this.
|
|
39454
|
+
const previosSelection = this.currentSelection;
|
|
39455
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
39456
|
+
if (previosSelection === this.currentSelection) {
|
|
39457
|
+
this.onChangeSelection();
|
|
39458
|
+
}
|
|
39459
|
+
this.__previousList = [...list];
|
|
39380
39460
|
}
|
|
39381
39461
|
selectNext() {
|
|
39382
39462
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -43368,7 +43448,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43368
43448
|
* ```
|
|
43369
43449
|
* @packageDocumentation
|
|
43370
43450
|
* @module constants
|
|
43371
|
-
*/ const APP_VERSION = "4.6.
|
|
43451
|
+
*/ const APP_VERSION = "4.6.21";
|
|
43372
43452
|
// prettier-ignore
|
|
43373
43453
|
const ES = "es2018";
|
|
43374
43454
|
const IS_ES_MODERN = true;
|
|
@@ -46212,9 +46292,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46212
46292
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
46213
46293
|
/* harmony export */ });
|
|
46214
46294
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
46215
|
-
/* harmony import */ var
|
|
46216
|
-
/* harmony import */ var
|
|
46217
|
-
/* harmony import */ var
|
|
46295
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
46296
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
46297
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
46218
46298
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
46219
46299
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
46220
46300
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -46238,26 +46318,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46238
46318
|
|
|
46239
46319
|
|
|
46240
46320
|
|
|
46241
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
46242
|
-
sources: [],
|
|
46243
|
-
maxItems: 50,
|
|
46244
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
46245
|
-
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
46246
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
46247
|
-
};
|
|
46248
46321
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
46249
|
-
constructor(
|
|
46250
|
-
super(
|
|
46322
|
+
constructor() {
|
|
46323
|
+
super(...arguments);
|
|
46251
46324
|
/** @override */
|
|
46252
46325
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
46253
46326
|
this.sources = [];
|
|
46254
46327
|
}
|
|
46328
|
+
get list() {
|
|
46329
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
46330
|
+
}
|
|
46331
|
+
get popup() {
|
|
46332
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
46333
|
+
popup.setMod('padding', false);
|
|
46334
|
+
popup.setContent(this.list.container);
|
|
46335
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
46336
|
+
this.list.currentSelection = 0;
|
|
46337
|
+
});
|
|
46338
|
+
return popup;
|
|
46339
|
+
}
|
|
46255
46340
|
/** @override */
|
|
46256
46341
|
afterInit(jodit) {
|
|
46257
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
46258
|
-
this.popup.setMod('padding', false);
|
|
46259
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
46260
|
-
this.popup.setContent(this.list.container);
|
|
46261
46342
|
jodit.e
|
|
46262
46343
|
.on('select.autocomplete', (item) => {
|
|
46263
46344
|
let insertValue = item.value;
|
|
@@ -46267,7 +46348,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46267
46348
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
46268
46349
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
46269
46350
|
}
|
|
46270
|
-
(0,
|
|
46351
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
46271
46352
|
this.j.s.setCursorAfter(insertValue);
|
|
46272
46353
|
this.j.synchronizeValues();
|
|
46273
46354
|
this.popup.close();
|
|
@@ -46278,11 +46359,18 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46278
46359
|
})
|
|
46279
46360
|
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
46280
46361
|
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
46281
|
-
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource)
|
|
46362
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource)
|
|
46363
|
+
.on('unregisterAutocompleteSource.autocomplete', this.unregisterAutocompleteSource);
|
|
46282
46364
|
}
|
|
46283
46365
|
registerAutocompleteSource(source) {
|
|
46284
46366
|
this.sources.push(source);
|
|
46285
46367
|
}
|
|
46368
|
+
unregisterAutocompleteSource(source) {
|
|
46369
|
+
const index = this.sources.indexOf(source);
|
|
46370
|
+
if (index !== -1) {
|
|
46371
|
+
this.sources.splice(index, 1);
|
|
46372
|
+
}
|
|
46373
|
+
}
|
|
46286
46374
|
static isControlKey(key) {
|
|
46287
46375
|
return (key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN ||
|
|
46288
46376
|
key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_UP ||
|
|
@@ -46304,7 +46392,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46304
46392
|
const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
46305
46393
|
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
46306
46394
|
: null;
|
|
46307
|
-
const query = range && (0,
|
|
46395
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
46308
46396
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
46309
46397
|
const result = await this.onAutoComplete(query);
|
|
46310
46398
|
if (result.length) {
|
|
@@ -46414,6 +46502,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46414
46502
|
beforeDestruct(jodit) {
|
|
46415
46503
|
jodit.e
|
|
46416
46504
|
.off(this.list)
|
|
46505
|
+
.off(this.popup)
|
|
46417
46506
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
46418
46507
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
46419
46508
|
.off('.autocomplete');
|
|
@@ -46423,9 +46512,18 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
46423
46512
|
}
|
|
46424
46513
|
/** @override */
|
|
46425
46514
|
autocomplete.requires = ['enter', 'license'];
|
|
46515
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46516
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46517
|
+
], autocomplete.prototype, "list", null);
|
|
46518
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46519
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
46520
|
+
], autocomplete.prototype, "popup", null);
|
|
46426
46521
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46427
46522
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
46428
46523
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
46524
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46525
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
46526
|
+
], autocomplete.prototype, "unregisterAutocompleteSource", null);
|
|
46429
46527
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
46430
46528
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.debounce)()
|
|
46431
46529
|
], autocomplete.prototype, "onKeyDown", null);
|