jodit-pro 4.2.35 → 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 +7 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +111 -57
- 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 +7 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +111 -57
- 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 +7 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +111 -56
- 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 +7 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +111 -56
- 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 +11 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +118 -72
- 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/es2015/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 = "es2015";
|
|
2455
2455
|
const IS_ES_MODERN = true;
|
|
@@ -8405,11 +8405,12 @@ function ConfigFlatten(obj) {
|
|
|
8405
8405
|
/**
|
|
8406
8406
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8407
8407
|
*/
|
|
8408
|
-
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8408
|
+
const convertMediaUrlToVideoEmbed = (url, { width = 400, height = 345 } = {}) => {
|
|
8409
8409
|
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8410
8410
|
return url;
|
|
8411
8411
|
}
|
|
8412
|
-
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a')
|
|
8412
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
8413
|
+
const pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8413
8414
|
parser.href = url;
|
|
8414
8415
|
if (!width) {
|
|
8415
8416
|
width = 400;
|
|
@@ -8436,7 +8437,10 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8436
8437
|
case 'www.youtu.be': {
|
|
8437
8438
|
const query = parser.search
|
|
8438
8439
|
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8439
|
-
: { v: parser.pathname.
|
|
8440
|
+
: { v: parser.pathname.substring(1) };
|
|
8441
|
+
if (/^embed\/.*/.test(query.v)) {
|
|
8442
|
+
query.v = query.v.substring(6);
|
|
8443
|
+
}
|
|
8440
8444
|
return query.v
|
|
8441
8445
|
? '<iframe width="' +
|
|
8442
8446
|
width +
|
|
@@ -14142,6 +14146,7 @@ const JODIT_EVENTS_ON_HIDE = [
|
|
|
14142
14146
|
'changePlace.tooltip',
|
|
14143
14147
|
'afterOpenPopup.tooltip',
|
|
14144
14148
|
'hidePopup.tooltip',
|
|
14149
|
+
'beforePopupClose.tooltip',
|
|
14145
14150
|
'closeAllPopups.tooltip'
|
|
14146
14151
|
];
|
|
14147
14152
|
let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
|
|
@@ -14154,6 +14159,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14154
14159
|
constructor(view) {
|
|
14155
14160
|
super(view);
|
|
14156
14161
|
this.__isOpened = false;
|
|
14162
|
+
this.__attachedContainers = new Set();
|
|
14157
14163
|
this.__listenClose = false;
|
|
14158
14164
|
this.__currentTarget = null;
|
|
14159
14165
|
this.__delayShowTimeout = 0;
|
|
@@ -14172,7 +14178,16 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14172
14178
|
__onAttach(container) {
|
|
14173
14179
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14174
14180
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14175
|
-
this.
|
|
14181
|
+
this.__attachedContainers.add(container);
|
|
14182
|
+
this.__attachedContainers.add(this.j.container);
|
|
14183
|
+
this.j.e
|
|
14184
|
+
.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14185
|
+
capture: true
|
|
14186
|
+
})
|
|
14187
|
+
.on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14188
|
+
capture: true
|
|
14189
|
+
})
|
|
14190
|
+
.on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14176
14191
|
capture: true
|
|
14177
14192
|
});
|
|
14178
14193
|
}
|
|
@@ -14184,10 +14199,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14184
14199
|
const view = this.j;
|
|
14185
14200
|
view.e
|
|
14186
14201
|
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14187
|
-
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14188
|
-
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14189
|
-
capture: true
|
|
14190
|
-
});
|
|
14202
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14191
14203
|
}
|
|
14192
14204
|
__removeListenersOnLeave() {
|
|
14193
14205
|
if (!this.__listenClose) {
|
|
@@ -14197,8 +14209,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14197
14209
|
const view = this.j;
|
|
14198
14210
|
view.e
|
|
14199
14211
|
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14200
|
-
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14201
|
-
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14212
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
14202
14213
|
}
|
|
14203
14214
|
__onMouseLeave(e) {
|
|
14204
14215
|
if (this.__currentTarget === e.target) {
|
|
@@ -14275,7 +14286,11 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14275
14286
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
14276
14287
|
}
|
|
14277
14288
|
destruct() {
|
|
14278
|
-
this.
|
|
14289
|
+
this.__attachedContainers.forEach(container => {
|
|
14290
|
+
this.j.e
|
|
14291
|
+
.off(container, 'mouseenter.tooltip', this.__onMouseEnter)
|
|
14292
|
+
.off(container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
14293
|
+
});
|
|
14279
14294
|
this.__hide();
|
|
14280
14295
|
super.destruct();
|
|
14281
14296
|
}
|
|
@@ -16475,17 +16490,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16475
16490
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16476
16491
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
16477
16492
|
/* harmony export */ });
|
|
16478
|
-
/* harmony import */ var
|
|
16493
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
16479
16494
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
16480
|
-
/* harmony import */ var
|
|
16495
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
16481
16496
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
16482
16497
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
16483
16498
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
16484
|
-
/* harmony import */ var
|
|
16499
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
|
|
16485
16500
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
16486
|
-
/* harmony import */ var
|
|
16487
|
-
/* harmony import */ var
|
|
16488
|
-
/* harmony import */ var
|
|
16501
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
|
|
16502
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73246);
|
|
16503
|
+
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
|
|
16504
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
|
|
16489
16505
|
/*!
|
|
16490
16506
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16491
16507
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16503,13 +16519,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16503
16519
|
|
|
16504
16520
|
|
|
16505
16521
|
|
|
16506
|
-
|
|
16522
|
+
|
|
16523
|
+
class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
|
|
16507
16524
|
/**
|
|
16508
16525
|
* Container for toolbar
|
|
16509
16526
|
*/
|
|
16510
16527
|
get toolbarContainer() {
|
|
16511
16528
|
if (!this.o.fullsize &&
|
|
16512
|
-
((0,
|
|
16529
|
+
((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))) {
|
|
16513
16530
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
16514
16531
|
}
|
|
16515
16532
|
this.o.toolbar &&
|
|
@@ -16581,7 +16598,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16581
16598
|
beforeToolbarBuild(items) {
|
|
16582
16599
|
if (Object.keys(this.groupToButtons).length) {
|
|
16583
16600
|
return items.map(item => {
|
|
16584
|
-
if ((0,
|
|
16601
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
|
|
16585
16602
|
item.group &&
|
|
16586
16603
|
this.groupToButtons[item.group]) {
|
|
16587
16604
|
return {
|
|
@@ -16599,11 +16616,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16599
16616
|
/** @override **/
|
|
16600
16617
|
constructor(options, isJodit = false) {
|
|
16601
16618
|
super(options, isJodit);
|
|
16602
|
-
this.toolbar = (0,
|
|
16619
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
|
|
16603
16620
|
this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16604
16621
|
this.registeredButtons = new Set();
|
|
16605
16622
|
this.groupToButtons = {};
|
|
16606
16623
|
this.isJodit = false;
|
|
16624
|
+
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
|
|
16607
16625
|
this.isJodit = isJodit;
|
|
16608
16626
|
this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16609
16627
|
}
|
|
@@ -16613,17 +16631,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16613
16631
|
}
|
|
16614
16632
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
16615
16633
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16634
|
+
this.__tooltip.destruct();
|
|
16616
16635
|
this.toolbar.destruct();
|
|
16617
16636
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
16618
16637
|
this.toolbar = undefined;
|
|
16619
16638
|
super.destruct();
|
|
16620
16639
|
}
|
|
16621
16640
|
}
|
|
16622
|
-
(0,
|
|
16641
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16623
16642
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16624
16643
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16625
|
-
(0,
|
|
16626
|
-
|
|
16644
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16645
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
16627
16646
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
16628
16647
|
|
|
16629
16648
|
|
|
@@ -24404,7 +24423,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24404
24423
|
super(jodit);
|
|
24405
24424
|
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
24406
24425
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
24407
|
-
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
|
|
24408
24426
|
}
|
|
24409
24427
|
__initEvents() {
|
|
24410
24428
|
this.j.e
|
|
@@ -24431,12 +24449,9 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24431
24449
|
}
|
|
24432
24450
|
/** @override **/
|
|
24433
24451
|
destruct() {
|
|
24434
|
-
var _a;
|
|
24435
24452
|
if (this.isDestructed) {
|
|
24436
24453
|
return;
|
|
24437
24454
|
}
|
|
24438
|
-
(_a = this.__tooltip) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
24439
|
-
this.__tooltip = null;
|
|
24440
24455
|
this.j.e
|
|
24441
24456
|
.off(this.__listenEvents, this.update)
|
|
24442
24457
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -30421,9 +30436,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
30421
30436
|
*/
|
|
30422
30437
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
30423
30438
|
const isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
|
|
30439
|
+
const isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
|
|
30424
30440
|
const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
30425
30441
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
30426
30442
|
if (isBRMode ||
|
|
30443
|
+
isCell ||
|
|
30427
30444
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
30428
30445
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
30429
30446
|
// 2 BR before
|
|
@@ -33920,6 +33937,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33920
33937
|
|
|
33921
33938
|
|
|
33922
33939
|
|
|
33940
|
+
// import 'jodit/plugins/debug/debug';
|
|
33923
33941
|
|
|
33924
33942
|
|
|
33925
33943
|
|
|
@@ -34549,10 +34567,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34549
34567
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
34550
34568
|
return;
|
|
34551
34569
|
}
|
|
34552
|
-
const type = 'selection'
|
|
34553
|
-
|
|
34554
|
-
|
|
34555
|
-
|
|
34570
|
+
const type = 'selection';
|
|
34571
|
+
const sel = this.j.s.sel;
|
|
34572
|
+
const range = this.j.s.range;
|
|
34573
|
+
if ((sel === null || sel === void 0 ? void 0 : sel.isCollapsed) || this.isSelectedTarget(range)) {
|
|
34556
34574
|
if (this.type === type && this.popup.isOpened) {
|
|
34557
34575
|
this.hidePopup();
|
|
34558
34576
|
}
|
|
@@ -34577,9 +34595,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34577
34595
|
/**
|
|
34578
34596
|
* Shortcut for Table module
|
|
34579
34597
|
*/
|
|
34580
|
-
get tableModule() {
|
|
34581
|
-
|
|
34582
|
-
}
|
|
34598
|
+
// private get tableModule(): Table {
|
|
34599
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
34600
|
+
// }
|
|
34583
34601
|
/** @override **/
|
|
34584
34602
|
beforeDestruct(jodit) {
|
|
34585
34603
|
jodit.e
|
|
@@ -35715,13 +35733,17 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35715
35733
|
}
|
|
35716
35734
|
}
|
|
35717
35735
|
onProcessPasteLink(ignore, html) {
|
|
35736
|
+
var _a, _b, _c, _d;
|
|
35718
35737
|
const { jodit } = this;
|
|
35719
35738
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
|
|
35720
35739
|
return;
|
|
35721
35740
|
}
|
|
35722
35741
|
jodit.e.stopPropagation('processPaste');
|
|
35723
35742
|
if (jodit.o.link.processVideoLink) {
|
|
35724
|
-
const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
35743
|
+
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, {
|
|
35744
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
35745
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
35746
|
+
});
|
|
35725
35747
|
if (embed !== html) {
|
|
35726
35748
|
return jodit.createInside.fromHTML(embed);
|
|
35727
35749
|
}
|
|
@@ -43564,12 +43586,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43564
43586
|
|
|
43565
43587
|
|
|
43566
43588
|
|
|
43589
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
|
|
43590
|
+
parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
|
|
43591
|
+
defaultWidth: 400,
|
|
43592
|
+
defaultHeight: 345
|
|
43593
|
+
};
|
|
43567
43594
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
43568
43595
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
43569
|
-
popup: (
|
|
43570
|
-
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43571
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43572
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(
|
|
43596
|
+
popup: (jodit, current, close) => {
|
|
43597
|
+
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43598
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43599
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
|
|
43573
43600
|
name: 'url',
|
|
43574
43601
|
required: true,
|
|
43575
43602
|
label: 'URL',
|
|
@@ -43577,26 +43604,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43577
43604
|
validators: ['url']
|
|
43578
43605
|
})
|
|
43579
43606
|
]),
|
|
43580
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43581
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43607
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43608
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
|
|
43582
43609
|
])
|
|
43583
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43584
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43585
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(
|
|
43610
|
+
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
43611
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43612
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
43586
43613
|
name: 'code',
|
|
43587
43614
|
required: true,
|
|
43588
43615
|
label: 'Embed code'
|
|
43589
43616
|
})
|
|
43590
43617
|
]),
|
|
43591
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43592
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
43618
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
43619
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
|
|
43593
43620
|
])
|
|
43594
43621
|
]), tabs = [], insertCode = (code) => {
|
|
43595
|
-
|
|
43596
|
-
|
|
43622
|
+
jodit.s.restore();
|
|
43623
|
+
jodit.s.insertHTML(code);
|
|
43597
43624
|
close();
|
|
43598
43625
|
};
|
|
43599
|
-
|
|
43626
|
+
jodit.s.save();
|
|
43600
43627
|
tabs.push({
|
|
43601
43628
|
icon: 'link',
|
|
43602
43629
|
name: 'Link',
|
|
@@ -43607,12 +43634,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43607
43634
|
content: formCode.container
|
|
43608
43635
|
});
|
|
43609
43636
|
formLink.onSubmit(data => {
|
|
43610
|
-
|
|
43637
|
+
var _a, _b, _c, _d;
|
|
43638
|
+
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, {
|
|
43639
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
43640
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
43641
|
+
}));
|
|
43611
43642
|
});
|
|
43612
43643
|
formCode.onSubmit(data => {
|
|
43613
43644
|
insertCode(data.code);
|
|
43614
43645
|
});
|
|
43615
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(
|
|
43646
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
|
|
43616
43647
|
},
|
|
43617
43648
|
tags: ['iframe'],
|
|
43618
43649
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -46417,7 +46448,7 @@ module.exports = {assert(){}};;
|
|
|
46417
46448
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; },
|
|
46418
46449
|
/* harmony export */ sH: function() { return /* binding */ __awaiter; }
|
|
46419
46450
|
/* harmony export */ });
|
|
46420
|
-
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
|
|
46451
|
+
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
|
|
46421
46452
|
/******************************************************************************
|
|
46422
46453
|
Copyright (c) Microsoft Corporation.
|
|
46423
46454
|
|
|
@@ -46683,10 +46714,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
46683
46714
|
o["default"] = v;
|
|
46684
46715
|
};
|
|
46685
46716
|
|
|
46717
|
+
var ownKeys = function(o) {
|
|
46718
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
46719
|
+
var ar = [];
|
|
46720
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
46721
|
+
return ar;
|
|
46722
|
+
};
|
|
46723
|
+
return ownKeys(o);
|
|
46724
|
+
};
|
|
46725
|
+
|
|
46686
46726
|
function __importStar(mod) {
|
|
46687
46727
|
if (mod && mod.__esModule) return mod;
|
|
46688
46728
|
var result = {};
|
|
46689
|
-
if (mod != null) for (var k
|
|
46729
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46690
46730
|
__setModuleDefault(result, mod);
|
|
46691
46731
|
return result;
|
|
46692
46732
|
}
|
|
@@ -46767,12 +46807,25 @@ function __disposeResources(env) {
|
|
|
46767
46807
|
return next();
|
|
46768
46808
|
}
|
|
46769
46809
|
|
|
46810
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
46811
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
46812
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
46813
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
46814
|
+
});
|
|
46815
|
+
}
|
|
46816
|
+
return path;
|
|
46817
|
+
}
|
|
46818
|
+
|
|
46770
46819
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
46771
46820
|
__extends,
|
|
46772
46821
|
__assign,
|
|
46773
46822
|
__rest,
|
|
46774
46823
|
__decorate,
|
|
46775
46824
|
__param,
|
|
46825
|
+
__esDecorate,
|
|
46826
|
+
__runInitializers,
|
|
46827
|
+
__propKey,
|
|
46828
|
+
__setFunctionName,
|
|
46776
46829
|
__metadata,
|
|
46777
46830
|
__awaiter,
|
|
46778
46831
|
__generator,
|
|
@@ -46795,6 +46848,7 @@ function __disposeResources(env) {
|
|
|
46795
46848
|
__classPrivateFieldIn,
|
|
46796
46849
|
__addDisposableResource,
|
|
46797
46850
|
__disposeResources,
|
|
46851
|
+
__rewriteRelativeImportExtension,
|
|
46798
46852
|
});
|
|
46799
46853
|
|
|
46800
46854
|
|
|
@@ -47080,7 +47134,7 @@ function __disposeResources(env) {
|
|
|
47080
47134
|
/******/
|
|
47081
47135
|
/************************************************************************/
|
|
47082
47136
|
var __webpack_exports__ = {};
|
|
47083
|
-
// This entry
|
|
47137
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
47084
47138
|
!function() {
|
|
47085
47139
|
"use strict";
|
|
47086
47140
|
__webpack_require__.r(__webpack_exports__);
|