jodit-pro 4.2.34 → 4.2.40
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/889.fat.min.js +1 -1
- package/es2015/889.min.js +1 -1
- package/es2015/jodit.css +10 -3
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +126 -58
- 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 +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/889.fat.min.js +1 -1
- package/es2018/889.min.js +1 -1
- package/es2018/jodit.css +10 -3
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +126 -58
- 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 +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/889.fat.min.js +1 -1
- package/es2021/889.min.js +1 -1
- package/es2021/jodit.css +10 -3
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +125 -57
- 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 +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/889.fat.min.js +1 -1
- package/es2021.en/889.min.js +1 -1
- package/es2021.en/jodit.css +10 -3
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +125 -57
- 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 +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/292.fat.min.js +2 -2
- package/es5/292.js +6 -6
- package/es5/292.min.js +2 -2
- package/es5/889.fat.min.js +1 -1
- package/es5/889.min.js +1 -1
- package/es5/jodit.css +13 -4
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +135 -73
- 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 +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/package.json +1 -1
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.40
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2450,7 +2450,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2450
2450
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2451
2451
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2452
2452
|
*/
|
|
2453
|
-
const APP_VERSION = "4.2.
|
|
2453
|
+
const APP_VERSION = "4.2.40";
|
|
2454
2454
|
// prettier-ignore
|
|
2455
2455
|
const ES = "es2021";
|
|
2456
2456
|
const IS_ES_MODERN = true;
|
|
@@ -8386,11 +8386,12 @@ function ConfigFlatten(obj) {
|
|
|
8386
8386
|
/**
|
|
8387
8387
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8388
8388
|
*/
|
|
8389
|
-
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8389
|
+
const convertMediaUrlToVideoEmbed = (url, { width = 400, height = 345 } = {}) => {
|
|
8390
8390
|
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8391
8391
|
return url;
|
|
8392
8392
|
}
|
|
8393
|
-
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a')
|
|
8393
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
8394
|
+
const pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8394
8395
|
parser.href = url;
|
|
8395
8396
|
if (!width) {
|
|
8396
8397
|
width = 400;
|
|
@@ -8417,7 +8418,10 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8417
8418
|
case 'www.youtu.be': {
|
|
8418
8419
|
const query = parser.search
|
|
8419
8420
|
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8420
|
-
: { v: parser.pathname.
|
|
8421
|
+
: { v: parser.pathname.substring(1) };
|
|
8422
|
+
if (/^embed\/.*/.test(query.v)) {
|
|
8423
|
+
query.v = query.v.substring(6);
|
|
8424
|
+
}
|
|
8421
8425
|
return query.v
|
|
8422
8426
|
? '<iframe width="' +
|
|
8423
8427
|
width +
|
|
@@ -14125,6 +14129,7 @@ const JODIT_EVENTS_ON_HIDE = [
|
|
|
14125
14129
|
'changePlace.tooltip',
|
|
14126
14130
|
'afterOpenPopup.tooltip',
|
|
14127
14131
|
'hidePopup.tooltip',
|
|
14132
|
+
'beforePopupClose.tooltip',
|
|
14128
14133
|
'closeAllPopups.tooltip'
|
|
14129
14134
|
];
|
|
14130
14135
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
@@ -14137,6 +14142,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14137
14142
|
constructor(view) {
|
|
14138
14143
|
super(view);
|
|
14139
14144
|
this.__isOpened = false;
|
|
14145
|
+
this.__attachedContainers = new Set();
|
|
14140
14146
|
this.__listenClose = false;
|
|
14141
14147
|
this.__currentTarget = null;
|
|
14142
14148
|
this.__delayShowTimeout = 0;
|
|
@@ -14155,7 +14161,16 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14155
14161
|
__onAttach(container) {
|
|
14156
14162
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14157
14163
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14158
|
-
this.
|
|
14164
|
+
this.__attachedContainers.add(container);
|
|
14165
|
+
this.__attachedContainers.add(this.j.container);
|
|
14166
|
+
this.j.e
|
|
14167
|
+
.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14168
|
+
capture: true
|
|
14169
|
+
})
|
|
14170
|
+
.on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14171
|
+
capture: true
|
|
14172
|
+
})
|
|
14173
|
+
.on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14159
14174
|
capture: true
|
|
14160
14175
|
});
|
|
14161
14176
|
}
|
|
@@ -14167,10 +14182,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14167
14182
|
const view = this.j;
|
|
14168
14183
|
view.e
|
|
14169
14184
|
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14170
|
-
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14171
|
-
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14172
|
-
capture: true
|
|
14173
|
-
});
|
|
14185
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14174
14186
|
}
|
|
14175
14187
|
__removeListenersOnLeave() {
|
|
14176
14188
|
if (!this.__listenClose) {
|
|
@@ -14180,8 +14192,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14180
14192
|
const view = this.j;
|
|
14181
14193
|
view.e
|
|
14182
14194
|
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14183
|
-
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14184
|
-
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14195
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14185
14196
|
}
|
|
14186
14197
|
__onMouseLeave(e) {
|
|
14187
14198
|
if (this.__currentTarget === e.target) {
|
|
@@ -14258,7 +14269,11 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14258
14269
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14259
14270
|
}
|
|
14260
14271
|
destruct() {
|
|
14261
|
-
this.
|
|
14272
|
+
this.__attachedContainers.forEach(container => {
|
|
14273
|
+
this.j.e
|
|
14274
|
+
.off(container, 'mouseenter.tooltip', this.__onMouseEnter)
|
|
14275
|
+
.off(container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14276
|
+
});
|
|
14262
14277
|
this.__hide();
|
|
14263
14278
|
super.destruct();
|
|
14264
14279
|
}
|
|
@@ -14559,6 +14574,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
14559
14574
|
const form = this.j.c.element('form');
|
|
14560
14575
|
form.classList.add(this.componentName);
|
|
14561
14576
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
14577
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
14562
14578
|
return form;
|
|
14563
14579
|
}
|
|
14564
14580
|
constructor(...args) {
|
|
@@ -14986,7 +15002,19 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
14986
15002
|
}
|
|
14987
15003
|
validate() {
|
|
14988
15004
|
this.error = '';
|
|
14989
|
-
|
|
15005
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
15006
|
+
this.__markInputInvalid();
|
|
15007
|
+
return validate;
|
|
15008
|
+
}
|
|
15009
|
+
__markInputInvalid() {
|
|
15010
|
+
if (this.error) {
|
|
15011
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
15012
|
+
this.nativeInput.setCustomValidity?.(this.error);
|
|
15013
|
+
}
|
|
15014
|
+
else {
|
|
15015
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
15016
|
+
this.nativeInput.setCustomValidity?.('');
|
|
15017
|
+
}
|
|
14990
15018
|
}
|
|
14991
15019
|
/** @override **/
|
|
14992
15020
|
createContainer(options) {
|
|
@@ -16464,17 +16492,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16464
16492
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16465
16493
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
16466
16494
|
/* harmony export */ });
|
|
16467
|
-
/* harmony import */ var
|
|
16495
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
16468
16496
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
16469
|
-
/* harmony import */ var
|
|
16497
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
16470
16498
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
16471
16499
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
16472
16500
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
16473
|
-
/* harmony import */ var
|
|
16501
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
|
|
16474
16502
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
16475
|
-
/* harmony import */ var
|
|
16476
|
-
/* harmony import */ var
|
|
16477
|
-
/* harmony import */ var
|
|
16503
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
|
|
16504
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73246);
|
|
16505
|
+
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
|
|
16506
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
|
|
16478
16507
|
/*!
|
|
16479
16508
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16480
16509
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16492,13 +16521,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16492
16521
|
|
|
16493
16522
|
|
|
16494
16523
|
|
|
16495
|
-
|
|
16524
|
+
|
|
16525
|
+
class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
|
|
16496
16526
|
/**
|
|
16497
16527
|
* Container for toolbar
|
|
16498
16528
|
*/
|
|
16499
16529
|
get toolbarContainer() {
|
|
16500
16530
|
if (!this.o.fullsize &&
|
|
16501
|
-
((0,
|
|
16531
|
+
((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__/* .isString */ .K)(this.o.toolbar) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(this.o.toolbar))) {
|
|
16502
16532
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
16503
16533
|
}
|
|
16504
16534
|
this.o.toolbar &&
|
|
@@ -16570,7 +16600,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16570
16600
|
beforeToolbarBuild(items) {
|
|
16571
16601
|
if (Object.keys(this.groupToButtons).length) {
|
|
16572
16602
|
return items.map(item => {
|
|
16573
|
-
if ((0,
|
|
16603
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
|
|
16574
16604
|
item.group &&
|
|
16575
16605
|
this.groupToButtons[item.group]) {
|
|
16576
16606
|
return {
|
|
@@ -16588,11 +16618,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16588
16618
|
/** @override **/
|
|
16589
16619
|
constructor(options, isJodit = false) {
|
|
16590
16620
|
super(options, isJodit);
|
|
16591
|
-
this.toolbar = (0,
|
|
16621
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
|
|
16592
16622
|
this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16593
16623
|
this.registeredButtons = new Set();
|
|
16594
16624
|
this.groupToButtons = {};
|
|
16595
16625
|
this.isJodit = false;
|
|
16626
|
+
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
|
|
16596
16627
|
this.isJodit = isJodit;
|
|
16597
16628
|
this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16598
16629
|
}
|
|
@@ -16602,17 +16633,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16602
16633
|
}
|
|
16603
16634
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
16604
16635
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16636
|
+
this.__tooltip.destruct();
|
|
16605
16637
|
this.toolbar.destruct();
|
|
16606
16638
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
16607
16639
|
this.toolbar = undefined;
|
|
16608
16640
|
super.destruct();
|
|
16609
16641
|
}
|
|
16610
16642
|
}
|
|
16611
|
-
(0,
|
|
16643
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16612
16644
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16613
16645
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16614
|
-
(0,
|
|
16615
|
-
|
|
16646
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16647
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
16616
16648
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
16617
16649
|
|
|
16618
16650
|
|
|
@@ -24388,7 +24420,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24388
24420
|
super(jodit);
|
|
24389
24421
|
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
24390
24422
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
24391
|
-
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
|
|
24392
24423
|
}
|
|
24393
24424
|
__initEvents() {
|
|
24394
24425
|
this.j.e
|
|
@@ -24418,8 +24449,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24418
24449
|
if (this.isDestructed) {
|
|
24419
24450
|
return;
|
|
24420
24451
|
}
|
|
24421
|
-
this.__tooltip?.destruct();
|
|
24422
|
-
this.__tooltip = null;
|
|
24423
24452
|
this.j.e
|
|
24424
24453
|
.off(this.__listenEvents, this.update)
|
|
24425
24454
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -30396,9 +30425,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
30396
30425
|
*/
|
|
30397
30426
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
30398
30427
|
const isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
|
|
30428
|
+
const isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
|
|
30399
30429
|
const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
30400
30430
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
30401
30431
|
if (isBRMode ||
|
|
30432
|
+
isCell ||
|
|
30402
30433
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
30403
30434
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
30404
30435
|
// 2 BR before
|
|
@@ -33875,6 +33906,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33875
33906
|
|
|
33876
33907
|
|
|
33877
33908
|
|
|
33909
|
+
// import 'jodit/plugins/debug/debug';
|
|
33878
33910
|
|
|
33879
33911
|
|
|
33880
33912
|
|
|
@@ -34504,10 +34536,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34504
34536
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
34505
34537
|
return;
|
|
34506
34538
|
}
|
|
34507
|
-
const type = 'selection'
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
|
|
34539
|
+
const type = 'selection';
|
|
34540
|
+
const sel = this.j.s.sel;
|
|
34541
|
+
const range = this.j.s.range;
|
|
34542
|
+
if (sel?.isCollapsed || this.isSelectedTarget(range)) {
|
|
34511
34543
|
if (this.type === type && this.popup.isOpened) {
|
|
34512
34544
|
this.hidePopup();
|
|
34513
34545
|
}
|
|
@@ -34532,9 +34564,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34532
34564
|
/**
|
|
34533
34565
|
* Shortcut for Table module
|
|
34534
34566
|
*/
|
|
34535
|
-
get tableModule() {
|
|
34536
|
-
|
|
34537
|
-
}
|
|
34567
|
+
// private get tableModule(): Table {
|
|
34568
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
34569
|
+
// }
|
|
34538
34570
|
/** @override **/
|
|
34539
34571
|
beforeDestruct(jodit) {
|
|
34540
34572
|
jodit.e
|
|
@@ -35675,7 +35707,11 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35675
35707
|
}
|
|
35676
35708
|
jodit.e.stopPropagation('processPaste');
|
|
35677
35709
|
if (jodit.o.link.processVideoLink) {
|
|
35678
|
-
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
35710
|
+
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
|
|
35711
|
+
jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
|
|
35712
|
+
width: jodit.o.video?.defaultWidth,
|
|
35713
|
+
height: jodit.o.video?.defaultHeight
|
|
35714
|
+
});
|
|
35679
35715
|
if (embed !== html) {
|
|
35680
35716
|
return jodit.createInside.fromHTML(embed);
|
|
35681
35717
|
}
|
|
@@ -43471,12 +43507,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43471
43507
|
|
|
43472
43508
|
|
|
43473
43509
|
|
|
43510
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
|
|
43511
|
+
parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
|
|
43512
|
+
defaultWidth: 400,
|
|
43513
|
+
defaultHeight: 345
|
|
43514
|
+
};
|
|
43474
43515
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
43475
43516
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
43476
|
-
popup: (
|
|
43477
|
-
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43478
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43479
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(
|
|
43517
|
+
popup: (jodit, current, close) => {
|
|
43518
|
+
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43519
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43520
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
|
|
43480
43521
|
name: 'url',
|
|
43481
43522
|
required: true,
|
|
43482
43523
|
label: 'URL',
|
|
@@ -43484,26 +43525,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43484
43525
|
validators: ['url']
|
|
43485
43526
|
})
|
|
43486
43527
|
]),
|
|
43487
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43488
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43528
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43529
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
|
|
43489
43530
|
])
|
|
43490
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43491
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43492
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(
|
|
43531
|
+
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43532
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43533
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
43493
43534
|
name: 'code',
|
|
43494
43535
|
required: true,
|
|
43495
43536
|
label: 'Embed code'
|
|
43496
43537
|
})
|
|
43497
43538
|
]),
|
|
43498
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43499
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43539
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43540
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
|
|
43500
43541
|
])
|
|
43501
43542
|
]), tabs = [], insertCode = (code) => {
|
|
43502
|
-
|
|
43503
|
-
|
|
43543
|
+
jodit.s.restore();
|
|
43544
|
+
jodit.s.insertHTML(code);
|
|
43504
43545
|
close();
|
|
43505
43546
|
};
|
|
43506
|
-
|
|
43547
|
+
jodit.s.save();
|
|
43507
43548
|
tabs.push({
|
|
43508
43549
|
icon: 'link',
|
|
43509
43550
|
name: 'Link',
|
|
@@ -43514,12 +43555,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43514
43555
|
content: formCode.container
|
|
43515
43556
|
});
|
|
43516
43557
|
formLink.onSubmit(data => {
|
|
43517
|
-
insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.
|
|
43558
|
+
insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
|
|
43559
|
+
jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
|
|
43560
|
+
width: jodit.o.video?.defaultWidth,
|
|
43561
|
+
height: jodit.o.video?.defaultHeight
|
|
43562
|
+
}));
|
|
43518
43563
|
});
|
|
43519
43564
|
formCode.onSubmit(data => {
|
|
43520
43565
|
insertCode(data.code);
|
|
43521
43566
|
});
|
|
43522
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(
|
|
43567
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
|
|
43523
43568
|
},
|
|
43524
43569
|
tags: ['iframe'],
|
|
43525
43570
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -46294,7 +46339,7 @@ module.exports = {assert(){}};;
|
|
|
46294
46339
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46295
46340
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; }
|
|
46296
46341
|
/* harmony export */ });
|
|
46297
|
-
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
|
|
46342
|
+
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
|
|
46298
46343
|
/******************************************************************************
|
|
46299
46344
|
Copyright (c) Microsoft Corporation.
|
|
46300
46345
|
|
|
@@ -46560,10 +46605,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
46560
46605
|
o["default"] = v;
|
|
46561
46606
|
};
|
|
46562
46607
|
|
|
46608
|
+
var ownKeys = function(o) {
|
|
46609
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
46610
|
+
var ar = [];
|
|
46611
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
46612
|
+
return ar;
|
|
46613
|
+
};
|
|
46614
|
+
return ownKeys(o);
|
|
46615
|
+
};
|
|
46616
|
+
|
|
46563
46617
|
function __importStar(mod) {
|
|
46564
46618
|
if (mod && mod.__esModule) return mod;
|
|
46565
46619
|
var result = {};
|
|
46566
|
-
if (mod != null) for (var k
|
|
46620
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46567
46621
|
__setModuleDefault(result, mod);
|
|
46568
46622
|
return result;
|
|
46569
46623
|
}
|
|
@@ -46644,12 +46698,25 @@ function __disposeResources(env) {
|
|
|
46644
46698
|
return next();
|
|
46645
46699
|
}
|
|
46646
46700
|
|
|
46701
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
46702
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
46703
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
46704
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
46705
|
+
});
|
|
46706
|
+
}
|
|
46707
|
+
return path;
|
|
46708
|
+
}
|
|
46709
|
+
|
|
46647
46710
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
46648
46711
|
__extends,
|
|
46649
46712
|
__assign,
|
|
46650
46713
|
__rest,
|
|
46651
46714
|
__decorate,
|
|
46652
46715
|
__param,
|
|
46716
|
+
__esDecorate,
|
|
46717
|
+
__runInitializers,
|
|
46718
|
+
__propKey,
|
|
46719
|
+
__setFunctionName,
|
|
46653
46720
|
__metadata,
|
|
46654
46721
|
__awaiter,
|
|
46655
46722
|
__generator,
|
|
@@ -46672,6 +46739,7 @@ function __disposeResources(env) {
|
|
|
46672
46739
|
__classPrivateFieldIn,
|
|
46673
46740
|
__addDisposableResource,
|
|
46674
46741
|
__disposeResources,
|
|
46742
|
+
__rewriteRelativeImportExtension,
|
|
46675
46743
|
});
|
|
46676
46744
|
|
|
46677
46745
|
|
|
@@ -46957,7 +47025,7 @@ function __disposeResources(env) {
|
|
|
46957
47025
|
/******/
|
|
46958
47026
|
/************************************************************************/
|
|
46959
47027
|
var __webpack_exports__ = {};
|
|
46960
|
-
// This entry
|
|
47028
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
46961
47029
|
!function() {
|
|
46962
47030
|
"use strict";
|
|
46963
47031
|
__webpack_require__.r(__webpack_exports__);
|