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/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
|
*/
|
|
@@ -2444,7 +2444,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2444
2444
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2445
2445
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2446
2446
|
*/
|
|
2447
|
-
const APP_VERSION = "4.2.
|
|
2447
|
+
const APP_VERSION = "4.2.18";
|
|
2448
2448
|
// prettier-ignore
|
|
2449
2449
|
const ES = "es2021";
|
|
2450
2450
|
const IS_ES_MODERN = true;
|
|
@@ -7988,6 +7988,8 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
|
|
|
7988
7988
|
}
|
|
7989
7989
|
const script = jodit.c.element('script', {
|
|
7990
7990
|
type: 'text/javascript',
|
|
7991
|
+
crossorigin: 'anonymous',
|
|
7992
|
+
referrerpolicy: 'no-referrer',
|
|
7991
7993
|
async: true,
|
|
7992
7994
|
src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
|
|
7993
7995
|
});
|
|
@@ -8228,9 +8230,9 @@ const completeUrl = (url) => {
|
|
|
8228
8230
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
|
|
8229
8231
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
8230
8232
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
|
|
8233
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91288);
|
|
8231
8234
|
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20368);
|
|
8232
|
-
/* harmony import */ var
|
|
8233
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
8235
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94183);
|
|
8234
8236
|
/*!
|
|
8235
8237
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8236
8238
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8278,7 +8280,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
8278
8280
|
if (Object.getPrototypeOf(options) !== Object.prototype) {
|
|
8279
8281
|
return options;
|
|
8280
8282
|
}
|
|
8281
|
-
const def =
|
|
8283
|
+
const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
|
|
8282
8284
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
|
|
8283
8285
|
if (def.presets[options.preset] !== undefined) {
|
|
8284
8286
|
const preset = def.presets[options.preset];
|
|
@@ -8308,7 +8310,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
8308
8310
|
return newOpt;
|
|
8309
8311
|
}
|
|
8310
8312
|
function ConfigFlatten(obj) {
|
|
8311
|
-
return (0,
|
|
8313
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
|
|
8312
8314
|
app[key] = obj[key];
|
|
8313
8315
|
return app;
|
|
8314
8316
|
}, {});
|
|
@@ -10267,9 +10269,9 @@ Plugin.requires = [];
|
|
|
10267
10269
|
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
|
|
10268
10270
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
10269
10271
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
|
|
10270
|
-
/* harmony import */ var
|
|
10272
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
10273
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
|
|
10271
10274
|
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85349);
|
|
10272
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10273
10275
|
/*!
|
|
10274
10276
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10275
10277
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10287,7 +10289,7 @@ class Ajax {
|
|
|
10287
10289
|
className() {
|
|
10288
10290
|
return 'Ajax';
|
|
10289
10291
|
}
|
|
10290
|
-
constructor(options, defaultAjaxOptions =
|
|
10292
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10291
10293
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10292
10294
|
this.__isFulfilled = false;
|
|
10293
10295
|
this.__activated = false;
|
|
@@ -10530,10 +10532,14 @@ class Response {
|
|
|
10530
10532
|
|
|
10531
10533
|
"use strict";
|
|
10532
10534
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10533
|
-
/* harmony export */
|
|
10535
|
+
/* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
10536
|
+
/* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
|
|
10537
|
+
/* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
|
|
10534
10538
|
/* harmony export */ });
|
|
10535
|
-
/* harmony import */ var
|
|
10536
|
-
/* harmony import */ var
|
|
10539
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
10540
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
10541
|
+
/* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49967);
|
|
10542
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13088);
|
|
10537
10543
|
/*!
|
|
10538
10544
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10539
10545
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10546,6 +10552,54 @@ class Response {
|
|
|
10546
10552
|
|
|
10547
10553
|
|
|
10548
10554
|
|
|
10555
|
+
/**
|
|
10556
|
+
* Check if the cursor is at the edge of the string
|
|
10557
|
+
* @private
|
|
10558
|
+
*/
|
|
10559
|
+
function cursorInTheEdgeOfString(container, offset, start, end) {
|
|
10560
|
+
const text = container.nodeValue?.length ? container.nodeValue : '';
|
|
10561
|
+
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
10562
|
+
return true;
|
|
10563
|
+
}
|
|
10564
|
+
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
10565
|
+
return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
|
|
10566
|
+
}
|
|
10567
|
+
function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
|
|
10568
|
+
node = range.startContainer.childNodes[range.startOffset];
|
|
10569
|
+
if (!node) {
|
|
10570
|
+
node = range.startContainer.childNodes[range.startOffset - 1];
|
|
10571
|
+
rightMode = true;
|
|
10572
|
+
}
|
|
10573
|
+
if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
10574
|
+
// test Current method - Cursor in the left of some SPAN
|
|
10575
|
+
if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
|
|
10576
|
+
node = node.previousSibling;
|
|
10577
|
+
}
|
|
10578
|
+
else if (checkChild) {
|
|
10579
|
+
let current = child(node);
|
|
10580
|
+
while (current) {
|
|
10581
|
+
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
|
|
10582
|
+
node = current;
|
|
10583
|
+
break;
|
|
10584
|
+
}
|
|
10585
|
+
current = child(current);
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
}
|
|
10589
|
+
if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
10590
|
+
let leftChild = node, rightChild = node;
|
|
10591
|
+
do {
|
|
10592
|
+
leftChild = leftChild.firstChild;
|
|
10593
|
+
rightChild = rightChild.lastChild;
|
|
10594
|
+
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
|
|
10595
|
+
if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
|
|
10596
|
+
node = leftChild;
|
|
10597
|
+
}
|
|
10598
|
+
}
|
|
10599
|
+
return { node, rightMode };
|
|
10600
|
+
}
|
|
10601
|
+
|
|
10602
|
+
|
|
10549
10603
|
/***/ }),
|
|
10550
10604
|
|
|
10551
10605
|
/***/ 49967:
|
|
@@ -10667,7 +10721,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10667
10721
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10668
10722
|
/* harmony export */ L: function() { return /* binding */ Selection; }
|
|
10669
10723
|
/* harmony export */ });
|
|
10670
|
-
/* harmony import */ var
|
|
10724
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
|
|
10671
10725
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
10672
10726
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
|
|
10673
10727
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
@@ -10677,6 +10731,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10677
10731
|
/* 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__);
|
|
10678
10732
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13088);
|
|
10679
10733
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11232);
|
|
10734
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92185);
|
|
10680
10735
|
/*!
|
|
10681
10736
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10682
10737
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10693,6 +10748,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10693
10748
|
|
|
10694
10749
|
|
|
10695
10750
|
|
|
10751
|
+
|
|
10696
10752
|
class Selection {
|
|
10697
10753
|
constructor(jodit) {
|
|
10698
10754
|
this.jodit = jodit;
|
|
@@ -11075,63 +11131,35 @@ class Selection {
|
|
|
11075
11131
|
* Returns the current element under the cursor inside editor
|
|
11076
11132
|
*/
|
|
11077
11133
|
current(checkChild = true) {
|
|
11078
|
-
if (this.j.getRealMode()
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
}
|
|
11101
|
-
else if (checkChild) {
|
|
11102
|
-
let current = child(node);
|
|
11103
|
-
while (current) {
|
|
11104
|
-
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
|
|
11105
|
-
node = current;
|
|
11106
|
-
break;
|
|
11107
|
-
}
|
|
11108
|
-
current = child(current);
|
|
11109
|
-
}
|
|
11110
|
-
}
|
|
11111
|
-
}
|
|
11112
|
-
if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
11113
|
-
let leftChild = node, rightChild = node;
|
|
11114
|
-
do {
|
|
11115
|
-
leftChild = leftChild.firstChild;
|
|
11116
|
-
rightChild = rightChild.lastChild;
|
|
11117
|
-
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
|
|
11118
|
-
if (leftChild === rightChild &&
|
|
11119
|
-
leftChild &&
|
|
11120
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
|
|
11121
|
-
node = leftChild;
|
|
11122
|
-
}
|
|
11123
|
-
}
|
|
11124
|
-
}
|
|
11125
|
-
// check - cursor inside editor
|
|
11126
|
-
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
11127
|
-
return node;
|
|
11128
|
-
}
|
|
11134
|
+
if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
11135
|
+
return null;
|
|
11136
|
+
}
|
|
11137
|
+
const sel = this.sel;
|
|
11138
|
+
if (!sel || sel.rangeCount === 0) {
|
|
11139
|
+
return null;
|
|
11140
|
+
}
|
|
11141
|
+
const range = sel.getRangeAt(0);
|
|
11142
|
+
let node = range.startContainer;
|
|
11143
|
+
let rightMode = false;
|
|
11144
|
+
const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
|
|
11145
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
|
|
11146
|
+
return node;
|
|
11147
|
+
}
|
|
11148
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
11149
|
+
const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
|
|
11150
|
+
node = ret.node;
|
|
11151
|
+
rightMode = ret.rightMode;
|
|
11152
|
+
}
|
|
11153
|
+
// check - cursor inside editor
|
|
11154
|
+
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
11155
|
+
return node;
|
|
11129
11156
|
}
|
|
11130
11157
|
return null;
|
|
11131
11158
|
}
|
|
11132
11159
|
/**
|
|
11133
11160
|
* Insert element in editor
|
|
11134
11161
|
*
|
|
11162
|
+
* @param node - Node for insert
|
|
11135
11163
|
* @param insertCursorAfter - After insert, cursor will move after element
|
|
11136
11164
|
* @param fireChange - After insert, editor fire change event. You can prevent this behavior
|
|
11137
11165
|
*/
|
|
@@ -11193,6 +11221,7 @@ class Selection {
|
|
|
11193
11221
|
* Inserts in the current cursor position some HTML snippet
|
|
11194
11222
|
*
|
|
11195
11223
|
* @param html - HTML The text to be inserted into the document
|
|
11224
|
+
* @param insertCursorAfter - After insert, cursor will move after element
|
|
11196
11225
|
* @example
|
|
11197
11226
|
* ```javascript
|
|
11198
11227
|
* parent.s.insertHTML('<img src="image.png"/>');
|
|
@@ -11236,6 +11265,7 @@ class Selection {
|
|
|
11236
11265
|
*
|
|
11237
11266
|
* @param url - URL for image, or HTMLImageElement
|
|
11238
11267
|
* @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
|
|
11268
|
+
* @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
|
|
11239
11269
|
*/
|
|
11240
11270
|
insertImage(url, styles = null, defaultWidth = null) {
|
|
11241
11271
|
const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
|
|
@@ -11290,74 +11320,81 @@ class Selection {
|
|
|
11290
11320
|
*/
|
|
11291
11321
|
eachSelection(callback) {
|
|
11292
11322
|
const sel = this.sel;
|
|
11293
|
-
if (sel
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11323
|
+
if (!sel || !sel.rangeCount) {
|
|
11324
|
+
return;
|
|
11325
|
+
}
|
|
11326
|
+
const range = sel.getRangeAt(0);
|
|
11327
|
+
let root = range.commonAncestorContainer;
|
|
11328
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
|
|
11329
|
+
root = root.parentElement;
|
|
11330
|
+
}
|
|
11331
|
+
const nodes = [];
|
|
11332
|
+
const startOffset = range.startOffset;
|
|
11333
|
+
const length = root.childNodes.length;
|
|
11334
|
+
const elementOffset = startOffset < length ? startOffset : length - 1;
|
|
11335
|
+
let start = range.startContainer === this.area
|
|
11336
|
+
? root.childNodes[elementOffset]
|
|
11337
|
+
: range.startContainer;
|
|
11338
|
+
let end = range.endContainer === this.area
|
|
11339
|
+
? root.childNodes[range.endOffset - 1]
|
|
11340
|
+
: range.endContainer;
|
|
11341
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
|
|
11342
|
+
start === range.startContainer &&
|
|
11343
|
+
range.startOffset === start.nodeValue?.length &&
|
|
11344
|
+
start.nextSibling) {
|
|
11345
|
+
start = start.nextSibling;
|
|
11346
|
+
}
|
|
11347
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
|
|
11348
|
+
end === range.endContainer &&
|
|
11349
|
+
range.endOffset === 0 &&
|
|
11350
|
+
end.previousSibling) {
|
|
11351
|
+
end = end.previousSibling;
|
|
11352
|
+
}
|
|
11353
|
+
const checkElm = (node) => {
|
|
11354
|
+
if (node &&
|
|
11355
|
+
node !== root &&
|
|
11356
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
|
|
11357
|
+
!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
|
|
11358
|
+
nodes.push(node);
|
|
11359
|
+
}
|
|
11360
|
+
};
|
|
11361
|
+
checkElm(start);
|
|
11362
|
+
if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
|
|
11363
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
|
|
11364
|
+
checkElm(node);
|
|
11365
|
+
// checks parentElement as well because partial selections are not equal to entire element
|
|
11366
|
+
return (node === end ||
|
|
11367
|
+
(node && node.contains && node.contains(end)));
|
|
11368
|
+
}, root, true, false);
|
|
11369
|
+
}
|
|
11370
|
+
const forEvery = (current) => {
|
|
11371
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
|
|
11372
|
+
return;
|
|
11373
|
+
}
|
|
11374
|
+
if (current.nodeName.match(/^(UL|OL)$/)) {
|
|
11375
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
|
|
11376
|
+
}
|
|
11377
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
|
|
11378
|
+
if (current.firstChild) {
|
|
11379
|
+
current = current.firstChild;
|
|
11340
11380
|
}
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
else {
|
|
11346
|
-
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
11347
|
-
current.appendChild(currentB);
|
|
11348
|
-
current = currentB;
|
|
11349
|
-
}
|
|
11381
|
+
else {
|
|
11382
|
+
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
11383
|
+
current.appendChild(currentB);
|
|
11384
|
+
current = currentB;
|
|
11350
11385
|
}
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11386
|
+
}
|
|
11387
|
+
callback(current);
|
|
11388
|
+
};
|
|
11389
|
+
if (nodes.length === 0) {
|
|
11390
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
|
|
11354
11391
|
nodes.push(start);
|
|
11355
11392
|
}
|
|
11356
|
-
if (
|
|
11393
|
+
if (start.firstChild) {
|
|
11357
11394
|
nodes.push(start.firstChild);
|
|
11358
11395
|
}
|
|
11359
|
-
nodes.forEach(forEvery);
|
|
11360
11396
|
}
|
|
11397
|
+
nodes.forEach(forEvery);
|
|
11361
11398
|
}
|
|
11362
11399
|
/**
|
|
11363
11400
|
* Checks if the cursor is at the end(start) block
|
|
@@ -11384,13 +11421,7 @@ class Selection {
|
|
|
11384
11421
|
this.j.e.fire('isInvisibleForCursor', elm) === true));
|
|
11385
11422
|
// check right offset
|
|
11386
11423
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
|
|
11387
|
-
|
|
11388
|
-
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
11389
|
-
return false;
|
|
11390
|
-
}
|
|
11391
|
-
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
11392
|
-
if (start &&
|
|
11393
|
-
((inv && inv[0].length < offset) || (!inv && offset > 0))) {
|
|
11424
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
|
|
11394
11425
|
return false;
|
|
11395
11426
|
}
|
|
11396
11427
|
}
|
|
@@ -11478,6 +11509,7 @@ class Selection {
|
|
|
11478
11509
|
}
|
|
11479
11510
|
/**
|
|
11480
11511
|
* Set cursor in the node
|
|
11512
|
+
* @param node - Node element
|
|
11481
11513
|
* @param inStart - set cursor in start of element
|
|
11482
11514
|
*/
|
|
11483
11515
|
setCursorIn(node, inStart = false) {
|
|
@@ -11538,6 +11570,7 @@ class Selection {
|
|
|
11538
11570
|
}
|
|
11539
11571
|
/**
|
|
11540
11572
|
* Select node
|
|
11573
|
+
* @param node - Node element
|
|
11541
11574
|
* @param inward - select all inside
|
|
11542
11575
|
*/
|
|
11543
11576
|
select(node, inward = false) {
|
|
@@ -11811,19 +11844,19 @@ class Selection {
|
|
|
11811
11844
|
return this;
|
|
11812
11845
|
}
|
|
11813
11846
|
}
|
|
11814
|
-
(0,
|
|
11847
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11815
11848
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11816
11849
|
], Selection.prototype, "createRange", null);
|
|
11817
|
-
(0,
|
|
11850
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11818
11851
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11819
11852
|
], Selection.prototype, "focus", null);
|
|
11820
|
-
(0,
|
|
11853
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11821
11854
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11822
11855
|
], Selection.prototype, "setCursorAfter", null);
|
|
11823
|
-
(0,
|
|
11856
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11824
11857
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11825
11858
|
], Selection.prototype, "setCursorBefore", null);
|
|
11826
|
-
(0,
|
|
11859
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11827
11860
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11828
11861
|
], Selection.prototype, "setCursorIn", null);
|
|
11829
11862
|
|
|
@@ -15704,17 +15737,23 @@ function findControlType(path, controls) {
|
|
|
15704
15737
|
else {
|
|
15705
15738
|
key = namespaceOrKey;
|
|
15706
15739
|
}
|
|
15707
|
-
const list = store[key]?.list;
|
|
15740
|
+
// const list = store[key]?.list;
|
|
15708
15741
|
return store[key]
|
|
15709
15742
|
? {
|
|
15710
15743
|
name: key,
|
|
15711
|
-
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15712
|
-
list:
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15744
|
+
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15745
|
+
// list: isArray(list)
|
|
15746
|
+
// ? (<Array<string>>list).reduce(
|
|
15747
|
+
// (
|
|
15748
|
+
// acc: IDictionary<string | number>,
|
|
15749
|
+
// k: string | number
|
|
15750
|
+
// ) => {
|
|
15751
|
+
// acc[String(k)] = k;
|
|
15752
|
+
// return acc;
|
|
15753
|
+
// },
|
|
15754
|
+
// {}
|
|
15755
|
+
// )
|
|
15756
|
+
// : list
|
|
15718
15757
|
}
|
|
15719
15758
|
: undefined;
|
|
15720
15759
|
}
|
|
@@ -15731,8 +15770,8 @@ function findControlType(path, controls) {
|
|
|
15731
15770
|
/* harmony export */ });
|
|
15732
15771
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55010);
|
|
15733
15772
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71122);
|
|
15734
|
-
/* harmony import */ var
|
|
15735
|
-
/* harmony import */ var
|
|
15773
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
15774
|
+
/* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68600);
|
|
15736
15775
|
/*!
|
|
15737
15776
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15738
15777
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15752,7 +15791,7 @@ function getStrongControlTypes(items, controls) {
|
|
|
15752
15791
|
const value = items[key] || {};
|
|
15753
15792
|
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
|
|
15754
15793
|
});
|
|
15755
|
-
return elements.map(item => (0,
|
|
15794
|
+
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));
|
|
15756
15795
|
}
|
|
15757
15796
|
|
|
15758
15797
|
|
|
@@ -16841,17 +16880,17 @@ View.defaultOptions = {
|
|
|
16841
16880
|
|
|
16842
16881
|
"use strict";
|
|
16843
16882
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16844
|
-
/* harmony export */ x: function() { return /* reexport safe */
|
|
16883
|
+
/* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
|
|
16845
16884
|
/* harmony export */ });
|
|
16846
16885
|
/* unused harmony export CommitMode */
|
|
16847
|
-
/* harmony import */ var
|
|
16848
|
-
/* harmony import */ var
|
|
16886
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90268);
|
|
16887
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58588);
|
|
16849
16888
|
/* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67259);
|
|
16850
16889
|
/* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53557);
|
|
16851
16890
|
/* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35102);
|
|
16852
16891
|
/* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97186);
|
|
16853
|
-
/* harmony import */ var
|
|
16854
|
-
/* harmony import */ var
|
|
16892
|
+
/* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(459);
|
|
16893
|
+
/* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(22743);
|
|
16855
16894
|
/*!
|
|
16856
16895
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16857
16896
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16862,6 +16901,7 @@ View.defaultOptions = {
|
|
|
16862
16901
|
* @packageDocumentation
|
|
16863
16902
|
* @module jodit
|
|
16864
16903
|
*/
|
|
16904
|
+
// eslint-disable-next-line simple-import-sort/imports
|
|
16865
16905
|
|
|
16866
16906
|
|
|
16867
16907
|
|
|
@@ -16874,7 +16914,7 @@ View.defaultOptions = {
|
|
|
16874
16914
|
|
|
16875
16915
|
// copy constants in Jodit
|
|
16876
16916
|
Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
|
|
16877
|
-
|
|
16917
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
16878
16918
|
});
|
|
16879
16919
|
const esFilter = (key) => key !== '__esModule';
|
|
16880
16920
|
// Icons
|
|
@@ -16889,32 +16929,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
|
|
|
16889
16929
|
.forEach((key) => {
|
|
16890
16930
|
// @ts-ignore
|
|
16891
16931
|
const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
16892
|
-
const name = (0,
|
|
16932
|
+
const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)(module.prototype?.className)
|
|
16893
16933
|
? module.prototype.className()
|
|
16894
16934
|
: key;
|
|
16895
|
-
if (!(0,
|
|
16935
|
+
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
|
|
16896
16936
|
console.warn('Module name must be a string', key);
|
|
16897
16937
|
return;
|
|
16898
16938
|
}
|
|
16899
16939
|
// @ts-ignore
|
|
16900
|
-
|
|
16940
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
|
|
16901
16941
|
});
|
|
16902
16942
|
// Decorators
|
|
16903
16943
|
Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
|
|
16904
16944
|
.filter(esFilter)
|
|
16905
16945
|
.forEach((key) => {
|
|
16906
16946
|
// @ts-ignore
|
|
16907
|
-
|
|
16947
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
16908
16948
|
});
|
|
16909
16949
|
['Confirm', 'Alert', 'Prompt'].forEach((key) => {
|
|
16910
16950
|
// @ts-ignore
|
|
16911
|
-
|
|
16951
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
16912
16952
|
});
|
|
16913
16953
|
// Languages
|
|
16914
|
-
Object.keys(
|
|
16954
|
+
Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
|
|
16915
16955
|
.filter(esFilter)
|
|
16916
16956
|
.forEach((key) => {
|
|
16917
|
-
|
|
16957
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
|
|
16918
16958
|
});
|
|
16919
16959
|
|
|
16920
16960
|
class CommitMode {
|
|
@@ -16937,8 +16977,8 @@ class CommitMode {
|
|
|
16937
16977
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
16938
16978
|
/* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49604);
|
|
16939
16979
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28190);
|
|
16940
|
-
/* harmony import */ var
|
|
16941
|
-
/* harmony import */ var
|
|
16980
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
16981
|
+
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35102);
|
|
16942
16982
|
/*!
|
|
16943
16983
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16944
16984
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16957,7 +16997,7 @@ var Jodit_1;
|
|
|
16957
16997
|
|
|
16958
16998
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
16959
16999
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
16960
|
-
let Jodit = Jodit_1 = class Jodit extends
|
|
17000
|
+
let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
|
|
16961
17001
|
/** @override */
|
|
16962
17002
|
className() {
|
|
16963
17003
|
return 'Jodit';
|
|
@@ -17004,7 +17044,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17004
17044
|
get defaultTimeout() {
|
|
17005
17045
|
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
|
|
17006
17046
|
? this.o.defaultTimeout
|
|
17007
|
-
:
|
|
17047
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
|
|
17008
17048
|
}
|
|
17009
17049
|
/**
|
|
17010
17050
|
* Method wrap usual Has Object in Object helper for prevent deep object merging in options*
|
|
@@ -17030,10 +17070,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17030
17070
|
* Default settings
|
|
17031
17071
|
*/
|
|
17032
17072
|
static get defaultOptions() {
|
|
17033
|
-
return
|
|
17073
|
+
return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
|
|
17034
17074
|
}
|
|
17035
17075
|
get createInside() {
|
|
17036
|
-
return new
|
|
17076
|
+
return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
|
|
17037
17077
|
}
|
|
17038
17078
|
__setPlaceField(field, value) {
|
|
17039
17079
|
if (!this.currentPlace) {
|
|
@@ -17581,8 +17621,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17581
17621
|
const active = this.od.activeElement;
|
|
17582
17622
|
if (active &&
|
|
17583
17623
|
(active === this.iframe ||
|
|
17584
|
-
|
|
17585
|
-
|
|
17624
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
|
|
17625
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
|
|
17586
17626
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
|
|
17587
17627
|
}
|
|
17588
17628
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
|
|
@@ -17734,7 +17774,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17734
17774
|
}
|
|
17735
17775
|
/** @override **/
|
|
17736
17776
|
initOptions(options) {
|
|
17737
|
-
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17777
|
+
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
|
|
17738
17778
|
}
|
|
17739
17779
|
/** @override **/
|
|
17740
17780
|
initOwners() {
|
|
@@ -17779,7 +17819,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17779
17819
|
this.destruct();
|
|
17780
17820
|
throw e;
|
|
17781
17821
|
}
|
|
17782
|
-
this.setStatus(
|
|
17822
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
|
|
17783
17823
|
this.id =
|
|
17784
17824
|
(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') ||
|
|
17785
17825
|
new Date().getTime().toString();
|
|
@@ -17791,7 +17831,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17791
17831
|
}
|
|
17792
17832
|
});
|
|
17793
17833
|
this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
|
|
17794
|
-
this.selection = new
|
|
17834
|
+
this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
|
|
17795
17835
|
const beforeInitHookResult = this.beforeInitHook();
|
|
17796
17836
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
|
|
17797
17837
|
if (this.isInDestruct) {
|
|
@@ -17815,7 +17855,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17815
17855
|
this.e.fire('afterInit', this);
|
|
17816
17856
|
}
|
|
17817
17857
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
|
|
17818
|
-
this.setStatus(
|
|
17858
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
|
|
17819
17859
|
this.e.fire('afterConstructor', this);
|
|
17820
17860
|
};
|
|
17821
17861
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
|
|
@@ -17831,7 +17871,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17831
17871
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
|
|
17832
17872
|
const name = attr.name;
|
|
17833
17873
|
let value = attr.value;
|
|
17834
|
-
if (
|
|
17874
|
+
if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
|
|
17835
17875
|
(!options || options[name] === undefined)) {
|
|
17836
17876
|
if (['readonly', 'disabled'].indexOf(name) !== -1) {
|
|
17837
17877
|
value = value === '' || value === 'true';
|
|
@@ -17899,11 +17939,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17899
17939
|
element,
|
|
17900
17940
|
container,
|
|
17901
17941
|
workplace,
|
|
17902
|
-
statusbar: new
|
|
17942
|
+
statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
|
|
17903
17943
|
options: this.isReady
|
|
17904
|
-
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17944
|
+
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
|
|
17905
17945
|
: this.options,
|
|
17906
|
-
history: new
|
|
17946
|
+
history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
|
|
17907
17947
|
editorWindow: this.ow
|
|
17908
17948
|
};
|
|
17909
17949
|
this.__elementToPlace.set(editor, currentPlace);
|
|
@@ -17994,7 +18034,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17994
18034
|
return;
|
|
17995
18035
|
}
|
|
17996
18036
|
if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
|
|
17997
|
-
|
|
18037
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
|
|
17998
18038
|
}
|
|
17999
18039
|
addClassNames(this.o.editorClassName, this.editor);
|
|
18000
18040
|
if (this.o.style) {
|
|
@@ -18084,7 +18124,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
18084
18124
|
if (this.isInDestruct) {
|
|
18085
18125
|
return;
|
|
18086
18126
|
}
|
|
18087
|
-
this.setStatus(
|
|
18127
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
|
|
18088
18128
|
this.__elementToPlace.clear();
|
|
18089
18129
|
this.storage.clear();
|
|
18090
18130
|
this.buffer.clear();
|
|
@@ -18125,17 +18165,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
18125
18165
|
this.e.off(container);
|
|
18126
18166
|
this.e.off(element);
|
|
18127
18167
|
this.e.off(editor);
|
|
18128
|
-
|
|
18129
|
-
|
|
18168
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
|
|
18169
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
|
|
18130
18170
|
if (container !== element) {
|
|
18131
|
-
|
|
18171
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
|
|
18132
18172
|
}
|
|
18133
18173
|
Object.defineProperty(element, 'component', {
|
|
18134
18174
|
enumerable: false,
|
|
18135
18175
|
configurable: true,
|
|
18136
18176
|
value: null
|
|
18137
18177
|
});
|
|
18138
|
-
|
|
18178
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
|
|
18139
18179
|
// inline mode
|
|
18140
18180
|
if (container === element) {
|
|
18141
18181
|
element.innerHTML = buffer;
|
|
@@ -18157,7 +18197,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
18157
18197
|
Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
|
|
18158
18198
|
Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
18159
18199
|
Jodit.core = {
|
|
18160
|
-
Plugin:
|
|
18200
|
+
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
18161
18201
|
};
|
|
18162
18202
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
18163
18203
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
@@ -20430,16 +20470,16 @@ async function loadTree(fb) {
|
|
|
20430
20470
|
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
|
|
20431
20471
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
|
|
20432
20472
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
|
|
20433
|
-
/* harmony import */ var
|
|
20473
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91288);
|
|
20474
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83148);
|
|
20434
20475
|
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
|
|
20435
|
-
/* harmony import */ var
|
|
20436
|
-
/* harmony import */ var
|
|
20437
|
-
/* harmony import */ var
|
|
20438
|
-
/* harmony import */ var
|
|
20439
|
-
/* harmony import */ var
|
|
20440
|
-
/* harmony import */ var
|
|
20441
|
-
/* harmony import */ var
|
|
20442
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
|
|
20476
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(64164);
|
|
20477
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50067);
|
|
20478
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25430);
|
|
20479
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34255);
|
|
20480
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18714);
|
|
20481
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24538);
|
|
20482
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96243);
|
|
20443
20483
|
/*!
|
|
20444
20484
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20445
20485
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20473,7 +20513,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20473
20513
|
return 'FileBrowser';
|
|
20474
20514
|
}
|
|
20475
20515
|
get dataProvider() {
|
|
20476
|
-
return (0,
|
|
20516
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20477
20517
|
}
|
|
20478
20518
|
// eslint-disable-next-line no-unused-vars
|
|
20479
20519
|
onSelect(callback) {
|
|
@@ -20587,7 +20627,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20587
20627
|
this.__updateToolbarButtons();
|
|
20588
20628
|
this._dialog.open(this.browser, header);
|
|
20589
20629
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
20590
|
-
(0,
|
|
20630
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
|
|
20591
20631
|
.then(resolve, reject)
|
|
20592
20632
|
.finally(() => {
|
|
20593
20633
|
if (this.isInDestruct) {
|
|
@@ -20621,7 +20661,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20621
20661
|
});
|
|
20622
20662
|
}
|
|
20623
20663
|
initUploader(editor) {
|
|
20624
|
-
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
20664
|
+
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);
|
|
20625
20665
|
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
20626
20666
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
20627
20667
|
self.uploader
|
|
@@ -20641,11 +20681,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20641
20681
|
super(options);
|
|
20642
20682
|
this.browser = this.c.div(this.componentName);
|
|
20643
20683
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
20644
|
-
this.tree = new
|
|
20645
|
-
this.files = new
|
|
20684
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
|
|
20685
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
|
|
20646
20686
|
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
20647
20687
|
currentPath: '',
|
|
20648
|
-
currentSource:
|
|
20688
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
20649
20689
|
currentBaseUrl: '',
|
|
20650
20690
|
activeElements: [],
|
|
20651
20691
|
elements: [],
|
|
@@ -20675,7 +20715,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20675
20715
|
this.__prevButtons = [];
|
|
20676
20716
|
this.attachEvents(options);
|
|
20677
20717
|
const self = this;
|
|
20678
|
-
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
20718
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
|
|
20679
20719
|
self.browser.component = this;
|
|
20680
20720
|
self.container = self.browser;
|
|
20681
20721
|
if (self.o.showFoldersPanel) {
|
|
@@ -20683,9 +20723,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20683
20723
|
}
|
|
20684
20724
|
self.browser.appendChild(self.files.container);
|
|
20685
20725
|
self.browser.appendChild(self.status_line);
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20726
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
|
|
20727
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
|
|
20728
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
|
|
20689
20729
|
const keys = [
|
|
20690
20730
|
'getLocalFileByUrl',
|
|
20691
20731
|
'crop',
|
|
@@ -21356,10 +21396,10 @@ class Command {
|
|
|
21356
21396
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
21357
21397
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
21358
21398
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
|
|
21399
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
21359
21400
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22180);
|
|
21360
|
-
/* harmony import */ var
|
|
21401
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
|
|
21361
21402
|
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98189);
|
|
21362
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
21363
21403
|
/*!
|
|
21364
21404
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21365
21405
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21372,7 +21412,7 @@ class Command {
|
|
|
21372
21412
|
|
|
21373
21413
|
|
|
21374
21414
|
|
|
21375
|
-
|
|
21415
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
|
|
21376
21416
|
enable: true,
|
|
21377
21417
|
maxHistoryLength: Infinity,
|
|
21378
21418
|
timeout: 1000
|
|
@@ -21423,7 +21463,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
21423
21463
|
set startValue(value) {
|
|
21424
21464
|
this.__startValue = value;
|
|
21425
21465
|
}
|
|
21426
|
-
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new
|
|
21466
|
+
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)) {
|
|
21427
21467
|
super(editor);
|
|
21428
21468
|
this.updateTick = 0;
|
|
21429
21469
|
this.__stack = stack;
|
|
@@ -21486,7 +21526,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
21486
21526
|
*/
|
|
21487
21527
|
updateStack(replace = false) {
|
|
21488
21528
|
const newValue = this.snapshot.make();
|
|
21489
|
-
if (!
|
|
21529
|
+
if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
|
|
21490
21530
|
const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
|
|
21491
21531
|
if (replace) {
|
|
21492
21532
|
const command = this.__stack.current();
|
|
@@ -21819,11 +21859,11 @@ class Stack {
|
|
|
21819
21859
|
|
|
21820
21860
|
"use strict";
|
|
21821
21861
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
21822
|
-
/* harmony import */ var
|
|
21823
|
-
/* harmony import */ var
|
|
21824
|
-
/* harmony import */ var
|
|
21825
|
-
/* harmony import */ var
|
|
21826
|
-
/* harmony import */ var
|
|
21862
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
21863
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83904);
|
|
21864
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
21865
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15582);
|
|
21866
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
21827
21867
|
/*!
|
|
21828
21868
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21829
21869
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21833,7 +21873,7 @@ class Stack {
|
|
|
21833
21873
|
|
|
21834
21874
|
|
|
21835
21875
|
|
|
21836
|
-
|
|
21876
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
|
|
21837
21877
|
min_width: 20,
|
|
21838
21878
|
min_height: 20,
|
|
21839
21879
|
closeAfterSave: false,
|
|
@@ -21848,7 +21888,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
|
|
|
21848
21888
|
cropDefaultWidth: '70%',
|
|
21849
21889
|
cropDefaultHeight: '70%'
|
|
21850
21890
|
};
|
|
21851
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (
|
|
21891
|
+
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()));
|
|
21852
21892
|
|
|
21853
21893
|
|
|
21854
21894
|
/***/ }),
|
|
@@ -21867,9 +21907,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
|
|
|
21867
21907
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33465);
|
|
21868
21908
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
21869
21909
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64962);
|
|
21870
|
-
/* harmony import */ var
|
|
21871
|
-
/* harmony import */ var
|
|
21872
|
-
/* harmony import */ var
|
|
21910
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
21911
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15546);
|
|
21912
|
+
/* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73898);
|
|
21873
21913
|
/*!
|
|
21874
21914
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21875
21915
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22329,7 +22369,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
22329
22369
|
this.options =
|
|
22330
22370
|
editor && editor.o && editor.o.imageeditor
|
|
22331
22371
|
? editor.o.imageeditor
|
|
22332
|
-
:
|
|
22372
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
|
|
22333
22373
|
const o = this.options;
|
|
22334
22374
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
22335
22375
|
this.cropUseRatio = o.cropUseRatio;
|
|
@@ -22339,7 +22379,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
22339
22379
|
saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
|
|
22340
22380
|
};
|
|
22341
22381
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
22342
|
-
this.editor = (0,
|
|
22382
|
+
this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
|
|
22343
22383
|
const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
|
|
22344
22384
|
this.resize_box = resizeBox;
|
|
22345
22385
|
this.crop_box = cropBox;
|
|
@@ -23089,6 +23129,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23089
23129
|
}
|
|
23090
23130
|
/**
|
|
23091
23131
|
* Generate formal table martix columns*rows
|
|
23132
|
+
* @param table - Working table
|
|
23092
23133
|
* @param callback - if return false cycle break
|
|
23093
23134
|
*/
|
|
23094
23135
|
formalMatrix(table, callback) {
|
|
@@ -23157,7 +23198,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23157
23198
|
* @param line - Insert a new line after/before this
|
|
23158
23199
|
* line contains the selected cell
|
|
23159
23200
|
* @param after - Insert a new line after line contains the selected cell
|
|
23160
|
-
* @param create - Instance of Create class
|
|
23161
23201
|
*/
|
|
23162
23202
|
appendRow(table, line, after) {
|
|
23163
23203
|
return Table.__appendRow(table, line, after, this.j.createInside);
|
|
@@ -23326,13 +23366,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23326
23366
|
return Table.__getSelectedBound(table, selectedCells);
|
|
23327
23367
|
}
|
|
23328
23368
|
static __normalizeTable(table) {
|
|
23329
|
-
let i, j, min, not;
|
|
23330
23369
|
const __marked = [], box = Table.__formalMatrix(table);
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
for (
|
|
23370
|
+
Table.__removeExtraColspans(box, __marked);
|
|
23371
|
+
Table.__removeExtraRowspans(box, __marked);
|
|
23372
|
+
// remove rowspans and colspans equal 1 and empty class
|
|
23373
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23374
|
+
for (let j = 0; j < box[i].length; j += 1) {
|
|
23375
|
+
if (box[i][j] === undefined) {
|
|
23376
|
+
continue; // broken table
|
|
23377
|
+
}
|
|
23378
|
+
if (box[i][j].hasAttribute('rowspan') &&
|
|
23379
|
+
box[i][j].rowSpan === 1) {
|
|
23380
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
23381
|
+
}
|
|
23382
|
+
if (box[i][j].hasAttribute('colspan') &&
|
|
23383
|
+
box[i][j].colSpan === 1) {
|
|
23384
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
23385
|
+
}
|
|
23386
|
+
if (box[i][j].hasAttribute('class') &&
|
|
23387
|
+
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
23388
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
23389
|
+
}
|
|
23390
|
+
}
|
|
23391
|
+
}
|
|
23392
|
+
Table.__unmark(__marked);
|
|
23393
|
+
}
|
|
23394
|
+
static __removeExtraColspans(box, __marked) {
|
|
23395
|
+
for (let j = 0; j < box[0].length; j += 1) {
|
|
23396
|
+
let min = 1000000;
|
|
23397
|
+
let not = false;
|
|
23398
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23336
23399
|
if (box[i][j] === undefined) {
|
|
23337
23400
|
continue; // broken table
|
|
23338
23401
|
}
|
|
@@ -23343,7 +23406,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23343
23406
|
min = Math.min(min, box[i][j].colSpan);
|
|
23344
23407
|
}
|
|
23345
23408
|
if (!not) {
|
|
23346
|
-
for (i = 0; i < box.length; i += 1) {
|
|
23409
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
23347
23410
|
if (box[i][j] === undefined) {
|
|
23348
23411
|
continue; // broken table
|
|
23349
23412
|
}
|
|
@@ -23351,10 +23414,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23351
23414
|
}
|
|
23352
23415
|
}
|
|
23353
23416
|
}
|
|
23354
|
-
|
|
23417
|
+
}
|
|
23418
|
+
static __removeExtraRowspans(box, marked) {
|
|
23419
|
+
let i = 0;
|
|
23420
|
+
let j = 0;
|
|
23355
23421
|
for (i = 0; i < box.length; i += 1) {
|
|
23356
|
-
min = 1000000;
|
|
23357
|
-
not = false;
|
|
23422
|
+
let min = 1000000;
|
|
23423
|
+
let not = false;
|
|
23358
23424
|
for (j = 0; j < box[i].length; j += 1) {
|
|
23359
23425
|
if (box[i][j] === undefined) {
|
|
23360
23426
|
continue; // broken table
|
|
@@ -23370,31 +23436,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23370
23436
|
if (box[i][j] === undefined) {
|
|
23371
23437
|
continue; // broken table
|
|
23372
23438
|
}
|
|
23373
|
-
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1,
|
|
23374
|
-
}
|
|
23375
|
-
}
|
|
23376
|
-
}
|
|
23377
|
-
// remove rowspans and colspans equal 1 and empty class
|
|
23378
|
-
for (i = 0; i < box.length; i += 1) {
|
|
23379
|
-
for (j = 0; j < box[i].length; j += 1) {
|
|
23380
|
-
if (box[i][j] === undefined) {
|
|
23381
|
-
continue; // broken table
|
|
23382
|
-
}
|
|
23383
|
-
if (box[i][j].hasAttribute('rowspan') &&
|
|
23384
|
-
box[i][j].rowSpan === 1) {
|
|
23385
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
23386
|
-
}
|
|
23387
|
-
if (box[i][j].hasAttribute('colspan') &&
|
|
23388
|
-
box[i][j].colSpan === 1) {
|
|
23389
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
23390
|
-
}
|
|
23391
|
-
if (box[i][j].hasAttribute('class') &&
|
|
23392
|
-
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
23393
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
23439
|
+
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
|
|
23394
23440
|
}
|
|
23395
23441
|
}
|
|
23396
23442
|
}
|
|
23397
|
-
Table.__unmark(__marked);
|
|
23398
23443
|
}
|
|
23399
23444
|
/**
|
|
23400
23445
|
* Try recalculate all coluns and rows after change
|
|
@@ -23750,7 +23795,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23750
23795
|
}
|
|
23751
23796
|
createContainer() {
|
|
23752
23797
|
const cn = this.componentName;
|
|
23753
|
-
const container = this.j.c.span(cn)
|
|
23798
|
+
const container = this.j.c.span(cn);
|
|
23799
|
+
const button = super.createContainer();
|
|
23754
23800
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
|
|
23755
23801
|
button.classList.remove(cn);
|
|
23756
23802
|
button.classList.add(cn + '__button');
|
|
@@ -24139,8 +24185,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
24139
24185
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24140
24186
|
/* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
|
|
24141
24187
|
/* harmony export */ });
|
|
24142
|
-
/* harmony import */ var
|
|
24188
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
24143
24189
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53557);
|
|
24190
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47903);
|
|
24144
24191
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
24145
24192
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72463);
|
|
24146
24193
|
/*!
|
|
@@ -24153,6 +24200,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
24153
24200
|
|
|
24154
24201
|
|
|
24155
24202
|
|
|
24203
|
+
|
|
24156
24204
|
let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
|
|
24157
24205
|
className() {
|
|
24158
24206
|
return 'ToolbarSelect';
|
|
@@ -24170,13 +24218,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
|
|
|
24170
24218
|
const keys = Object.keys(list);
|
|
24171
24219
|
key = keys[0];
|
|
24172
24220
|
}
|
|
24173
|
-
const text = (list[key.toString()] || key).toString();
|
|
24221
|
+
const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
|
|
24174
24222
|
this.state.text =
|
|
24175
24223
|
this.control.textTemplate?.(this.jodit, text) ?? text;
|
|
24176
24224
|
}
|
|
24177
24225
|
}
|
|
24178
24226
|
};
|
|
24179
|
-
ToolbarSelect = (0,
|
|
24227
|
+
ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24180
24228
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
24181
24229
|
], ToolbarSelect);
|
|
24182
24230
|
|
|
@@ -24306,7 +24354,7 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24306
24354
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
24307
24355
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
24308
24356
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24309
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)()
|
|
24357
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)(ctx => ctx.j.defaultTimeout, true)
|
|
24310
24358
|
], ToolbarCollection.prototype, "update", null);
|
|
24311
24359
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
24312
24360
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
|
|
@@ -24812,34 +24860,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24812
24860
|
}
|
|
24813
24861
|
const promises = [];
|
|
24814
24862
|
if (o.insertImageAsBase64URI) {
|
|
24815
|
-
|
|
24816
|
-
for (i = 0; i < fileList.length; i += 1) {
|
|
24817
|
-
file = fileList[i];
|
|
24818
|
-
if (file && file.type) {
|
|
24819
|
-
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24820
|
-
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24821
|
-
if (o.imagesExtensions.includes(extension)) {
|
|
24822
|
-
const reader = new FileReader();
|
|
24823
|
-
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24824
|
-
reader.onerror = reject;
|
|
24825
|
-
reader.onloadend = () => {
|
|
24826
|
-
const resp = {
|
|
24827
|
-
baseurl: '',
|
|
24828
|
-
files: [reader.result],
|
|
24829
|
-
isImages: [true]
|
|
24830
|
-
};
|
|
24831
|
-
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24832
|
-
? handlerSuccess
|
|
24833
|
-
: o.defaultHandlerSuccess;
|
|
24834
|
-
handler.call(uploader, resp);
|
|
24835
|
-
resolve(resp);
|
|
24836
|
-
};
|
|
24837
|
-
reader.readAsDataURL(file);
|
|
24838
|
-
}));
|
|
24839
|
-
fileList[i] = null;
|
|
24840
|
-
}
|
|
24841
|
-
}
|
|
24842
|
-
}
|
|
24863
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
24843
24864
|
}
|
|
24844
24865
|
fileList = fileList.filter(a => a);
|
|
24845
24866
|
if (fileList.length) {
|
|
@@ -24850,7 +24871,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24850
24871
|
for (let i = 0; i < fileList.length; i += 1) {
|
|
24851
24872
|
file = fileList[i];
|
|
24852
24873
|
if (file) {
|
|
24853
|
-
const hasRealExtension =
|
|
24874
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
24854
24875
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24855
24876
|
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
24856
24877
|
let newName = fileList[i].name ||
|
|
@@ -24899,6 +24920,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24899
24920
|
}
|
|
24900
24921
|
return Promise.all(promises);
|
|
24901
24922
|
}
|
|
24923
|
+
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
24924
|
+
let file, i;
|
|
24925
|
+
for (i = 0; i < fileList.length; i += 1) {
|
|
24926
|
+
file = fileList[i];
|
|
24927
|
+
if (file && file.type) {
|
|
24928
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24929
|
+
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24930
|
+
if (!imagesExtensions.includes(extension)) {
|
|
24931
|
+
continue;
|
|
24932
|
+
}
|
|
24933
|
+
const reader = new FileReader();
|
|
24934
|
+
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24935
|
+
reader.onerror = reject;
|
|
24936
|
+
reader.onloadend = () => {
|
|
24937
|
+
const resp = {
|
|
24938
|
+
baseurl: '',
|
|
24939
|
+
files: [reader.result],
|
|
24940
|
+
isImages: [true]
|
|
24941
|
+
};
|
|
24942
|
+
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24943
|
+
? handlerSuccess
|
|
24944
|
+
: defaultHandlerSuccess;
|
|
24945
|
+
handler.call(uploader, resp);
|
|
24946
|
+
resolve(resp);
|
|
24947
|
+
};
|
|
24948
|
+
reader.readAsDataURL(file);
|
|
24949
|
+
}));
|
|
24950
|
+
fileList[i] = null;
|
|
24951
|
+
}
|
|
24952
|
+
}
|
|
24953
|
+
}
|
|
24902
24954
|
|
|
24903
24955
|
|
|
24904
24956
|
/***/ }),
|
|
@@ -25004,9 +25056,9 @@ function send(uploader, data) {
|
|
|
25004
25056
|
/* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
|
|
25005
25057
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
25006
25058
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25007
|
-
/* harmony import */ var
|
|
25008
|
-
/* harmony import */ var
|
|
25009
|
-
/* harmony import */ var
|
|
25059
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
25060
|
+
/* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20431);
|
|
25061
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50999);
|
|
25010
25062
|
/*!
|
|
25011
25063
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25012
25064
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25078,14 +25130,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25078
25130
|
}
|
|
25079
25131
|
};
|
|
25080
25132
|
// send data on server
|
|
25081
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
25082
|
-
(0,
|
|
25133
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
|
|
25134
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
25083
25135
|
return false;
|
|
25084
25136
|
}
|
|
25085
25137
|
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
25086
|
-
return (0,
|
|
25138
|
+
return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
25087
25139
|
}
|
|
25088
|
-
if ((0,
|
|
25140
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
|
|
25089
25141
|
const { items } = cData;
|
|
25090
25142
|
for (i = 0; i < items.length; i += 1) {
|
|
25091
25143
|
if (items[i].kind === 'file' &&
|
|
@@ -25096,7 +25148,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25096
25148
|
extension = mime[1]
|
|
25097
25149
|
? mime[1].toLowerCase()
|
|
25098
25150
|
: '';
|
|
25099
|
-
(0,
|
|
25151
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
25100
25152
|
}
|
|
25101
25153
|
e.preventDefault();
|
|
25102
25154
|
break;
|
|
@@ -25119,30 +25171,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25119
25171
|
e.preventDefault();
|
|
25120
25172
|
})
|
|
25121
25173
|
.on(form, 'dragover', (event) => {
|
|
25122
|
-
if ((0,
|
|
25123
|
-
(0,
|
|
25174
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
|
|
25175
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
|
|
25124
25176
|
form.classList.add('jodit_drag_hover');
|
|
25125
25177
|
event.preventDefault();
|
|
25126
25178
|
}
|
|
25127
25179
|
})
|
|
25128
25180
|
.on(form, 'dragend dragleave', (event) => {
|
|
25129
25181
|
form.classList.remove('jodit_drag_hover');
|
|
25130
|
-
if ((0,
|
|
25182
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
25131
25183
|
event.preventDefault();
|
|
25132
25184
|
}
|
|
25133
25185
|
})
|
|
25134
25186
|
.on(form, 'drop', (event) => {
|
|
25135
25187
|
form.classList.remove('jodit_drag_hover');
|
|
25136
|
-
if ((0,
|
|
25188
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
25137
25189
|
event.preventDefault();
|
|
25138
25190
|
event.stopImmediatePropagation();
|
|
25139
|
-
(0,
|
|
25191
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
25140
25192
|
}
|
|
25141
25193
|
});
|
|
25142
25194
|
const inputFile = form.querySelector('input[type=file]');
|
|
25143
25195
|
if (inputFile) {
|
|
25144
25196
|
self.j.e.on(inputFile, 'change', () => {
|
|
25145
|
-
(0,
|
|
25197
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
|
|
25146
25198
|
.then(() => {
|
|
25147
25199
|
inputFile.value = '';
|
|
25148
25200
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
@@ -25162,7 +25214,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25162
25214
|
const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
|
|
25163
25215
|
? handlerError
|
|
25164
25216
|
: o.defaultHandlerError;
|
|
25165
|
-
(0,
|
|
25217
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
|
|
25166
25218
|
action: 'fileUploadRemote',
|
|
25167
25219
|
url
|
|
25168
25220
|
})
|
|
@@ -25182,11 +25234,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
25182
25234
|
super(editor);
|
|
25183
25235
|
this.path = '';
|
|
25184
25236
|
this.source = 'default';
|
|
25185
|
-
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(
|
|
25237
|
+
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 : {}));
|
|
25186
25238
|
}
|
|
25187
25239
|
destruct() {
|
|
25188
25240
|
this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
25189
|
-
const instances =
|
|
25241
|
+
const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
|
|
25190
25242
|
if (instances) {
|
|
25191
25243
|
instances.forEach(ajax => {
|
|
25192
25244
|
try {
|
|
@@ -25615,9 +25667,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25615
25667
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
25616
25668
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
25617
25669
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
25618
|
-
/* harmony import */ var
|
|
25619
|
-
/* harmony import */ var
|
|
25620
|
-
/* harmony import */ var
|
|
25670
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
25671
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46891);
|
|
25672
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
25621
25673
|
/*!
|
|
25622
25674
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25623
25675
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25631,7 +25683,7 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
25631
25683
|
|
|
25632
25684
|
|
|
25633
25685
|
|
|
25634
|
-
|
|
25686
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
|
|
25635
25687
|
exec: (editor) => {
|
|
25636
25688
|
const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
|
|
25637
25689
|
dialog
|
|
@@ -25667,7 +25719,7 @@ function about(editor) {
|
|
|
25667
25719
|
});
|
|
25668
25720
|
}
|
|
25669
25721
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
|
|
25670
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (
|
|
25722
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
25671
25723
|
|
|
25672
25724
|
|
|
25673
25725
|
/***/ }),
|
|
@@ -25910,9 +25962,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25910
25962
|
|
|
25911
25963
|
"use strict";
|
|
25912
25964
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
25913
|
-
/* harmony import */ var
|
|
25914
|
-
/* harmony import */ var
|
|
25915
|
-
/* harmony import */ var
|
|
25965
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
25966
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3882);
|
|
25967
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25916
25968
|
/*!
|
|
25917
25969
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25918
25970
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25921,9 +25973,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25921
25973
|
|
|
25922
25974
|
|
|
25923
25975
|
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25976
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
|
|
25977
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
|
|
25978
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
|
|
25927
25979
|
'table',
|
|
25928
25980
|
'iframe',
|
|
25929
25981
|
'img',
|
|
@@ -25931,8 +25983,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
|
|
|
25931
25983
|
'pre',
|
|
25932
25984
|
'jodit'
|
|
25933
25985
|
];
|
|
25934
|
-
|
|
25935
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (
|
|
25986
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
|
|
25987
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25936
25988
|
|
|
25937
25989
|
|
|
25938
25990
|
/***/ }),
|
|
@@ -26070,11 +26122,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
|
|
|
26070
26122
|
|
|
26071
26123
|
"use strict";
|
|
26072
26124
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
26073
|
-
/* harmony import */ var
|
|
26074
|
-
/* harmony import */ var
|
|
26075
|
-
/* harmony import */ var
|
|
26076
|
-
/* harmony import */ var
|
|
26077
|
-
/* harmony import */ var
|
|
26125
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
26126
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15627);
|
|
26127
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
26128
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41500);
|
|
26129
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
26078
26130
|
/*!
|
|
26079
26131
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26080
26132
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26115,10 +26167,10 @@ const aiAssistantDefaults = {
|
|
|
26115
26167
|
aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
|
|
26116
26168
|
aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
|
|
26117
26169
|
};
|
|
26118
|
-
|
|
26119
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (
|
|
26120
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (
|
|
26121
|
-
|
|
26170
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
|
|
26171
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
26172
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
26173
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
|
|
26122
26174
|
isDisabled(editor) {
|
|
26123
26175
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
26124
26176
|
},
|
|
@@ -26156,7 +26208,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
|
|
|
26156
26208
|
editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
|
|
26157
26209
|
}
|
|
26158
26210
|
};
|
|
26159
|
-
|
|
26211
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
|
|
26160
26212
|
isDisabled(editor) {
|
|
26161
26213
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
26162
26214
|
},
|
|
@@ -26517,7 +26569,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
26517
26569
|
if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
|
|
26518
26570
|
return false;
|
|
26519
26571
|
}
|
|
26520
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .
|
|
26572
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26521
26573
|
if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
|
|
26522
26574
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
|
|
26523
26575
|
func(jodit, fakeNode, backspace, mode)) {
|
|
@@ -26777,19 +26829,12 @@ function checkNotCollapsed(jodit) {
|
|
|
26777
26829
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26778
26830
|
const step = backspace ? -1 : 1;
|
|
26779
26831
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
26780
|
-
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace)
|
|
26781
|
-
let
|
|
26782
|
-
|
|
26783
|
-
|
|
26784
|
-
if (!nextSibling &&
|
|
26785
|
-
sibling.parentNode &&
|
|
26786
|
-
sibling.parentNode !== jodit.editor) {
|
|
26787
|
-
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
|
|
26788
|
-
}
|
|
26789
|
-
return nextSibling;
|
|
26790
|
-
};
|
|
26832
|
+
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
|
|
26833
|
+
let removeNeighbor = null;
|
|
26834
|
+
let charRemoved = false;
|
|
26835
|
+
let removed;
|
|
26791
26836
|
if (!sibling) {
|
|
26792
|
-
sibling = getNextInlineSibling(fakeNode);
|
|
26837
|
+
sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
|
|
26793
26838
|
}
|
|
26794
26839
|
while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
|
|
26795
26840
|
while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
|
|
@@ -26799,57 +26844,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26799
26844
|
break;
|
|
26800
26845
|
}
|
|
26801
26846
|
if (sibling.nodeValue?.length) {
|
|
26802
|
-
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26807
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26808
|
-
index += step;
|
|
26809
|
-
}
|
|
26810
|
-
}
|
|
26811
|
-
removed = value[index];
|
|
26812
|
-
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26813
|
-
index += step;
|
|
26814
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26815
|
-
index += step;
|
|
26816
|
-
}
|
|
26817
|
-
index += backspace ? 1 : -1;
|
|
26818
|
-
}
|
|
26819
|
-
if (backspace && index < 0) {
|
|
26820
|
-
value = [];
|
|
26821
|
-
}
|
|
26822
|
-
else {
|
|
26823
|
-
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26824
|
-
}
|
|
26825
|
-
if (!anotherSibling ||
|
|
26826
|
-
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26827
|
-
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
26828
|
-
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26829
|
-
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26830
|
-
if (value[i] === ' ') {
|
|
26831
|
-
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26832
|
-
}
|
|
26833
|
-
else {
|
|
26834
|
-
break;
|
|
26835
|
-
}
|
|
26836
|
-
}
|
|
26847
|
+
removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
|
|
26848
|
+
if (!sibling.nodeValue.length &&
|
|
26849
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
|
|
26850
|
+
sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
|
|
26837
26851
|
}
|
|
26838
|
-
sibling.nodeValue = value.join('');
|
|
26839
26852
|
}
|
|
26840
26853
|
if (!sibling.nodeValue?.length) {
|
|
26841
26854
|
removeNeighbor = sibling;
|
|
26842
26855
|
}
|
|
26843
26856
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26857
|
+
checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
|
|
26844
26858
|
charRemoved = true;
|
|
26845
|
-
(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);
|
|
26846
|
-
if (mode === 'sentence' ||
|
|
26847
|
-
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26848
|
-
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26849
|
-
}
|
|
26850
26859
|
break;
|
|
26851
26860
|
}
|
|
26852
|
-
const nextSibling = getNextInlineSibling(sibling);
|
|
26861
|
+
const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
|
|
26853
26862
|
if (removeNeighbor) {
|
|
26854
26863
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
|
|
26855
26864
|
removeNeighbor = null;
|
|
@@ -26871,6 +26880,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26871
26880
|
}
|
|
26872
26881
|
return charRemoved;
|
|
26873
26882
|
}
|
|
26883
|
+
function getNextInlineSibling(sibling, backspace, root) {
|
|
26884
|
+
let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
|
|
26885
|
+
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
26886
|
+
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
|
|
26887
|
+
}
|
|
26888
|
+
return nextSibling;
|
|
26889
|
+
}
|
|
26874
26890
|
/**
|
|
26875
26891
|
* Helper removes all empty inline parents
|
|
26876
26892
|
*/
|
|
@@ -26895,6 +26911,56 @@ function addBRInsideEmptyBlock(jodit, node) {
|
|
|
26895
26911
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
|
|
26896
26912
|
}
|
|
26897
26913
|
}
|
|
26914
|
+
function tryRemoveChar(sibling, backspace, step, anotherSibling) {
|
|
26915
|
+
// For Unicode escapes
|
|
26916
|
+
let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
|
|
26917
|
+
const length = value.length;
|
|
26918
|
+
let index = backspace ? length - 1 : 0;
|
|
26919
|
+
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26920
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26921
|
+
index += step;
|
|
26922
|
+
}
|
|
26923
|
+
}
|
|
26924
|
+
const removed = value[index];
|
|
26925
|
+
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26926
|
+
index += step;
|
|
26927
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26928
|
+
index += step;
|
|
26929
|
+
}
|
|
26930
|
+
index += backspace ? 1 : -1;
|
|
26931
|
+
}
|
|
26932
|
+
if (backspace && index < 0) {
|
|
26933
|
+
value = [];
|
|
26934
|
+
}
|
|
26935
|
+
else {
|
|
26936
|
+
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26937
|
+
}
|
|
26938
|
+
replaceSpaceOnNBSP(anotherSibling, backspace, value);
|
|
26939
|
+
sibling.nodeValue = value.join('');
|
|
26940
|
+
return removed;
|
|
26941
|
+
}
|
|
26942
|
+
function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
|
|
26943
|
+
if (!anotherSibling ||
|
|
26944
|
+
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26945
|
+
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
26946
|
+
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26947
|
+
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26948
|
+
if (value[i] === ' ') {
|
|
26949
|
+
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26950
|
+
}
|
|
26951
|
+
else {
|
|
26952
|
+
break;
|
|
26953
|
+
}
|
|
26954
|
+
}
|
|
26955
|
+
}
|
|
26956
|
+
}
|
|
26957
|
+
function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
|
|
26958
|
+
(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);
|
|
26959
|
+
if (mode === 'sentence' ||
|
|
26960
|
+
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26961
|
+
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26962
|
+
}
|
|
26963
|
+
}
|
|
26898
26964
|
|
|
26899
26965
|
|
|
26900
26966
|
/***/ }),
|
|
@@ -26932,7 +26998,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
|
|
|
26932
26998
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
|
|
26933
26999
|
(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);
|
|
26934
27000
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
|
|
26935
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .
|
|
27001
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26936
27002
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
|
|
26937
27003
|
return true;
|
|
26938
27004
|
}
|
|
@@ -27335,20 +27401,20 @@ function getMoveFilter(jodit) {
|
|
|
27335
27401
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51431);
|
|
27336
27402
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
27337
27403
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
27338
|
-
/* harmony import */ var
|
|
27339
|
-
/* harmony import */ var
|
|
27340
|
-
/* harmony import */ var
|
|
27341
|
-
/* harmony import */ var
|
|
27342
|
-
/* harmony import */ var
|
|
27343
|
-
/* harmony import */ var
|
|
27344
|
-
/* harmony import */ var
|
|
27345
|
-
/* harmony import */ var
|
|
27346
|
-
/* harmony import */ var
|
|
27347
|
-
/* harmony import */ var
|
|
27348
|
-
/* harmony import */ var
|
|
27349
|
-
/* harmony import */ var
|
|
27350
|
-
/* harmony import */ var
|
|
27351
|
-
/* harmony import */ var
|
|
27404
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
27405
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94673);
|
|
27406
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39586);
|
|
27407
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27408
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49463);
|
|
27409
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
27410
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10292);
|
|
27411
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
27412
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(71718);
|
|
27413
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
27414
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48397);
|
|
27415
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
27416
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(46781);
|
|
27417
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
27352
27418
|
/*!
|
|
27353
27419
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27354
27420
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27371,7 +27437,7 @@ function getMoveFilter(jodit) {
|
|
|
27371
27437
|
*/
|
|
27372
27438
|
function bold(editor) {
|
|
27373
27439
|
const callBack = (command) => {
|
|
27374
|
-
const control =
|
|
27440
|
+
const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
|
|
27375
27441
|
...control.css
|
|
27376
27442
|
};
|
|
27377
27443
|
let cssRules;
|
|
@@ -27425,12 +27491,12 @@ function bold(editor) {
|
|
|
27425
27491
|
});
|
|
27426
27492
|
}
|
|
27427
27493
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
|
|
27428
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (
|
|
27429
|
-
.set('italic', (
|
|
27430
|
-
.set('strikethrough', (
|
|
27431
|
-
.set('subscript', (
|
|
27432
|
-
.set('superscript', (
|
|
27433
|
-
.set('underline', (
|
|
27494
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
|
|
27495
|
+
.set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
27496
|
+
.set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
27497
|
+
.set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
27498
|
+
.set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
27499
|
+
.set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
|
|
27434
27500
|
|
|
27435
27501
|
|
|
27436
27502
|
/***/ }),
|
|
@@ -27500,9 +27566,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
27500
27566
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94183);
|
|
27501
27567
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65564);
|
|
27502
27568
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
27503
|
-
/* harmony import */ var
|
|
27504
|
-
/* harmony import */ var
|
|
27505
|
-
/* harmony import */ var
|
|
27569
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
27570
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14835);
|
|
27571
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
27506
27572
|
/*!
|
|
27507
27573
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27508
27574
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27515,7 +27581,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
27515
27581
|
|
|
27516
27582
|
|
|
27517
27583
|
|
|
27518
|
-
|
|
27584
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
|
|
27519
27585
|
command: 'applyClassName',
|
|
27520
27586
|
exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
|
|
27521
27587
|
list: [
|
|
@@ -27603,7 +27669,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
27603
27669
|
beforeDestruct() { }
|
|
27604
27670
|
}
|
|
27605
27671
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
|
|
27606
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (
|
|
27672
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
27607
27673
|
|
|
27608
27674
|
|
|
27609
27675
|
/***/ }),
|
|
@@ -27742,9 +27808,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27742
27808
|
|
|
27743
27809
|
"use strict";
|
|
27744
27810
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
27745
|
-
/* harmony import */ var
|
|
27746
|
-
/* harmony import */ var
|
|
27747
|
-
/* harmony import */ var
|
|
27811
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
27812
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(556);
|
|
27813
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
27748
27814
|
/*!
|
|
27749
27815
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27750
27816
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27753,7 +27819,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27753
27819
|
|
|
27754
27820
|
|
|
27755
27821
|
|
|
27756
|
-
|
|
27822
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
|
|
27757
27823
|
timeout: 300,
|
|
27758
27824
|
removeEmptyElements: true,
|
|
27759
27825
|
fillEmptyParagraph: true,
|
|
@@ -27769,11 +27835,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
|
|
|
27769
27835
|
safeJavaScriptLink: true,
|
|
27770
27836
|
disableCleanFilter: null
|
|
27771
27837
|
};
|
|
27772
|
-
|
|
27838
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
|
|
27773
27839
|
command: 'removeFormat',
|
|
27774
27840
|
tooltip: 'Clear Formatting'
|
|
27775
27841
|
};
|
|
27776
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (
|
|
27842
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
27777
27843
|
|
|
27778
27844
|
|
|
27779
27845
|
/***/ }),
|
|
@@ -28439,15 +28505,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
28439
28505
|
|
|
28440
28506
|
"use strict";
|
|
28441
28507
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
28442
|
-
/* harmony import */ var
|
|
28443
|
-
/* harmony import */ var
|
|
28444
|
-
/* harmony import */ var
|
|
28445
|
-
/* harmony import */ var
|
|
28446
|
-
/* harmony import */ var
|
|
28447
|
-
/* harmony import */ var
|
|
28448
|
-
/* harmony import */ var
|
|
28449
|
-
/* harmony import */ var
|
|
28450
|
-
/* harmony import */ var
|
|
28508
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
28509
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
|
|
28510
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
28511
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4594);
|
|
28512
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
28513
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63859);
|
|
28514
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
28515
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38808);
|
|
28516
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
28451
28517
|
/*!
|
|
28452
28518
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28453
28519
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28459,25 +28525,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
28459
28525
|
|
|
28460
28526
|
|
|
28461
28527
|
|
|
28462
|
-
|
|
28528
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
|
|
28463
28529
|
command: 'cut',
|
|
28464
28530
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
28465
28531
|
tooltip: 'Cut selection'
|
|
28466
28532
|
};
|
|
28467
|
-
|
|
28533
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
|
|
28468
28534
|
command: 'copy',
|
|
28469
28535
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
28470
28536
|
tooltip: 'Copy selection'
|
|
28471
28537
|
};
|
|
28472
|
-
|
|
28538
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
|
|
28473
28539
|
icon: 'select-all',
|
|
28474
28540
|
command: 'selectall',
|
|
28475
28541
|
tooltip: 'Select all'
|
|
28476
28542
|
};
|
|
28477
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (
|
|
28478
|
-
.set('cut', (
|
|
28479
|
-
.set('paste', (
|
|
28480
|
-
.set('select-all', (
|
|
28543
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
|
|
28544
|
+
.set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
|
|
28545
|
+
.set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
|
|
28546
|
+
.set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
28481
28547
|
|
|
28482
28548
|
|
|
28483
28549
|
/***/ }),
|
|
@@ -28549,10 +28615,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
28549
28615
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
28550
28616
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
28551
28617
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
28552
|
-
/* harmony import */ var
|
|
28553
|
-
/* harmony import */ var
|
|
28554
|
-
/* harmony import */ var
|
|
28555
|
-
/* harmony import */ var
|
|
28618
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
28619
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
|
|
28620
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55370);
|
|
28621
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
28556
28622
|
/*!
|
|
28557
28623
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28558
28624
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28564,8 +28630,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
28564
28630
|
|
|
28565
28631
|
|
|
28566
28632
|
|
|
28567
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (
|
|
28568
|
-
|
|
28633
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
28634
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
|
|
28569
28635
|
isVisible: (editor) => {
|
|
28570
28636
|
return !editor.o.disablePlugins.includes('color');
|
|
28571
28637
|
},
|
|
@@ -28578,7 +28644,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28578
28644
|
if (!selected.length) {
|
|
28579
28645
|
return false;
|
|
28580
28646
|
}
|
|
28581
|
-
const makeColorPicker = (key) => (0,
|
|
28647
|
+
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28582
28648
|
selected.forEach(cell => {
|
|
28583
28649
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
28584
28650
|
});
|
|
@@ -28587,7 +28653,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28587
28653
|
close();
|
|
28588
28654
|
editor.unlock();
|
|
28589
28655
|
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
28590
|
-
return (0,
|
|
28656
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
|
|
28591
28657
|
{
|
|
28592
28658
|
name: 'Background',
|
|
28593
28659
|
content: makeColorPicker('background-color')
|
|
@@ -28598,7 +28664,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28598
28664
|
},
|
|
28599
28665
|
tooltip: 'Background'
|
|
28600
28666
|
};
|
|
28601
|
-
|
|
28667
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
|
|
28602
28668
|
isVisible: (editor) => {
|
|
28603
28669
|
return !editor.o.disablePlugins.includes('color');
|
|
28604
28670
|
},
|
|
@@ -28646,7 +28712,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28646
28712
|
}
|
|
28647
28713
|
}, editor.editor);
|
|
28648
28714
|
}
|
|
28649
|
-
const backgroundTag = (0,
|
|
28715
|
+
const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28650
28716
|
if (!currentElement) {
|
|
28651
28717
|
editor.execCommand('background', false, value);
|
|
28652
28718
|
}
|
|
@@ -28657,7 +28723,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28657
28723
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
|
|
28658
28724
|
close();
|
|
28659
28725
|
}, bg_color);
|
|
28660
|
-
const colorTab = (0,
|
|
28726
|
+
const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
28661
28727
|
if (!currentElement) {
|
|
28662
28728
|
editor.execCommand('forecolor', false, value);
|
|
28663
28729
|
}
|
|
@@ -28681,7 +28747,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28681
28747
|
if (editor.o.colorPickerDefaultTab !== 'background') {
|
|
28682
28748
|
tabs = tabs.reverse();
|
|
28683
28749
|
}
|
|
28684
|
-
return (0,
|
|
28750
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
|
|
28685
28751
|
},
|
|
28686
28752
|
exec(jodit, current, { button }) {
|
|
28687
28753
|
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');
|
|
@@ -28720,10 +28786,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28720
28786
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
28721
28787
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
|
|
28722
28788
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
28723
|
-
/* harmony import */ var
|
|
28724
|
-
/* harmony import */ var
|
|
28725
|
-
/* harmony import */ var
|
|
28726
|
-
/* harmony import */ var
|
|
28789
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
28790
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72131);
|
|
28791
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
28792
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18489);
|
|
28727
28793
|
/*!
|
|
28728
28794
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28729
28795
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28781,7 +28847,7 @@ const getStyles = (editor, box, defaultStyles) => {
|
|
|
28781
28847
|
}
|
|
28782
28848
|
return result;
|
|
28783
28849
|
};
|
|
28784
|
-
|
|
28850
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
|
|
28785
28851
|
exec: (editor, current, { button }) => {
|
|
28786
28852
|
if (!current) {
|
|
28787
28853
|
return;
|
|
@@ -28831,10 +28897,10 @@ function copyFormat(editor) {
|
|
|
28831
28897
|
name: 'copyformat',
|
|
28832
28898
|
group: 'clipboard'
|
|
28833
28899
|
});
|
|
28834
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(
|
|
28900
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
28835
28901
|
}
|
|
28836
28902
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
|
|
28837
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (
|
|
28903
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
28838
28904
|
|
|
28839
28905
|
|
|
28840
28906
|
/***/ }),
|
|
@@ -29788,45 +29854,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29788
29854
|
const sel = this.j.s.sel;
|
|
29789
29855
|
const range = this.bufferRange ||
|
|
29790
29856
|
(sel && sel.rangeCount ? sel.getRangeAt(0) : null);
|
|
29791
|
-
|
|
29792
|
-
if (!this.draggable && range) {
|
|
29793
|
-
fragment = this.isCopyMode
|
|
29794
|
-
? range.cloneContents()
|
|
29795
|
-
: range.extractContents();
|
|
29796
|
-
}
|
|
29797
|
-
else if (this.draggable) {
|
|
29798
|
-
if (this.isCopyMode) {
|
|
29799
|
-
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29800
|
-
? ['a', 'href']
|
|
29801
|
-
: ['img', 'src'];
|
|
29802
|
-
fragment = this.j.createInside.element(tagName);
|
|
29803
|
-
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29804
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29805
|
-
'');
|
|
29806
|
-
if (tagName === 'a') {
|
|
29807
|
-
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29808
|
-
}
|
|
29809
|
-
}
|
|
29810
|
-
else {
|
|
29811
|
-
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29812
|
-
}
|
|
29813
|
-
}
|
|
29814
|
-
else if (this.getText(event)) {
|
|
29815
|
-
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29816
|
-
}
|
|
29857
|
+
const fragment = this.__getWorkFragment(range, event);
|
|
29817
29858
|
sel && sel.removeAllRanges();
|
|
29818
29859
|
this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
|
|
29819
29860
|
if (fragment) {
|
|
29820
|
-
this.
|
|
29821
|
-
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29822
|
-
range.setStartBefore(fragment.firstChild);
|
|
29823
|
-
range.setEndAfter(fragment.lastChild);
|
|
29824
|
-
this.j.s.selectRange(range);
|
|
29825
|
-
this.j.e.fire('synchro');
|
|
29826
|
-
}
|
|
29827
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29828
|
-
this.j.e.fire('afterInsertImage', fragment);
|
|
29829
|
-
}
|
|
29861
|
+
this.__insertFragment.call(this, fragment, range);
|
|
29830
29862
|
}
|
|
29831
29863
|
event.preventDefault();
|
|
29832
29864
|
event.stopPropagation();
|
|
@@ -29834,6 +29866,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29834
29866
|
this.isFragmentFromEditor = false;
|
|
29835
29867
|
this.removeDragListeners();
|
|
29836
29868
|
}
|
|
29869
|
+
__getWorkFragment(range, event) {
|
|
29870
|
+
let fragment = null;
|
|
29871
|
+
if (!this.draggable && range) {
|
|
29872
|
+
fragment = this.isCopyMode
|
|
29873
|
+
? range.cloneContents()
|
|
29874
|
+
: range.extractContents();
|
|
29875
|
+
}
|
|
29876
|
+
else if (this.draggable) {
|
|
29877
|
+
if (this.isCopyMode) {
|
|
29878
|
+
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29879
|
+
? ['a', 'href']
|
|
29880
|
+
: ['img', 'src'];
|
|
29881
|
+
fragment = this.j.createInside.element(tagName);
|
|
29882
|
+
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29883
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29884
|
+
'');
|
|
29885
|
+
if (tagName === 'a') {
|
|
29886
|
+
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29887
|
+
}
|
|
29888
|
+
}
|
|
29889
|
+
else {
|
|
29890
|
+
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29891
|
+
}
|
|
29892
|
+
}
|
|
29893
|
+
else if (this.getText(event)) {
|
|
29894
|
+
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29895
|
+
}
|
|
29896
|
+
return fragment;
|
|
29897
|
+
}
|
|
29898
|
+
__insertFragment(fragment, range) {
|
|
29899
|
+
this.j.s.insertNode(fragment, false, false);
|
|
29900
|
+
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29901
|
+
range.setStartBefore(fragment.firstChild);
|
|
29902
|
+
range.setEndAfter(fragment.lastChild);
|
|
29903
|
+
this.j.s.selectRange(range);
|
|
29904
|
+
this.j.e.fire('synchro');
|
|
29905
|
+
}
|
|
29906
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29907
|
+
this.j.e.fire('afterInsertImage', fragment);
|
|
29908
|
+
}
|
|
29909
|
+
}
|
|
29837
29910
|
/** @override */
|
|
29838
29911
|
beforeDestruct() {
|
|
29839
29912
|
this.onDragEnd();
|
|
@@ -30635,8 +30708,8 @@ function wrapText(fake, jodit) {
|
|
|
30635
30708
|
/* unused harmony export file */
|
|
30636
30709
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
30637
30710
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
30638
|
-
/* harmony import */ var
|
|
30639
|
-
/* harmony import */ var
|
|
30711
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
30712
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
|
|
30640
30713
|
/*!
|
|
30641
30714
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30642
30715
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30646,7 +30719,7 @@ function wrapText(fake, jodit) {
|
|
|
30646
30719
|
|
|
30647
30720
|
|
|
30648
30721
|
|
|
30649
|
-
|
|
30722
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
|
|
30650
30723
|
popup: (editor, current, close) => {
|
|
30651
30724
|
const insert = (url, title = '') => {
|
|
30652
30725
|
editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
|
|
@@ -30659,7 +30732,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
30659
30732
|
? current
|
|
30660
30733
|
: jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
30661
30734
|
}
|
|
30662
|
-
return (0,
|
|
30735
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
|
|
30663
30736
|
filebrowser: (data) => {
|
|
30664
30737
|
data.files &&
|
|
30665
30738
|
data.files.forEach(file => insert(data.baseurl + file));
|
|
@@ -30782,11 +30855,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30782
30855
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
30783
30856
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
|
|
30784
30857
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
30785
|
-
/* harmony import */ var
|
|
30786
|
-
/* harmony import */ var
|
|
30787
|
-
/* harmony import */ var
|
|
30788
|
-
/* harmony import */ var
|
|
30789
|
-
/* harmony import */ var
|
|
30858
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
30859
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78602);
|
|
30860
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30861
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84413);
|
|
30862
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
30790
30863
|
/*!
|
|
30791
30864
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30792
30865
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30802,9 +30875,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30802
30875
|
/**
|
|
30803
30876
|
* Default font-size points
|
|
30804
30877
|
*/
|
|
30805
|
-
|
|
30806
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (
|
|
30807
|
-
|
|
30878
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
|
|
30879
|
+
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()));
|
|
30880
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
|
|
30808
30881
|
command: 'fontsize',
|
|
30809
30882
|
data: {
|
|
30810
30883
|
cssRule: 'font-size',
|
|
@@ -30860,8 +30933,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
|
|
|
30860
30933
|
return keySet.has(normalize(value.toString()));
|
|
30861
30934
|
}
|
|
30862
30935
|
};
|
|
30863
|
-
|
|
30864
|
-
...
|
|
30936
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
|
|
30937
|
+
...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
|
|
30865
30938
|
command: 'fontname',
|
|
30866
30939
|
textTemplate: (j, value) => {
|
|
30867
30940
|
const [first] = value.split(',');
|
|
@@ -30971,11 +31044,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30971
31044
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
30972
31045
|
|
|
30973
31046
|
"use strict";
|
|
30974
|
-
/* harmony import */ var
|
|
31047
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
31048
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
|
|
30975
31049
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
30976
|
-
/* harmony import */ var
|
|
30977
|
-
/* harmony import */ var
|
|
30978
|
-
/* harmony import */ var
|
|
31050
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
31051
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30820);
|
|
31052
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30979
31053
|
/*!
|
|
30980
31054
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30981
31055
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30985,12 +31059,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30985
31059
|
|
|
30986
31060
|
|
|
30987
31061
|
|
|
30988
|
-
|
|
30989
|
-
|
|
31062
|
+
|
|
31063
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
31064
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
|
|
30990
31065
|
command: 'formatBlock',
|
|
30991
31066
|
value(editor, button) {
|
|
30992
31067
|
const control = button.control, current = editor.s.current();
|
|
30993
|
-
const currentBox =
|
|
31068
|
+
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);
|
|
30994
31069
|
return currentBox?.nodeName.toLowerCase() ?? control.data?.currentValue;
|
|
30995
31070
|
},
|
|
30996
31071
|
update(editor, button) {
|
|
@@ -30999,7 +31074,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
30999
31074
|
return false;
|
|
31000
31075
|
}
|
|
31001
31076
|
const currentValue = button.state.value, list = control.list;
|
|
31002
|
-
if (list && list[currentValue.toString()]) {
|
|
31077
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
|
|
31003
31078
|
if (editor.o.textIcons) {
|
|
31004
31079
|
button.state.text = list[currentValue.toString()].toString();
|
|
31005
31080
|
}
|
|
@@ -31023,7 +31098,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
31023
31098
|
},
|
|
31024
31099
|
isActive: (editor, button) => {
|
|
31025
31100
|
return (button.state.value !== editor.o.enter &&
|
|
31026
|
-
|
|
31101
|
+
(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
|
|
31102
|
+
Boolean(button.control.list[button.state.value]));
|
|
31027
31103
|
},
|
|
31028
31104
|
childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
|
|
31029
31105
|
tooltip: 'Insert format block'
|
|
@@ -31073,11 +31149,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
31073
31149
|
"use strict";
|
|
31074
31150
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
31075
31151
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
31076
|
-
/* harmony import */ var
|
|
31077
|
-
/* harmony import */ var
|
|
31078
|
-
/* harmony import */ var
|
|
31079
|
-
/* harmony import */ var
|
|
31080
|
-
/* harmony import */ var
|
|
31152
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
31153
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88708);
|
|
31154
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
31155
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10099);
|
|
31156
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
31081
31157
|
/*!
|
|
31082
31158
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
31083
31159
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -31089,10 +31165,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
31089
31165
|
|
|
31090
31166
|
|
|
31091
31167
|
|
|
31092
|
-
|
|
31093
|
-
|
|
31094
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (
|
|
31095
|
-
|
|
31168
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
|
|
31169
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
|
|
31170
|
+
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()));
|
|
31171
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
|
|
31096
31172
|
exec: (editor) => {
|
|
31097
31173
|
editor.toggleFullSize();
|
|
31098
31174
|
},
|
|
@@ -31231,19 +31307,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('fulls
|
|
|
31231
31307
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
31232
31308
|
*/
|
|
31233
31309
|
|
|
31234
|
-
/**
|
|
31235
|
-
* You can redefine hotkeys for some command
|
|
31236
|
-
*
|
|
31237
|
-
* @example
|
|
31238
|
-
* ```js
|
|
31239
|
-
* var jodit = Jodit.make('#editor', {
|
|
31240
|
-
* commandToHotkeys: {
|
|
31241
|
-
* bold: 'ctrl+shift+b',
|
|
31242
|
-
* italic: ['ctrl+i', 'ctrl+b'],
|
|
31243
|
-
* }
|
|
31244
|
-
* })
|
|
31245
|
-
* ```
|
|
31246
|
-
*/
|
|
31247
31310
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.commandToHotkeys = {
|
|
31248
31311
|
removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
|
|
31249
31312
|
insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
|
|
@@ -31418,9 +31481,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
31418
31481
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
|
|
31419
31482
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
31420
31483
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
|
|
31421
|
-
/* harmony import */ var
|
|
31422
|
-
/* harmony import */ var
|
|
31423
|
-
/* harmony import */ var
|
|
31484
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
|
|
31485
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75241);
|
|
31486
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
31424
31487
|
/*!
|
|
31425
31488
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
31426
31489
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -31431,8 +31494,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
31431
31494
|
|
|
31432
31495
|
|
|
31433
31496
|
|
|
31434
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (
|
|
31435
|
-
|
|
31497
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
31498
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
|
|
31436
31499
|
command: 'insertHorizontalRule',
|
|
31437
31500
|
tags: ['hr'],
|
|
31438
31501
|
tooltip: 'Insert Horizontal Line'
|
|
@@ -31909,6 +31972,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
|
|
|
31909
31972
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
31910
31973
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
31911
31974
|
*/
|
|
31975
|
+
/**
|
|
31976
|
+
* @module plugins/image-properties
|
|
31977
|
+
*/
|
|
31912
31978
|
|
|
31913
31979
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
|
|
31914
31980
|
dialogWidth: 600,
|
|
@@ -33409,10 +33475,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
33409
33475
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
33410
33476
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
33411
33477
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
33412
|
-
/* harmony import */ var
|
|
33413
|
-
/* harmony import */ var
|
|
33414
|
-
/* harmony import */ var
|
|
33415
|
-
/* harmony import */ var
|
|
33478
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
33479
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
|
|
33480
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15807);
|
|
33481
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33416
33482
|
/*!
|
|
33417
33483
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33418
33484
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33425,8 +33491,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
33425
33491
|
|
|
33426
33492
|
|
|
33427
33493
|
|
|
33428
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (
|
|
33429
|
-
|
|
33494
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
33495
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
|
|
33430
33496
|
popup: (editor, current, close) => {
|
|
33431
33497
|
let sourceImage = null;
|
|
33432
33498
|
if (current &&
|
|
@@ -33438,7 +33504,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
|
|
|
33438
33504
|
: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
33439
33505
|
}
|
|
33440
33506
|
editor.s.save();
|
|
33441
|
-
return (0,
|
|
33507
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
|
|
33442
33508
|
filebrowser: (data) => {
|
|
33443
33509
|
editor.s.restore();
|
|
33444
33510
|
data.files &&
|
|
@@ -33481,12 +33547,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
33481
33547
|
"use strict";
|
|
33482
33548
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
|
|
33483
33549
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
33484
|
-
/* harmony import */ var
|
|
33485
|
-
/* harmony import */ var
|
|
33486
|
-
/* harmony import */ var
|
|
33487
|
-
/* harmony import */ var
|
|
33488
|
-
/* harmony import */ var
|
|
33489
|
-
/* harmony import */ var
|
|
33550
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
33551
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(96168);
|
|
33552
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
33553
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45153);
|
|
33554
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
33555
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63163);
|
|
33490
33556
|
/*!
|
|
33491
33557
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33492
33558
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33498,17 +33564,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
33498
33564
|
|
|
33499
33565
|
|
|
33500
33566
|
|
|
33501
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (
|
|
33502
|
-
|
|
33567
|
+
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()));
|
|
33568
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
|
|
33503
33569
|
tooltip: 'Increase Indent'
|
|
33504
33570
|
};
|
|
33505
|
-
|
|
33571
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
|
|
33506
33572
|
isDisabled: (editor) => {
|
|
33507
33573
|
const current = editor.s.current();
|
|
33508
33574
|
if (current) {
|
|
33509
33575
|
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);
|
|
33510
33576
|
if (currentBox) {
|
|
33511
|
-
const arrow = (0,
|
|
33577
|
+
const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
|
|
33512
33578
|
return (!currentBox.style[arrow] ||
|
|
33513
33579
|
parseInt(currentBox.style[arrow], 10) <= 0);
|
|
33514
33580
|
}
|
|
@@ -33517,7 +33583,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
|
|
|
33517
33583
|
},
|
|
33518
33584
|
tooltip: 'Decrease Indent'
|
|
33519
33585
|
};
|
|
33520
|
-
|
|
33586
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
|
|
33521
33587
|
|
|
33522
33588
|
|
|
33523
33589
|
/***/ }),
|
|
@@ -33778,12 +33844,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33778
33844
|
|
|
33779
33845
|
"use strict";
|
|
33780
33846
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
33781
|
-
/* harmony import */ var
|
|
33782
|
-
/* harmony import */ var
|
|
33783
|
-
/* harmony import */ var
|
|
33784
|
-
/* harmony import */ var
|
|
33847
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
33848
|
+
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73625);
|
|
33849
|
+
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69247);
|
|
33850
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84516);
|
|
33851
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79073);
|
|
33785
33852
|
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3301);
|
|
33786
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
33787
33853
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48537);
|
|
33788
33854
|
/* 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__);
|
|
33789
33855
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1629);
|
|
@@ -33817,10 +33883,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33817
33883
|
|
|
33818
33884
|
|
|
33819
33885
|
|
|
33820
|
-
|
|
33821
|
-
|
|
33822
|
-
|
|
33823
|
-
|
|
33886
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
|
|
33887
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
|
|
33888
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
|
|
33889
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
|
|
33824
33890
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
33825
33891
|
.set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
33826
33892
|
.set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
@@ -33828,14 +33894,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
|
|
|
33828
33894
|
.set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
33829
33895
|
.set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
|
|
33830
33896
|
.set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
|
|
33831
|
-
|
|
33832
|
-
a:
|
|
33833
|
-
img:
|
|
33834
|
-
cells:
|
|
33897
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
|
|
33898
|
+
a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
33899
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
|
|
33900
|
+
cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
|
|
33835
33901
|
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
|
|
33836
|
-
jodit:
|
|
33837
|
-
iframe:
|
|
33838
|
-
'jodit-media':
|
|
33902
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33903
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33904
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33839
33905
|
selection: [
|
|
33840
33906
|
'bold',
|
|
33841
33907
|
'underline',
|
|
@@ -34447,12 +34513,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
34447
34513
|
/* unused harmony export justify */
|
|
34448
34514
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
34449
34515
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
34450
|
-
/* harmony import */ var
|
|
34451
|
-
/* harmony import */ var
|
|
34452
|
-
/* harmony import */ var
|
|
34453
|
-
/* harmony import */ var
|
|
34454
|
-
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
34516
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
34517
|
+
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26071);
|
|
34518
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4401);
|
|
34519
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
34455
34520
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
34521
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77795);
|
|
34522
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
34456
34523
|
/*!
|
|
34457
34524
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34458
34525
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34465,7 +34532,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
34465
34532
|
|
|
34466
34533
|
|
|
34467
34534
|
|
|
34468
|
-
|
|
34535
|
+
|
|
34536
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
34469
34537
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
|
|
34470
34538
|
name: 'left',
|
|
34471
34539
|
tooltip: 'Align',
|
|
@@ -34474,22 +34542,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
34474
34542
|
if (current) {
|
|
34475
34543
|
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) ||
|
|
34476
34544
|
editor.editor;
|
|
34477
|
-
let currentValue = (0,
|
|
34545
|
+
let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
|
|
34478
34546
|
if (control.defaultValue &&
|
|
34479
34547
|
control.defaultValue.indexOf(currentValue) !== -1) {
|
|
34480
34548
|
currentValue = 'left';
|
|
34481
34549
|
}
|
|
34482
|
-
|
|
34483
|
-
|
|
34484
|
-
|
|
34485
|
-
|
|
34550
|
+
const { list, data } = control;
|
|
34551
|
+
if (data &&
|
|
34552
|
+
data.currentValue !== currentValue &&
|
|
34553
|
+
list &&
|
|
34554
|
+
((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
|
|
34555
|
+
? list[currentValue]
|
|
34556
|
+
: list.includes(currentValue))) {
|
|
34486
34557
|
if (editor.o.textIcons || control.component === 'select') {
|
|
34487
34558
|
button.state.text = currentValue;
|
|
34488
34559
|
}
|
|
34489
34560
|
else {
|
|
34490
34561
|
button.state.icon.name = currentValue;
|
|
34491
34562
|
}
|
|
34492
|
-
|
|
34563
|
+
data.currentValue = currentValue;
|
|
34493
34564
|
}
|
|
34494
34565
|
}
|
|
34495
34566
|
},
|
|
@@ -34500,7 +34571,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
34500
34571
|
}
|
|
34501
34572
|
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) ||
|
|
34502
34573
|
editor.editor;
|
|
34503
|
-
return (btn.control.defaultValue.indexOf((0,
|
|
34574
|
+
return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
|
|
34504
34575
|
},
|
|
34505
34576
|
defaultValue: ['left', 'start', 'inherit'],
|
|
34506
34577
|
data: {
|
|
@@ -34554,7 +34625,7 @@ function justify(editor) {
|
|
|
34554
34625
|
if (!currentBox) {
|
|
34555
34626
|
currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
|
|
34556
34627
|
}
|
|
34557
|
-
(0,
|
|
34628
|
+
(0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
|
|
34558
34629
|
});
|
|
34559
34630
|
return false;
|
|
34560
34631
|
};
|
|
@@ -34765,9 +34836,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34765
34836
|
"use strict";
|
|
34766
34837
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9596);
|
|
34767
34838
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
34768
|
-
/* harmony import */ var
|
|
34769
|
-
/* harmony import */ var
|
|
34770
|
-
/* harmony import */ var
|
|
34839
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
34840
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19615);
|
|
34841
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34771
34842
|
/*!
|
|
34772
34843
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34773
34844
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34777,9 +34848,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34777
34848
|
|
|
34778
34849
|
|
|
34779
34850
|
|
|
34780
|
-
|
|
34781
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (
|
|
34782
|
-
|
|
34851
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
|
|
34852
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
34853
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
|
|
34783
34854
|
command: 'applyLineHeight',
|
|
34784
34855
|
tags: ['ol'],
|
|
34785
34856
|
tooltip: 'Line height',
|
|
@@ -35344,12 +35415,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
35344
35415
|
"use strict";
|
|
35345
35416
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
35346
35417
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
35347
|
-
/* harmony import */ var
|
|
35348
|
-
/* harmony import */ var
|
|
35349
|
-
/* harmony import */ var
|
|
35350
|
-
/* harmony import */ var
|
|
35351
|
-
/* harmony import */ var
|
|
35352
|
-
/* harmony import */ var
|
|
35418
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
35419
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67576);
|
|
35420
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
35421
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73501);
|
|
35422
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
35423
|
+
/* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17660);
|
|
35353
35424
|
/*!
|
|
35354
35425
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35355
35426
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35361,8 +35432,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
35361
35432
|
|
|
35362
35433
|
|
|
35363
35434
|
|
|
35364
|
-
|
|
35365
|
-
formTemplate:
|
|
35435
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
|
|
35436
|
+
formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
|
|
35366
35437
|
followOnDblClick: false,
|
|
35367
35438
|
processVideoLink: true,
|
|
35368
35439
|
processPastedLink: true,
|
|
@@ -35374,8 +35445,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
|
|
|
35374
35445
|
selectOptionsClassName: [],
|
|
35375
35446
|
hotkeys: ['ctrl+k', 'cmd+k']
|
|
35376
35447
|
};
|
|
35377
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (
|
|
35378
|
-
|
|
35448
|
+
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()));
|
|
35449
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
|
|
35379
35450
|
exec: (editor, current) => {
|
|
35380
35451
|
const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
35381
35452
|
if (anchor) {
|
|
@@ -35386,7 +35457,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
|
|
|
35386
35457
|
},
|
|
35387
35458
|
tooltip: 'Unlink'
|
|
35388
35459
|
};
|
|
35389
|
-
|
|
35460
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
|
|
35390
35461
|
isActive: (editor) => {
|
|
35391
35462
|
const current = editor.s.current();
|
|
35392
35463
|
return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
|
|
@@ -35544,35 +35615,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35544
35615
|
if (link) {
|
|
35545
35616
|
url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
|
|
35546
35617
|
if (modeClassName) {
|
|
35547
|
-
|
|
35548
|
-
case 'input':
|
|
35549
|
-
if (className_input) {
|
|
35550
|
-
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35551
|
-
}
|
|
35552
|
-
break;
|
|
35553
|
-
case 'select':
|
|
35554
|
-
if (className_select) {
|
|
35555
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35556
|
-
const option = className_select.options.item(i);
|
|
35557
|
-
if (option) {
|
|
35558
|
-
option.selected = false;
|
|
35559
|
-
}
|
|
35560
|
-
}
|
|
35561
|
-
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35562
|
-
classNames.split(' ').forEach(className => {
|
|
35563
|
-
if (className) {
|
|
35564
|
-
for (let i = 0; i < className_select.options.length; i++) {
|
|
35565
|
-
const option = className_select.options.item(i);
|
|
35566
|
-
if (option?.value &&
|
|
35567
|
-
option.value === className) {
|
|
35568
|
-
option.selected = true;
|
|
35569
|
-
}
|
|
35570
|
-
}
|
|
35571
|
-
}
|
|
35572
|
-
});
|
|
35573
|
-
}
|
|
35574
|
-
break;
|
|
35575
|
-
}
|
|
35618
|
+
readClassnames(modeClassName, className_input, link, className_select);
|
|
35576
35619
|
}
|
|
35577
35620
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
35578
35621
|
target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
|
|
@@ -35634,42 +35677,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35634
35677
|
}
|
|
35635
35678
|
links.forEach(a => {
|
|
35636
35679
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
|
|
35637
|
-
|
|
35638
|
-
if (modeClassName === 'input') {
|
|
35639
|
-
if (className_input.value === '' &&
|
|
35640
|
-
a.hasAttribute('class')) {
|
|
35641
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35642
|
-
}
|
|
35643
|
-
if (className_input.value !== '') {
|
|
35644
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
35645
|
-
}
|
|
35646
|
-
}
|
|
35647
|
-
else if (modeClassName === 'select') {
|
|
35648
|
-
if (a.hasAttribute('class')) {
|
|
35649
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35650
|
-
}
|
|
35651
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35652
|
-
const className = className_select.selectedOptions.item(i)?.value;
|
|
35653
|
-
if (className) {
|
|
35654
|
-
a.classList.add(className);
|
|
35655
|
-
}
|
|
35656
|
-
}
|
|
35657
|
-
}
|
|
35658
|
-
}
|
|
35680
|
+
writeClasses(modeClassName, className_input, className_select, a);
|
|
35659
35681
|
if (!isImageContent) {
|
|
35660
|
-
|
|
35661
|
-
if (content_input.value.trim().length) {
|
|
35662
|
-
if (textWasChanged) {
|
|
35663
|
-
newContent = content_input.value;
|
|
35664
|
-
}
|
|
35665
|
-
}
|
|
35666
|
-
else {
|
|
35667
|
-
newContent = url_input.value;
|
|
35668
|
-
}
|
|
35669
|
-
const content = a.textContent;
|
|
35670
|
-
if (newContent !== content) {
|
|
35671
|
-
a.textContent = newContent;
|
|
35672
|
-
}
|
|
35682
|
+
writeImage(a, content_input, textWasChanged, url_input);
|
|
35673
35683
|
}
|
|
35674
35684
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
35675
35685
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
|
|
@@ -35714,6 +35724,74 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35714
35724
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
35715
35725
|
], link.prototype, "__generateForm", null);
|
|
35716
35726
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
|
|
35727
|
+
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
35728
|
+
if (modeClassName && (className_input ?? className_select)) {
|
|
35729
|
+
if (modeClassName === 'input') {
|
|
35730
|
+
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
35731
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35732
|
+
}
|
|
35733
|
+
if (className_input.value !== '') {
|
|
35734
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
35735
|
+
}
|
|
35736
|
+
}
|
|
35737
|
+
else if (modeClassName === 'select') {
|
|
35738
|
+
if (a.hasAttribute('class')) {
|
|
35739
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35740
|
+
}
|
|
35741
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35742
|
+
const className = className_select.selectedOptions.item(i)?.value;
|
|
35743
|
+
if (className) {
|
|
35744
|
+
a.classList.add(className);
|
|
35745
|
+
}
|
|
35746
|
+
}
|
|
35747
|
+
}
|
|
35748
|
+
}
|
|
35749
|
+
}
|
|
35750
|
+
function readClassnames(modeClassName, className_input, link, className_select) {
|
|
35751
|
+
switch (modeClassName) {
|
|
35752
|
+
case 'input':
|
|
35753
|
+
if (className_input) {
|
|
35754
|
+
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35755
|
+
}
|
|
35756
|
+
break;
|
|
35757
|
+
case 'select':
|
|
35758
|
+
if (className_select) {
|
|
35759
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35760
|
+
const option = className_select.options.item(i);
|
|
35761
|
+
if (option) {
|
|
35762
|
+
option.selected = false;
|
|
35763
|
+
}
|
|
35764
|
+
}
|
|
35765
|
+
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35766
|
+
classNames.split(' ').forEach(className => {
|
|
35767
|
+
if (className) {
|
|
35768
|
+
for (let i = 0; i < className_select.options.length; i++) {
|
|
35769
|
+
const option = className_select.options.item(i);
|
|
35770
|
+
if (option?.value && option.value === className) {
|
|
35771
|
+
option.selected = true;
|
|
35772
|
+
}
|
|
35773
|
+
}
|
|
35774
|
+
}
|
|
35775
|
+
});
|
|
35776
|
+
}
|
|
35777
|
+
break;
|
|
35778
|
+
}
|
|
35779
|
+
}
|
|
35780
|
+
function writeImage(a, content_input, textWasChanged, url_input) {
|
|
35781
|
+
let newContent = a.textContent;
|
|
35782
|
+
if (content_input.value.trim().length) {
|
|
35783
|
+
if (textWasChanged) {
|
|
35784
|
+
newContent = content_input.value;
|
|
35785
|
+
}
|
|
35786
|
+
}
|
|
35787
|
+
else {
|
|
35788
|
+
newContent = url_input.value;
|
|
35789
|
+
}
|
|
35790
|
+
const content = a.textContent;
|
|
35791
|
+
if (newContent !== content) {
|
|
35792
|
+
a.textContent = newContent;
|
|
35793
|
+
}
|
|
35794
|
+
}
|
|
35717
35795
|
|
|
35718
35796
|
|
|
35719
35797
|
/***/ }),
|
|
@@ -35923,9 +36001,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
35923
36001
|
"use strict";
|
|
35924
36002
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
35925
36003
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
35926
|
-
/* harmony import */ var
|
|
35927
|
-
/* harmony import */ var
|
|
35928
|
-
/* harmony import */ var
|
|
36004
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
36005
|
+
/* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78167);
|
|
36006
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78072);
|
|
35929
36007
|
/*!
|
|
35930
36008
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35931
36009
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35936,9 +36014,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
35936
36014
|
|
|
35937
36015
|
|
|
35938
36016
|
|
|
35939
|
-
|
|
35940
|
-
|
|
35941
|
-
|
|
36017
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
|
|
36018
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
|
|
36019
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
|
|
35942
36020
|
{
|
|
35943
36021
|
group: 'font-style',
|
|
35944
36022
|
buttons: []
|
|
@@ -35985,7 +36063,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
|
|
|
35985
36063
|
'|',
|
|
35986
36064
|
'dots'
|
|
35987
36065
|
];
|
|
35988
|
-
|
|
36066
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
|
|
35989
36067
|
{
|
|
35990
36068
|
group: 'font-style',
|
|
35991
36069
|
buttons: []
|
|
@@ -36020,7 +36098,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
|
|
|
36020
36098
|
'|',
|
|
36021
36099
|
'dots'
|
|
36022
36100
|
];
|
|
36023
|
-
|
|
36101
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
|
|
36024
36102
|
{
|
|
36025
36103
|
group: 'font-style',
|
|
36026
36104
|
buttons: []
|
|
@@ -36041,16 +36119,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
|
|
|
36041
36119
|
'---',
|
|
36042
36120
|
'dots'
|
|
36043
36121
|
];
|
|
36044
|
-
|
|
36122
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
|
|
36045
36123
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
|
|
36046
36124
|
popup: (editor, current, close, button) => {
|
|
36047
36125
|
let store = button.control.data;
|
|
36048
36126
|
if (store === undefined) {
|
|
36049
36127
|
store = {
|
|
36050
|
-
toolbar: (0,
|
|
36128
|
+
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
|
|
36051
36129
|
rebuild: () => {
|
|
36052
36130
|
if (button) {
|
|
36053
|
-
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(
|
|
36131
|
+
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
|
|
36054
36132
|
if (buttons && store) {
|
|
36055
36133
|
store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
|
|
36056
36134
|
const w = editor.toolbar?.firstButton?.container
|
|
@@ -36161,11 +36239,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
|
|
|
36161
36239
|
"use strict";
|
|
36162
36240
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49382);
|
|
36163
36241
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
36164
|
-
/* harmony import */ var
|
|
36165
|
-
/* harmony import */ var
|
|
36166
|
-
/* harmony import */ var
|
|
36167
|
-
/* harmony import */ var
|
|
36168
|
-
/* harmony import */ var
|
|
36242
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
36243
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48421);
|
|
36244
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
36245
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22791);
|
|
36246
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
36169
36247
|
/*!
|
|
36170
36248
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36171
36249
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36182,8 +36260,8 @@ const memoExec = (jodit, _, { control }) => {
|
|
|
36182
36260
|
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
|
|
36183
36261
|
jodit.execCommand(control.command, false, value === 'default' ? null : value);
|
|
36184
36262
|
};
|
|
36185
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (
|
|
36186
|
-
|
|
36263
|
+
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()));
|
|
36264
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
|
|
36187
36265
|
command: 'insertUnorderedList',
|
|
36188
36266
|
tags: ['ul'],
|
|
36189
36267
|
tooltip: 'Insert Unordered List',
|
|
@@ -36195,7 +36273,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
|
|
|
36195
36273
|
},
|
|
36196
36274
|
exec: memoExec
|
|
36197
36275
|
};
|
|
36198
|
-
|
|
36276
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
|
|
36199
36277
|
command: 'insertOrderedList',
|
|
36200
36278
|
tags: ['ol'],
|
|
36201
36279
|
tooltip: 'Insert Ordered List',
|
|
@@ -36571,8 +36649,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
36571
36649
|
|
|
36572
36650
|
"use strict";
|
|
36573
36651
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
36574
|
-
/* harmony import */ var
|
|
36575
|
-
/* harmony import */ var
|
|
36652
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
36653
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48954);
|
|
36576
36654
|
/*!
|
|
36577
36655
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36578
36656
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36581,19 +36659,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
36581
36659
|
|
|
36582
36660
|
|
|
36583
36661
|
|
|
36584
|
-
|
|
36585
|
-
|
|
36586
|
-
|
|
36587
|
-
|
|
36588
|
-
|
|
36662
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
|
|
36663
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
|
|
36664
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
|
|
36665
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
|
|
36666
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
|
|
36589
36667
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
36590
36668
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
36591
36669
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
|
|
36592
36670
|
];
|
|
36593
|
-
|
|
36594
|
-
|
|
36671
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
|
|
36672
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
|
|
36595
36673
|
const psKey = 'pasteStorage';
|
|
36596
|
-
|
|
36674
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
|
|
36597
36675
|
tooltip: 'Paste from clipboard',
|
|
36598
36676
|
async exec(editor, _, { control }) {
|
|
36599
36677
|
if (control.name === psKey) {
|
|
@@ -36641,7 +36719,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
|
|
|
36641
36719
|
!error && editor.e.fire('afterPaste');
|
|
36642
36720
|
}
|
|
36643
36721
|
else if (text.length) {
|
|
36644
|
-
(0,
|
|
36722
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
|
|
36645
36723
|
editor.e.fire('afterPaste');
|
|
36646
36724
|
}
|
|
36647
36725
|
else {
|
|
@@ -37368,10 +37446,10 @@ function generateCriticalCSS(jodit) {
|
|
|
37368
37446
|
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
|
|
37369
37447
|
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
|
|
37370
37448
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
|
|
37371
|
-
/* harmony import */ var
|
|
37372
|
-
/* harmony import */ var
|
|
37373
|
-
/* harmony import */ var
|
|
37374
|
-
/* harmony import */ var
|
|
37449
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
|
|
37450
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
|
|
37451
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
|
|
37452
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
37375
37453
|
/*!
|
|
37376
37454
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37377
37455
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37386,8 +37464,8 @@ function generateCriticalCSS(jodit) {
|
|
|
37386
37464
|
|
|
37387
37465
|
|
|
37388
37466
|
|
|
37389
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (
|
|
37390
|
-
|
|
37467
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
37468
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
|
|
37391
37469
|
exec: (editor) => {
|
|
37392
37470
|
const iframe = editor.create.element('iframe');
|
|
37393
37471
|
Object.assign(iframe.style, {
|
|
@@ -37398,7 +37476,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
37398
37476
|
height: 0,
|
|
37399
37477
|
border: 0
|
|
37400
37478
|
});
|
|
37401
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
37479
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
|
|
37402
37480
|
const afterFinishPrint = () => {
|
|
37403
37481
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
37404
37482
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -37416,7 +37494,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
37416
37494
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
37417
37495
|
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
37418
37496
|
'"><head><title></title></head><style>' +
|
|
37419
|
-
(0,
|
|
37497
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
|
|
37420
37498
|
'</style><body></body></html>');
|
|
37421
37499
|
myWindow.document.close();
|
|
37422
37500
|
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
@@ -37454,11 +37532,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
37454
37532
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
|
|
37455
37533
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67141);
|
|
37456
37534
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
37457
|
-
/* harmony import */ var
|
|
37458
|
-
/* harmony import */ var
|
|
37459
|
-
/* harmony import */ var
|
|
37460
|
-
/* harmony import */ var
|
|
37461
|
-
/* harmony import */ var
|
|
37535
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
37536
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37629);
|
|
37537
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
37538
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42687);
|
|
37539
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
37462
37540
|
/*!
|
|
37463
37541
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37464
37542
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37471,13 +37549,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
37471
37549
|
|
|
37472
37550
|
|
|
37473
37551
|
|
|
37474
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (
|
|
37475
|
-
|
|
37552
|
+
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()));
|
|
37553
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
|
|
37476
37554
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
37477
37555
|
isDisabled: (editor) => !editor.history.canRedo(),
|
|
37478
37556
|
tooltip: 'Redo'
|
|
37479
37557
|
};
|
|
37480
|
-
|
|
37558
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
|
|
37481
37559
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
37482
37560
|
isDisabled: (editor) => !editor.history.canUndo(),
|
|
37483
37561
|
tooltip: 'Undo'
|
|
@@ -38496,9 +38574,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38496
38574
|
|
|
38497
38575
|
"use strict";
|
|
38498
38576
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
38499
|
-
/* harmony import */ var
|
|
38500
|
-
/* harmony import */ var
|
|
38501
|
-
/* harmony import */ var
|
|
38577
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
38578
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
|
|
38579
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
38502
38580
|
/*!
|
|
38503
38581
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38504
38582
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38508,14 +38586,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38508
38586
|
|
|
38509
38587
|
|
|
38510
38588
|
|
|
38511
|
-
|
|
38512
|
-
|
|
38589
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
|
|
38590
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
|
|
38513
38591
|
lazyIdleTimeout: 0,
|
|
38514
38592
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38515
38593
|
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
38516
38594
|
};
|
|
38517
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (
|
|
38518
|
-
|
|
38595
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
38596
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
|
|
38519
38597
|
tooltip: 'Find',
|
|
38520
38598
|
icon: 'search',
|
|
38521
38599
|
exec(jodit, _, { control }) {
|
|
@@ -38556,7 +38634,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
|
|
|
38556
38634
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
38557
38635
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38558
38636
|
/* harmony export */ });
|
|
38559
|
-
/* unused harmony export isSelectionWrapper */
|
|
38560
38637
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
|
|
38561
38638
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
|
|
38562
38639
|
/*!
|
|
@@ -38578,60 +38655,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38578
38655
|
rng.endContainer.nodeValue == null) {
|
|
38579
38656
|
return;
|
|
38580
38657
|
}
|
|
38581
|
-
if (jodit
|
|
38582
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38583
|
-
typeof window.Highlight !== 'undefined') {
|
|
38584
|
-
const ranges = [rng, ...restRanges].map(rng => {
|
|
38585
|
-
const range = jodit.selection.createRange();
|
|
38586
|
-
range.setStart(rng.startContainer, rng.startOffset);
|
|
38587
|
-
range.setEnd(rng.endContainer, rng.endOffset);
|
|
38588
|
-
return range;
|
|
38589
|
-
});
|
|
38590
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38591
|
-
const searchHighlight = new Highlight(...ranges);
|
|
38592
|
-
// @ts-ignore
|
|
38593
|
-
CSS.highlights.clear();
|
|
38594
|
-
// @ts-ignore
|
|
38595
|
-
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
38596
|
-
restRanges.length = 0;
|
|
38658
|
+
if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
|
|
38597
38659
|
return;
|
|
38598
38660
|
}
|
|
38599
38661
|
const span = ci.element('span', {
|
|
38600
38662
|
[TMP_ATTR]: true
|
|
38601
38663
|
});
|
|
38602
38664
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
|
|
38603
|
-
|
|
38604
|
-
let diff = 0;
|
|
38605
|
-
if (rng.startOffset !== 0) {
|
|
38606
|
-
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38607
|
-
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38608
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38609
|
-
if (rng.startContainer === rng.endContainer) {
|
|
38610
|
-
diff = rng.startOffset;
|
|
38611
|
-
rng.endOffset -= diff;
|
|
38612
|
-
}
|
|
38613
|
-
rng.startOffset = 0;
|
|
38614
|
-
}
|
|
38615
|
-
const endText = rng.endContainer.nodeValue;
|
|
38616
|
-
if (rng.endOffset !== endText.length) {
|
|
38617
|
-
const text = ci.text(endText.substring(rng.endOffset));
|
|
38618
|
-
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38619
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38620
|
-
for (const range of restRanges) {
|
|
38621
|
-
if (range.startContainer === rng.endContainer) {
|
|
38622
|
-
range.startContainer = text;
|
|
38623
|
-
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
38624
|
-
if (range.endContainer === rng.endContainer) {
|
|
38625
|
-
range.endContainer = text;
|
|
38626
|
-
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
38627
|
-
}
|
|
38628
|
-
}
|
|
38629
|
-
else {
|
|
38630
|
-
break;
|
|
38631
|
-
}
|
|
38632
|
-
}
|
|
38633
|
-
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
38634
|
-
}
|
|
38665
|
+
normalizeRanges(rng, restRanges, ci);
|
|
38635
38666
|
let next = rng.startContainer;
|
|
38636
38667
|
do {
|
|
38637
38668
|
if (!next) {
|
|
@@ -38677,6 +38708,61 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38677
38708
|
function isSelectionWrapper(node) {
|
|
38678
38709
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38679
38710
|
}
|
|
38711
|
+
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38712
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38713
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38714
|
+
typeof window.Highlight !== 'undefined') {
|
|
38715
|
+
const ranges = [rng, ...restRanges].map(rng => {
|
|
38716
|
+
const range = jodit.selection.createRange();
|
|
38717
|
+
range.setStart(rng.startContainer, rng.startOffset);
|
|
38718
|
+
range.setEnd(rng.endContainer, rng.endOffset);
|
|
38719
|
+
return range;
|
|
38720
|
+
});
|
|
38721
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38722
|
+
const searchHighlight = new Highlight(...ranges);
|
|
38723
|
+
// @ts-ignore
|
|
38724
|
+
CSS.highlights.clear();
|
|
38725
|
+
// @ts-ignore
|
|
38726
|
+
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
38727
|
+
restRanges.length = 0;
|
|
38728
|
+
return true;
|
|
38729
|
+
}
|
|
38730
|
+
return false;
|
|
38731
|
+
}
|
|
38732
|
+
function normalizeRanges(rng, restRanges, ci) {
|
|
38733
|
+
const startText = rng.startContainer.nodeValue;
|
|
38734
|
+
let diff = 0;
|
|
38735
|
+
if (rng.startOffset !== 0) {
|
|
38736
|
+
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38737
|
+
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38738
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38739
|
+
if (rng.startContainer === rng.endContainer) {
|
|
38740
|
+
diff = rng.startOffset;
|
|
38741
|
+
rng.endOffset -= diff;
|
|
38742
|
+
}
|
|
38743
|
+
rng.startOffset = 0;
|
|
38744
|
+
}
|
|
38745
|
+
const endText = rng.endContainer.nodeValue;
|
|
38746
|
+
if (rng.endOffset !== endText.length) {
|
|
38747
|
+
const text = ci.text(endText.substring(rng.endOffset));
|
|
38748
|
+
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38749
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38750
|
+
for (const range of restRanges) {
|
|
38751
|
+
if (range.startContainer === rng.endContainer) {
|
|
38752
|
+
range.startContainer = text;
|
|
38753
|
+
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
38754
|
+
if (range.endContainer === rng.endContainer) {
|
|
38755
|
+
range.endContainer = text;
|
|
38756
|
+
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
38757
|
+
}
|
|
38758
|
+
}
|
|
38759
|
+
else {
|
|
38760
|
+
break;
|
|
38761
|
+
}
|
|
38762
|
+
}
|
|
38763
|
+
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
38764
|
+
}
|
|
38765
|
+
}
|
|
38680
38766
|
|
|
38681
38767
|
|
|
38682
38768
|
/***/ }),
|
|
@@ -40114,9 +40200,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
40114
40200
|
"use strict";
|
|
40115
40201
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
40116
40202
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
40117
|
-
/* harmony import */ var
|
|
40118
|
-
/* harmony import */ var
|
|
40119
|
-
/* harmony import */ var
|
|
40203
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
40204
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58671);
|
|
40205
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
40120
40206
|
/*!
|
|
40121
40207
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40122
40208
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40126,9 +40212,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
40126
40212
|
|
|
40127
40213
|
|
|
40128
40214
|
|
|
40129
|
-
|
|
40130
|
-
|
|
40131
|
-
|
|
40215
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
|
|
40216
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
|
|
40217
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
|
|
40132
40218
|
/**
|
|
40133
40219
|
* Show gutter
|
|
40134
40220
|
*/
|
|
@@ -40150,15 +40236,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
|
|
|
40150
40236
|
*/
|
|
40151
40237
|
highlightActiveLine: true
|
|
40152
40238
|
};
|
|
40153
|
-
|
|
40239
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
|
|
40154
40240
|
'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
|
|
40155
40241
|
];
|
|
40156
|
-
|
|
40242
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
|
|
40157
40243
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
|
|
40158
40244
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
|
|
40159
40245
|
];
|
|
40160
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (
|
|
40161
|
-
|
|
40246
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
40247
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
|
|
40162
40248
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
40163
40249
|
exec: (editor) => {
|
|
40164
40250
|
editor.toggleMode();
|
|
@@ -40953,9 +41039,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
40953
41039
|
|
|
40954
41040
|
"use strict";
|
|
40955
41041
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
40956
|
-
/* harmony import */ var
|
|
40957
|
-
/* harmony import */ var
|
|
40958
|
-
/* harmony import */ var
|
|
41042
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
41043
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80709);
|
|
41044
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
40959
41045
|
/*!
|
|
40960
41046
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40961
41047
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40964,13 +41050,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
40964
41050
|
|
|
40965
41051
|
|
|
40966
41052
|
|
|
40967
|
-
|
|
40968
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (
|
|
40969
|
-
|
|
41053
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
|
|
41054
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
41055
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
|
|
40970
41056
|
isActive(e) {
|
|
40971
41057
|
return e.o.spellcheck;
|
|
40972
41058
|
},
|
|
40973
|
-
icon: (
|
|
41059
|
+
icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
40974
41060
|
name: 'spellcheck',
|
|
40975
41061
|
command: 'toggleSpellcheck',
|
|
40976
41062
|
tooltip: 'Spellcheck'
|
|
@@ -41745,9 +41831,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
41745
41831
|
|
|
41746
41832
|
"use strict";
|
|
41747
41833
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
|
|
41748
|
-
/* harmony import */ var
|
|
41749
|
-
/* harmony import */ var
|
|
41750
|
-
/* harmony import */ var
|
|
41834
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
|
|
41835
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3283);
|
|
41836
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
41751
41837
|
/*!
|
|
41752
41838
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41753
41839
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41756,8 +41842,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
41756
41842
|
|
|
41757
41843
|
|
|
41758
41844
|
|
|
41759
|
-
|
|
41760
|
-
|
|
41845
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
|
|
41846
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
|
|
41761
41847
|
'!',
|
|
41762
41848
|
'"',
|
|
41763
41849
|
'#',
|
|
@@ -41969,8 +42055,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
|
|
|
41969
42055
|
'♦',
|
|
41970
42056
|
'≈'
|
|
41971
42057
|
];
|
|
41972
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (
|
|
41973
|
-
|
|
42058
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
42059
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
|
|
41974
42060
|
hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
|
|
41975
42061
|
tooltip: 'Insert Special Character',
|
|
41976
42062
|
popup: (editor, current, close) => {
|
|
@@ -42852,38 +42938,10 @@ function tableKeyboardNavigation(editor) {
|
|
|
42852
42938
|
.off('.tableKeyboardNavigation')
|
|
42853
42939
|
.on('keydown.tableKeyboardNavigation', (event) => {
|
|
42854
42940
|
const { key } = event;
|
|
42855
|
-
|
|
42856
|
-
return;
|
|
42857
|
-
}
|
|
42858
|
-
const current = editor.s.current();
|
|
42859
|
-
if (!current) {
|
|
42860
|
-
return;
|
|
42861
|
-
}
|
|
42862
|
-
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);
|
|
42941
|
+
const cell = findCell(editor, key);
|
|
42863
42942
|
if (!cell) {
|
|
42864
42943
|
return;
|
|
42865
42944
|
}
|
|
42866
|
-
const { range } = editor.s;
|
|
42867
|
-
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
42868
|
-
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
42869
|
-
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
|
|
42870
|
-
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
42871
|
-
: Boolean(elm), cell);
|
|
42872
|
-
if ((!isNextDirection &&
|
|
42873
|
-
(hasNext ||
|
|
42874
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
42875
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42876
|
-
range.startOffset !== 0))) ||
|
|
42877
|
-
(isNextDirection &&
|
|
42878
|
-
(hasNext ||
|
|
42879
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
42880
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42881
|
-
current.nodeValue &&
|
|
42882
|
-
range.startOffset !==
|
|
42883
|
-
current.nodeValue.length)))) {
|
|
42884
|
-
return;
|
|
42885
|
-
}
|
|
42886
|
-
}
|
|
42887
42945
|
const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
|
|
42888
42946
|
const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
|
|
42889
42947
|
let next = null;
|
|
@@ -42941,6 +42999,40 @@ function tableKeyboardNavigation(editor) {
|
|
|
42941
42999
|
});
|
|
42942
43000
|
}
|
|
42943
43001
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
|
|
43002
|
+
function findCell(editor, key) {
|
|
43003
|
+
if (!WORK_KEYS.has(key)) {
|
|
43004
|
+
return;
|
|
43005
|
+
}
|
|
43006
|
+
const current = editor.s.current();
|
|
43007
|
+
if (!current) {
|
|
43008
|
+
return;
|
|
43009
|
+
}
|
|
43010
|
+
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);
|
|
43011
|
+
if (!cell) {
|
|
43012
|
+
return;
|
|
43013
|
+
}
|
|
43014
|
+
const { range } = editor.s;
|
|
43015
|
+
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
43016
|
+
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
43017
|
+
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
|
|
43018
|
+
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
43019
|
+
: Boolean(elm), cell);
|
|
43020
|
+
if ((!isNextDirection &&
|
|
43021
|
+
(hasNext ||
|
|
43022
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
43023
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
43024
|
+
range.startOffset !== 0))) ||
|
|
43025
|
+
(isNextDirection &&
|
|
43026
|
+
(hasNext ||
|
|
43027
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
43028
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
43029
|
+
current.nodeValue &&
|
|
43030
|
+
range.startOffset !== current.nodeValue.length)))) {
|
|
43031
|
+
return;
|
|
43032
|
+
}
|
|
43033
|
+
}
|
|
43034
|
+
return cell;
|
|
43035
|
+
}
|
|
42944
43036
|
|
|
42945
43037
|
|
|
42946
43038
|
/***/ }),
|
|
@@ -42953,9 +43045,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
42953
43045
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
|
|
42954
43046
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
|
|
42955
43047
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
42956
|
-
/* harmony import */ var
|
|
42957
|
-
/* harmony import */ var
|
|
42958
|
-
/* harmony import */ var
|
|
43048
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
43049
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35863);
|
|
43050
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
42959
43051
|
/*!
|
|
42960
43052
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42961
43053
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42967,12 +43059,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
42967
43059
|
|
|
42968
43060
|
|
|
42969
43061
|
|
|
42970
|
-
|
|
43062
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
42971
43063
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
42972
43064
|
useExtraClassesOptions: false
|
|
42973
43065
|
};
|
|
42974
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (
|
|
42975
|
-
|
|
43066
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
43067
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
|
|
42976
43068
|
data: {
|
|
42977
43069
|
cols: 10,
|
|
42978
43070
|
rows: 10,
|
|
@@ -43139,10 +43231,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43139
43231
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64962);
|
|
43140
43232
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18716);
|
|
43141
43233
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
|
|
43142
|
-
/* harmony import */ var
|
|
43143
|
-
/* harmony import */ var
|
|
43144
|
-
/* harmony import */ var
|
|
43145
|
-
/* harmony import */ var
|
|
43234
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
43235
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
|
|
43236
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46035);
|
|
43237
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
43146
43238
|
/*!
|
|
43147
43239
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
43148
43240
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -43155,8 +43247,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43155
43247
|
|
|
43156
43248
|
|
|
43157
43249
|
|
|
43158
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (
|
|
43159
|
-
|
|
43250
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
43251
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
43160
43252
|
popup: (editor, current, close) => {
|
|
43161
43253
|
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
|
|
43162
43254
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
|
|
@@ -43203,7 +43295,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
|
|
|
43203
43295
|
formCode.onSubmit(data => {
|
|
43204
43296
|
insertCode(data.code);
|
|
43205
43297
|
});
|
|
43206
|
-
return (0,
|
|
43298
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
|
|
43207
43299
|
},
|
|
43208
43300
|
tags: ['iframe'],
|
|
43209
43301
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -43836,9 +43928,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43836
43928
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
|
|
43837
43929
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65564);
|
|
43838
43930
|
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34138);
|
|
43839
|
-
/* harmony import */ var
|
|
43840
|
-
/* harmony import */ var
|
|
43841
|
-
/* harmony import */ var
|
|
43931
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
43932
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75700);
|
|
43933
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56418);
|
|
43842
43934
|
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25511);
|
|
43843
43935
|
/*!
|
|
43844
43936
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
@@ -43856,7 +43948,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43856
43948
|
|
|
43857
43949
|
|
|
43858
43950
|
|
|
43859
|
-
|
|
43951
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.autocomplete = {
|
|
43860
43952
|
sources: [],
|
|
43861
43953
|
maxItems: 50,
|
|
43862
43954
|
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
@@ -43874,7 +43966,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
43874
43966
|
afterInit(jodit) {
|
|
43875
43967
|
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .z(jodit);
|
|
43876
43968
|
this.popup.setMod('padding', false);
|
|
43877
|
-
this.list = new
|
|
43969
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .j(jodit);
|
|
43878
43970
|
this.popup.setContent(this.list.container);
|
|
43879
43971
|
jodit.e
|
|
43880
43972
|
.on('select.autocomplete', (item) => {
|
|
@@ -43885,7 +43977,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
43885
43977
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isNode(insertValue)) {
|
|
43886
43978
|
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
43887
43979
|
}
|
|
43888
|
-
(0,
|
|
43980
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
|
|
43889
43981
|
this.j.s.setCursorAfter(insertValue);
|
|
43890
43982
|
this.j.synchronizeValues();
|
|
43891
43983
|
this.popup.close();
|
|
@@ -43921,7 +44013,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
|
|
|
43921
44013
|
const range = this.j.s.sel?.rangeCount
|
|
43922
44014
|
? this.j.s.sel?.getRangeAt(0)
|
|
43923
44015
|
: null;
|
|
43924
|
-
const query = range && (0,
|
|
44016
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
|
|
43925
44017
|
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
43926
44018
|
const result = await this.onAutoComplete(query);
|
|
43927
44019
|
if (result.length) {
|