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/es2018/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.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
|
*/
|
|
@@ -2449,7 +2449,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2449
2449
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2450
2450
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2451
2451
|
*/
|
|
2452
|
-
const APP_VERSION = "4.2.
|
|
2452
|
+
const APP_VERSION = "4.2.40";
|
|
2453
2453
|
// prettier-ignore
|
|
2454
2454
|
const ES = "es2018";
|
|
2455
2455
|
const IS_ES_MODERN = true;
|
|
@@ -8403,11 +8403,12 @@ function ConfigFlatten(obj) {
|
|
|
8403
8403
|
/**
|
|
8404
8404
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8405
8405
|
*/
|
|
8406
|
-
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8406
|
+
const convertMediaUrlToVideoEmbed = (url, { width = 400, height = 345 } = {}) => {
|
|
8407
8407
|
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8408
8408
|
return url;
|
|
8409
8409
|
}
|
|
8410
|
-
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a')
|
|
8410
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
8411
|
+
const pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8411
8412
|
parser.href = url;
|
|
8412
8413
|
if (!width) {
|
|
8413
8414
|
width = 400;
|
|
@@ -8434,7 +8435,10 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8434
8435
|
case 'www.youtu.be': {
|
|
8435
8436
|
const query = parser.search
|
|
8436
8437
|
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8437
|
-
: { v: parser.pathname.
|
|
8438
|
+
: { v: parser.pathname.substring(1) };
|
|
8439
|
+
if (/^embed\/.*/.test(query.v)) {
|
|
8440
|
+
query.v = query.v.substring(6);
|
|
8441
|
+
}
|
|
8438
8442
|
return query.v
|
|
8439
8443
|
? '<iframe width="' +
|
|
8440
8444
|
width +
|
|
@@ -14167,6 +14171,7 @@ const JODIT_EVENTS_ON_HIDE = [
|
|
|
14167
14171
|
'changePlace.tooltip',
|
|
14168
14172
|
'afterOpenPopup.tooltip',
|
|
14169
14173
|
'hidePopup.tooltip',
|
|
14174
|
+
'beforePopupClose.tooltip',
|
|
14170
14175
|
'closeAllPopups.tooltip'
|
|
14171
14176
|
];
|
|
14172
14177
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
@@ -14179,6 +14184,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14179
14184
|
constructor(view) {
|
|
14180
14185
|
super(view);
|
|
14181
14186
|
this.__isOpened = false;
|
|
14187
|
+
this.__attachedContainers = new Set();
|
|
14182
14188
|
this.__listenClose = false;
|
|
14183
14189
|
this.__currentTarget = null;
|
|
14184
14190
|
this.__delayShowTimeout = 0;
|
|
@@ -14197,7 +14203,16 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14197
14203
|
__onAttach(container) {
|
|
14198
14204
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14199
14205
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14200
|
-
this.
|
|
14206
|
+
this.__attachedContainers.add(container);
|
|
14207
|
+
this.__attachedContainers.add(this.j.container);
|
|
14208
|
+
this.j.e
|
|
14209
|
+
.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14210
|
+
capture: true
|
|
14211
|
+
})
|
|
14212
|
+
.on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14213
|
+
capture: true
|
|
14214
|
+
})
|
|
14215
|
+
.on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14201
14216
|
capture: true
|
|
14202
14217
|
});
|
|
14203
14218
|
}
|
|
@@ -14209,10 +14224,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14209
14224
|
const view = this.j;
|
|
14210
14225
|
view.e
|
|
14211
14226
|
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14212
|
-
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14213
|
-
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14214
|
-
capture: true
|
|
14215
|
-
});
|
|
14227
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14216
14228
|
}
|
|
14217
14229
|
__removeListenersOnLeave() {
|
|
14218
14230
|
if (!this.__listenClose) {
|
|
@@ -14222,8 +14234,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14222
14234
|
const view = this.j;
|
|
14223
14235
|
view.e
|
|
14224
14236
|
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14225
|
-
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14226
|
-
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14237
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14227
14238
|
}
|
|
14228
14239
|
__onMouseLeave(e) {
|
|
14229
14240
|
if (this.__currentTarget === e.target) {
|
|
@@ -14300,7 +14311,11 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14300
14311
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14301
14312
|
}
|
|
14302
14313
|
destruct() {
|
|
14303
|
-
this.
|
|
14314
|
+
this.__attachedContainers.forEach(container => {
|
|
14315
|
+
this.j.e
|
|
14316
|
+
.off(container, 'mouseenter.tooltip', this.__onMouseEnter)
|
|
14317
|
+
.off(container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14318
|
+
});
|
|
14304
14319
|
this.__hide();
|
|
14305
14320
|
super.destruct();
|
|
14306
14321
|
}
|
|
@@ -14602,6 +14617,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
14602
14617
|
const form = this.j.c.element('form');
|
|
14603
14618
|
form.classList.add(this.componentName);
|
|
14604
14619
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
14620
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
14605
14621
|
return form;
|
|
14606
14622
|
}
|
|
14607
14623
|
constructor(...args) {
|
|
@@ -15032,7 +15048,20 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
15032
15048
|
}
|
|
15033
15049
|
validate() {
|
|
15034
15050
|
this.error = '';
|
|
15035
|
-
|
|
15051
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
15052
|
+
this.__markInputInvalid();
|
|
15053
|
+
return validate;
|
|
15054
|
+
}
|
|
15055
|
+
__markInputInvalid() {
|
|
15056
|
+
var _a, _b, _c, _d;
|
|
15057
|
+
if (this.error) {
|
|
15058
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
15059
|
+
(_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
|
|
15060
|
+
}
|
|
15061
|
+
else {
|
|
15062
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
15063
|
+
(_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
|
|
15064
|
+
}
|
|
15036
15065
|
}
|
|
15037
15066
|
/** @override **/
|
|
15038
15067
|
createContainer(options) {
|
|
@@ -16516,17 +16545,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16516
16545
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16517
16546
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
16518
16547
|
/* harmony export */ });
|
|
16519
|
-
/* harmony import */ var
|
|
16548
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
16520
16549
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
16521
|
-
/* harmony import */ var
|
|
16550
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
16522
16551
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
16523
16552
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
16524
16553
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
16525
|
-
/* harmony import */ var
|
|
16554
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
|
|
16526
16555
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
16527
|
-
/* harmony import */ var
|
|
16528
|
-
/* harmony import */ var
|
|
16529
|
-
/* harmony import */ var
|
|
16556
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
|
|
16557
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73246);
|
|
16558
|
+
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
|
|
16559
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
|
|
16530
16560
|
/*!
|
|
16531
16561
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16532
16562
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16544,13 +16574,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16544
16574
|
|
|
16545
16575
|
|
|
16546
16576
|
|
|
16547
|
-
|
|
16577
|
+
|
|
16578
|
+
class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
|
|
16548
16579
|
/**
|
|
16549
16580
|
* Container for toolbar
|
|
16550
16581
|
*/
|
|
16551
16582
|
get toolbarContainer() {
|
|
16552
16583
|
if (!this.o.fullsize &&
|
|
16553
|
-
((0,
|
|
16584
|
+
((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))) {
|
|
16554
16585
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
16555
16586
|
}
|
|
16556
16587
|
this.o.toolbar &&
|
|
@@ -16622,7 +16653,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16622
16653
|
beforeToolbarBuild(items) {
|
|
16623
16654
|
if (Object.keys(this.groupToButtons).length) {
|
|
16624
16655
|
return items.map(item => {
|
|
16625
|
-
if ((0,
|
|
16656
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
|
|
16626
16657
|
item.group &&
|
|
16627
16658
|
this.groupToButtons[item.group]) {
|
|
16628
16659
|
return {
|
|
@@ -16640,11 +16671,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16640
16671
|
/** @override **/
|
|
16641
16672
|
constructor(options, isJodit = false) {
|
|
16642
16673
|
super(options, isJodit);
|
|
16643
|
-
this.toolbar = (0,
|
|
16674
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
|
|
16644
16675
|
this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16645
16676
|
this.registeredButtons = new Set();
|
|
16646
16677
|
this.groupToButtons = {};
|
|
16647
16678
|
this.isJodit = false;
|
|
16679
|
+
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
|
|
16648
16680
|
this.isJodit = isJodit;
|
|
16649
16681
|
this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16650
16682
|
}
|
|
@@ -16654,17 +16686,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16654
16686
|
}
|
|
16655
16687
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
16656
16688
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16689
|
+
this.__tooltip.destruct();
|
|
16657
16690
|
this.toolbar.destruct();
|
|
16658
16691
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
16659
16692
|
this.toolbar = undefined;
|
|
16660
16693
|
super.destruct();
|
|
16661
16694
|
}
|
|
16662
16695
|
}
|
|
16663
|
-
(0,
|
|
16696
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16664
16697
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16665
16698
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16666
|
-
(0,
|
|
16667
|
-
|
|
16699
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16700
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
16668
16701
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
16669
16702
|
|
|
16670
16703
|
|
|
@@ -24471,7 +24504,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24471
24504
|
super(jodit);
|
|
24472
24505
|
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
24473
24506
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
24474
|
-
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
|
|
24475
24507
|
}
|
|
24476
24508
|
__initEvents() {
|
|
24477
24509
|
this.j.e
|
|
@@ -24498,12 +24530,9 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24498
24530
|
}
|
|
24499
24531
|
/** @override **/
|
|
24500
24532
|
destruct() {
|
|
24501
|
-
var _a;
|
|
24502
24533
|
if (this.isDestructed) {
|
|
24503
24534
|
return;
|
|
24504
24535
|
}
|
|
24505
|
-
(_a = this.__tooltip) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
24506
|
-
this.__tooltip = null;
|
|
24507
24536
|
this.j.e
|
|
24508
24537
|
.off(this.__listenEvents, this.update)
|
|
24509
24538
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -30490,9 +30519,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
30490
30519
|
*/
|
|
30491
30520
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
30492
30521
|
const isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
|
|
30522
|
+
const isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
|
|
30493
30523
|
const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
30494
30524
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
30495
30525
|
if (isBRMode ||
|
|
30526
|
+
isCell ||
|
|
30496
30527
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
30497
30528
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
30498
30529
|
// 2 BR before
|
|
@@ -33979,6 +34010,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33979
34010
|
|
|
33980
34011
|
|
|
33981
34012
|
|
|
34013
|
+
// import 'jodit/plugins/debug/debug';
|
|
33982
34014
|
|
|
33983
34015
|
|
|
33984
34016
|
|
|
@@ -34608,10 +34640,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34608
34640
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
34609
34641
|
return;
|
|
34610
34642
|
}
|
|
34611
|
-
const type = 'selection'
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34643
|
+
const type = 'selection';
|
|
34644
|
+
const sel = this.j.s.sel;
|
|
34645
|
+
const range = this.j.s.range;
|
|
34646
|
+
if ((sel === null || sel === void 0 ? void 0 : sel.isCollapsed) || this.isSelectedTarget(range)) {
|
|
34615
34647
|
if (this.type === type && this.popup.isOpened) {
|
|
34616
34648
|
this.hidePopup();
|
|
34617
34649
|
}
|
|
@@ -34636,9 +34668,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34636
34668
|
/**
|
|
34637
34669
|
* Shortcut for Table module
|
|
34638
34670
|
*/
|
|
34639
|
-
get tableModule() {
|
|
34640
|
-
|
|
34641
|
-
}
|
|
34671
|
+
// private get tableModule(): Table {
|
|
34672
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
34673
|
+
// }
|
|
34642
34674
|
/** @override **/
|
|
34643
34675
|
beforeDestruct(jodit) {
|
|
34644
34676
|
jodit.e
|
|
@@ -35774,13 +35806,17 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35774
35806
|
}
|
|
35775
35807
|
}
|
|
35776
35808
|
onProcessPasteLink(ignore, html) {
|
|
35809
|
+
var _a, _b, _c, _d;
|
|
35777
35810
|
const { jodit } = this;
|
|
35778
35811
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
|
|
35779
35812
|
return;
|
|
35780
35813
|
}
|
|
35781
35814
|
jodit.e.stopPropagation('processPaste');
|
|
35782
35815
|
if (jodit.o.link.processVideoLink) {
|
|
35783
|
-
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
35816
|
+
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
|
|
35817
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
35818
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
35819
|
+
});
|
|
35784
35820
|
if (embed !== html) {
|
|
35785
35821
|
return jodit.createInside.fromHTML(embed);
|
|
35786
35822
|
}
|
|
@@ -43605,12 +43641,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43605
43641
|
|
|
43606
43642
|
|
|
43607
43643
|
|
|
43644
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
|
|
43645
|
+
parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
|
|
43646
|
+
defaultWidth: 400,
|
|
43647
|
+
defaultHeight: 345
|
|
43648
|
+
};
|
|
43608
43649
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
43609
43650
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
43610
|
-
popup: (
|
|
43611
|
-
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43612
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43613
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(
|
|
43651
|
+
popup: (jodit, current, close) => {
|
|
43652
|
+
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43653
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43654
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
|
|
43614
43655
|
name: 'url',
|
|
43615
43656
|
required: true,
|
|
43616
43657
|
label: 'URL',
|
|
@@ -43618,26 +43659,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43618
43659
|
validators: ['url']
|
|
43619
43660
|
})
|
|
43620
43661
|
]),
|
|
43621
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43622
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43662
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43663
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
|
|
43623
43664
|
])
|
|
43624
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43625
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43626
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(
|
|
43665
|
+
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43666
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43667
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
43627
43668
|
name: 'code',
|
|
43628
43669
|
required: true,
|
|
43629
43670
|
label: 'Embed code'
|
|
43630
43671
|
})
|
|
43631
43672
|
]),
|
|
43632
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43633
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43673
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43674
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
|
|
43634
43675
|
])
|
|
43635
43676
|
]), tabs = [], insertCode = (code) => {
|
|
43636
|
-
|
|
43637
|
-
|
|
43677
|
+
jodit.s.restore();
|
|
43678
|
+
jodit.s.insertHTML(code);
|
|
43638
43679
|
close();
|
|
43639
43680
|
};
|
|
43640
|
-
|
|
43681
|
+
jodit.s.save();
|
|
43641
43682
|
tabs.push({
|
|
43642
43683
|
icon: 'link',
|
|
43643
43684
|
name: 'Link',
|
|
@@ -43648,12 +43689,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43648
43689
|
content: formCode.container
|
|
43649
43690
|
});
|
|
43650
43691
|
formLink.onSubmit(data => {
|
|
43651
|
-
|
|
43692
|
+
var _a, _b, _c, _d;
|
|
43693
|
+
insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
|
|
43694
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
43695
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
43696
|
+
}));
|
|
43652
43697
|
});
|
|
43653
43698
|
formCode.onSubmit(data => {
|
|
43654
43699
|
insertCode(data.code);
|
|
43655
43700
|
});
|
|
43656
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(
|
|
43701
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
|
|
43657
43702
|
},
|
|
43658
43703
|
tags: ['iframe'],
|
|
43659
43704
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -46452,7 +46497,7 @@ module.exports = {assert(){}};;
|
|
|
46452
46497
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46453
46498
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; }
|
|
46454
46499
|
/* harmony export */ });
|
|
46455
|
-
/* 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 */
|
|
46500
|
+
/* 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 */
|
|
46456
46501
|
/******************************************************************************
|
|
46457
46502
|
Copyright (c) Microsoft Corporation.
|
|
46458
46503
|
|
|
@@ -46718,10 +46763,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
46718
46763
|
o["default"] = v;
|
|
46719
46764
|
};
|
|
46720
46765
|
|
|
46766
|
+
var ownKeys = function(o) {
|
|
46767
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
46768
|
+
var ar = [];
|
|
46769
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
46770
|
+
return ar;
|
|
46771
|
+
};
|
|
46772
|
+
return ownKeys(o);
|
|
46773
|
+
};
|
|
46774
|
+
|
|
46721
46775
|
function __importStar(mod) {
|
|
46722
46776
|
if (mod && mod.__esModule) return mod;
|
|
46723
46777
|
var result = {};
|
|
46724
|
-
if (mod != null) for (var k
|
|
46778
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46725
46779
|
__setModuleDefault(result, mod);
|
|
46726
46780
|
return result;
|
|
46727
46781
|
}
|
|
@@ -46802,12 +46856,25 @@ function __disposeResources(env) {
|
|
|
46802
46856
|
return next();
|
|
46803
46857
|
}
|
|
46804
46858
|
|
|
46859
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
46860
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
46861
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
46862
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
46863
|
+
});
|
|
46864
|
+
}
|
|
46865
|
+
return path;
|
|
46866
|
+
}
|
|
46867
|
+
|
|
46805
46868
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
46806
46869
|
__extends,
|
|
46807
46870
|
__assign,
|
|
46808
46871
|
__rest,
|
|
46809
46872
|
__decorate,
|
|
46810
46873
|
__param,
|
|
46874
|
+
__esDecorate,
|
|
46875
|
+
__runInitializers,
|
|
46876
|
+
__propKey,
|
|
46877
|
+
__setFunctionName,
|
|
46811
46878
|
__metadata,
|
|
46812
46879
|
__awaiter,
|
|
46813
46880
|
__generator,
|
|
@@ -46830,6 +46897,7 @@ function __disposeResources(env) {
|
|
|
46830
46897
|
__classPrivateFieldIn,
|
|
46831
46898
|
__addDisposableResource,
|
|
46832
46899
|
__disposeResources,
|
|
46900
|
+
__rewriteRelativeImportExtension,
|
|
46833
46901
|
});
|
|
46834
46902
|
|
|
46835
46903
|
|
|
@@ -47115,7 +47183,7 @@ function __disposeResources(env) {
|
|
|
47115
47183
|
/******/
|
|
47116
47184
|
/************************************************************************/
|
|
47117
47185
|
var __webpack_exports__ = {};
|
|
47118
|
-
// This entry
|
|
47186
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
47119
47187
|
!function() {
|
|
47120
47188
|
"use strict";
|
|
47121
47189
|
__webpack_require__.r(__webpack_exports__);
|