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.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.40
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2303,7 +2303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2303
2303
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2304
2304
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2305
2305
|
*/
|
|
2306
|
-
const APP_VERSION = "4.2.
|
|
2306
|
+
const APP_VERSION = "4.2.40";
|
|
2307
2307
|
// prettier-ignore
|
|
2308
2308
|
const ES = "es2021";
|
|
2309
2309
|
const IS_ES_MODERN = true;
|
|
@@ -8239,11 +8239,12 @@ function ConfigFlatten(obj) {
|
|
|
8239
8239
|
/**
|
|
8240
8240
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8241
8241
|
*/
|
|
8242
|
-
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8242
|
+
const convertMediaUrlToVideoEmbed = (url, { width = 400, height = 345 } = {}) => {
|
|
8243
8243
|
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8244
8244
|
return url;
|
|
8245
8245
|
}
|
|
8246
|
-
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a')
|
|
8246
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
8247
|
+
const pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8247
8248
|
parser.href = url;
|
|
8248
8249
|
if (!width) {
|
|
8249
8250
|
width = 400;
|
|
@@ -8270,7 +8271,10 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8270
8271
|
case 'www.youtu.be': {
|
|
8271
8272
|
const query = parser.search
|
|
8272
8273
|
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8273
|
-
: { v: parser.pathname.
|
|
8274
|
+
: { v: parser.pathname.substring(1) };
|
|
8275
|
+
if (/^embed\/.*/.test(query.v)) {
|
|
8276
|
+
query.v = query.v.substring(6);
|
|
8277
|
+
}
|
|
8274
8278
|
return query.v
|
|
8275
8279
|
? '<iframe width="' +
|
|
8276
8280
|
width +
|
|
@@ -13978,6 +13982,7 @@ const JODIT_EVENTS_ON_HIDE = [
|
|
|
13978
13982
|
'changePlace.tooltip',
|
|
13979
13983
|
'afterOpenPopup.tooltip',
|
|
13980
13984
|
'hidePopup.tooltip',
|
|
13985
|
+
'beforePopupClose.tooltip',
|
|
13981
13986
|
'closeAllPopups.tooltip'
|
|
13982
13987
|
];
|
|
13983
13988
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
@@ -13990,6 +13995,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
13990
13995
|
constructor(view) {
|
|
13991
13996
|
super(view);
|
|
13992
13997
|
this.__isOpened = false;
|
|
13998
|
+
this.__attachedContainers = new Set();
|
|
13993
13999
|
this.__listenClose = false;
|
|
13994
14000
|
this.__currentTarget = null;
|
|
13995
14001
|
this.__delayShowTimeout = 0;
|
|
@@ -14008,7 +14014,16 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14008
14014
|
__onAttach(container) {
|
|
14009
14015
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14010
14016
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14011
|
-
this.
|
|
14017
|
+
this.__attachedContainers.add(container);
|
|
14018
|
+
this.__attachedContainers.add(this.j.container);
|
|
14019
|
+
this.j.e
|
|
14020
|
+
.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14021
|
+
capture: true
|
|
14022
|
+
})
|
|
14023
|
+
.on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14024
|
+
capture: true
|
|
14025
|
+
})
|
|
14026
|
+
.on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14012
14027
|
capture: true
|
|
14013
14028
|
});
|
|
14014
14029
|
}
|
|
@@ -14020,10 +14035,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14020
14035
|
const view = this.j;
|
|
14021
14036
|
view.e
|
|
14022
14037
|
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14023
|
-
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14024
|
-
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14025
|
-
capture: true
|
|
14026
|
-
});
|
|
14038
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14027
14039
|
}
|
|
14028
14040
|
__removeListenersOnLeave() {
|
|
14029
14041
|
if (!this.__listenClose) {
|
|
@@ -14033,8 +14045,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14033
14045
|
const view = this.j;
|
|
14034
14046
|
view.e
|
|
14035
14047
|
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14036
|
-
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14037
|
-
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14048
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14038
14049
|
}
|
|
14039
14050
|
__onMouseLeave(e) {
|
|
14040
14051
|
if (this.__currentTarget === e.target) {
|
|
@@ -14111,7 +14122,11 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14111
14122
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14112
14123
|
}
|
|
14113
14124
|
destruct() {
|
|
14114
|
-
this.
|
|
14125
|
+
this.__attachedContainers.forEach(container => {
|
|
14126
|
+
this.j.e
|
|
14127
|
+
.off(container, 'mouseenter.tooltip', this.__onMouseEnter)
|
|
14128
|
+
.off(container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14129
|
+
});
|
|
14115
14130
|
this.__hide();
|
|
14116
14131
|
super.destruct();
|
|
14117
14132
|
}
|
|
@@ -14412,6 +14427,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
14412
14427
|
const form = this.j.c.element('form');
|
|
14413
14428
|
form.classList.add(this.componentName);
|
|
14414
14429
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
14430
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
14415
14431
|
return form;
|
|
14416
14432
|
}
|
|
14417
14433
|
constructor(...args) {
|
|
@@ -14839,7 +14855,19 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
14839
14855
|
}
|
|
14840
14856
|
validate() {
|
|
14841
14857
|
this.error = '';
|
|
14842
|
-
|
|
14858
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
14859
|
+
this.__markInputInvalid();
|
|
14860
|
+
return validate;
|
|
14861
|
+
}
|
|
14862
|
+
__markInputInvalid() {
|
|
14863
|
+
if (this.error) {
|
|
14864
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
14865
|
+
this.nativeInput.setCustomValidity?.(this.error);
|
|
14866
|
+
}
|
|
14867
|
+
else {
|
|
14868
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
14869
|
+
this.nativeInput.setCustomValidity?.('');
|
|
14870
|
+
}
|
|
14843
14871
|
}
|
|
14844
14872
|
/** @override **/
|
|
14845
14873
|
createContainer(options) {
|
|
@@ -16317,17 +16345,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16317
16345
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16318
16346
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
16319
16347
|
/* harmony export */ });
|
|
16320
|
-
/* harmony import */ var
|
|
16348
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
16321
16349
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
16322
|
-
/* harmony import */ var
|
|
16350
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
16323
16351
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
16324
16352
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
16325
16353
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
16326
|
-
/* harmony import */ var
|
|
16354
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
|
|
16327
16355
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
16328
|
-
/* harmony import */ var
|
|
16329
|
-
/* harmony import */ var
|
|
16330
|
-
/* harmony import */ var
|
|
16356
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
|
|
16357
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73246);
|
|
16358
|
+
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
|
|
16359
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
|
|
16331
16360
|
/*!
|
|
16332
16361
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16333
16362
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16345,13 +16374,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16345
16374
|
|
|
16346
16375
|
|
|
16347
16376
|
|
|
16348
|
-
|
|
16377
|
+
|
|
16378
|
+
class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
|
|
16349
16379
|
/**
|
|
16350
16380
|
* Container for toolbar
|
|
16351
16381
|
*/
|
|
16352
16382
|
get toolbarContainer() {
|
|
16353
16383
|
if (!this.o.fullsize &&
|
|
16354
|
-
((0,
|
|
16384
|
+
((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))) {
|
|
16355
16385
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
16356
16386
|
}
|
|
16357
16387
|
this.o.toolbar &&
|
|
@@ -16423,7 +16453,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16423
16453
|
beforeToolbarBuild(items) {
|
|
16424
16454
|
if (Object.keys(this.groupToButtons).length) {
|
|
16425
16455
|
return items.map(item => {
|
|
16426
|
-
if ((0,
|
|
16456
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
|
|
16427
16457
|
item.group &&
|
|
16428
16458
|
this.groupToButtons[item.group]) {
|
|
16429
16459
|
return {
|
|
@@ -16441,11 +16471,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16441
16471
|
/** @override **/
|
|
16442
16472
|
constructor(options, isJodit = false) {
|
|
16443
16473
|
super(options, isJodit);
|
|
16444
|
-
this.toolbar = (0,
|
|
16474
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
|
|
16445
16475
|
this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16446
16476
|
this.registeredButtons = new Set();
|
|
16447
16477
|
this.groupToButtons = {};
|
|
16448
16478
|
this.isJodit = false;
|
|
16479
|
+
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
|
|
16449
16480
|
this.isJodit = isJodit;
|
|
16450
16481
|
this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16451
16482
|
}
|
|
@@ -16455,17 +16486,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16455
16486
|
}
|
|
16456
16487
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
16457
16488
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16489
|
+
this.__tooltip.destruct();
|
|
16458
16490
|
this.toolbar.destruct();
|
|
16459
16491
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
16460
16492
|
this.toolbar = undefined;
|
|
16461
16493
|
super.destruct();
|
|
16462
16494
|
}
|
|
16463
16495
|
}
|
|
16464
|
-
(0,
|
|
16496
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16465
16497
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16466
16498
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16467
|
-
(0,
|
|
16468
|
-
|
|
16499
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16500
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
16469
16501
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
16470
16502
|
|
|
16471
16503
|
|
|
@@ -24222,7 +24254,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24222
24254
|
super(jodit);
|
|
24223
24255
|
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
24224
24256
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
24225
|
-
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
|
|
24226
24257
|
}
|
|
24227
24258
|
__initEvents() {
|
|
24228
24259
|
this.j.e
|
|
@@ -24252,8 +24283,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24252
24283
|
if (this.isDestructed) {
|
|
24253
24284
|
return;
|
|
24254
24285
|
}
|
|
24255
|
-
this.__tooltip?.destruct();
|
|
24256
|
-
this.__tooltip = null;
|
|
24257
24286
|
this.j.e
|
|
24258
24287
|
.off(this.__listenEvents, this.update)
|
|
24259
24288
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -29780,9 +29809,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
29780
29809
|
*/
|
|
29781
29810
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
29782
29811
|
const isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
|
|
29812
|
+
const isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
|
|
29783
29813
|
const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
29784
29814
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
29785
29815
|
if (isBRMode ||
|
|
29816
|
+
isCell ||
|
|
29786
29817
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
29787
29818
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
29788
29819
|
// 2 BR before
|
|
@@ -33259,6 +33290,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33259
33290
|
|
|
33260
33291
|
|
|
33261
33292
|
|
|
33293
|
+
// import 'jodit/plugins/debug/debug';
|
|
33262
33294
|
|
|
33263
33295
|
|
|
33264
33296
|
|
|
@@ -33888,10 +33920,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
33888
33920
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
33889
33921
|
return;
|
|
33890
33922
|
}
|
|
33891
|
-
const type = 'selection'
|
|
33892
|
-
|
|
33893
|
-
|
|
33894
|
-
|
|
33923
|
+
const type = 'selection';
|
|
33924
|
+
const sel = this.j.s.sel;
|
|
33925
|
+
const range = this.j.s.range;
|
|
33926
|
+
if (sel?.isCollapsed || this.isSelectedTarget(range)) {
|
|
33895
33927
|
if (this.type === type && this.popup.isOpened) {
|
|
33896
33928
|
this.hidePopup();
|
|
33897
33929
|
}
|
|
@@ -33916,9 +33948,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
33916
33948
|
/**
|
|
33917
33949
|
* Shortcut for Table module
|
|
33918
33950
|
*/
|
|
33919
|
-
get tableModule() {
|
|
33920
|
-
|
|
33921
|
-
}
|
|
33951
|
+
// private get tableModule(): Table {
|
|
33952
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
33953
|
+
// }
|
|
33922
33954
|
/** @override **/
|
|
33923
33955
|
beforeDestruct(jodit) {
|
|
33924
33956
|
jodit.e
|
|
@@ -34643,7 +34675,11 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34643
34675
|
}
|
|
34644
34676
|
jodit.e.stopPropagation('processPaste');
|
|
34645
34677
|
if (jodit.o.link.processVideoLink) {
|
|
34646
|
-
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
34678
|
+
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
|
|
34679
|
+
jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
|
|
34680
|
+
width: jodit.o.video?.defaultWidth,
|
|
34681
|
+
height: jodit.o.video?.defaultHeight
|
|
34682
|
+
});
|
|
34647
34683
|
if (embed !== html) {
|
|
34648
34684
|
return jodit.createInside.fromHTML(embed);
|
|
34649
34685
|
}
|
|
@@ -41607,12 +41643,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
41607
41643
|
|
|
41608
41644
|
|
|
41609
41645
|
|
|
41646
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
|
|
41647
|
+
parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
|
|
41648
|
+
defaultWidth: 400,
|
|
41649
|
+
defaultHeight: 345
|
|
41650
|
+
};
|
|
41610
41651
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
41611
41652
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
41612
|
-
popup: (
|
|
41613
|
-
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
41614
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
41615
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(
|
|
41653
|
+
popup: (jodit, current, close) => {
|
|
41654
|
+
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
41655
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
41656
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
|
|
41616
41657
|
name: 'url',
|
|
41617
41658
|
required: true,
|
|
41618
41659
|
label: 'URL',
|
|
@@ -41620,26 +41661,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
41620
41661
|
validators: ['url']
|
|
41621
41662
|
})
|
|
41622
41663
|
]),
|
|
41623
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
41624
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
41664
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
41665
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
|
|
41625
41666
|
])
|
|
41626
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
41627
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
41628
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(
|
|
41667
|
+
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
41668
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
41669
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
41629
41670
|
name: 'code',
|
|
41630
41671
|
required: true,
|
|
41631
41672
|
label: 'Embed code'
|
|
41632
41673
|
})
|
|
41633
41674
|
]),
|
|
41634
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
41635
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
41675
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
41676
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
|
|
41636
41677
|
])
|
|
41637
41678
|
]), tabs = [], insertCode = (code) => {
|
|
41638
|
-
|
|
41639
|
-
|
|
41679
|
+
jodit.s.restore();
|
|
41680
|
+
jodit.s.insertHTML(code);
|
|
41640
41681
|
close();
|
|
41641
41682
|
};
|
|
41642
|
-
|
|
41683
|
+
jodit.s.save();
|
|
41643
41684
|
tabs.push({
|
|
41644
41685
|
icon: 'link',
|
|
41645
41686
|
name: 'Link',
|
|
@@ -41650,12 +41691,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
41650
41691
|
content: formCode.container
|
|
41651
41692
|
});
|
|
41652
41693
|
formLink.onSubmit(data => {
|
|
41653
|
-
insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.
|
|
41694
|
+
insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
|
|
41695
|
+
jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
|
|
41696
|
+
width: jodit.o.video?.defaultWidth,
|
|
41697
|
+
height: jodit.o.video?.defaultHeight
|
|
41698
|
+
}));
|
|
41654
41699
|
});
|
|
41655
41700
|
formCode.onSubmit(data => {
|
|
41656
41701
|
insertCode(data.code);
|
|
41657
41702
|
});
|
|
41658
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(
|
|
41703
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
|
|
41659
41704
|
},
|
|
41660
41705
|
tags: ['iframe'],
|
|
41661
41706
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -44438,7 +44483,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__41324__;
|
|
|
44438
44483
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44439
44484
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; }
|
|
44440
44485
|
/* harmony export */ });
|
|
44441
|
-
/* 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 */
|
|
44486
|
+
/* 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 */
|
|
44442
44487
|
/******************************************************************************
|
|
44443
44488
|
Copyright (c) Microsoft Corporation.
|
|
44444
44489
|
|
|
@@ -44704,10 +44749,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
44704
44749
|
o["default"] = v;
|
|
44705
44750
|
};
|
|
44706
44751
|
|
|
44752
|
+
var ownKeys = function(o) {
|
|
44753
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
44754
|
+
var ar = [];
|
|
44755
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44756
|
+
return ar;
|
|
44757
|
+
};
|
|
44758
|
+
return ownKeys(o);
|
|
44759
|
+
};
|
|
44760
|
+
|
|
44707
44761
|
function __importStar(mod) {
|
|
44708
44762
|
if (mod && mod.__esModule) return mod;
|
|
44709
44763
|
var result = {};
|
|
44710
|
-
if (mod != null) for (var k
|
|
44764
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44711
44765
|
__setModuleDefault(result, mod);
|
|
44712
44766
|
return result;
|
|
44713
44767
|
}
|
|
@@ -44788,12 +44842,25 @@ function __disposeResources(env) {
|
|
|
44788
44842
|
return next();
|
|
44789
44843
|
}
|
|
44790
44844
|
|
|
44845
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
44846
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
44847
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
44848
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
44849
|
+
});
|
|
44850
|
+
}
|
|
44851
|
+
return path;
|
|
44852
|
+
}
|
|
44853
|
+
|
|
44791
44854
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
44792
44855
|
__extends,
|
|
44793
44856
|
__assign,
|
|
44794
44857
|
__rest,
|
|
44795
44858
|
__decorate,
|
|
44796
44859
|
__param,
|
|
44860
|
+
__esDecorate,
|
|
44861
|
+
__runInitializers,
|
|
44862
|
+
__propKey,
|
|
44863
|
+
__setFunctionName,
|
|
44797
44864
|
__metadata,
|
|
44798
44865
|
__awaiter,
|
|
44799
44866
|
__generator,
|
|
@@ -44816,6 +44883,7 @@ function __disposeResources(env) {
|
|
|
44816
44883
|
__classPrivateFieldIn,
|
|
44817
44884
|
__addDisposableResource,
|
|
44818
44885
|
__disposeResources,
|
|
44886
|
+
__rewriteRelativeImportExtension,
|
|
44819
44887
|
});
|
|
44820
44888
|
|
|
44821
44889
|
|
|
@@ -45101,7 +45169,7 @@ function __disposeResources(env) {
|
|
|
45101
45169
|
/******/
|
|
45102
45170
|
/************************************************************************/
|
|
45103
45171
|
var __webpack_exports__ = {};
|
|
45104
|
-
// This entry
|
|
45172
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
45105
45173
|
!function() {
|
|
45106
45174
|
"use strict";
|
|
45107
45175
|
__webpack_require__.r(__webpack_exports__);
|