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/es2021.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.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
|
*/
|
|
@@ -6961,6 +6961,27 @@ ToolbarCollection = __decorate([
|
|
|
6961
6961
|
|
|
6962
6962
|
|
|
6963
6963
|
|
|
6964
|
+
/***/ }),
|
|
6965
|
+
|
|
6966
|
+
/***/ 11691:
|
|
6967
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
6968
|
+
|
|
6969
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
6970
|
+
/*!
|
|
6971
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6972
|
+
* See LICENSE.md in the project root for license information.
|
|
6973
|
+
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6974
|
+
*/
|
|
6975
|
+
|
|
6976
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.autocomplete = {
|
|
6977
|
+
sources: [],
|
|
6978
|
+
maxItems: 50,
|
|
6979
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
6980
|
+
itemRenderer: (item) => item.title ?? item.value,
|
|
6981
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
6982
|
+
};
|
|
6983
|
+
|
|
6984
|
+
|
|
6964
6985
|
/***/ }),
|
|
6965
6986
|
|
|
6966
6987
|
/***/ 11787:
|
|
@@ -8235,6 +8256,10 @@ class license extends jodit_esm_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
8235
8256
|
afterInit(jodit) {
|
|
8236
8257
|
this.j.e.on('checkReserve', async (checkDomain) => {
|
|
8237
8258
|
const code = this.j.o.license;
|
|
8259
|
+
// For local and testing stages
|
|
8260
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__/* .isAllowedSubdomain */ .fI)(checkDomain)) {
|
|
8261
|
+
return 'normal';
|
|
8262
|
+
}
|
|
8238
8263
|
if (!code) {
|
|
8239
8264
|
return '';
|
|
8240
8265
|
}
|
|
@@ -9394,7 +9419,8 @@ function replaceOldTags(elm) {
|
|
|
9394
9419
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9395
9420
|
|
|
9396
9421
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9397
|
-
/* harmony export */ M0: function() { return /* binding */ validateLicense; }
|
|
9422
|
+
/* harmony export */ M0: function() { return /* binding */ validateLicense; },
|
|
9423
|
+
/* harmony export */ fI: function() { return /* binding */ isAllowedSubdomain; }
|
|
9398
9424
|
/* harmony export */ });
|
|
9399
9425
|
/* unused harmony exports validateEntLicense, domainsHash */
|
|
9400
9426
|
/*!
|
|
@@ -25212,8 +25238,10 @@ function persistent(target, propertyKey) {
|
|
|
25212
25238
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25213
25239
|
/* harmony export */ K: function() { return /* binding */ AutocompleteItem; }
|
|
25214
25240
|
/* harmony export */ });
|
|
25215
|
-
/* harmony import */ var
|
|
25216
|
-
/* harmony import */ var
|
|
25241
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
25242
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
25243
|
+
/* harmony import */ var jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27613);
|
|
25244
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
25217
25245
|
/*!
|
|
25218
25246
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
25219
25247
|
* See LICENSE.md in the project root for license information.
|
|
@@ -25222,18 +25250,23 @@ function persistent(target, propertyKey) {
|
|
|
25222
25250
|
|
|
25223
25251
|
|
|
25224
25252
|
|
|
25225
|
-
|
|
25253
|
+
|
|
25254
|
+
|
|
25255
|
+
let AutocompleteItem = class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
25226
25256
|
/** @override */
|
|
25227
25257
|
className() {
|
|
25228
25258
|
return 'AutocompleteItem';
|
|
25229
25259
|
}
|
|
25230
|
-
constructor(jodit, item) {
|
|
25260
|
+
constructor(jodit, item, onClick) {
|
|
25231
25261
|
super(jodit);
|
|
25232
25262
|
this.item = item;
|
|
25263
|
+
this.onClick = onClick;
|
|
25264
|
+
this.value = '';
|
|
25233
25265
|
const { container } = this;
|
|
25234
|
-
|
|
25266
|
+
this.value = item.value;
|
|
25267
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isFunction */ .Tn)(item.itemRenderer)) {
|
|
25235
25268
|
const elm = item.itemRenderer(item);
|
|
25236
|
-
if ((0,
|
|
25269
|
+
if ((0,jodit_esm_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(elm)) {
|
|
25237
25270
|
container.innerHTML = elm;
|
|
25238
25271
|
}
|
|
25239
25272
|
else {
|
|
@@ -25244,7 +25277,24 @@ class AutocompleteItem extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODUL
|
|
|
25244
25277
|
container.innerText = item.title ?? item.value;
|
|
25245
25278
|
}
|
|
25246
25279
|
}
|
|
25247
|
-
|
|
25280
|
+
onClickPrevent(e) {
|
|
25281
|
+
e.preventDefault();
|
|
25282
|
+
e.stopPropagation();
|
|
25283
|
+
}
|
|
25284
|
+
onClickHandler() {
|
|
25285
|
+
this.onClick(this.value);
|
|
25286
|
+
}
|
|
25287
|
+
};
|
|
25288
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25289
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:mousedown container:touchstart')
|
|
25290
|
+
], AutocompleteItem.prototype, "onClickPrevent", null);
|
|
25291
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25292
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click')
|
|
25293
|
+
], AutocompleteItem.prototype, "onClickHandler", null);
|
|
25294
|
+
AutocompleteItem = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
25295
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
25296
|
+
], AutocompleteItem);
|
|
25297
|
+
|
|
25248
25298
|
|
|
25249
25299
|
|
|
25250
25300
|
/***/ }),
|
|
@@ -25945,16 +25995,27 @@ const transactions = {
|
|
|
25945
25995
|
},
|
|
25946
25996
|
[states.EXTRACT]: {
|
|
25947
25997
|
exec (value) {
|
|
25998
|
+
var _a;
|
|
25948
25999
|
const { element, jodit, style } = value;
|
|
25949
26000
|
const suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_4__/* .suitableClosest */ .$s)(style, element, jodit.editor);
|
|
25950
26001
|
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(suit, 'This place should have an element');
|
|
25951
|
-
|
|
25952
|
-
|
|
26002
|
+
// If we're applying inline styles to a block element, don't split the block
|
|
26003
|
+
const isApplyingInlineStyle = !style.elementIsBlock && ((_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style);
|
|
26004
|
+
const shouldNotSplitBlock = isApplyingInlineStyle && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(suit);
|
|
26005
|
+
if (!shouldNotSplitBlock) {
|
|
26006
|
+
if (!style.elementIsBlock) {
|
|
26007
|
+
(0,_api_index_js__WEBPACK_IMPORTED_MODULE_4__/* .extractSelectedPart */ .yP)(suit, element, jodit);
|
|
26008
|
+
}
|
|
26009
|
+
return {
|
|
26010
|
+
...value,
|
|
26011
|
+
element: suit,
|
|
26012
|
+
next: states.ELEMENT
|
|
26013
|
+
};
|
|
25953
26014
|
}
|
|
26015
|
+
// Create a new wrapper instead of splitting the block
|
|
25954
26016
|
return {
|
|
25955
26017
|
...value,
|
|
25956
|
-
|
|
25957
|
-
next: states.ELEMENT
|
|
26018
|
+
next: states.WRAP
|
|
25958
26019
|
};
|
|
25959
26020
|
}
|
|
25960
26021
|
},
|
|
@@ -37637,32 +37698,50 @@ let Autocomplete = class Autocomplete extends jodit_esm_core_ui_group_group__WEB
|
|
|
37637
37698
|
super(...arguments);
|
|
37638
37699
|
this.elements = [];
|
|
37639
37700
|
this.currentSelection = -1;
|
|
37701
|
+
this.__previousList = [];
|
|
37640
37702
|
}
|
|
37641
37703
|
/** @override */
|
|
37642
37704
|
className() {
|
|
37643
37705
|
return 'Autocomplete';
|
|
37644
37706
|
}
|
|
37645
|
-
onChangeSelection(
|
|
37646
|
-
|
|
37647
|
-
this.elements[this.currentSelection]
|
|
37648
|
-
this.elements[this.currentSelection]
|
|
37707
|
+
onChangeSelection() {
|
|
37708
|
+
this.elements.forEach((elm) => elm.setMod('active', false));
|
|
37709
|
+
this.elements[this.currentSelection]?.setMod('active', true);
|
|
37710
|
+
this.elements[this.currentSelection]?.container.scrollIntoView(false);
|
|
37649
37711
|
}
|
|
37650
37712
|
build(list) {
|
|
37651
|
-
this.
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
|
|
37657
|
-
|
|
37658
|
-
|
|
37659
|
-
|
|
37713
|
+
const currentValue = this.elements[this.currentSelection]?.item.value;
|
|
37714
|
+
const removed = [];
|
|
37715
|
+
let elementIndex = -1;
|
|
37716
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
37717
|
+
elementIndex += 1;
|
|
37718
|
+
if (this.__previousList[i] != null &&
|
|
37719
|
+
list[i].value === this.__previousList[i].value) {
|
|
37720
|
+
continue;
|
|
37721
|
+
}
|
|
37722
|
+
if (this.elements[elementIndex]) {
|
|
37723
|
+
removed.push(this.elements[elementIndex]);
|
|
37724
|
+
elementIndex += 1;
|
|
37725
|
+
}
|
|
37726
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .AutocompleteItem */ .K(this.jodit, list[i], (value) => {
|
|
37727
|
+
this.currentSelection = list.findIndex((item) => item.value === value);
|
|
37660
37728
|
this.select();
|
|
37661
37729
|
});
|
|
37662
|
-
this.append(item);
|
|
37730
|
+
this.append(item, elementIndex);
|
|
37731
|
+
}
|
|
37732
|
+
for (let fromIndex = elementIndex + 1; fromIndex < this.elements.length; fromIndex += 1) {
|
|
37733
|
+
removed.push(this.elements[fromIndex]);
|
|
37734
|
+
}
|
|
37735
|
+
removed.forEach((item) => {
|
|
37736
|
+
this.remove(item);
|
|
37737
|
+
item.destruct();
|
|
37663
37738
|
});
|
|
37664
|
-
this.currentSelection
|
|
37665
|
-
this.
|
|
37739
|
+
const previosSelection = this.currentSelection;
|
|
37740
|
+
this.currentSelection = Math.max(0, list.findIndex((elm) => elm.value === currentValue));
|
|
37741
|
+
if (previosSelection === this.currentSelection) {
|
|
37742
|
+
this.onChangeSelection();
|
|
37743
|
+
}
|
|
37744
|
+
this.__previousList = [...list];
|
|
37666
37745
|
}
|
|
37667
37746
|
selectNext() {
|
|
37668
37747
|
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
@@ -41601,7 +41680,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41601
41680
|
* ```
|
|
41602
41681
|
* @packageDocumentation
|
|
41603
41682
|
* @module constants
|
|
41604
|
-
*/ const APP_VERSION = "4.6.
|
|
41683
|
+
*/ const APP_VERSION = "4.6.21";
|
|
41605
41684
|
// prettier-ignore
|
|
41606
41685
|
const ES = "es2021";
|
|
41607
41686
|
const IS_ES_MODERN = true;
|
|
@@ -44376,9 +44455,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44376
44455
|
/* harmony export */ autocomplete: function() { return /* binding */ autocomplete; }
|
|
44377
44456
|
/* harmony export */ });
|
|
44378
44457
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
44379
|
-
/* harmony import */ var
|
|
44380
|
-
/* harmony import */ var
|
|
44381
|
-
/* harmony import */ var
|
|
44458
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11691);
|
|
44459
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78630);
|
|
44460
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91876);
|
|
44382
44461
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82758);
|
|
44383
44462
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65478);
|
|
44384
44463
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
@@ -44402,26 +44481,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44402
44481
|
|
|
44403
44482
|
|
|
44404
44483
|
|
|
44405
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.autocomplete = {
|
|
44406
|
-
sources: [],
|
|
44407
|
-
maxItems: 50,
|
|
44408
|
-
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
44409
|
-
itemRenderer: (item) => item.title ?? item.value,
|
|
44410
|
-
insertValueRenderer: (item) => item.value + ' '
|
|
44411
|
-
};
|
|
44412
44484
|
class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .Plugin */ .k {
|
|
44413
|
-
constructor(
|
|
44414
|
-
super(
|
|
44485
|
+
constructor() {
|
|
44486
|
+
super(...arguments);
|
|
44415
44487
|
/** @override */
|
|
44416
44488
|
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .A.fatMode;
|
|
44417
44489
|
this.sources = [];
|
|
44418
44490
|
}
|
|
44491
|
+
get list() {
|
|
44492
|
+
return new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_2__/* .Autocomplete */ .j(this.jodit);
|
|
44493
|
+
}
|
|
44494
|
+
get popup() {
|
|
44495
|
+
const popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(this.jodit);
|
|
44496
|
+
popup.setMod('padding', false);
|
|
44497
|
+
popup.setContent(this.list.container);
|
|
44498
|
+
this.jodit.e.on(popup, 'beforeClose', () => {
|
|
44499
|
+
this.list.currentSelection = 0;
|
|
44500
|
+
});
|
|
44501
|
+
return popup;
|
|
44502
|
+
}
|
|
44419
44503
|
/** @override */
|
|
44420
44504
|
afterInit(jodit) {
|
|
44421
|
-
this.popup = new jodit_esm_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__/* .Popup */ .z(jodit);
|
|
44422
|
-
this.popup.setMod('padding', false);
|
|
44423
|
-
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_1__/* .Autocomplete */ .j(jodit);
|
|
44424
|
-
this.popup.setContent(this.list.container);
|
|
44425
44505
|
jodit.e
|
|
44426
44506
|
.on('select.autocomplete', (item) => {
|
|
44427
44507
|
let insertValue = item.value;
|
|
@@ -44431,7 +44511,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44431
44511
|
if (!jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__/* .Dom */ .J.isNode(insertValue)) {
|
|
44432
44512
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
44433
44513
|
}
|
|
44434
|
-
(0,
|
|
44514
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
44435
44515
|
this.j.s.setCursorAfter(insertValue);
|
|
44436
44516
|
this.j.synchronizeValues();
|
|
44437
44517
|
this.popup.close();
|
|
@@ -44442,11 +44522,18 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44442
44522
|
})
|
|
44443
44523
|
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
44444
44524
|
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
44445
|
-
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource)
|
|
44525
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource)
|
|
44526
|
+
.on('unregisterAutocompleteSource.autocomplete', this.unregisterAutocompleteSource);
|
|
44446
44527
|
}
|
|
44447
44528
|
registerAutocompleteSource(source) {
|
|
44448
44529
|
this.sources.push(source);
|
|
44449
44530
|
}
|
|
44531
|
+
unregisterAutocompleteSource(source) {
|
|
44532
|
+
const index = this.sources.indexOf(source);
|
|
44533
|
+
if (index !== -1) {
|
|
44534
|
+
this.sources.splice(index, 1);
|
|
44535
|
+
}
|
|
44536
|
+
}
|
|
44450
44537
|
static isControlKey(key) {
|
|
44451
44538
|
return (key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN ||
|
|
44452
44539
|
key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_UP ||
|
|
@@ -44467,7 +44554,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44467
44554
|
const range = this.j.s.sel?.rangeCount
|
|
44468
44555
|
? this.j.s.sel?.getRangeAt(0)
|
|
44469
44556
|
: null;
|
|
44470
|
-
const query = range && (0,
|
|
44557
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
44471
44558
|
if (query && (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.trim)(query).length) {
|
|
44472
44559
|
const result = await this.onAutoComplete(query);
|
|
44473
44560
|
if (result.length) {
|
|
@@ -44544,7 +44631,8 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44544
44631
|
const { itemRenderer, insertValueRenderer, maxItems } = this.j.o.autocomplete;
|
|
44545
44632
|
parts = parts.map((item) => ({
|
|
44546
44633
|
itemRenderer: baseSource?.itemRenderer ?? itemRenderer,
|
|
44547
|
-
insertValueRenderer: baseSource?.insertValueRenderer ??
|
|
44634
|
+
insertValueRenderer: baseSource?.insertValueRenderer ??
|
|
44635
|
+
insertValueRenderer,
|
|
44548
44636
|
...item
|
|
44549
44637
|
}));
|
|
44550
44638
|
return parts.slice(0, maxItems);
|
|
@@ -44574,6 +44662,7 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44574
44662
|
beforeDestruct(jodit) {
|
|
44575
44663
|
jodit.e
|
|
44576
44664
|
.off(this.list)
|
|
44665
|
+
.off(this.popup)
|
|
44577
44666
|
.off('keydown.autocomplete', this.onKeyDown)
|
|
44578
44667
|
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
44579
44668
|
.off('.autocomplete');
|
|
@@ -44583,9 +44672,18 @@ class autocomplete extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/*
|
|
|
44583
44672
|
}
|
|
44584
44673
|
/** @override */
|
|
44585
44674
|
autocomplete.requires = ['enter', 'license'];
|
|
44675
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44676
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
44677
|
+
], autocomplete.prototype, "list", null);
|
|
44678
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44679
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
44680
|
+
], autocomplete.prototype, "popup", null);
|
|
44586
44681
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44587
44682
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
44588
44683
|
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
44684
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44685
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
44686
|
+
], autocomplete.prototype, "unregisterAutocompleteSource", null);
|
|
44589
44687
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
44590
44688
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_5__.debounce)()
|
|
44591
44689
|
], autocomplete.prototype, "onKeyDown", null);
|