jodit-pro 4.2.12 → 4.2.18
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 +115 -115
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +938 -844
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +7 -7
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +9 -9
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +6 -6
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- 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 +11 -11
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +7 -7
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +33 -33
- 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 +2 -2
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +6 -6
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +15 -15
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +20 -9
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +8 -8
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +7 -7
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +9 -9
- package/es2015/plugins/translate/translate.min.js +2 -2
- 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 +115 -115
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +938 -846
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +7 -7
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +9 -9
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +6 -6
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- 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 +11 -11
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +7 -7
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +33 -33
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +2 -2
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +6 -6
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +15 -15
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +20 -9
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +8 -8
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +7 -7
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +9 -9
- package/es2018/plugins/translate/translate.min.js +2 -2
- 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 +115 -115
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +932 -840
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +7 -7
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +9 -9
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +6 -6
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- 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 +11 -11
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +7 -7
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +33 -33
- 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 +2 -2
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +6 -6
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +15 -15
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +19 -9
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +8 -8
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +7 -7
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +9 -9
- package/es2021/plugins/translate/translate.min.js +2 -2
- 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 +115 -115
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +932 -840
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +7 -7
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +9 -9
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +6 -6
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- 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 +11 -11
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +7 -7
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +33 -33
- 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 +2 -2
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +6 -6
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +15 -15
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +19 -9
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +8 -8
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +7 -7
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +9 -9
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- 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 +129 -129
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +961 -866
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +7 -7
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +9 -9
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +6 -6
- package/es5/plugins/change-case/change-case.min.js +2 -2
- 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 +11 -11
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +7 -7
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +33 -33
- 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 +2 -2
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +6 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +15 -15
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +20 -9
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +8 -8
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +7 -7
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +9 -9
- package/es5/plugins/translate/translate.min.js +2 -2
- 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/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/backup/config.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -1
- package/esm/plugins/change-case/config.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/export-docs/config.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/interface.d.ts +69 -0
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/interface.d.ts +109 -0
- package/esm/plugins/google-search/google-search.js +1 -1
- package/esm/plugins/iframe-editor/config.js +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/page-break/config.js +1 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/translate/config.js +1 -1
- package/package.json +1 -1
- package/types/plugins/finder/interface.d.ts +69 -0
- package/types/plugins/google-maps/interface.d.ts +109 -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.2.
|
|
4
|
+
* Version: v4.2.18
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2304,7 +2304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2304
2304
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2305
2305
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2306
2306
|
*/
|
|
2307
|
-
const APP_VERSION = "4.2.
|
|
2307
|
+
const APP_VERSION = "4.2.18";
|
|
2308
2308
|
// prettier-ignore
|
|
2309
2309
|
const ES = "es2021";
|
|
2310
2310
|
const IS_ES_MODERN = true;
|
|
@@ -7848,6 +7848,8 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
|
|
|
7848
7848
|
}
|
|
7849
7849
|
const script = jodit.c.element('script', {
|
|
7850
7850
|
type: 'text/javascript',
|
|
7851
|
+
crossorigin: 'anonymous',
|
|
7852
|
+
referrerpolicy: 'no-referrer',
|
|
7851
7853
|
async: true,
|
|
7852
7854
|
src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
|
|
7853
7855
|
});
|
|
@@ -8088,9 +8090,9 @@ const completeUrl = (url) => {
|
|
|
8088
8090
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
|
|
8089
8091
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
8090
8092
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
|
|
8093
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91288);
|
|
8091
8094
|
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20368);
|
|
8092
|
-
/* harmony import */ var
|
|
8093
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
8095
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94183);
|
|
8094
8096
|
/*!
|
|
8095
8097
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8096
8098
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8138,7 +8140,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
8138
8140
|
if (Object.getPrototypeOf(options) !== Object.prototype) {
|
|
8139
8141
|
return options;
|
|
8140
8142
|
}
|
|
8141
|
-
const def =
|
|
8143
|
+
const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
|
|
8142
8144
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
|
|
8143
8145
|
if (def.presets[options.preset] !== undefined) {
|
|
8144
8146
|
const preset = def.presets[options.preset];
|
|
@@ -8168,7 +8170,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
8168
8170
|
return newOpt;
|
|
8169
8171
|
}
|
|
8170
8172
|
function ConfigFlatten(obj) {
|
|
8171
|
-
return (0,
|
|
8173
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
|
|
8172
8174
|
app[key] = obj[key];
|
|
8173
8175
|
return app;
|
|
8174
8176
|
}, {});
|
|
@@ -10127,9 +10129,9 @@ Plugin.requires = [];
|
|
|
10127
10129
|
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
|
|
10128
10130
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
10129
10131
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
|
|
10130
|
-
/* harmony import */ var
|
|
10132
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
10133
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
|
|
10131
10134
|
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85349);
|
|
10132
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10133
10135
|
/*!
|
|
10134
10136
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10135
10137
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10147,7 +10149,7 @@ class Ajax {
|
|
|
10147
10149
|
className() {
|
|
10148
10150
|
return 'Ajax';
|
|
10149
10151
|
}
|
|
10150
|
-
constructor(options, defaultAjaxOptions =
|
|
10152
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10151
10153
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10152
10154
|
this.__isFulfilled = false;
|
|
10153
10155
|
this.__activated = false;
|
|
@@ -10390,10 +10392,14 @@ class Response {
|
|
|
10390
10392
|
|
|
10391
10393
|
"use strict";
|
|
10392
10394
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10393
|
-
/* harmony export */
|
|
10395
|
+
/* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
10396
|
+
/* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
|
|
10397
|
+
/* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
|
|
10394
10398
|
/* harmony export */ });
|
|
10395
|
-
/* harmony import */ var
|
|
10396
|
-
/* harmony import */ var
|
|
10399
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
10400
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
10401
|
+
/* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49967);
|
|
10402
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13088);
|
|
10397
10403
|
/*!
|
|
10398
10404
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10399
10405
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10406,6 +10412,54 @@ class Response {
|
|
|
10406
10412
|
|
|
10407
10413
|
|
|
10408
10414
|
|
|
10415
|
+
/**
|
|
10416
|
+
* Check if the cursor is at the edge of the string
|
|
10417
|
+
* @private
|
|
10418
|
+
*/
|
|
10419
|
+
function cursorInTheEdgeOfString(container, offset, start, end) {
|
|
10420
|
+
const text = container.nodeValue?.length ? container.nodeValue : '';
|
|
10421
|
+
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
10422
|
+
return true;
|
|
10423
|
+
}
|
|
10424
|
+
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
10425
|
+
return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
|
|
10426
|
+
}
|
|
10427
|
+
function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
|
|
10428
|
+
node = range.startContainer.childNodes[range.startOffset];
|
|
10429
|
+
if (!node) {
|
|
10430
|
+
node = range.startContainer.childNodes[range.startOffset - 1];
|
|
10431
|
+
rightMode = true;
|
|
10432
|
+
}
|
|
10433
|
+
if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
10434
|
+
// test Current method - Cursor in the left of some SPAN
|
|
10435
|
+
if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
|
|
10436
|
+
node = node.previousSibling;
|
|
10437
|
+
}
|
|
10438
|
+
else if (checkChild) {
|
|
10439
|
+
let current = child(node);
|
|
10440
|
+
while (current) {
|
|
10441
|
+
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
|
|
10442
|
+
node = current;
|
|
10443
|
+
break;
|
|
10444
|
+
}
|
|
10445
|
+
current = child(current);
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
10450
|
+
let leftChild = node, rightChild = node;
|
|
10451
|
+
do {
|
|
10452
|
+
leftChild = leftChild.firstChild;
|
|
10453
|
+
rightChild = rightChild.lastChild;
|
|
10454
|
+
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
|
|
10455
|
+
if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
|
|
10456
|
+
node = leftChild;
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
return { node, rightMode };
|
|
10460
|
+
}
|
|
10461
|
+
|
|
10462
|
+
|
|
10409
10463
|
/***/ }),
|
|
10410
10464
|
|
|
10411
10465
|
/***/ 49967:
|
|
@@ -10527,7 +10581,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10527
10581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10528
10582
|
/* harmony export */ L: function() { return /* binding */ Selection; }
|
|
10529
10583
|
/* harmony export */ });
|
|
10530
|
-
/* harmony import */ var
|
|
10584
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
|
|
10531
10585
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
10532
10586
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
|
|
10533
10587
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
@@ -10537,6 +10591,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10537
10591
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__);
|
|
10538
10592
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13088);
|
|
10539
10593
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11232);
|
|
10594
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92185);
|
|
10540
10595
|
/*!
|
|
10541
10596
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10542
10597
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10553,6 +10608,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10553
10608
|
|
|
10554
10609
|
|
|
10555
10610
|
|
|
10611
|
+
|
|
10556
10612
|
class Selection {
|
|
10557
10613
|
constructor(jodit) {
|
|
10558
10614
|
this.jodit = jodit;
|
|
@@ -10935,63 +10991,35 @@ class Selection {
|
|
|
10935
10991
|
* Returns the current element under the cursor inside editor
|
|
10936
10992
|
*/
|
|
10937
10993
|
current(checkChild = true) {
|
|
10938
|
-
if (this.j.getRealMode()
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
}
|
|
10961
|
-
else if (checkChild) {
|
|
10962
|
-
let current = child(node);
|
|
10963
|
-
while (current) {
|
|
10964
|
-
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
|
|
10965
|
-
node = current;
|
|
10966
|
-
break;
|
|
10967
|
-
}
|
|
10968
|
-
current = child(current);
|
|
10969
|
-
}
|
|
10970
|
-
}
|
|
10971
|
-
}
|
|
10972
|
-
if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
10973
|
-
let leftChild = node, rightChild = node;
|
|
10974
|
-
do {
|
|
10975
|
-
leftChild = leftChild.firstChild;
|
|
10976
|
-
rightChild = rightChild.lastChild;
|
|
10977
|
-
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
|
|
10978
|
-
if (leftChild === rightChild &&
|
|
10979
|
-
leftChild &&
|
|
10980
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
|
|
10981
|
-
node = leftChild;
|
|
10982
|
-
}
|
|
10983
|
-
}
|
|
10984
|
-
}
|
|
10985
|
-
// check - cursor inside editor
|
|
10986
|
-
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
10987
|
-
return node;
|
|
10988
|
-
}
|
|
10994
|
+
if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
10995
|
+
return null;
|
|
10996
|
+
}
|
|
10997
|
+
const sel = this.sel;
|
|
10998
|
+
if (!sel || sel.rangeCount === 0) {
|
|
10999
|
+
return null;
|
|
11000
|
+
}
|
|
11001
|
+
const range = sel.getRangeAt(0);
|
|
11002
|
+
let node = range.startContainer;
|
|
11003
|
+
let rightMode = false;
|
|
11004
|
+
const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
|
|
11005
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
|
|
11006
|
+
return node;
|
|
11007
|
+
}
|
|
11008
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
11009
|
+
const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
|
|
11010
|
+
node = ret.node;
|
|
11011
|
+
rightMode = ret.rightMode;
|
|
11012
|
+
}
|
|
11013
|
+
// check - cursor inside editor
|
|
11014
|
+
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
11015
|
+
return node;
|
|
10989
11016
|
}
|
|
10990
11017
|
return null;
|
|
10991
11018
|
}
|
|
10992
11019
|
/**
|
|
10993
11020
|
* Insert element in editor
|
|
10994
11021
|
*
|
|
11022
|
+
* @param node - Node for insert
|
|
10995
11023
|
* @param insertCursorAfter - After insert, cursor will move after element
|
|
10996
11024
|
* @param fireChange - After insert, editor fire change event. You can prevent this behavior
|
|
10997
11025
|
*/
|
|
@@ -11053,6 +11081,7 @@ class Selection {
|
|
|
11053
11081
|
* Inserts in the current cursor position some HTML snippet
|
|
11054
11082
|
*
|
|
11055
11083
|
* @param html - HTML The text to be inserted into the document
|
|
11084
|
+
* @param insertCursorAfter - After insert, cursor will move after element
|
|
11056
11085
|
* @example
|
|
11057
11086
|
* ```javascript
|
|
11058
11087
|
* parent.s.insertHTML('<img src="image.png"/>');
|
|
@@ -11096,6 +11125,7 @@ class Selection {
|
|
|
11096
11125
|
*
|
|
11097
11126
|
* @param url - URL for image, or HTMLImageElement
|
|
11098
11127
|
* @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
|
|
11128
|
+
* @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
|
|
11099
11129
|
*/
|
|
11100
11130
|
insertImage(url, styles = null, defaultWidth = null) {
|
|
11101
11131
|
const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
|
|
@@ -11150,74 +11180,81 @@ class Selection {
|
|
|
11150
11180
|
*/
|
|
11151
11181
|
eachSelection(callback) {
|
|
11152
11182
|
const sel = this.sel;
|
|
11153
|
-
if (sel
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11183
|
+
if (!sel || !sel.rangeCount) {
|
|
11184
|
+
return;
|
|
11185
|
+
}
|
|
11186
|
+
const range = sel.getRangeAt(0);
|
|
11187
|
+
let root = range.commonAncestorContainer;
|
|
11188
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
|
|
11189
|
+
root = root.parentElement;
|
|
11190
|
+
}
|
|
11191
|
+
const nodes = [];
|
|
11192
|
+
const startOffset = range.startOffset;
|
|
11193
|
+
const length = root.childNodes.length;
|
|
11194
|
+
const elementOffset = startOffset < length ? startOffset : length - 1;
|
|
11195
|
+
let start = range.startContainer === this.area
|
|
11196
|
+
? root.childNodes[elementOffset]
|
|
11197
|
+
: range.startContainer;
|
|
11198
|
+
let end = range.endContainer === this.area
|
|
11199
|
+
? root.childNodes[range.endOffset - 1]
|
|
11200
|
+
: range.endContainer;
|
|
11201
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
|
|
11202
|
+
start === range.startContainer &&
|
|
11203
|
+
range.startOffset === start.nodeValue?.length &&
|
|
11204
|
+
start.nextSibling) {
|
|
11205
|
+
start = start.nextSibling;
|
|
11206
|
+
}
|
|
11207
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
|
|
11208
|
+
end === range.endContainer &&
|
|
11209
|
+
range.endOffset === 0 &&
|
|
11210
|
+
end.previousSibling) {
|
|
11211
|
+
end = end.previousSibling;
|
|
11212
|
+
}
|
|
11213
|
+
const checkElm = (node) => {
|
|
11214
|
+
if (node &&
|
|
11215
|
+
node !== root &&
|
|
11216
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
|
|
11217
|
+
!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
|
|
11218
|
+
nodes.push(node);
|
|
11219
|
+
}
|
|
11220
|
+
};
|
|
11221
|
+
checkElm(start);
|
|
11222
|
+
if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
|
|
11223
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
|
|
11224
|
+
checkElm(node);
|
|
11225
|
+
// checks parentElement as well because partial selections are not equal to entire element
|
|
11226
|
+
return (node === end ||
|
|
11227
|
+
(node && node.contains && node.contains(end)));
|
|
11228
|
+
}, root, true, false);
|
|
11229
|
+
}
|
|
11230
|
+
const forEvery = (current) => {
|
|
11231
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
|
|
11232
|
+
return;
|
|
11233
|
+
}
|
|
11234
|
+
if (current.nodeName.match(/^(UL|OL)$/)) {
|
|
11235
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
|
|
11236
|
+
}
|
|
11237
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
|
|
11238
|
+
if (current.firstChild) {
|
|
11239
|
+
current = current.firstChild;
|
|
11200
11240
|
}
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
else {
|
|
11206
|
-
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
11207
|
-
current.appendChild(currentB);
|
|
11208
|
-
current = currentB;
|
|
11209
|
-
}
|
|
11241
|
+
else {
|
|
11242
|
+
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
11243
|
+
current.appendChild(currentB);
|
|
11244
|
+
current = currentB;
|
|
11210
11245
|
}
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11246
|
+
}
|
|
11247
|
+
callback(current);
|
|
11248
|
+
};
|
|
11249
|
+
if (nodes.length === 0) {
|
|
11250
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
|
|
11214
11251
|
nodes.push(start);
|
|
11215
11252
|
}
|
|
11216
|
-
if (
|
|
11253
|
+
if (start.firstChild) {
|
|
11217
11254
|
nodes.push(start.firstChild);
|
|
11218
11255
|
}
|
|
11219
|
-
nodes.forEach(forEvery);
|
|
11220
11256
|
}
|
|
11257
|
+
nodes.forEach(forEvery);
|
|
11221
11258
|
}
|
|
11222
11259
|
/**
|
|
11223
11260
|
* Checks if the cursor is at the end(start) block
|
|
@@ -11244,13 +11281,7 @@ class Selection {
|
|
|
11244
11281
|
this.j.e.fire('isInvisibleForCursor', elm) === true));
|
|
11245
11282
|
// check right offset
|
|
11246
11283
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
|
|
11247
|
-
|
|
11248
|
-
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
11249
|
-
return false;
|
|
11250
|
-
}
|
|
11251
|
-
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
11252
|
-
if (start &&
|
|
11253
|
-
((inv && inv[0].length < offset) || (!inv && offset > 0))) {
|
|
11284
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
|
|
11254
11285
|
return false;
|
|
11255
11286
|
}
|
|
11256
11287
|
}
|
|
@@ -11338,6 +11369,7 @@ class Selection {
|
|
|
11338
11369
|
}
|
|
11339
11370
|
/**
|
|
11340
11371
|
* Set cursor in the node
|
|
11372
|
+
* @param node - Node element
|
|
11341
11373
|
* @param inStart - set cursor in start of element
|
|
11342
11374
|
*/
|
|
11343
11375
|
setCursorIn(node, inStart = false) {
|
|
@@ -11398,6 +11430,7 @@ class Selection {
|
|
|
11398
11430
|
}
|
|
11399
11431
|
/**
|
|
11400
11432
|
* Select node
|
|
11433
|
+
* @param node - Node element
|
|
11401
11434
|
* @param inward - select all inside
|
|
11402
11435
|
*/
|
|
11403
11436
|
select(node, inward = false) {
|
|
@@ -11671,19 +11704,19 @@ class Selection {
|
|
|
11671
11704
|
return this;
|
|
11672
11705
|
}
|
|
11673
11706
|
}
|
|
11674
|
-
(0,
|
|
11707
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11675
11708
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11676
11709
|
], Selection.prototype, "createRange", null);
|
|
11677
|
-
(0,
|
|
11710
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11678
11711
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11679
11712
|
], Selection.prototype, "focus", null);
|
|
11680
|
-
(0,
|
|
11713
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11681
11714
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11682
11715
|
], Selection.prototype, "setCursorAfter", null);
|
|
11683
|
-
(0,
|
|
11716
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11684
11717
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11685
11718
|
], Selection.prototype, "setCursorBefore", null);
|
|
11686
|
-
(0,
|
|
11719
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11687
11720
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11688
11721
|
], Selection.prototype, "setCursorIn", null);
|
|
11689
11722
|
|
|
@@ -15564,17 +15597,23 @@ function findControlType(path, controls) {
|
|
|
15564
15597
|
else {
|
|
15565
15598
|
key = namespaceOrKey;
|
|
15566
15599
|
}
|
|
15567
|
-
const list = store[key]?.list;
|
|
15600
|
+
// const list = store[key]?.list;
|
|
15568
15601
|
return store[key]
|
|
15569
15602
|
? {
|
|
15570
15603
|
name: key,
|
|
15571
|
-
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15572
|
-
list:
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15604
|
+
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15605
|
+
// list: isArray(list)
|
|
15606
|
+
// ? (<Array<string>>list).reduce(
|
|
15607
|
+
// (
|
|
15608
|
+
// acc: IDictionary<string | number>,
|
|
15609
|
+
// k: string | number
|
|
15610
|
+
// ) => {
|
|
15611
|
+
// acc[String(k)] = k;
|
|
15612
|
+
// return acc;
|
|
15613
|
+
// },
|
|
15614
|
+
// {}
|
|
15615
|
+
// )
|
|
15616
|
+
// : list
|
|
15578
15617
|
}
|
|
15579
15618
|
: undefined;
|
|
15580
15619
|
}
|
|
@@ -15591,8 +15630,8 @@ function findControlType(path, controls) {
|
|
|
15591
15630
|
/* harmony export */ });
|
|
15592
15631
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55010);
|
|
15593
15632
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71122);
|
|
15594
|
-
/* harmony import */ var
|
|
15595
|
-
/* harmony import */ var
|
|
15633
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
15634
|
+
/* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68600);
|
|
15596
15635
|
/*!
|
|
15597
15636
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15598
15637
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15612,7 +15651,7 @@ function getStrongControlTypes(items, controls) {
|
|
|
15612
15651
|
const value = items[key] || {};
|
|
15613
15652
|
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
|
|
15614
15653
|
});
|
|
15615
|
-
return elements.map(item => (0,
|
|
15654
|
+
return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_2__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions.controls));
|
|
15616
15655
|
}
|
|
15617
15656
|
|
|
15618
15657
|
|
|
@@ -16701,17 +16740,17 @@ View.defaultOptions = {
|
|
|
16701
16740
|
|
|
16702
16741
|
"use strict";
|
|
16703
16742
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16704
|
-
/* harmony export */ x: function() { return /* reexport safe */
|
|
16743
|
+
/* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
|
|
16705
16744
|
/* harmony export */ });
|
|
16706
16745
|
/* unused harmony export CommitMode */
|
|
16707
|
-
/* harmony import */ var
|
|
16708
|
-
/* harmony import */ var
|
|
16746
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90268);
|
|
16747
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58588);
|
|
16709
16748
|
/* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67259);
|
|
16710
16749
|
/* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53557);
|
|
16711
16750
|
/* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35102);
|
|
16712
16751
|
/* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97186);
|
|
16713
|
-
/* harmony import */ var
|
|
16714
|
-
/* harmony import */ var
|
|
16752
|
+
/* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(459);
|
|
16753
|
+
/* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(22743);
|
|
16715
16754
|
/*!
|
|
16716
16755
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16717
16756
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16722,6 +16761,7 @@ View.defaultOptions = {
|
|
|
16722
16761
|
* @packageDocumentation
|
|
16723
16762
|
* @module jodit
|
|
16724
16763
|
*/
|
|
16764
|
+
// eslint-disable-next-line simple-import-sort/imports
|
|
16725
16765
|
|
|
16726
16766
|
|
|
16727
16767
|
|
|
@@ -16734,7 +16774,7 @@ View.defaultOptions = {
|
|
|
16734
16774
|
|
|
16735
16775
|
// copy constants in Jodit
|
|
16736
16776
|
Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
|
|
16737
|
-
|
|
16777
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
16738
16778
|
});
|
|
16739
16779
|
const esFilter = (key) => key !== '__esModule';
|
|
16740
16780
|
// Icons
|
|
@@ -16749,32 +16789,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
|
|
|
16749
16789
|
.forEach((key) => {
|
|
16750
16790
|
// @ts-ignore
|
|
16751
16791
|
const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
16752
|
-
const name = (0,
|
|
16792
|
+
const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)(module.prototype?.className)
|
|
16753
16793
|
? module.prototype.className()
|
|
16754
16794
|
: key;
|
|
16755
|
-
if (!(0,
|
|
16795
|
+
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
|
|
16756
16796
|
console.warn('Module name must be a string', key);
|
|
16757
16797
|
return;
|
|
16758
16798
|
}
|
|
16759
16799
|
// @ts-ignore
|
|
16760
|
-
|
|
16800
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
|
|
16761
16801
|
});
|
|
16762
16802
|
// Decorators
|
|
16763
16803
|
Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
|
|
16764
16804
|
.filter(esFilter)
|
|
16765
16805
|
.forEach((key) => {
|
|
16766
16806
|
// @ts-ignore
|
|
16767
|
-
|
|
16807
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
16768
16808
|
});
|
|
16769
16809
|
['Confirm', 'Alert', 'Prompt'].forEach((key) => {
|
|
16770
16810
|
// @ts-ignore
|
|
16771
|
-
|
|
16811
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
16772
16812
|
});
|
|
16773
16813
|
// Languages
|
|
16774
|
-
Object.keys(
|
|
16814
|
+
Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
|
|
16775
16815
|
.filter(esFilter)
|
|
16776
16816
|
.forEach((key) => {
|
|
16777
|
-
|
|
16817
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
|
|
16778
16818
|
});
|
|
16779
16819
|
|
|
16780
16820
|
class CommitMode {
|
|
@@ -16797,8 +16837,8 @@ class CommitMode {
|
|
|
16797
16837
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
16798
16838
|
/* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49604);
|
|
16799
16839
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28190);
|
|
16800
|
-
/* harmony import */ var
|
|
16801
|
-
/* harmony import */ var
|
|
16840
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
16841
|
+
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35102);
|
|
16802
16842
|
/*!
|
|
16803
16843
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16804
16844
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16817,7 +16857,7 @@ var Jodit_1;
|
|
|
16817
16857
|
|
|
16818
16858
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
16819
16859
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
16820
|
-
let Jodit = Jodit_1 = class Jodit extends
|
|
16860
|
+
let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
|
|
16821
16861
|
/** @override */
|
|
16822
16862
|
className() {
|
|
16823
16863
|
return 'Jodit';
|
|
@@ -16864,7 +16904,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16864
16904
|
get defaultTimeout() {
|
|
16865
16905
|
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
|
|
16866
16906
|
? this.o.defaultTimeout
|
|
16867
|
-
:
|
|
16907
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
|
|
16868
16908
|
}
|
|
16869
16909
|
/**
|
|
16870
16910
|
* Method wrap usual Has Object in Object helper for prevent deep object merging in options*
|
|
@@ -16890,10 +16930,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16890
16930
|
* Default settings
|
|
16891
16931
|
*/
|
|
16892
16932
|
static get defaultOptions() {
|
|
16893
|
-
return
|
|
16933
|
+
return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
|
|
16894
16934
|
}
|
|
16895
16935
|
get createInside() {
|
|
16896
|
-
return new
|
|
16936
|
+
return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
|
|
16897
16937
|
}
|
|
16898
16938
|
__setPlaceField(field, value) {
|
|
16899
16939
|
if (!this.currentPlace) {
|
|
@@ -17441,8 +17481,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17441
17481
|
const active = this.od.activeElement;
|
|
17442
17482
|
if (active &&
|
|
17443
17483
|
(active === this.iframe ||
|
|
17444
|
-
|
|
17445
|
-
|
|
17484
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
|
|
17485
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
|
|
17446
17486
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
|
|
17447
17487
|
}
|
|
17448
17488
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
|
|
@@ -17594,7 +17634,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17594
17634
|
}
|
|
17595
17635
|
/** @override **/
|
|
17596
17636
|
initOptions(options) {
|
|
17597
|
-
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17637
|
+
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
|
|
17598
17638
|
}
|
|
17599
17639
|
/** @override **/
|
|
17600
17640
|
initOwners() {
|
|
@@ -17639,7 +17679,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17639
17679
|
this.destruct();
|
|
17640
17680
|
throw e;
|
|
17641
17681
|
}
|
|
17642
|
-
this.setStatus(
|
|
17682
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
|
|
17643
17683
|
this.id =
|
|
17644
17684
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, this.o.shadowRoot || this.od), 'id') ||
|
|
17645
17685
|
new Date().getTime().toString();
|
|
@@ -17651,7 +17691,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17651
17691
|
}
|
|
17652
17692
|
});
|
|
17653
17693
|
this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
|
|
17654
|
-
this.selection = new
|
|
17694
|
+
this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
|
|
17655
17695
|
const beforeInitHookResult = this.beforeInitHook();
|
|
17656
17696
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
|
|
17657
17697
|
if (this.isInDestruct) {
|
|
@@ -17675,7 +17715,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17675
17715
|
this.e.fire('afterInit', this);
|
|
17676
17716
|
}
|
|
17677
17717
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
|
|
17678
|
-
this.setStatus(
|
|
17718
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
|
|
17679
17719
|
this.e.fire('afterConstructor', this);
|
|
17680
17720
|
};
|
|
17681
17721
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
|
|
@@ -17691,7 +17731,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17691
17731
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
|
|
17692
17732
|
const name = attr.name;
|
|
17693
17733
|
let value = attr.value;
|
|
17694
|
-
if (
|
|
17734
|
+
if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
|
|
17695
17735
|
(!options || options[name] === undefined)) {
|
|
17696
17736
|
if (['readonly', 'disabled'].indexOf(name) !== -1) {
|
|
17697
17737
|
value = value === '' || value === 'true';
|
|
@@ -17759,11 +17799,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17759
17799
|
element,
|
|
17760
17800
|
container,
|
|
17761
17801
|
workplace,
|
|
17762
|
-
statusbar: new
|
|
17802
|
+
statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
|
|
17763
17803
|
options: this.isReady
|
|
17764
|
-
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17804
|
+
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
|
|
17765
17805
|
: this.options,
|
|
17766
|
-
history: new
|
|
17806
|
+
history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
|
|
17767
17807
|
editorWindow: this.ow
|
|
17768
17808
|
};
|
|
17769
17809
|
this.__elementToPlace.set(editor, currentPlace);
|
|
@@ -17854,7 +17894,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17854
17894
|
return;
|
|
17855
17895
|
}
|
|
17856
17896
|
if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
|
|
17857
|
-
|
|
17897
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
|
|
17858
17898
|
}
|
|
17859
17899
|
addClassNames(this.o.editorClassName, this.editor);
|
|
17860
17900
|
if (this.o.style) {
|
|
@@ -17944,7 +17984,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17944
17984
|
if (this.isInDestruct) {
|
|
17945
17985
|
return;
|
|
17946
17986
|
}
|
|
17947
|
-
this.setStatus(
|
|
17987
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
|
|
17948
17988
|
this.__elementToPlace.clear();
|
|
17949
17989
|
this.storage.clear();
|
|
17950
17990
|
this.buffer.clear();
|
|
@@ -17985,17 +18025,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17985
18025
|
this.e.off(container);
|
|
17986
18026
|
this.e.off(element);
|
|
17987
18027
|
this.e.off(editor);
|
|
17988
|
-
|
|
17989
|
-
|
|
18028
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
|
|
18029
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
|
|
17990
18030
|
if (container !== element) {
|
|
17991
|
-
|
|
18031
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
|
|
17992
18032
|
}
|
|
17993
18033
|
Object.defineProperty(element, 'component', {
|
|
17994
18034
|
enumerable: false,
|
|
17995
18035
|
configurable: true,
|
|
17996
18036
|
value: null
|
|
17997
18037
|
});
|
|
17998
|
-
|
|
18038
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
|
|
17999
18039
|
// inline mode
|
|
18000
18040
|
if (container === element) {
|
|
18001
18041
|
element.innerHTML = buffer;
|
|
@@ -18017,7 +18057,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
18017
18057
|
Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
|
|
18018
18058
|
Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
18019
18059
|
Jodit.core = {
|
|
18020
|
-
Plugin:
|
|
18060
|
+
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
18021
18061
|
};
|
|
18022
18062
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
18023
18063
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
@@ -20272,16 +20312,16 @@ async function loadTree(fb) {
|
|
|
20272
20312
|
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
|
|
20273
20313
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
|
|
20274
20314
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
|
|
20275
|
-
/* harmony import */ var
|
|
20315
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91288);
|
|
20316
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83148);
|
|
20276
20317
|
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
|
|
20277
|
-
/* harmony import */ var
|
|
20278
|
-
/* harmony import */ var
|
|
20279
|
-
/* harmony import */ var
|
|
20280
|
-
/* harmony import */ var
|
|
20281
|
-
/* harmony import */ var
|
|
20282
|
-
/* harmony import */ var
|
|
20283
|
-
/* harmony import */ var
|
|
20284
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
|
|
20318
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(64164);
|
|
20319
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50067);
|
|
20320
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25430);
|
|
20321
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34255);
|
|
20322
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18714);
|
|
20323
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24538);
|
|
20324
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96243);
|
|
20285
20325
|
/*!
|
|
20286
20326
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20287
20327
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20315,7 +20355,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20315
20355
|
return 'FileBrowser';
|
|
20316
20356
|
}
|
|
20317
20357
|
get dataProvider() {
|
|
20318
|
-
return (0,
|
|
20358
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20319
20359
|
}
|
|
20320
20360
|
// eslint-disable-next-line no-unused-vars
|
|
20321
20361
|
onSelect(callback) {
|
|
@@ -20429,7 +20469,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20429
20469
|
this.__updateToolbarButtons();
|
|
20430
20470
|
this._dialog.open(this.browser, header);
|
|
20431
20471
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
20432
|
-
(0,
|
|
20472
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
|
|
20433
20473
|
.then(resolve, reject)
|
|
20434
20474
|
.finally(() => {
|
|
20435
20475
|
if (this.isInDestruct) {
|
|
@@ -20463,7 +20503,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20463
20503
|
});
|
|
20464
20504
|
}
|
|
20465
20505
|
initUploader(editor) {
|
|
20466
|
-
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
20506
|
+
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
|
|
20467
20507
|
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
20468
20508
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
20469
20509
|
self.uploader
|
|
@@ -20483,11 +20523,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20483
20523
|
super(options);
|
|
20484
20524
|
this.browser = this.c.div(this.componentName);
|
|
20485
20525
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
20486
|
-
this.tree = new
|
|
20487
|
-
this.files = new
|
|
20526
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
|
|
20527
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
|
|
20488
20528
|
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
20489
20529
|
currentPath: '',
|
|
20490
|
-
currentSource:
|
|
20530
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
20491
20531
|
currentBaseUrl: '',
|
|
20492
20532
|
activeElements: [],
|
|
20493
20533
|
elements: [],
|
|
@@ -20517,7 +20557,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20517
20557
|
this.__prevButtons = [];
|
|
20518
20558
|
this.attachEvents(options);
|
|
20519
20559
|
const self = this;
|
|
20520
|
-
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
20560
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
|
|
20521
20561
|
self.browser.component = this;
|
|
20522
20562
|
self.container = self.browser;
|
|
20523
20563
|
if (self.o.showFoldersPanel) {
|
|
@@ -20525,9 +20565,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20525
20565
|
}
|
|
20526
20566
|
self.browser.appendChild(self.files.container);
|
|
20527
20567
|
self.browser.appendChild(self.status_line);
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20568
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
|
|
20569
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
|
|
20570
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
|
|
20531
20571
|
const keys = [
|
|
20532
20572
|
'getLocalFileByUrl',
|
|
20533
20573
|
'crop',
|
|
@@ -21198,10 +21238,10 @@ class Command {
|
|
|
21198
21238
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
21199
21239
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
21200
21240
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
|
|
21241
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
21201
21242
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22180);
|
|
21202
|
-
/* harmony import */ var
|
|
21243
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
|
|
21203
21244
|
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98189);
|
|
21204
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
21205
21245
|
/*!
|
|
21206
21246
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21207
21247
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21214,7 +21254,7 @@ class Command {
|
|
|
21214
21254
|
|
|
21215
21255
|
|
|
21216
21256
|
|
|
21217
|
-
|
|
21257
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
|
|
21218
21258
|
enable: true,
|
|
21219
21259
|
maxHistoryLength: Infinity,
|
|
21220
21260
|
timeout: 1000
|
|
@@ -21265,7 +21305,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
21265
21305
|
set startValue(value) {
|
|
21266
21306
|
this.__startValue = value;
|
|
21267
21307
|
}
|
|
21268
|
-
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new
|
|
21308
|
+
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F(editor)) {
|
|
21269
21309
|
super(editor);
|
|
21270
21310
|
this.updateTick = 0;
|
|
21271
21311
|
this.__stack = stack;
|
|
@@ -21328,7 +21368,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
21328
21368
|
*/
|
|
21329
21369
|
updateStack(replace = false) {
|
|
21330
21370
|
const newValue = this.snapshot.make();
|
|
21331
|
-
if (!
|
|
21371
|
+
if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
|
|
21332
21372
|
const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
|
|
21333
21373
|
if (replace) {
|
|
21334
21374
|
const command = this.__stack.current();
|
|
@@ -21661,11 +21701,11 @@ class Stack {
|
|
|
21661
21701
|
|
|
21662
21702
|
"use strict";
|
|
21663
21703
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
21664
|
-
/* harmony import */ var
|
|
21665
|
-
/* harmony import */ var
|
|
21666
|
-
/* harmony import */ var
|
|
21667
|
-
/* harmony import */ var
|
|
21668
|
-
/* harmony import */ var
|
|
21704
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
21705
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83904);
|
|
21706
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
21707
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15582);
|
|
21708
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
21669
21709
|
/*!
|
|
21670
21710
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21671
21711
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21675,7 +21715,7 @@ class Stack {
|
|
|
21675
21715
|
|
|
21676
21716
|
|
|
21677
21717
|
|
|
21678
|
-
|
|
21718
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
|
|
21679
21719
|
min_width: 20,
|
|
21680
21720
|
min_height: 20,
|
|
21681
21721
|
closeAfterSave: false,
|
|
@@ -21690,7 +21730,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
|
|
|
21690
21730
|
cropDefaultWidth: '70%',
|
|
21691
21731
|
cropDefaultHeight: '70%'
|
|
21692
21732
|
};
|
|
21693
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (
|
|
21733
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
21694
21734
|
|
|
21695
21735
|
|
|
21696
21736
|
/***/ }),
|
|
@@ -21709,9 +21749,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
|
|
|
21709
21749
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33465);
|
|
21710
21750
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
21711
21751
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64962);
|
|
21712
|
-
/* harmony import */ var
|
|
21713
|
-
/* harmony import */ var
|
|
21714
|
-
/* harmony import */ var
|
|
21752
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
21753
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15546);
|
|
21754
|
+
/* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73898);
|
|
21715
21755
|
/*!
|
|
21716
21756
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21717
21757
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22171,7 +22211,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
22171
22211
|
this.options =
|
|
22172
22212
|
editor && editor.o && editor.o.imageeditor
|
|
22173
22213
|
? editor.o.imageeditor
|
|
22174
|
-
:
|
|
22214
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
|
|
22175
22215
|
const o = this.options;
|
|
22176
22216
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
22177
22217
|
this.cropUseRatio = o.cropUseRatio;
|
|
@@ -22181,7 +22221,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
22181
22221
|
saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
|
|
22182
22222
|
};
|
|
22183
22223
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
22184
|
-
this.editor = (0,
|
|
22224
|
+
this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
|
|
22185
22225
|
const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
|
|
22186
22226
|
this.resize_box = resizeBox;
|
|
22187
22227
|
this.crop_box = cropBox;
|
|
@@ -22931,6 +22971,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22931
22971
|
}
|
|
22932
22972
|
/**
|
|
22933
22973
|
* Generate formal table martix columns*rows
|
|
22974
|
+
* @param table - Working table
|
|
22934
22975
|
* @param callback - if return false cycle break
|
|
22935
22976
|
*/
|
|
22936
22977
|
formalMatrix(table, callback) {
|
|
@@ -22999,7 +23040,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22999
23040
|
* @param line - Insert a new line after/before this
|
|
23000
23041
|
* line contains the selected cell
|
|
23001
23042
|
* @param after - Insert a new line after line contains the selected cell
|
|
23002
|
-
* @param create - Instance of Create class
|
|
23003
23043
|
*/
|
|
23004
23044
|
appendRow(table, line, after) {
|
|
23005
23045
|
return Table.__appendRow(table, line, after, this.j.createInside);
|
|
@@ -23168,13 +23208,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23168
23208
|
return Table.__getSelectedBound(table, selectedCells);
|
|
23169
23209
|
}
|
|
23170
23210
|
static __normalizeTable(table) {
|
|
23171
|
-
let i, j, min, not;
|
|
23172
23211
|
const __marked = [], box = Table.__formalMatrix(table);
|
|
23173
|
-
|
|
23174
|
-
|
|
23175
|
-
|
|
23176
|
-
|
|
23177
|
-
for (
|
|
23212
|
+
Table.__removeExtraColspans(box, __marked);
|
|
23213
|
+
Table.__removeExtraRowspans(box, __marked);
|
|
23214
|
+
// remove rowspans and colspans equal 1 and empty class
|
|
23215
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23216
|
+
for (let j = 0; j < box[i].length; j += 1) {
|
|
23217
|
+
if (box[i][j] === undefined) {
|
|
23218
|
+
continue; // broken table
|
|
23219
|
+
}
|
|
23220
|
+
if (box[i][j].hasAttribute('rowspan') &&
|
|
23221
|
+
box[i][j].rowSpan === 1) {
|
|
23222
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
23223
|
+
}
|
|
23224
|
+
if (box[i][j].hasAttribute('colspan') &&
|
|
23225
|
+
box[i][j].colSpan === 1) {
|
|
23226
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
23227
|
+
}
|
|
23228
|
+
if (box[i][j].hasAttribute('class') &&
|
|
23229
|
+
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
23230
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
23231
|
+
}
|
|
23232
|
+
}
|
|
23233
|
+
}
|
|
23234
|
+
Table.__unmark(__marked);
|
|
23235
|
+
}
|
|
23236
|
+
static __removeExtraColspans(box, __marked) {
|
|
23237
|
+
for (let j = 0; j < box[0].length; j += 1) {
|
|
23238
|
+
let min = 1000000;
|
|
23239
|
+
let not = false;
|
|
23240
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23178
23241
|
if (box[i][j] === undefined) {
|
|
23179
23242
|
continue; // broken table
|
|
23180
23243
|
}
|
|
@@ -23185,7 +23248,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23185
23248
|
min = Math.min(min, box[i][j].colSpan);
|
|
23186
23249
|
}
|
|
23187
23250
|
if (!not) {
|
|
23188
|
-
for (i = 0; i < box.length; i += 1) {
|
|
23251
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23189
23252
|
if (box[i][j] === undefined) {
|
|
23190
23253
|
continue; // broken table
|
|
23191
23254
|
}
|
|
@@ -23193,10 +23256,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23193
23256
|
}
|
|
23194
23257
|
}
|
|
23195
23258
|
}
|
|
23196
|
-
|
|
23259
|
+
}
|
|
23260
|
+
static __removeExtraRowspans(box, marked) {
|
|
23261
|
+
let i = 0;
|
|
23262
|
+
let j = 0;
|
|
23197
23263
|
for (i = 0; i < box.length; i += 1) {
|
|
23198
|
-
min = 1000000;
|
|
23199
|
-
not = false;
|
|
23264
|
+
let min = 1000000;
|
|
23265
|
+
let not = false;
|
|
23200
23266
|
for (j = 0; j < box[i].length; j += 1) {
|
|
23201
23267
|
if (box[i][j] === undefined) {
|
|
23202
23268
|
continue; // broken table
|
|
@@ -23212,31 +23278,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23212
23278
|
if (box[i][j] === undefined) {
|
|
23213
23279
|
continue; // broken table
|
|
23214
23280
|
}
|
|
23215
|
-
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1,
|
|
23216
|
-
}
|
|
23217
|
-
}
|
|
23218
|
-
}
|
|
23219
|
-
// remove rowspans and colspans equal 1 and empty class
|
|
23220
|
-
for (i = 0; i < box.length; i += 1) {
|
|
23221
|
-
for (j = 0; j < box[i].length; j += 1) {
|
|
23222
|
-
if (box[i][j] === undefined) {
|
|
23223
|
-
continue; // broken table
|
|
23224
|
-
}
|
|
23225
|
-
if (box[i][j].hasAttribute('rowspan') &&
|
|
23226
|
-
box[i][j].rowSpan === 1) {
|
|
23227
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
23228
|
-
}
|
|
23229
|
-
if (box[i][j].hasAttribute('colspan') &&
|
|
23230
|
-
box[i][j].colSpan === 1) {
|
|
23231
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
23232
|
-
}
|
|
23233
|
-
if (box[i][j].hasAttribute('class') &&
|
|
23234
|
-
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
23235
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
23281
|
+
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
|
|
23236
23282
|
}
|
|
23237
23283
|
}
|
|
23238
23284
|
}
|
|
23239
|
-
Table.__unmark(__marked);
|
|
23240
23285
|
}
|
|
23241
23286
|
/**
|
|
23242
23287
|
* Try recalculate all coluns and rows after change
|
|
@@ -23592,7 +23637,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23592
23637
|
}
|
|
23593
23638
|
createContainer() {
|
|
23594
23639
|
const cn = this.componentName;
|
|
23595
|
-
const container = this.j.c.span(cn)
|
|
23640
|
+
const container = this.j.c.span(cn);
|
|
23641
|
+
const button = super.createContainer();
|
|
23596
23642
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
|
|
23597
23643
|
button.classList.remove(cn);
|
|
23598
23644
|
button.classList.add(cn + '__button');
|
|
@@ -23981,8 +24027,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23981
24027
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23982
24028
|
/* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
|
|
23983
24029
|
/* harmony export */ });
|
|
23984
|
-
/* harmony import */ var
|
|
24030
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
23985
24031
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53557);
|
|
24032
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47903);
|
|
23986
24033
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
23987
24034
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72463);
|
|
23988
24035
|
/*!
|
|
@@ -23995,6 +24042,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23995
24042
|
|
|
23996
24043
|
|
|
23997
24044
|
|
|
24045
|
+
|
|
23998
24046
|
let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
|
|
23999
24047
|
className() {
|
|
24000
24048
|
return 'ToolbarSelect';
|
|
@@ -24012,13 +24060,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
|
|
|
24012
24060
|
const keys = Object.keys(list);
|
|
24013
24061
|
key = keys[0];
|
|
24014
24062
|
}
|
|
24015
|
-
const text = (list[key.toString()] || key).toString();
|
|
24063
|
+
const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
|
|
24016
24064
|
this.state.text =
|
|
24017
24065
|
this.control.textTemplate?.(this.jodit, text) ?? text;
|
|
24018
24066
|
}
|
|
24019
24067
|
}
|
|
24020
24068
|
};
|
|
24021
|
-
ToolbarSelect = (0,
|
|
24069
|
+
ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24022
24070
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
24023
24071
|
], ToolbarSelect);
|
|
24024
24072
|
|
|
@@ -24148,7 +24196,7 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24148
24196
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
24149
24197
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
24150
24198
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24151
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)()
|
|
24199
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)(ctx => ctx.j.defaultTimeout, true)
|
|
24152
24200
|
], ToolbarCollection.prototype, "update", null);
|
|
24153
24201
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24154
24202
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
|
|
@@ -24654,34 +24702,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24654
24702
|
}
|
|
24655
24703
|
const promises = [];
|
|
24656
24704
|
if (o.insertImageAsBase64URI) {
|
|
24657
|
-
|
|
24658
|
-
for (i = 0; i < fileList.length; i += 1) {
|
|
24659
|
-
file = fileList[i];
|
|
24660
|
-
if (file && file.type) {
|
|
24661
|
-
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24662
|
-
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24663
|
-
if (o.imagesExtensions.includes(extension)) {
|
|
24664
|
-
const reader = new FileReader();
|
|
24665
|
-
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24666
|
-
reader.onerror = reject;
|
|
24667
|
-
reader.onloadend = () => {
|
|
24668
|
-
const resp = {
|
|
24669
|
-
baseurl: '',
|
|
24670
|
-
files: [reader.result],
|
|
24671
|
-
isImages: [true]
|
|
24672
|
-
};
|
|
24673
|
-
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24674
|
-
? handlerSuccess
|
|
24675
|
-
: o.defaultHandlerSuccess;
|
|
24676
|
-
handler.call(uploader, resp);
|
|
24677
|
-
resolve(resp);
|
|
24678
|
-
};
|
|
24679
|
-
reader.readAsDataURL(file);
|
|
24680
|
-
}));
|
|
24681
|
-
fileList[i] = null;
|
|
24682
|
-
}
|
|
24683
|
-
}
|
|
24684
|
-
}
|
|
24705
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
24685
24706
|
}
|
|
24686
24707
|
fileList = fileList.filter(a => a);
|
|
24687
24708
|
if (fileList.length) {
|
|
@@ -24692,7 +24713,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24692
24713
|
for (let i = 0; i < fileList.length; i += 1) {
|
|
24693
24714
|
file = fileList[i];
|
|
24694
24715
|
if (file) {
|
|
24695
|
-
const hasRealExtension =
|
|
24716
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
24696
24717
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24697
24718
|
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
24698
24719
|
let newName = fileList[i].name ||
|
|
@@ -24741,6 +24762,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24741
24762
|
}
|
|
24742
24763
|
return Promise.all(promises);
|
|
24743
24764
|
}
|
|
24765
|
+
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
24766
|
+
let file, i;
|
|
24767
|
+
for (i = 0; i < fileList.length; i += 1) {
|
|
24768
|
+
file = fileList[i];
|
|
24769
|
+
if (file && file.type) {
|
|
24770
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24771
|
+
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24772
|
+
if (!imagesExtensions.includes(extension)) {
|
|
24773
|
+
continue;
|
|
24774
|
+
}
|
|
24775
|
+
const reader = new FileReader();
|
|
24776
|
+
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24777
|
+
reader.onerror = reject;
|
|
24778
|
+
reader.onloadend = () => {
|
|
24779
|
+
const resp = {
|
|
24780
|
+
baseurl: '',
|
|
24781
|
+
files: [reader.result],
|
|
24782
|
+
isImages: [true]
|
|
24783
|
+
};
|
|
24784
|
+
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24785
|
+
? handlerSuccess
|
|
24786
|
+
: defaultHandlerSuccess;
|
|
24787
|
+
handler.call(uploader, resp);
|
|
24788
|
+
resolve(resp);
|
|
24789
|
+
};
|
|
24790
|
+
reader.readAsDataURL(file);
|
|
24791
|
+
}));
|
|
24792
|
+
fileList[i] = null;
|
|
24793
|
+
}
|
|
24794
|
+
}
|
|
24795
|
+
}
|
|
24744
24796
|
|
|
24745
24797
|
|
|
24746
24798
|
/***/ }),
|
|
@@ -24846,9 +24898,9 @@ function send(uploader, data) {
|
|
|
24846
24898
|
/* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
24847
24899
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
24848
24900
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
24849
|
-
/* harmony import */ var
|
|
24850
|
-
/* harmony import */ var
|
|
24851
|
-
/* harmony import */ var
|
|
24901
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
24902
|
+
/* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20431);
|
|
24903
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50999);
|
|
24852
24904
|
/*!
|
|
24853
24905
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24854
24906
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24920,14 +24972,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24920
24972
|
}
|
|
24921
24973
|
};
|
|
24922
24974
|
// send data on server
|
|
24923
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
24924
|
-
(0,
|
|
24975
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
|
|
24976
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24925
24977
|
return false;
|
|
24926
24978
|
}
|
|
24927
24979
|
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
24928
|
-
return (0,
|
|
24980
|
+
return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
24929
24981
|
}
|
|
24930
|
-
if ((0,
|
|
24982
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
|
|
24931
24983
|
const { items } = cData;
|
|
24932
24984
|
for (i = 0; i < items.length; i += 1) {
|
|
24933
24985
|
if (items[i].kind === 'file' &&
|
|
@@ -24938,7 +24990,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24938
24990
|
extension = mime[1]
|
|
24939
24991
|
? mime[1].toLowerCase()
|
|
24940
24992
|
: '';
|
|
24941
|
-
(0,
|
|
24993
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
24942
24994
|
}
|
|
24943
24995
|
e.preventDefault();
|
|
24944
24996
|
break;
|
|
@@ -24961,30 +25013,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24961
25013
|
e.preventDefault();
|
|
24962
25014
|
})
|
|
24963
25015
|
.on(form, 'dragover', (event) => {
|
|
24964
|
-
if ((0,
|
|
24965
|
-
(0,
|
|
25016
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
|
|
25017
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
|
|
24966
25018
|
form.classList.add('jodit_drag_hover');
|
|
24967
25019
|
event.preventDefault();
|
|
24968
25020
|
}
|
|
24969
25021
|
})
|
|
24970
25022
|
.on(form, 'dragend dragleave', (event) => {
|
|
24971
25023
|
form.classList.remove('jodit_drag_hover');
|
|
24972
|
-
if ((0,
|
|
25024
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24973
25025
|
event.preventDefault();
|
|
24974
25026
|
}
|
|
24975
25027
|
})
|
|
24976
25028
|
.on(form, 'drop', (event) => {
|
|
24977
25029
|
form.classList.remove('jodit_drag_hover');
|
|
24978
|
-
if ((0,
|
|
25030
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24979
25031
|
event.preventDefault();
|
|
24980
25032
|
event.stopImmediatePropagation();
|
|
24981
|
-
(0,
|
|
25033
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24982
25034
|
}
|
|
24983
25035
|
});
|
|
24984
25036
|
const inputFile = form.querySelector('input[type=file]');
|
|
24985
25037
|
if (inputFile) {
|
|
24986
25038
|
self.j.e.on(inputFile, 'change', () => {
|
|
24987
|
-
(0,
|
|
25039
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
|
|
24988
25040
|
.then(() => {
|
|
24989
25041
|
inputFile.value = '';
|
|
24990
25042
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
@@ -25004,7 +25056,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25004
25056
|
const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
|
|
25005
25057
|
? handlerError
|
|
25006
25058
|
: o.defaultHandlerError;
|
|
25007
|
-
(0,
|
|
25059
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
|
|
25008
25060
|
action: 'fileUploadRemote',
|
|
25009
25061
|
url
|
|
25010
25062
|
})
|
|
@@ -25024,11 +25076,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25024
25076
|
super(editor);
|
|
25025
25077
|
this.path = '';
|
|
25026
25078
|
this.source = 'default';
|
|
25027
|
-
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(
|
|
25079
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
|
|
25028
25080
|
}
|
|
25029
25081
|
destruct() {
|
|
25030
25082
|
this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
25031
|
-
const instances =
|
|
25083
|
+
const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
|
|
25032
25084
|
if (instances) {
|
|
25033
25085
|
instances.forEach(ajax => {
|
|
25034
25086
|
try {
|
|
@@ -25457,9 +25509,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25457
25509
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
25458
25510
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25459
25511
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
25460
|
-
/* harmony import */ var
|
|
25461
|
-
/* harmony import */ var
|
|
25462
|
-
/* harmony import */ var
|
|
25512
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
25513
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46891);
|
|
25514
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
25463
25515
|
/*!
|
|
25464
25516
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25465
25517
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25473,7 +25525,7 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25473
25525
|
|
|
25474
25526
|
|
|
25475
25527
|
|
|
25476
|
-
|
|
25528
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
|
|
25477
25529
|
exec: (editor) => {
|
|
25478
25530
|
const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
|
|
25479
25531
|
dialog
|
|
@@ -25509,7 +25561,7 @@ function about(editor) {
|
|
|
25509
25561
|
});
|
|
25510
25562
|
}
|
|
25511
25563
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
|
|
25512
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (
|
|
25564
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
25513
25565
|
|
|
25514
25566
|
|
|
25515
25567
|
/***/ }),
|
|
@@ -25752,9 +25804,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25752
25804
|
|
|
25753
25805
|
"use strict";
|
|
25754
25806
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
25755
|
-
/* harmony import */ var
|
|
25756
|
-
/* harmony import */ var
|
|
25757
|
-
/* harmony import */ var
|
|
25807
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
25808
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3882);
|
|
25809
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25758
25810
|
/*!
|
|
25759
25811
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25760
25812
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25763,9 +25815,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25763
25815
|
|
|
25764
25816
|
|
|
25765
25817
|
|
|
25766
|
-
|
|
25767
|
-
|
|
25768
|
-
|
|
25818
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
|
|
25819
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
|
|
25820
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
|
|
25769
25821
|
'table',
|
|
25770
25822
|
'iframe',
|
|
25771
25823
|
'img',
|
|
@@ -25773,8 +25825,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
|
|
|
25773
25825
|
'pre',
|
|
25774
25826
|
'jodit'
|
|
25775
25827
|
];
|
|
25776
|
-
|
|
25777
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (
|
|
25828
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
|
|
25829
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25778
25830
|
|
|
25779
25831
|
|
|
25780
25832
|
/***/ }),
|
|
@@ -25912,11 +25964,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
|
|
|
25912
25964
|
|
|
25913
25965
|
"use strict";
|
|
25914
25966
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
25915
|
-
/* harmony import */ var
|
|
25916
|
-
/* harmony import */ var
|
|
25917
|
-
/* harmony import */ var
|
|
25918
|
-
/* harmony import */ var
|
|
25919
|
-
/* harmony import */ var
|
|
25967
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
25968
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15627);
|
|
25969
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25970
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41500);
|
|
25971
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
25920
25972
|
/*!
|
|
25921
25973
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25922
25974
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25957,10 +26009,10 @@ const aiAssistantDefaults = {
|
|
|
25957
26009
|
aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
|
|
25958
26010
|
aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
|
|
25959
26011
|
};
|
|
25960
|
-
|
|
25961
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (
|
|
25962
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (
|
|
25963
|
-
|
|
26012
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
|
|
26013
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
26014
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
26015
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
|
|
25964
26016
|
isDisabled(editor) {
|
|
25965
26017
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
25966
26018
|
},
|
|
@@ -25998,7 +26050,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
|
|
|
25998
26050
|
editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
|
|
25999
26051
|
}
|
|
26000
26052
|
};
|
|
26001
|
-
|
|
26053
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
|
|
26002
26054
|
isDisabled(editor) {
|
|
26003
26055
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
26004
26056
|
},
|
|
@@ -26306,7 +26358,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
26306
26358
|
if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
|
|
26307
26359
|
return false;
|
|
26308
26360
|
}
|
|
26309
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .
|
|
26361
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26310
26362
|
if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
|
|
26311
26363
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
|
|
26312
26364
|
func(jodit, fakeNode, backspace, mode)) {
|
|
@@ -26566,19 +26618,12 @@ function checkNotCollapsed(jodit) {
|
|
|
26566
26618
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26567
26619
|
const step = backspace ? -1 : 1;
|
|
26568
26620
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
26569
|
-
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace)
|
|
26570
|
-
let
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
if (!nextSibling &&
|
|
26574
|
-
sibling.parentNode &&
|
|
26575
|
-
sibling.parentNode !== jodit.editor) {
|
|
26576
|
-
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
|
|
26577
|
-
}
|
|
26578
|
-
return nextSibling;
|
|
26579
|
-
};
|
|
26621
|
+
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
|
|
26622
|
+
let removeNeighbor = null;
|
|
26623
|
+
let charRemoved = false;
|
|
26624
|
+
let removed;
|
|
26580
26625
|
if (!sibling) {
|
|
26581
|
-
sibling = getNextInlineSibling(fakeNode);
|
|
26626
|
+
sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
|
|
26582
26627
|
}
|
|
26583
26628
|
while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
|
|
26584
26629
|
while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
|
|
@@ -26588,57 +26633,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26588
26633
|
break;
|
|
26589
26634
|
}
|
|
26590
26635
|
if (sibling.nodeValue?.length) {
|
|
26591
|
-
|
|
26592
|
-
|
|
26593
|
-
|
|
26594
|
-
|
|
26595
|
-
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26596
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26597
|
-
index += step;
|
|
26598
|
-
}
|
|
26599
|
-
}
|
|
26600
|
-
removed = value[index];
|
|
26601
|
-
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26602
|
-
index += step;
|
|
26603
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26604
|
-
index += step;
|
|
26605
|
-
}
|
|
26606
|
-
index += backspace ? 1 : -1;
|
|
26607
|
-
}
|
|
26608
|
-
if (backspace && index < 0) {
|
|
26609
|
-
value = [];
|
|
26610
|
-
}
|
|
26611
|
-
else {
|
|
26612
|
-
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26613
|
-
}
|
|
26614
|
-
if (!anotherSibling ||
|
|
26615
|
-
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26616
|
-
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
26617
|
-
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26618
|
-
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26619
|
-
if (value[i] === ' ') {
|
|
26620
|
-
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26621
|
-
}
|
|
26622
|
-
else {
|
|
26623
|
-
break;
|
|
26624
|
-
}
|
|
26625
|
-
}
|
|
26636
|
+
removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
|
|
26637
|
+
if (!sibling.nodeValue.length &&
|
|
26638
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
|
|
26639
|
+
sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
|
|
26626
26640
|
}
|
|
26627
|
-
sibling.nodeValue = value.join('');
|
|
26628
26641
|
}
|
|
26629
26642
|
if (!sibling.nodeValue?.length) {
|
|
26630
26643
|
removeNeighbor = sibling;
|
|
26631
26644
|
}
|
|
26632
26645
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26646
|
+
checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
|
|
26633
26647
|
charRemoved = true;
|
|
26634
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
|
|
26635
|
-
if (mode === 'sentence' ||
|
|
26636
|
-
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26637
|
-
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26638
|
-
}
|
|
26639
26648
|
break;
|
|
26640
26649
|
}
|
|
26641
|
-
const nextSibling = getNextInlineSibling(sibling);
|
|
26650
|
+
const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
|
|
26642
26651
|
if (removeNeighbor) {
|
|
26643
26652
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
|
|
26644
26653
|
removeNeighbor = null;
|
|
@@ -26660,6 +26669,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26660
26669
|
}
|
|
26661
26670
|
return charRemoved;
|
|
26662
26671
|
}
|
|
26672
|
+
function getNextInlineSibling(sibling, backspace, root) {
|
|
26673
|
+
let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
|
|
26674
|
+
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
26675
|
+
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
|
|
26676
|
+
}
|
|
26677
|
+
return nextSibling;
|
|
26678
|
+
}
|
|
26663
26679
|
/**
|
|
26664
26680
|
* Helper removes all empty inline parents
|
|
26665
26681
|
*/
|
|
@@ -26684,6 +26700,56 @@ function addBRInsideEmptyBlock(jodit, node) {
|
|
|
26684
26700
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
|
|
26685
26701
|
}
|
|
26686
26702
|
}
|
|
26703
|
+
function tryRemoveChar(sibling, backspace, step, anotherSibling) {
|
|
26704
|
+
// For Unicode escapes
|
|
26705
|
+
let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
|
|
26706
|
+
const length = value.length;
|
|
26707
|
+
let index = backspace ? length - 1 : 0;
|
|
26708
|
+
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26709
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26710
|
+
index += step;
|
|
26711
|
+
}
|
|
26712
|
+
}
|
|
26713
|
+
const removed = value[index];
|
|
26714
|
+
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26715
|
+
index += step;
|
|
26716
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26717
|
+
index += step;
|
|
26718
|
+
}
|
|
26719
|
+
index += backspace ? 1 : -1;
|
|
26720
|
+
}
|
|
26721
|
+
if (backspace && index < 0) {
|
|
26722
|
+
value = [];
|
|
26723
|
+
}
|
|
26724
|
+
else {
|
|
26725
|
+
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26726
|
+
}
|
|
26727
|
+
replaceSpaceOnNBSP(anotherSibling, backspace, value);
|
|
26728
|
+
sibling.nodeValue = value.join('');
|
|
26729
|
+
return removed;
|
|
26730
|
+
}
|
|
26731
|
+
function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
|
|
26732
|
+
if (!anotherSibling ||
|
|
26733
|
+
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26734
|
+
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
26735
|
+
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26736
|
+
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26737
|
+
if (value[i] === ' ') {
|
|
26738
|
+
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26739
|
+
}
|
|
26740
|
+
else {
|
|
26741
|
+
break;
|
|
26742
|
+
}
|
|
26743
|
+
}
|
|
26744
|
+
}
|
|
26745
|
+
}
|
|
26746
|
+
function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
|
|
26747
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
|
|
26748
|
+
if (mode === 'sentence' ||
|
|
26749
|
+
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26750
|
+
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26751
|
+
}
|
|
26752
|
+
}
|
|
26687
26753
|
|
|
26688
26754
|
|
|
26689
26755
|
/***/ }),
|
|
@@ -26721,7 +26787,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
|
|
|
26721
26787
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
|
|
26722
26788
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before : jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after, neighbor, fakeNode);
|
|
26723
26789
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
|
|
26724
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .
|
|
26790
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26725
26791
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
|
|
26726
26792
|
return true;
|
|
26727
26793
|
}
|
|
@@ -27124,20 +27190,20 @@ function getMoveFilter(jodit) {
|
|
|
27124
27190
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51431);
|
|
27125
27191
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
27126
27192
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
27127
|
-
/* harmony import */ var
|
|
27128
|
-
/* harmony import */ var
|
|
27129
|
-
/* harmony import */ var
|
|
27130
|
-
/* harmony import */ var
|
|
27131
|
-
/* harmony import */ var
|
|
27132
|
-
/* harmony import */ var
|
|
27133
|
-
/* harmony import */ var
|
|
27134
|
-
/* harmony import */ var
|
|
27135
|
-
/* harmony import */ var
|
|
27136
|
-
/* harmony import */ var
|
|
27137
|
-
/* harmony import */ var
|
|
27138
|
-
/* harmony import */ var
|
|
27139
|
-
/* harmony import */ var
|
|
27140
|
-
/* harmony import */ var
|
|
27193
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
27194
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94673);
|
|
27195
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39586);
|
|
27196
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27197
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49463);
|
|
27198
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
27199
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10292);
|
|
27200
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
27201
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(71718);
|
|
27202
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
27203
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48397);
|
|
27204
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
27205
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(46781);
|
|
27206
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
27141
27207
|
/*!
|
|
27142
27208
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27143
27209
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27160,7 +27226,7 @@ function getMoveFilter(jodit) {
|
|
|
27160
27226
|
*/
|
|
27161
27227
|
function bold(editor) {
|
|
27162
27228
|
const callBack = (command) => {
|
|
27163
|
-
const control =
|
|
27229
|
+
const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
|
|
27164
27230
|
...control.css
|
|
27165
27231
|
};
|
|
27166
27232
|
let cssRules;
|
|
@@ -27214,12 +27280,12 @@ function bold(editor) {
|
|
|
27214
27280
|
});
|
|
27215
27281
|
}
|
|
27216
27282
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
|
|
27217
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (
|
|
27218
|
-
.set('italic', (
|
|
27219
|
-
.set('strikethrough', (
|
|
27220
|
-
.set('subscript', (
|
|
27221
|
-
.set('superscript', (
|
|
27222
|
-
.set('underline', (
|
|
27283
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
|
|
27284
|
+
.set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
27285
|
+
.set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
27286
|
+
.set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
27287
|
+
.set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
27288
|
+
.set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
|
|
27223
27289
|
|
|
27224
27290
|
|
|
27225
27291
|
/***/ }),
|
|
@@ -27289,9 +27355,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
27289
27355
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94183);
|
|
27290
27356
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65564);
|
|
27291
27357
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
27292
|
-
/* harmony import */ var
|
|
27293
|
-
/* harmony import */ var
|
|
27294
|
-
/* harmony import */ var
|
|
27358
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
27359
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14835);
|
|
27360
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
27295
27361
|
/*!
|
|
27296
27362
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27297
27363
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27304,7 +27370,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
27304
27370
|
|
|
27305
27371
|
|
|
27306
27372
|
|
|
27307
|
-
|
|
27373
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
|
|
27308
27374
|
command: 'applyClassName',
|
|
27309
27375
|
exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
|
|
27310
27376
|
list: [
|
|
@@ -27392,7 +27458,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
27392
27458
|
beforeDestruct() { }
|
|
27393
27459
|
}
|
|
27394
27460
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
|
|
27395
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (
|
|
27461
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
27396
27462
|
|
|
27397
27463
|
|
|
27398
27464
|
/***/ }),
|
|
@@ -27531,9 +27597,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27531
27597
|
|
|
27532
27598
|
"use strict";
|
|
27533
27599
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
27534
|
-
/* harmony import */ var
|
|
27535
|
-
/* harmony import */ var
|
|
27536
|
-
/* harmony import */ var
|
|
27600
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
27601
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(556);
|
|
27602
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
27537
27603
|
/*!
|
|
27538
27604
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27539
27605
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27542,7 +27608,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27542
27608
|
|
|
27543
27609
|
|
|
27544
27610
|
|
|
27545
|
-
|
|
27611
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
|
|
27546
27612
|
timeout: 300,
|
|
27547
27613
|
removeEmptyElements: true,
|
|
27548
27614
|
fillEmptyParagraph: true,
|
|
@@ -27558,11 +27624,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
|
|
|
27558
27624
|
safeJavaScriptLink: true,
|
|
27559
27625
|
disableCleanFilter: null
|
|
27560
27626
|
};
|
|
27561
|
-
|
|
27627
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
|
|
27562
27628
|
command: 'removeFormat',
|
|
27563
27629
|
tooltip: 'Clear Formatting'
|
|
27564
27630
|
};
|
|
27565
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (
|
|
27631
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
27566
27632
|
|
|
27567
27633
|
|
|
27568
27634
|
/***/ }),
|
|
@@ -28228,15 +28294,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
28228
28294
|
|
|
28229
28295
|
"use strict";
|
|
28230
28296
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
28231
|
-
/* harmony import */ var
|
|
28232
|
-
/* harmony import */ var
|
|
28233
|
-
/* harmony import */ var
|
|
28234
|
-
/* harmony import */ var
|
|
28235
|
-
/* harmony import */ var
|
|
28236
|
-
/* harmony import */ var
|
|
28237
|
-
/* harmony import */ var
|
|
28238
|
-
/* harmony import */ var
|
|
28239
|
-
/* harmony import */ var
|
|
28297
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
28298
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
|
|
28299
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
28300
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4594);
|
|
28301
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
28302
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63859);
|
|
28303
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
28304
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38808);
|
|
28305
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
28240
28306
|
/*!
|
|
28241
28307
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28242
28308
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28248,25 +28314,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
28248
28314
|
|
|
28249
28315
|
|
|
28250
28316
|
|
|
28251
|
-
|
|
28317
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
|
|
28252
28318
|
command: 'cut',
|
|
28253
28319
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
28254
28320
|
tooltip: 'Cut selection'
|
|
28255
28321
|
};
|
|
28256
|
-
|
|
28322
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
|
|
28257
28323
|
command: 'copy',
|
|
28258
28324
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
28259
28325
|
tooltip: 'Copy selection'
|
|
28260
28326
|
};
|
|
28261
|
-
|
|
28327
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
|
|
28262
28328
|
icon: 'select-all',
|
|
28263
28329
|
command: 'selectall',
|
|
28264
28330
|
tooltip: 'Select all'
|
|
28265
28331
|
};
|
|
28266
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (
|
|
28267
|
-
.set('cut', (
|
|
28268
|
-
.set('paste', (
|
|
28269
|
-
.set('select-all', (
|
|
28332
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
|
|
28333
|
+
.set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
|
|
28334
|
+
.set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
|
|
28335
|
+
.set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
28270
28336
|
|
|
28271
28337
|
|
|
28272
28338
|
/***/ }),
|
|
@@ -28338,10 +28404,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
28338
28404
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
28339
28405
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
28340
28406
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
28341
|
-
/* harmony import */ var
|
|
28342
|
-
/* harmony import */ var
|
|
28343
|
-
/* harmony import */ var
|
|
28344
|
-
/* harmony import */ var
|
|
28407
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
28408
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
|
|
28409
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55370);
|
|
28410
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
28345
28411
|
/*!
|
|
28346
28412
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28347
28413
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28353,8 +28419,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
28353
28419
|
|
|
28354
28420
|
|
|
28355
28421
|
|
|
28356
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (
|
|
28357
|
-
|
|
28422
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
28423
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
|
|
28358
28424
|
isVisible: (editor) => {
|
|
28359
28425
|
return !editor.o.disablePlugins.includes('color');
|
|
28360
28426
|
},
|
|
@@ -28367,7 +28433,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28367
28433
|
if (!selected.length) {
|
|
28368
28434
|
return false;
|
|
28369
28435
|
}
|
|
28370
|
-
const makeColorPicker = (key) => (0,
|
|
28436
|
+
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28371
28437
|
selected.forEach(cell => {
|
|
28372
28438
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
28373
28439
|
});
|
|
@@ -28376,7 +28442,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28376
28442
|
close();
|
|
28377
28443
|
editor.unlock();
|
|
28378
28444
|
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
28379
|
-
return (0,
|
|
28445
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
|
|
28380
28446
|
{
|
|
28381
28447
|
name: 'Background',
|
|
28382
28448
|
content: makeColorPicker('background-color')
|
|
@@ -28387,7 +28453,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28387
28453
|
},
|
|
28388
28454
|
tooltip: 'Background'
|
|
28389
28455
|
};
|
|
28390
|
-
|
|
28456
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
|
|
28391
28457
|
isVisible: (editor) => {
|
|
28392
28458
|
return !editor.o.disablePlugins.includes('color');
|
|
28393
28459
|
},
|
|
@@ -28435,7 +28501,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28435
28501
|
}
|
|
28436
28502
|
}, editor.editor);
|
|
28437
28503
|
}
|
|
28438
|
-
const backgroundTag = (0,
|
|
28504
|
+
const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28439
28505
|
if (!currentElement) {
|
|
28440
28506
|
editor.execCommand('background', false, value);
|
|
28441
28507
|
}
|
|
@@ -28446,7 +28512,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28446
28512
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
|
|
28447
28513
|
close();
|
|
28448
28514
|
}, bg_color);
|
|
28449
|
-
const colorTab = (0,
|
|
28515
|
+
const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28450
28516
|
if (!currentElement) {
|
|
28451
28517
|
editor.execCommand('forecolor', false, value);
|
|
28452
28518
|
}
|
|
@@ -28470,7 +28536,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28470
28536
|
if (editor.o.colorPickerDefaultTab !== 'background') {
|
|
28471
28537
|
tabs = tabs.reverse();
|
|
28472
28538
|
}
|
|
28473
|
-
return (0,
|
|
28539
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
|
|
28474
28540
|
},
|
|
28475
28541
|
exec(jodit, current, { button }) {
|
|
28476
28542
|
const mode = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode'), color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
|
|
@@ -28509,10 +28575,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28509
28575
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
28510
28576
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
|
|
28511
28577
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
28512
|
-
/* harmony import */ var
|
|
28513
|
-
/* harmony import */ var
|
|
28514
|
-
/* harmony import */ var
|
|
28515
|
-
/* harmony import */ var
|
|
28578
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
28579
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72131);
|
|
28580
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
28581
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18489);
|
|
28516
28582
|
/*!
|
|
28517
28583
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28518
28584
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28570,7 +28636,7 @@ const getStyles = (editor, box, defaultStyles) => {
|
|
|
28570
28636
|
}
|
|
28571
28637
|
return result;
|
|
28572
28638
|
};
|
|
28573
|
-
|
|
28639
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
|
|
28574
28640
|
exec: (editor, current, { button }) => {
|
|
28575
28641
|
if (!current) {
|
|
28576
28642
|
return;
|
|
@@ -28620,10 +28686,10 @@ function copyFormat(editor) {
|
|
|
28620
28686
|
name: 'copyformat',
|
|
28621
28687
|
group: 'clipboard'
|
|
28622
28688
|
});
|
|
28623
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(
|
|
28689
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
28624
28690
|
}
|
|
28625
28691
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
|
|
28626
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (
|
|
28692
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
28627
28693
|
|
|
28628
28694
|
|
|
28629
28695
|
/***/ }),
|
|
@@ -29180,45 +29246,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29180
29246
|
const sel = this.j.s.sel;
|
|
29181
29247
|
const range = this.bufferRange ||
|
|
29182
29248
|
(sel && sel.rangeCount ? sel.getRangeAt(0) : null);
|
|
29183
|
-
|
|
29184
|
-
if (!this.draggable && range) {
|
|
29185
|
-
fragment = this.isCopyMode
|
|
29186
|
-
? range.cloneContents()
|
|
29187
|
-
: range.extractContents();
|
|
29188
|
-
}
|
|
29189
|
-
else if (this.draggable) {
|
|
29190
|
-
if (this.isCopyMode) {
|
|
29191
|
-
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29192
|
-
? ['a', 'href']
|
|
29193
|
-
: ['img', 'src'];
|
|
29194
|
-
fragment = this.j.createInside.element(tagName);
|
|
29195
|
-
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29196
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29197
|
-
'');
|
|
29198
|
-
if (tagName === 'a') {
|
|
29199
|
-
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29200
|
-
}
|
|
29201
|
-
}
|
|
29202
|
-
else {
|
|
29203
|
-
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29204
|
-
}
|
|
29205
|
-
}
|
|
29206
|
-
else if (this.getText(event)) {
|
|
29207
|
-
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29208
|
-
}
|
|
29249
|
+
const fragment = this.__getWorkFragment(range, event);
|
|
29209
29250
|
sel && sel.removeAllRanges();
|
|
29210
29251
|
this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
|
|
29211
29252
|
if (fragment) {
|
|
29212
|
-
this.
|
|
29213
|
-
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29214
|
-
range.setStartBefore(fragment.firstChild);
|
|
29215
|
-
range.setEndAfter(fragment.lastChild);
|
|
29216
|
-
this.j.s.selectRange(range);
|
|
29217
|
-
this.j.e.fire('synchro');
|
|
29218
|
-
}
|
|
29219
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29220
|
-
this.j.e.fire('afterInsertImage', fragment);
|
|
29221
|
-
}
|
|
29253
|
+
this.__insertFragment.call(this, fragment, range);
|
|
29222
29254
|
}
|
|
29223
29255
|
event.preventDefault();
|
|
29224
29256
|
event.stopPropagation();
|
|
@@ -29226,6 +29258,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29226
29258
|
this.isFragmentFromEditor = false;
|
|
29227
29259
|
this.removeDragListeners();
|
|
29228
29260
|
}
|
|
29261
|
+
__getWorkFragment(range, event) {
|
|
29262
|
+
let fragment = null;
|
|
29263
|
+
if (!this.draggable && range) {
|
|
29264
|
+
fragment = this.isCopyMode
|
|
29265
|
+
? range.cloneContents()
|
|
29266
|
+
: range.extractContents();
|
|
29267
|
+
}
|
|
29268
|
+
else if (this.draggable) {
|
|
29269
|
+
if (this.isCopyMode) {
|
|
29270
|
+
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29271
|
+
? ['a', 'href']
|
|
29272
|
+
: ['img', 'src'];
|
|
29273
|
+
fragment = this.j.createInside.element(tagName);
|
|
29274
|
+
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29275
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29276
|
+
'');
|
|
29277
|
+
if (tagName === 'a') {
|
|
29278
|
+
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29279
|
+
}
|
|
29280
|
+
}
|
|
29281
|
+
else {
|
|
29282
|
+
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29283
|
+
}
|
|
29284
|
+
}
|
|
29285
|
+
else if (this.getText(event)) {
|
|
29286
|
+
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29287
|
+
}
|
|
29288
|
+
return fragment;
|
|
29289
|
+
}
|
|
29290
|
+
__insertFragment(fragment, range) {
|
|
29291
|
+
this.j.s.insertNode(fragment, false, false);
|
|
29292
|
+
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29293
|
+
range.setStartBefore(fragment.firstChild);
|
|
29294
|
+
range.setEndAfter(fragment.lastChild);
|
|
29295
|
+
this.j.s.selectRange(range);
|
|
29296
|
+
this.j.e.fire('synchro');
|
|
29297
|
+
}
|
|
29298
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29299
|
+
this.j.e.fire('afterInsertImage', fragment);
|
|
29300
|
+
}
|
|
29301
|
+
}
|
|
29229
29302
|
/** @override */
|
|
29230
29303
|
beforeDestruct() {
|
|
29231
29304
|
this.onDragEnd();
|
|
@@ -30027,8 +30100,8 @@ function wrapText(fake, jodit) {
|
|
|
30027
30100
|
/* unused harmony export file */
|
|
30028
30101
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
30029
30102
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
30030
|
-
/* harmony import */ var
|
|
30031
|
-
/* harmony import */ var
|
|
30103
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
30104
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
|
|
30032
30105
|
/*!
|
|
30033
30106
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30034
30107
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30038,7 +30111,7 @@ function wrapText(fake, jodit) {
|
|
|
30038
30111
|
|
|
30039
30112
|
|
|
30040
30113
|
|
|
30041
|
-
|
|
30114
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
|
|
30042
30115
|
popup: (editor, current, close) => {
|
|
30043
30116
|
const insert = (url, title = '') => {
|
|
30044
30117
|
editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
|
|
@@ -30051,7 +30124,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
30051
30124
|
? current
|
|
30052
30125
|
: jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
30053
30126
|
}
|
|
30054
|
-
return (0,
|
|
30127
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
|
|
30055
30128
|
filebrowser: (data) => {
|
|
30056
30129
|
data.files &&
|
|
30057
30130
|
data.files.forEach(file => insert(data.baseurl + file));
|
|
@@ -30174,11 +30247,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30174
30247
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
30175
30248
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
|
|
30176
30249
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
30177
|
-
/* harmony import */ var
|
|
30178
|
-
/* harmony import */ var
|
|
30179
|
-
/* harmony import */ var
|
|
30180
|
-
/* harmony import */ var
|
|
30181
|
-
/* harmony import */ var
|
|
30250
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
30251
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78602);
|
|
30252
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30253
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84413);
|
|
30254
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
30182
30255
|
/*!
|
|
30183
30256
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30184
30257
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30194,9 +30267,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30194
30267
|
/**
|
|
30195
30268
|
* Default font-size points
|
|
30196
30269
|
*/
|
|
30197
|
-
|
|
30198
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (
|
|
30199
|
-
|
|
30270
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
|
|
30271
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
30272
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
|
|
30200
30273
|
command: 'fontsize',
|
|
30201
30274
|
data: {
|
|
30202
30275
|
cssRule: 'font-size',
|
|
@@ -30252,8 +30325,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
|
|
|
30252
30325
|
return keySet.has(normalize(value.toString()));
|
|
30253
30326
|
}
|
|
30254
30327
|
};
|
|
30255
|
-
|
|
30256
|
-
...
|
|
30328
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
|
|
30329
|
+
...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
|
|
30257
30330
|
command: 'fontname',
|
|
30258
30331
|
textTemplate: (j, value) => {
|
|
30259
30332
|
const [first] = value.split(',');
|
|
@@ -30363,11 +30436,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30363
30436
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
30364
30437
|
|
|
30365
30438
|
"use strict";
|
|
30366
|
-
/* harmony import */ var
|
|
30439
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
30440
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
|
|
30367
30441
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
30368
|
-
/* harmony import */ var
|
|
30369
|
-
/* harmony import */ var
|
|
30370
|
-
/* harmony import */ var
|
|
30442
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
30443
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30820);
|
|
30444
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30371
30445
|
/*!
|
|
30372
30446
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30373
30447
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30377,12 +30451,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30377
30451
|
|
|
30378
30452
|
|
|
30379
30453
|
|
|
30380
|
-
|
|
30381
|
-
|
|
30454
|
+
|
|
30455
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
30456
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
|
|
30382
30457
|
command: 'formatBlock',
|
|
30383
30458
|
value(editor, button) {
|
|
30384
30459
|
const control = button.control, current = editor.s.current();
|
|
30385
|
-
const currentBox =
|
|
30460
|
+
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
30386
30461
|
return currentBox?.nodeName.toLowerCase() ?? control.data?.currentValue;
|
|
30387
30462
|
},
|
|
30388
30463
|
update(editor, button) {
|
|
@@ -30391,7 +30466,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
30391
30466
|
return false;
|
|
30392
30467
|
}
|
|
30393
30468
|
const currentValue = button.state.value, list = control.list;
|
|
30394
|
-
if (list && list[currentValue.toString()]) {
|
|
30469
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
|
|
30395
30470
|
if (editor.o.textIcons) {
|
|
30396
30471
|
button.state.text = list[currentValue.toString()].toString();
|
|
30397
30472
|
}
|
|
@@ -30415,7 +30490,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
30415
30490
|
},
|
|
30416
30491
|
isActive: (editor, button) => {
|
|
30417
30492
|
return (button.state.value !== editor.o.enter &&
|
|
30418
|
-
|
|
30493
|
+
(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
|
|
30494
|
+
Boolean(button.control.list[button.state.value]));
|
|
30419
30495
|
},
|
|
30420
30496
|
childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
|
|
30421
30497
|
tooltip: 'Insert format block'
|
|
@@ -30465,11 +30541,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
30465
30541
|
"use strict";
|
|
30466
30542
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
30467
30543
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
30468
|
-
/* harmony import */ var
|
|
30469
|
-
/* harmony import */ var
|
|
30470
|
-
/* harmony import */ var
|
|
30471
|
-
/* harmony import */ var
|
|
30472
|
-
/* harmony import */ var
|
|
30544
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
30545
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88708);
|
|
30546
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30547
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10099);
|
|
30548
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30473
30549
|
/*!
|
|
30474
30550
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30475
30551
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30481,10 +30557,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
30481
30557
|
|
|
30482
30558
|
|
|
30483
30559
|
|
|
30484
|
-
|
|
30485
|
-
|
|
30486
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (
|
|
30487
|
-
|
|
30560
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
|
|
30561
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
|
|
30562
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30563
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
|
|
30488
30564
|
exec: (editor) => {
|
|
30489
30565
|
editor.toggleFullSize();
|
|
30490
30566
|
},
|
|
@@ -30623,19 +30699,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('fulls
|
|
|
30623
30699
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30624
30700
|
*/
|
|
30625
30701
|
|
|
30626
|
-
/**
|
|
30627
|
-
* You can redefine hotkeys for some command
|
|
30628
|
-
*
|
|
30629
|
-
* @example
|
|
30630
|
-
* ```js
|
|
30631
|
-
* var jodit = Jodit.make('#editor', {
|
|
30632
|
-
* commandToHotkeys: {
|
|
30633
|
-
* bold: 'ctrl+shift+b',
|
|
30634
|
-
* italic: ['ctrl+i', 'ctrl+b'],
|
|
30635
|
-
* }
|
|
30636
|
-
* })
|
|
30637
|
-
* ```
|
|
30638
|
-
*/
|
|
30639
30702
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.commandToHotkeys = {
|
|
30640
30703
|
removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
|
|
30641
30704
|
insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
|
|
@@ -30810,9 +30873,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30810
30873
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
|
|
30811
30874
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
30812
30875
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
30813
|
-
/* harmony import */ var
|
|
30814
|
-
/* harmony import */ var
|
|
30815
|
-
/* harmony import */ var
|
|
30876
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
30877
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75241);
|
|
30878
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30816
30879
|
/*!
|
|
30817
30880
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30818
30881
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30823,8 +30886,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30823
30886
|
|
|
30824
30887
|
|
|
30825
30888
|
|
|
30826
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (
|
|
30827
|
-
|
|
30889
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30890
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
|
|
30828
30891
|
command: 'insertHorizontalRule',
|
|
30829
30892
|
tags: ['hr'],
|
|
30830
30893
|
tooltip: 'Insert Horizontal Line'
|
|
@@ -31301,6 +31364,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
|
|
|
31301
31364
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
31302
31365
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
31303
31366
|
*/
|
|
31367
|
+
/**
|
|
31368
|
+
* @module plugins/image-properties
|
|
31369
|
+
*/
|
|
31304
31370
|
|
|
31305
31371
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
|
|
31306
31372
|
dialogWidth: 600,
|
|
@@ -32801,10 +32867,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32801
32867
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
32802
32868
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
32803
32869
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
32804
|
-
/* harmony import */ var
|
|
32805
|
-
/* harmony import */ var
|
|
32806
|
-
/* harmony import */ var
|
|
32807
|
-
/* harmony import */ var
|
|
32870
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
32871
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
|
|
32872
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15807);
|
|
32873
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
32808
32874
|
/*!
|
|
32809
32875
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32810
32876
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32817,8 +32883,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32817
32883
|
|
|
32818
32884
|
|
|
32819
32885
|
|
|
32820
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (
|
|
32821
|
-
|
|
32886
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
32887
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
|
|
32822
32888
|
popup: (editor, current, close) => {
|
|
32823
32889
|
let sourceImage = null;
|
|
32824
32890
|
if (current &&
|
|
@@ -32830,7 +32896,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
|
|
|
32830
32896
|
: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
32831
32897
|
}
|
|
32832
32898
|
editor.s.save();
|
|
32833
|
-
return (0,
|
|
32899
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
|
|
32834
32900
|
filebrowser: (data) => {
|
|
32835
32901
|
editor.s.restore();
|
|
32836
32902
|
data.files &&
|
|
@@ -32873,12 +32939,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32873
32939
|
"use strict";
|
|
32874
32940
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
|
|
32875
32941
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
32876
|
-
/* harmony import */ var
|
|
32877
|
-
/* harmony import */ var
|
|
32878
|
-
/* harmony import */ var
|
|
32879
|
-
/* harmony import */ var
|
|
32880
|
-
/* harmony import */ var
|
|
32881
|
-
/* harmony import */ var
|
|
32942
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
32943
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(96168);
|
|
32944
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
32945
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45153);
|
|
32946
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
32947
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63163);
|
|
32882
32948
|
/*!
|
|
32883
32949
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32884
32950
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32890,17 +32956,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32890
32956
|
|
|
32891
32957
|
|
|
32892
32958
|
|
|
32893
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (
|
|
32894
|
-
|
|
32959
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
32960
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
|
|
32895
32961
|
tooltip: 'Increase Indent'
|
|
32896
32962
|
};
|
|
32897
|
-
|
|
32963
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
|
|
32898
32964
|
isDisabled: (editor) => {
|
|
32899
32965
|
const current = editor.s.current();
|
|
32900
32966
|
if (current) {
|
|
32901
32967
|
const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
32902
32968
|
if (currentBox) {
|
|
32903
|
-
const arrow = (0,
|
|
32969
|
+
const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
|
|
32904
32970
|
return (!currentBox.style[arrow] ||
|
|
32905
32971
|
parseInt(currentBox.style[arrow], 10) <= 0);
|
|
32906
32972
|
}
|
|
@@ -32909,7 +32975,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
|
|
|
32909
32975
|
},
|
|
32910
32976
|
tooltip: 'Decrease Indent'
|
|
32911
32977
|
};
|
|
32912
|
-
|
|
32978
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
|
|
32913
32979
|
|
|
32914
32980
|
|
|
32915
32981
|
/***/ }),
|
|
@@ -33170,12 +33236,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33170
33236
|
|
|
33171
33237
|
"use strict";
|
|
33172
33238
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
33173
|
-
/* harmony import */ var
|
|
33174
|
-
/* harmony import */ var
|
|
33175
|
-
/* harmony import */ var
|
|
33176
|
-
/* harmony import */ var
|
|
33239
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
33240
|
+
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73625);
|
|
33241
|
+
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69247);
|
|
33242
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84516);
|
|
33243
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79073);
|
|
33177
33244
|
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3301);
|
|
33178
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
33179
33245
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48537);
|
|
33180
33246
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33181
33247
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1629);
|
|
@@ -33209,10 +33275,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33209
33275
|
|
|
33210
33276
|
|
|
33211
33277
|
|
|
33212
|
-
|
|
33213
|
-
|
|
33214
|
-
|
|
33215
|
-
|
|
33278
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
|
|
33279
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
|
|
33280
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
|
|
33281
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
|
|
33216
33282
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
33217
33283
|
.set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
33218
33284
|
.set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
@@ -33220,14 +33286,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
|
|
|
33220
33286
|
.set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
33221
33287
|
.set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
|
|
33222
33288
|
.set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
|
|
33223
|
-
|
|
33224
|
-
a:
|
|
33225
|
-
img:
|
|
33226
|
-
cells:
|
|
33289
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
|
|
33290
|
+
a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
33291
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
|
|
33292
|
+
cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
|
|
33227
33293
|
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
|
|
33228
|
-
jodit:
|
|
33229
|
-
iframe:
|
|
33230
|
-
'jodit-media':
|
|
33294
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33295
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33296
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33231
33297
|
selection: [
|
|
33232
33298
|
'bold',
|
|
33233
33299
|
'underline',
|
|
@@ -33839,12 +33905,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33839
33905
|
/* unused harmony export justify */
|
|
33840
33906
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
33841
33907
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
33842
|
-
/* harmony import */ var
|
|
33843
|
-
/* harmony import */ var
|
|
33844
|
-
/* harmony import */ var
|
|
33845
|
-
/* harmony import */ var
|
|
33846
|
-
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
33908
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
33909
|
+
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26071);
|
|
33910
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4401);
|
|
33911
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
33847
33912
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
33913
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77795);
|
|
33914
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33848
33915
|
/*!
|
|
33849
33916
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33850
33917
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33857,7 +33924,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33857
33924
|
|
|
33858
33925
|
|
|
33859
33926
|
|
|
33860
|
-
|
|
33927
|
+
|
|
33928
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
33861
33929
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
|
|
33862
33930
|
name: 'left',
|
|
33863
33931
|
tooltip: 'Align',
|
|
@@ -33866,22 +33934,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33866
33934
|
if (current) {
|
|
33867
33935
|
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
|
|
33868
33936
|
editor.editor;
|
|
33869
|
-
let currentValue = (0,
|
|
33937
|
+
let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
|
|
33870
33938
|
if (control.defaultValue &&
|
|
33871
33939
|
control.defaultValue.indexOf(currentValue) !== -1) {
|
|
33872
33940
|
currentValue = 'left';
|
|
33873
33941
|
}
|
|
33874
|
-
|
|
33875
|
-
|
|
33876
|
-
|
|
33877
|
-
|
|
33942
|
+
const { list, data } = control;
|
|
33943
|
+
if (data &&
|
|
33944
|
+
data.currentValue !== currentValue &&
|
|
33945
|
+
list &&
|
|
33946
|
+
((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
|
|
33947
|
+
? list[currentValue]
|
|
33948
|
+
: list.includes(currentValue))) {
|
|
33878
33949
|
if (editor.o.textIcons || control.component === 'select') {
|
|
33879
33950
|
button.state.text = currentValue;
|
|
33880
33951
|
}
|
|
33881
33952
|
else {
|
|
33882
33953
|
button.state.icon.name = currentValue;
|
|
33883
33954
|
}
|
|
33884
|
-
|
|
33955
|
+
data.currentValue = currentValue;
|
|
33885
33956
|
}
|
|
33886
33957
|
}
|
|
33887
33958
|
},
|
|
@@ -33892,7 +33963,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33892
33963
|
}
|
|
33893
33964
|
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
|
|
33894
33965
|
editor.editor;
|
|
33895
|
-
return (btn.control.defaultValue.indexOf((0,
|
|
33966
|
+
return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
|
|
33896
33967
|
},
|
|
33897
33968
|
defaultValue: ['left', 'start', 'inherit'],
|
|
33898
33969
|
data: {
|
|
@@ -33946,7 +34017,7 @@ function justify(editor) {
|
|
|
33946
34017
|
if (!currentBox) {
|
|
33947
34018
|
currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
|
|
33948
34019
|
}
|
|
33949
|
-
(0,
|
|
34020
|
+
(0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
|
|
33950
34021
|
});
|
|
33951
34022
|
return false;
|
|
33952
34023
|
};
|
|
@@ -34157,9 +34228,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34157
34228
|
"use strict";
|
|
34158
34229
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9596);
|
|
34159
34230
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
34160
|
-
/* harmony import */ var
|
|
34161
|
-
/* harmony import */ var
|
|
34162
|
-
/* harmony import */ var
|
|
34231
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
34232
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19615);
|
|
34233
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34163
34234
|
/*!
|
|
34164
34235
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34165
34236
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34169,9 +34240,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34169
34240
|
|
|
34170
34241
|
|
|
34171
34242
|
|
|
34172
|
-
|
|
34173
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (
|
|
34174
|
-
|
|
34243
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
|
|
34244
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
34245
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
|
|
34175
34246
|
command: 'applyLineHeight',
|
|
34176
34247
|
tags: ['ol'],
|
|
34177
34248
|
tooltip: 'Line height',
|
|
@@ -34339,12 +34410,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
34339
34410
|
"use strict";
|
|
34340
34411
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
34341
34412
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
34342
|
-
/* harmony import */ var
|
|
34343
|
-
/* harmony import */ var
|
|
34344
|
-
/* harmony import */ var
|
|
34345
|
-
/* harmony import */ var
|
|
34346
|
-
/* harmony import */ var
|
|
34347
|
-
/* harmony import */ var
|
|
34413
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
34414
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67576);
|
|
34415
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34416
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73501);
|
|
34417
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
34418
|
+
/* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17660);
|
|
34348
34419
|
/*!
|
|
34349
34420
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34350
34421
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34356,8 +34427,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
34356
34427
|
|
|
34357
34428
|
|
|
34358
34429
|
|
|
34359
|
-
|
|
34360
|
-
formTemplate:
|
|
34430
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
|
|
34431
|
+
formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
|
|
34361
34432
|
followOnDblClick: false,
|
|
34362
34433
|
processVideoLink: true,
|
|
34363
34434
|
processPastedLink: true,
|
|
@@ -34369,8 +34440,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
|
|
|
34369
34440
|
selectOptionsClassName: [],
|
|
34370
34441
|
hotkeys: ['ctrl+k', 'cmd+k']
|
|
34371
34442
|
};
|
|
34372
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (
|
|
34373
|
-
|
|
34443
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
34444
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
|
|
34374
34445
|
exec: (editor, current) => {
|
|
34375
34446
|
const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
34376
34447
|
if (anchor) {
|
|
@@ -34381,7 +34452,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
|
|
|
34381
34452
|
},
|
|
34382
34453
|
tooltip: 'Unlink'
|
|
34383
34454
|
};
|
|
34384
|
-
|
|
34455
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
|
|
34385
34456
|
isActive: (editor) => {
|
|
34386
34457
|
const current = editor.s.current();
|
|
34387
34458
|
return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
|
|
@@ -34539,35 +34610,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34539
34610
|
if (link) {
|
|
34540
34611
|
url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
|
|
34541
34612
|
if (modeClassName) {
|
|
34542
|
-
|
|
34543
|
-
case 'input':
|
|
34544
|
-
if (className_input) {
|
|
34545
|
-
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34546
|
-
}
|
|
34547
|
-
break;
|
|
34548
|
-
case 'select':
|
|
34549
|
-
if (className_select) {
|
|
34550
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34551
|
-
const option = className_select.options.item(i);
|
|
34552
|
-
if (option) {
|
|
34553
|
-
option.selected = false;
|
|
34554
|
-
}
|
|
34555
|
-
}
|
|
34556
|
-
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34557
|
-
classNames.split(' ').forEach(className => {
|
|
34558
|
-
if (className) {
|
|
34559
|
-
for (let i = 0; i < className_select.options.length; i++) {
|
|
34560
|
-
const option = className_select.options.item(i);
|
|
34561
|
-
if (option?.value &&
|
|
34562
|
-
option.value === className) {
|
|
34563
|
-
option.selected = true;
|
|
34564
|
-
}
|
|
34565
|
-
}
|
|
34566
|
-
}
|
|
34567
|
-
});
|
|
34568
|
-
}
|
|
34569
|
-
break;
|
|
34570
|
-
}
|
|
34613
|
+
readClassnames(modeClassName, className_input, link, className_select);
|
|
34571
34614
|
}
|
|
34572
34615
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
34573
34616
|
target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
|
|
@@ -34629,42 +34672,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34629
34672
|
}
|
|
34630
34673
|
links.forEach(a => {
|
|
34631
34674
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
|
|
34632
|
-
|
|
34633
|
-
if (modeClassName === 'input') {
|
|
34634
|
-
if (className_input.value === '' &&
|
|
34635
|
-
a.hasAttribute('class')) {
|
|
34636
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34637
|
-
}
|
|
34638
|
-
if (className_input.value !== '') {
|
|
34639
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
34640
|
-
}
|
|
34641
|
-
}
|
|
34642
|
-
else if (modeClassName === 'select') {
|
|
34643
|
-
if (a.hasAttribute('class')) {
|
|
34644
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34645
|
-
}
|
|
34646
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34647
|
-
const className = className_select.selectedOptions.item(i)?.value;
|
|
34648
|
-
if (className) {
|
|
34649
|
-
a.classList.add(className);
|
|
34650
|
-
}
|
|
34651
|
-
}
|
|
34652
|
-
}
|
|
34653
|
-
}
|
|
34675
|
+
writeClasses(modeClassName, className_input, className_select, a);
|
|
34654
34676
|
if (!isImageContent) {
|
|
34655
|
-
|
|
34656
|
-
if (content_input.value.trim().length) {
|
|
34657
|
-
if (textWasChanged) {
|
|
34658
|
-
newContent = content_input.value;
|
|
34659
|
-
}
|
|
34660
|
-
}
|
|
34661
|
-
else {
|
|
34662
|
-
newContent = url_input.value;
|
|
34663
|
-
}
|
|
34664
|
-
const content = a.textContent;
|
|
34665
|
-
if (newContent !== content) {
|
|
34666
|
-
a.textContent = newContent;
|
|
34667
|
-
}
|
|
34677
|
+
writeImage(a, content_input, textWasChanged, url_input);
|
|
34668
34678
|
}
|
|
34669
34679
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
34670
34680
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
|
|
@@ -34709,6 +34719,74 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34709
34719
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
34710
34720
|
], link.prototype, "__generateForm", null);
|
|
34711
34721
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
|
|
34722
|
+
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
34723
|
+
if (modeClassName && (className_input ?? className_select)) {
|
|
34724
|
+
if (modeClassName === 'input') {
|
|
34725
|
+
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
34726
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34727
|
+
}
|
|
34728
|
+
if (className_input.value !== '') {
|
|
34729
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
34730
|
+
}
|
|
34731
|
+
}
|
|
34732
|
+
else if (modeClassName === 'select') {
|
|
34733
|
+
if (a.hasAttribute('class')) {
|
|
34734
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34735
|
+
}
|
|
34736
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34737
|
+
const className = className_select.selectedOptions.item(i)?.value;
|
|
34738
|
+
if (className) {
|
|
34739
|
+
a.classList.add(className);
|
|
34740
|
+
}
|
|
34741
|
+
}
|
|
34742
|
+
}
|
|
34743
|
+
}
|
|
34744
|
+
}
|
|
34745
|
+
function readClassnames(modeClassName, className_input, link, className_select) {
|
|
34746
|
+
switch (modeClassName) {
|
|
34747
|
+
case 'input':
|
|
34748
|
+
if (className_input) {
|
|
34749
|
+
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34750
|
+
}
|
|
34751
|
+
break;
|
|
34752
|
+
case 'select':
|
|
34753
|
+
if (className_select) {
|
|
34754
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34755
|
+
const option = className_select.options.item(i);
|
|
34756
|
+
if (option) {
|
|
34757
|
+
option.selected = false;
|
|
34758
|
+
}
|
|
34759
|
+
}
|
|
34760
|
+
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34761
|
+
classNames.split(' ').forEach(className => {
|
|
34762
|
+
if (className) {
|
|
34763
|
+
for (let i = 0; i < className_select.options.length; i++) {
|
|
34764
|
+
const option = className_select.options.item(i);
|
|
34765
|
+
if (option?.value && option.value === className) {
|
|
34766
|
+
option.selected = true;
|
|
34767
|
+
}
|
|
34768
|
+
}
|
|
34769
|
+
}
|
|
34770
|
+
});
|
|
34771
|
+
}
|
|
34772
|
+
break;
|
|
34773
|
+
}
|
|
34774
|
+
}
|
|
34775
|
+
function writeImage(a, content_input, textWasChanged, url_input) {
|
|
34776
|
+
let newContent = a.textContent;
|
|
34777
|
+
if (content_input.value.trim().length) {
|
|
34778
|
+
if (textWasChanged) {
|
|
34779
|
+
newContent = content_input.value;
|
|
34780
|
+
}
|
|
34781
|
+
}
|
|
34782
|
+
else {
|
|
34783
|
+
newContent = url_input.value;
|
|
34784
|
+
}
|
|
34785
|
+
const content = a.textContent;
|
|
34786
|
+
if (newContent !== content) {
|
|
34787
|
+
a.textContent = newContent;
|
|
34788
|
+
}
|
|
34789
|
+
}
|
|
34712
34790
|
|
|
34713
34791
|
|
|
34714
34792
|
/***/ }),
|
|
@@ -34918,9 +34996,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
34918
34996
|
"use strict";
|
|
34919
34997
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
34920
34998
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
34921
|
-
/* harmony import */ var
|
|
34922
|
-
/* harmony import */ var
|
|
34923
|
-
/* harmony import */ var
|
|
34999
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
35000
|
+
/* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78167);
|
|
35001
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78072);
|
|
34924
35002
|
/*!
|
|
34925
35003
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34926
35004
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34931,9 +35009,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
34931
35009
|
|
|
34932
35010
|
|
|
34933
35011
|
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
35012
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
|
|
35013
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
|
|
35014
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
|
|
34937
35015
|
{
|
|
34938
35016
|
group: 'font-style',
|
|
34939
35017
|
buttons: []
|
|
@@ -34980,7 +35058,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
|
|
|
34980
35058
|
'|',
|
|
34981
35059
|
'dots'
|
|
34982
35060
|
];
|
|
34983
|
-
|
|
35061
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
|
|
34984
35062
|
{
|
|
34985
35063
|
group: 'font-style',
|
|
34986
35064
|
buttons: []
|
|
@@ -35015,7 +35093,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
|
|
|
35015
35093
|
'|',
|
|
35016
35094
|
'dots'
|
|
35017
35095
|
];
|
|
35018
|
-
|
|
35096
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
|
|
35019
35097
|
{
|
|
35020
35098
|
group: 'font-style',
|
|
35021
35099
|
buttons: []
|
|
@@ -35036,16 +35114,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
|
|
|
35036
35114
|
'---',
|
|
35037
35115
|
'dots'
|
|
35038
35116
|
];
|
|
35039
|
-
|
|
35117
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
|
|
35040
35118
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
|
|
35041
35119
|
popup: (editor, current, close, button) => {
|
|
35042
35120
|
let store = button.control.data;
|
|
35043
35121
|
if (store === undefined) {
|
|
35044
35122
|
store = {
|
|
35045
|
-
toolbar: (0,
|
|
35123
|
+
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
|
|
35046
35124
|
rebuild: () => {
|
|
35047
35125
|
if (button) {
|
|
35048
|
-
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(
|
|
35126
|
+
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
|
|
35049
35127
|
if (buttons && store) {
|
|
35050
35128
|
store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
|
|
35051
35129
|
const w = editor.toolbar?.firstButton?.container
|
|
@@ -35156,11 +35234,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
|
|
|
35156
35234
|
"use strict";
|
|
35157
35235
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49382);
|
|
35158
35236
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
35159
|
-
/* harmony import */ var
|
|
35160
|
-
/* harmony import */ var
|
|
35161
|
-
/* harmony import */ var
|
|
35162
|
-
/* harmony import */ var
|
|
35163
|
-
/* harmony import */ var
|
|
35237
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
35238
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48421);
|
|
35239
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
35240
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22791);
|
|
35241
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
35164
35242
|
/*!
|
|
35165
35243
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35166
35244
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35177,8 +35255,8 @@ const memoExec = (jodit, _, { control }) => {
|
|
|
35177
35255
|
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
|
|
35178
35256
|
jodit.execCommand(control.command, false, value === 'default' ? null : value);
|
|
35179
35257
|
};
|
|
35180
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (
|
|
35181
|
-
|
|
35258
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
35259
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
|
|
35182
35260
|
command: 'insertUnorderedList',
|
|
35183
35261
|
tags: ['ul'],
|
|
35184
35262
|
tooltip: 'Insert Unordered List',
|
|
@@ -35190,7 +35268,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
|
|
|
35190
35268
|
},
|
|
35191
35269
|
exec: memoExec
|
|
35192
35270
|
};
|
|
35193
|
-
|
|
35271
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
|
|
35194
35272
|
command: 'insertOrderedList',
|
|
35195
35273
|
tags: ['ol'],
|
|
35196
35274
|
tooltip: 'Insert Ordered List',
|
|
@@ -35566,8 +35644,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
35566
35644
|
|
|
35567
35645
|
"use strict";
|
|
35568
35646
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
35569
|
-
/* harmony import */ var
|
|
35570
|
-
/* harmony import */ var
|
|
35647
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
35648
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48954);
|
|
35571
35649
|
/*!
|
|
35572
35650
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35573
35651
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35576,19 +35654,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
35576
35654
|
|
|
35577
35655
|
|
|
35578
35656
|
|
|
35579
|
-
|
|
35580
|
-
|
|
35581
|
-
|
|
35582
|
-
|
|
35583
|
-
|
|
35657
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
|
|
35658
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
|
|
35659
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
|
|
35660
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
|
|
35661
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
|
|
35584
35662
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
35585
35663
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
35586
35664
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
|
|
35587
35665
|
];
|
|
35588
|
-
|
|
35589
|
-
|
|
35666
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
|
|
35667
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
|
|
35590
35668
|
const psKey = 'pasteStorage';
|
|
35591
|
-
|
|
35669
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
|
|
35592
35670
|
tooltip: 'Paste from clipboard',
|
|
35593
35671
|
async exec(editor, _, { control }) {
|
|
35594
35672
|
if (control.name === psKey) {
|
|
@@ -35636,7 +35714,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
|
|
|
35636
35714
|
!error && editor.e.fire('afterPaste');
|
|
35637
35715
|
}
|
|
35638
35716
|
else if (text.length) {
|
|
35639
|
-
(0,
|
|
35717
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
|
|
35640
35718
|
editor.e.fire('afterPaste');
|
|
35641
35719
|
}
|
|
35642
35720
|
else {
|
|
@@ -36363,10 +36441,10 @@ function generateCriticalCSS(jodit) {
|
|
|
36363
36441
|
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
|
|
36364
36442
|
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
|
|
36365
36443
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
36366
|
-
/* harmony import */ var
|
|
36367
|
-
/* harmony import */ var
|
|
36368
|
-
/* harmony import */ var
|
|
36369
|
-
/* harmony import */ var
|
|
36444
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
36445
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
|
|
36446
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
|
|
36447
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
36370
36448
|
/*!
|
|
36371
36449
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36372
36450
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36381,8 +36459,8 @@ function generateCriticalCSS(jodit) {
|
|
|
36381
36459
|
|
|
36382
36460
|
|
|
36383
36461
|
|
|
36384
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (
|
|
36385
|
-
|
|
36462
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
36463
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
|
|
36386
36464
|
exec: (editor) => {
|
|
36387
36465
|
const iframe = editor.create.element('iframe');
|
|
36388
36466
|
Object.assign(iframe.style, {
|
|
@@ -36393,7 +36471,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
36393
36471
|
height: 0,
|
|
36394
36472
|
border: 0
|
|
36395
36473
|
});
|
|
36396
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
36474
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
|
|
36397
36475
|
const afterFinishPrint = () => {
|
|
36398
36476
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
36399
36477
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -36411,7 +36489,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
36411
36489
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
36412
36490
|
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
36413
36491
|
'"><head><title></title></head><style>' +
|
|
36414
|
-
(0,
|
|
36492
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
|
|
36415
36493
|
'</style><body></body></html>');
|
|
36416
36494
|
myWindow.document.close();
|
|
36417
36495
|
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
@@ -36449,11 +36527,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
36449
36527
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
36450
36528
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67141);
|
|
36451
36529
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
36452
|
-
/* harmony import */ var
|
|
36453
|
-
/* harmony import */ var
|
|
36454
|
-
/* harmony import */ var
|
|
36455
|
-
/* harmony import */ var
|
|
36456
|
-
/* harmony import */ var
|
|
36530
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
36531
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37629);
|
|
36532
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
36533
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42687);
|
|
36534
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
36457
36535
|
/*!
|
|
36458
36536
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36459
36537
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36466,13 +36544,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
36466
36544
|
|
|
36467
36545
|
|
|
36468
36546
|
|
|
36469
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (
|
|
36470
|
-
|
|
36547
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
36548
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
|
|
36471
36549
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
36472
36550
|
isDisabled: (editor) => !editor.history.canRedo(),
|
|
36473
36551
|
tooltip: 'Redo'
|
|
36474
36552
|
};
|
|
36475
|
-
|
|
36553
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
|
|
36476
36554
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
36477
36555
|
isDisabled: (editor) => !editor.history.canUndo(),
|
|
36478
36556
|
tooltip: 'Undo'
|
|
@@ -37491,9 +37569,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37491
37569
|
|
|
37492
37570
|
"use strict";
|
|
37493
37571
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
37494
|
-
/* harmony import */ var
|
|
37495
|
-
/* harmony import */ var
|
|
37496
|
-
/* harmony import */ var
|
|
37572
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
37573
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
|
|
37574
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
37497
37575
|
/*!
|
|
37498
37576
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37499
37577
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37503,14 +37581,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37503
37581
|
|
|
37504
37582
|
|
|
37505
37583
|
|
|
37506
|
-
|
|
37507
|
-
|
|
37584
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
|
|
37585
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
|
|
37508
37586
|
lazyIdleTimeout: 0,
|
|
37509
37587
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37510
37588
|
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
37511
37589
|
};
|
|
37512
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (
|
|
37513
|
-
|
|
37590
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
37591
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
|
|
37514
37592
|
tooltip: 'Find',
|
|
37515
37593
|
icon: 'search',
|
|
37516
37594
|
exec(jodit, _, { control }) {
|
|
@@ -37551,7 +37629,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
|
|
|
37551
37629
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
37552
37630
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
37553
37631
|
/* harmony export */ });
|
|
37554
|
-
/* unused harmony export isSelectionWrapper */
|
|
37555
37632
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
37556
37633
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
|
|
37557
37634
|
/*!
|
|
@@ -37573,60 +37650,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
37573
37650
|
rng.endContainer.nodeValue == null) {
|
|
37574
37651
|
return;
|
|
37575
37652
|
}
|
|
37576
|
-
if (jodit
|
|
37577
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37578
|
-
typeof window.Highlight !== 'undefined') {
|
|
37579
|
-
const ranges = [rng, ...restRanges].map(rng => {
|
|
37580
|
-
const range = jodit.selection.createRange();
|
|
37581
|
-
range.setStart(rng.startContainer, rng.startOffset);
|
|
37582
|
-
range.setEnd(rng.endContainer, rng.endOffset);
|
|
37583
|
-
return range;
|
|
37584
|
-
});
|
|
37585
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37586
|
-
const searchHighlight = new Highlight(...ranges);
|
|
37587
|
-
// @ts-ignore
|
|
37588
|
-
CSS.highlights.clear();
|
|
37589
|
-
// @ts-ignore
|
|
37590
|
-
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
37591
|
-
restRanges.length = 0;
|
|
37653
|
+
if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
|
|
37592
37654
|
return;
|
|
37593
37655
|
}
|
|
37594
37656
|
const span = ci.element('span', {
|
|
37595
37657
|
[TMP_ATTR]: true
|
|
37596
37658
|
});
|
|
37597
37659
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
|
|
37598
|
-
|
|
37599
|
-
let diff = 0;
|
|
37600
|
-
if (rng.startOffset !== 0) {
|
|
37601
|
-
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
37602
|
-
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
37603
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
37604
|
-
if (rng.startContainer === rng.endContainer) {
|
|
37605
|
-
diff = rng.startOffset;
|
|
37606
|
-
rng.endOffset -= diff;
|
|
37607
|
-
}
|
|
37608
|
-
rng.startOffset = 0;
|
|
37609
|
-
}
|
|
37610
|
-
const endText = rng.endContainer.nodeValue;
|
|
37611
|
-
if (rng.endOffset !== endText.length) {
|
|
37612
|
-
const text = ci.text(endText.substring(rng.endOffset));
|
|
37613
|
-
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
37614
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
37615
|
-
for (const range of restRanges) {
|
|
37616
|
-
if (range.startContainer === rng.endContainer) {
|
|
37617
|
-
range.startContainer = text;
|
|
37618
|
-
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
37619
|
-
if (range.endContainer === rng.endContainer) {
|
|
37620
|
-
range.endContainer = text;
|
|
37621
|
-
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
37622
|
-
}
|
|
37623
|
-
}
|
|
37624
|
-
else {
|
|
37625
|
-
break;
|
|
37626
|
-
}
|
|
37627
|
-
}
|
|
37628
|
-
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
37629
|
-
}
|
|
37660
|
+
normalizeRanges(rng, restRanges, ci);
|
|
37630
37661
|
let next = rng.startContainer;
|
|
37631
37662
|
do {
|
|
37632
37663
|
if (!next) {
|
|
@@ -37672,6 +37703,61 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
37672
37703
|
function isSelectionWrapper(node) {
|
|
37673
37704
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
37674
37705
|
}
|
|
37706
|
+
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
37707
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
37708
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37709
|
+
typeof window.Highlight !== 'undefined') {
|
|
37710
|
+
const ranges = [rng, ...restRanges].map(rng => {
|
|
37711
|
+
const range = jodit.selection.createRange();
|
|
37712
|
+
range.setStart(rng.startContainer, rng.startOffset);
|
|
37713
|
+
range.setEnd(rng.endContainer, rng.endOffset);
|
|
37714
|
+
return range;
|
|
37715
|
+
});
|
|
37716
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37717
|
+
const searchHighlight = new Highlight(...ranges);
|
|
37718
|
+
// @ts-ignore
|
|
37719
|
+
CSS.highlights.clear();
|
|
37720
|
+
// @ts-ignore
|
|
37721
|
+
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
37722
|
+
restRanges.length = 0;
|
|
37723
|
+
return true;
|
|
37724
|
+
}
|
|
37725
|
+
return false;
|
|
37726
|
+
}
|
|
37727
|
+
function normalizeRanges(rng, restRanges, ci) {
|
|
37728
|
+
const startText = rng.startContainer.nodeValue;
|
|
37729
|
+
let diff = 0;
|
|
37730
|
+
if (rng.startOffset !== 0) {
|
|
37731
|
+
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
37732
|
+
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
37733
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
37734
|
+
if (rng.startContainer === rng.endContainer) {
|
|
37735
|
+
diff = rng.startOffset;
|
|
37736
|
+
rng.endOffset -= diff;
|
|
37737
|
+
}
|
|
37738
|
+
rng.startOffset = 0;
|
|
37739
|
+
}
|
|
37740
|
+
const endText = rng.endContainer.nodeValue;
|
|
37741
|
+
if (rng.endOffset !== endText.length) {
|
|
37742
|
+
const text = ci.text(endText.substring(rng.endOffset));
|
|
37743
|
+
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
37744
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
37745
|
+
for (const range of restRanges) {
|
|
37746
|
+
if (range.startContainer === rng.endContainer) {
|
|
37747
|
+
range.startContainer = text;
|
|
37748
|
+
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
37749
|
+
if (range.endContainer === rng.endContainer) {
|
|
37750
|
+
range.endContainer = text;
|
|
37751
|
+
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
37752
|
+
}
|
|
37753
|
+
}
|
|
37754
|
+
else {
|
|
37755
|
+
break;
|
|
37756
|
+
}
|
|
37757
|
+
}
|
|
37758
|
+
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
37759
|
+
}
|
|
37760
|
+
}
|
|
37675
37761
|
|
|
37676
37762
|
|
|
37677
37763
|
/***/ }),
|
|
@@ -39109,9 +39195,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
39109
39195
|
"use strict";
|
|
39110
39196
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
39111
39197
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
39112
|
-
/* harmony import */ var
|
|
39113
|
-
/* harmony import */ var
|
|
39114
|
-
/* harmony import */ var
|
|
39198
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
39199
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58671);
|
|
39200
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
39115
39201
|
/*!
|
|
39116
39202
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39117
39203
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39121,9 +39207,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
39121
39207
|
|
|
39122
39208
|
|
|
39123
39209
|
|
|
39124
|
-
|
|
39125
|
-
|
|
39126
|
-
|
|
39210
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
|
|
39211
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
|
|
39212
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
|
|
39127
39213
|
/**
|
|
39128
39214
|
* Show gutter
|
|
39129
39215
|
*/
|
|
@@ -39145,15 +39231,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
|
|
|
39145
39231
|
*/
|
|
39146
39232
|
highlightActiveLine: true
|
|
39147
39233
|
};
|
|
39148
|
-
|
|
39234
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
|
|
39149
39235
|
'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
|
|
39150
39236
|
];
|
|
39151
|
-
|
|
39237
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
|
|
39152
39238
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
|
|
39153
39239
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
|
|
39154
39240
|
];
|
|
39155
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (
|
|
39156
|
-
|
|
39241
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
39242
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
|
|
39157
39243
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
39158
39244
|
exec: (editor) => {
|
|
39159
39245
|
editor.toggleMode();
|
|
@@ -39948,9 +40034,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
39948
40034
|
|
|
39949
40035
|
"use strict";
|
|
39950
40036
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
39951
|
-
/* harmony import */ var
|
|
39952
|
-
/* harmony import */ var
|
|
39953
|
-
/* harmony import */ var
|
|
40037
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
40038
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80709);
|
|
40039
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
39954
40040
|
/*!
|
|
39955
40041
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39956
40042
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39959,13 +40045,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
39959
40045
|
|
|
39960
40046
|
|
|
39961
40047
|
|
|
39962
|
-
|
|
39963
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (
|
|
39964
|
-
|
|
40048
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
|
|
40049
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
40050
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
|
|
39965
40051
|
isActive(e) {
|
|
39966
40052
|
return e.o.spellcheck;
|
|
39967
40053
|
},
|
|
39968
|
-
icon: (
|
|
40054
|
+
icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
39969
40055
|
name: 'spellcheck',
|
|
39970
40056
|
command: 'toggleSpellcheck',
|
|
39971
40057
|
tooltip: 'Spellcheck'
|
|
@@ -40343,9 +40429,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
40343
40429
|
|
|
40344
40430
|
"use strict";
|
|
40345
40431
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
40346
|
-
/* harmony import */ var
|
|
40347
|
-
/* harmony import */ var
|
|
40348
|
-
/* harmony import */ var
|
|
40432
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
40433
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3283);
|
|
40434
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
40349
40435
|
/*!
|
|
40350
40436
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40351
40437
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40354,8 +40440,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
40354
40440
|
|
|
40355
40441
|
|
|
40356
40442
|
|
|
40357
|
-
|
|
40358
|
-
|
|
40443
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
|
|
40444
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
|
|
40359
40445
|
'!',
|
|
40360
40446
|
'"',
|
|
40361
40447
|
'#',
|
|
@@ -40567,8 +40653,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
|
|
|
40567
40653
|
'♦',
|
|
40568
40654
|
'≈'
|
|
40569
40655
|
];
|
|
40570
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (
|
|
40571
|
-
|
|
40656
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
40657
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
|
|
40572
40658
|
hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
|
|
40573
40659
|
tooltip: 'Insert Special Character',
|
|
40574
40660
|
popup: (editor, current, close) => {
|
|
@@ -41053,38 +41139,10 @@ function tableKeyboardNavigation(editor) {
|
|
|
41053
41139
|
.off('.tableKeyboardNavigation')
|
|
41054
41140
|
.on('keydown.tableKeyboardNavigation', (event) => {
|
|
41055
41141
|
const { key } = event;
|
|
41056
|
-
|
|
41057
|
-
return;
|
|
41058
|
-
}
|
|
41059
|
-
const current = editor.s.current();
|
|
41060
|
-
if (!current) {
|
|
41061
|
-
return;
|
|
41062
|
-
}
|
|
41063
|
-
const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
|
|
41142
|
+
const cell = findCell(editor, key);
|
|
41064
41143
|
if (!cell) {
|
|
41065
41144
|
return;
|
|
41066
41145
|
}
|
|
41067
|
-
const { range } = editor.s;
|
|
41068
|
-
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
41069
|
-
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
41070
|
-
const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
41071
|
-
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
41072
|
-
: Boolean(elm), cell);
|
|
41073
|
-
if ((!isNextDirection &&
|
|
41074
|
-
(hasNext ||
|
|
41075
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
41076
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
41077
|
-
range.startOffset !== 0))) ||
|
|
41078
|
-
(isNextDirection &&
|
|
41079
|
-
(hasNext ||
|
|
41080
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
41081
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
41082
|
-
current.nodeValue &&
|
|
41083
|
-
range.startOffset !==
|
|
41084
|
-
current.nodeValue.length)))) {
|
|
41085
|
-
return;
|
|
41086
|
-
}
|
|
41087
|
-
}
|
|
41088
41146
|
const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
|
|
41089
41147
|
const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
|
|
41090
41148
|
let next = null;
|
|
@@ -41142,6 +41200,40 @@ function tableKeyboardNavigation(editor) {
|
|
|
41142
41200
|
});
|
|
41143
41201
|
}
|
|
41144
41202
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
|
|
41203
|
+
function findCell(editor, key) {
|
|
41204
|
+
if (!WORK_KEYS.has(key)) {
|
|
41205
|
+
return;
|
|
41206
|
+
}
|
|
41207
|
+
const current = editor.s.current();
|
|
41208
|
+
if (!current) {
|
|
41209
|
+
return;
|
|
41210
|
+
}
|
|
41211
|
+
const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
|
|
41212
|
+
if (!cell) {
|
|
41213
|
+
return;
|
|
41214
|
+
}
|
|
41215
|
+
const { range } = editor.s;
|
|
41216
|
+
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
41217
|
+
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
41218
|
+
const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
41219
|
+
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
41220
|
+
: Boolean(elm), cell);
|
|
41221
|
+
if ((!isNextDirection &&
|
|
41222
|
+
(hasNext ||
|
|
41223
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
41224
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
41225
|
+
range.startOffset !== 0))) ||
|
|
41226
|
+
(isNextDirection &&
|
|
41227
|
+
(hasNext ||
|
|
41228
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
41229
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
41230
|
+
current.nodeValue &&
|
|
41231
|
+
range.startOffset !== current.nodeValue.length)))) {
|
|
41232
|
+
return;
|
|
41233
|
+
}
|
|
41234
|
+
}
|
|
41235
|
+
return cell;
|
|
41236
|
+
}
|
|
41145
41237
|
|
|
41146
41238
|
|
|
41147
41239
|
/***/ }),
|
|
@@ -41154,9 +41246,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
41154
41246
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
41155
41247
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
|
|
41156
41248
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
41157
|
-
/* harmony import */ var
|
|
41158
|
-
/* harmony import */ var
|
|
41159
|
-
/* harmony import */ var
|
|
41249
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
41250
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35863);
|
|
41251
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
41160
41252
|
/*!
|
|
41161
41253
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41162
41254
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41168,12 +41260,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
41168
41260
|
|
|
41169
41261
|
|
|
41170
41262
|
|
|
41171
|
-
|
|
41263
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
41172
41264
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
41173
41265
|
useExtraClassesOptions: false
|
|
41174
41266
|
};
|
|
41175
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (
|
|
41176
|
-
|
|
41267
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
41268
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
|
|
41177
41269
|
data: {
|
|
41178
41270
|
cols: 10,
|
|
41179
41271
|
rows: 10,
|
|
@@ -41340,10 +41432,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
41340
41432
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64962);
|
|
41341
41433
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18716);
|
|
41342
41434
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
41343
|
-
/* harmony import */ var
|
|
41344
|
-
/* harmony import */ var
|
|
41345
|
-
/* harmony import */ var
|
|
41346
|
-
/* harmony import */ var
|
|
41435
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
41436
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
|
|
41437
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46035);
|
|
41438
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
41347
41439
|
/*!
|
|
41348
41440
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41349
41441
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41356,8 +41448,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
41356
41448
|
|
|
41357
41449
|
|
|
41358
41450
|
|
|
41359
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (
|
|
41360
|
-
|
|
41451
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
41452
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
41361
41453
|
popup: (editor, current, close) => {
|
|
41362
41454
|
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
|
|
41363
41455
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
|
|
@@ -41404,7 +41496,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
|
|
|
41404
41496
|
formCode.onSubmit(data => {
|
|
41405
41497
|
insertCode(data.code);
|
|
41406
41498
|
});
|
|
41407
|
-
return (0,
|
|
41499
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
|
|
41408
41500
|
},
|
|
41409
41501
|
tags: ['iframe'],
|
|
41410
41502
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -42037,9 +42129,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42037
42129
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
42038
42130
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65564);
|
|
42039
42131
|
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34138);
|
|
42040
|
-
/* harmony import */ var
|
|
42041
|
-
/* harmony import */ var
|
|
42042
|
-
/* harmony import */ var
|
|
42132
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
42133
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75700);
|
|
42134
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56418);
|
|
42043
42135
|
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25511);
|
|
42044
42136
|
/*!
|
|
42045
42137
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
@@ -42057,7 +42149,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42057
42149
|
|
|
42058
42150
|
|
|
42059
42151
|
|
|
42060
|
-
|
|
42152
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.autocomplete = {
|
|
42061
42153
|
sources: [],
|
|
42062
42154
|
maxItems: 50,
|
|
42063
42155
|
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
@@ -42075,7 +42167,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
42075
42167
|
afterInit(jodit) {
|
|
42076
42168
|
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .z(jodit);
|
|
42077
42169
|
this.popup.setMod('padding', false);
|
|
42078
|
-
this.list = new
|
|
42170
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .j(jodit);
|
|
42079
42171
|
this.popup.setContent(this.list.container);
|
|
42080
42172
|
jodit.e
|
|
42081
42173
|
.on('select.autocomplete', (item) => {
|
|
@@ -42086,7 +42178,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
42086
42178
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isNode(insertValue)) {
|
|
42087
42179
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
42088
42180
|
}
|
|
42089
|
-
(0,
|
|
42181
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
42090
42182
|
this.j.s.setCursorAfter(insertValue);
|
|
42091
42183
|
this.j.synchronizeValues();
|
|
42092
42184
|
this.popup.close();
|
|
@@ -42122,7 +42214,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
42122
42214
|
const range = this.j.s.sel?.rangeCount
|
|
42123
42215
|
? this.j.s.sel?.getRangeAt(0)
|
|
42124
42216
|
: null;
|
|
42125
|
-
const query = range && (0,
|
|
42217
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
42126
42218
|
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
42127
42219
|
const result = await this.onAutoComplete(query);
|
|
42128
42220
|
if (result.length) {
|