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/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
|
}
|
|
@@ -16530,17 +16545,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16530
16545
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16531
16546
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
16532
16547
|
/* harmony export */ });
|
|
16533
|
-
/* harmony import */ var
|
|
16548
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
16534
16549
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
16535
|
-
/* harmony import */ var
|
|
16550
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
16536
16551
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
16537
16552
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
16538
16553
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
16539
|
-
/* harmony import */ var
|
|
16554
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
|
|
16540
16555
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
16541
|
-
/* harmony import */ var
|
|
16542
|
-
/* harmony import */ var
|
|
16543
|
-
/* 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);
|
|
16544
16560
|
/*!
|
|
16545
16561
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16546
16562
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16558,13 +16574,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
|
|
|
16558
16574
|
|
|
16559
16575
|
|
|
16560
16576
|
|
|
16561
|
-
|
|
16577
|
+
|
|
16578
|
+
class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
|
|
16562
16579
|
/**
|
|
16563
16580
|
* Container for toolbar
|
|
16564
16581
|
*/
|
|
16565
16582
|
get toolbarContainer() {
|
|
16566
16583
|
if (!this.o.fullsize &&
|
|
16567
|
-
((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))) {
|
|
16568
16585
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
16569
16586
|
}
|
|
16570
16587
|
this.o.toolbar &&
|
|
@@ -16636,7 +16653,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16636
16653
|
beforeToolbarBuild(items) {
|
|
16637
16654
|
if (Object.keys(this.groupToButtons).length) {
|
|
16638
16655
|
return items.map(item => {
|
|
16639
|
-
if ((0,
|
|
16656
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
|
|
16640
16657
|
item.group &&
|
|
16641
16658
|
this.groupToButtons[item.group]) {
|
|
16642
16659
|
return {
|
|
@@ -16654,11 +16671,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16654
16671
|
/** @override **/
|
|
16655
16672
|
constructor(options, isJodit = false) {
|
|
16656
16673
|
super(options, isJodit);
|
|
16657
|
-
this.toolbar = (0,
|
|
16674
|
+
this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
|
|
16658
16675
|
this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
|
|
16659
16676
|
this.registeredButtons = new Set();
|
|
16660
16677
|
this.groupToButtons = {};
|
|
16661
16678
|
this.isJodit = false;
|
|
16679
|
+
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
|
|
16662
16680
|
this.isJodit = isJodit;
|
|
16663
16681
|
this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16664
16682
|
}
|
|
@@ -16668,17 +16686,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
|
|
|
16668
16686
|
}
|
|
16669
16687
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
16670
16688
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
16689
|
+
this.__tooltip.destruct();
|
|
16671
16690
|
this.toolbar.destruct();
|
|
16672
16691
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
16673
16692
|
this.toolbar = undefined;
|
|
16674
16693
|
super.destruct();
|
|
16675
16694
|
}
|
|
16676
16695
|
}
|
|
16677
|
-
(0,
|
|
16696
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16678
16697
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
16679
16698
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
16680
|
-
(0,
|
|
16681
|
-
|
|
16699
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
16700
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
16682
16701
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
16683
16702
|
|
|
16684
16703
|
|
|
@@ -24485,7 +24504,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24485
24504
|
super(jodit);
|
|
24486
24505
|
this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
24487
24506
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
24488
|
-
this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
|
|
24489
24507
|
}
|
|
24490
24508
|
__initEvents() {
|
|
24491
24509
|
this.j.e
|
|
@@ -24512,12 +24530,9 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
|
|
|
24512
24530
|
}
|
|
24513
24531
|
/** @override **/
|
|
24514
24532
|
destruct() {
|
|
24515
|
-
var _a;
|
|
24516
24533
|
if (this.isDestructed) {
|
|
24517
24534
|
return;
|
|
24518
24535
|
}
|
|
24519
|
-
(_a = this.__tooltip) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
24520
|
-
this.__tooltip = null;
|
|
24521
24536
|
this.j.e
|
|
24522
24537
|
.off(this.__listenEvents, this.update)
|
|
24523
24538
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -30504,9 +30519,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
30504
30519
|
*/
|
|
30505
30520
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
30506
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);
|
|
30507
30523
|
const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
30508
30524
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
30509
30525
|
if (isBRMode ||
|
|
30526
|
+
isCell ||
|
|
30510
30527
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
30511
30528
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
30512
30529
|
// 2 BR before
|
|
@@ -33993,6 +34010,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33993
34010
|
|
|
33994
34011
|
|
|
33995
34012
|
|
|
34013
|
+
// import 'jodit/plugins/debug/debug';
|
|
33996
34014
|
|
|
33997
34015
|
|
|
33998
34016
|
|
|
@@ -34622,10 +34640,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34622
34640
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
34623
34641
|
return;
|
|
34624
34642
|
}
|
|
34625
|
-
const type = 'selection'
|
|
34626
|
-
|
|
34627
|
-
|
|
34628
|
-
|
|
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)) {
|
|
34629
34647
|
if (this.type === type && this.popup.isOpened) {
|
|
34630
34648
|
this.hidePopup();
|
|
34631
34649
|
}
|
|
@@ -34650,9 +34668,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
|
|
|
34650
34668
|
/**
|
|
34651
34669
|
* Shortcut for Table module
|
|
34652
34670
|
*/
|
|
34653
|
-
get tableModule() {
|
|
34654
|
-
|
|
34655
|
-
}
|
|
34671
|
+
// private get tableModule(): Table {
|
|
34672
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
34673
|
+
// }
|
|
34656
34674
|
/** @override **/
|
|
34657
34675
|
beforeDestruct(jodit) {
|
|
34658
34676
|
jodit.e
|
|
@@ -35788,13 +35806,17 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35788
35806
|
}
|
|
35789
35807
|
}
|
|
35790
35808
|
onProcessPasteLink(ignore, html) {
|
|
35809
|
+
var _a, _b, _c, _d;
|
|
35791
35810
|
const { jodit } = this;
|
|
35792
35811
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
|
|
35793
35812
|
return;
|
|
35794
35813
|
}
|
|
35795
35814
|
jodit.e.stopPropagation('processPaste');
|
|
35796
35815
|
if (jodit.o.link.processVideoLink) {
|
|
35797
|
-
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
|
+
});
|
|
35798
35820
|
if (embed !== html) {
|
|
35799
35821
|
return jodit.createInside.fromHTML(embed);
|
|
35800
35822
|
}
|
|
@@ -43619,12 +43641,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
43619
43641
|
|
|
43620
43642
|
|
|
43621
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
|
+
};
|
|
43622
43649
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
43623
43650
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
43624
|
-
popup: (
|
|
43625
|
-
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43626
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43627
|
-
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, {
|
|
43628
43655
|
name: 'url',
|
|
43629
43656
|
required: true,
|
|
43630
43657
|
label: 'URL',
|
|
@@ -43632,26 +43659,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43632
43659
|
validators: ['url']
|
|
43633
43660
|
})
|
|
43634
43661
|
]),
|
|
43635
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43636
|
-
(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())
|
|
43637
43664
|
])
|
|
43638
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
43639
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43640
|
-
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, {
|
|
43641
43668
|
name: 'code',
|
|
43642
43669
|
required: true,
|
|
43643
43670
|
label: 'Embed code'
|
|
43644
43671
|
})
|
|
43645
43672
|
]),
|
|
43646
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
43647
|
-
(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())
|
|
43648
43675
|
])
|
|
43649
43676
|
]), tabs = [], insertCode = (code) => {
|
|
43650
|
-
|
|
43651
|
-
|
|
43677
|
+
jodit.s.restore();
|
|
43678
|
+
jodit.s.insertHTML(code);
|
|
43652
43679
|
close();
|
|
43653
43680
|
};
|
|
43654
|
-
|
|
43681
|
+
jodit.s.save();
|
|
43655
43682
|
tabs.push({
|
|
43656
43683
|
icon: 'link',
|
|
43657
43684
|
name: 'Link',
|
|
@@ -43662,12 +43689,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
43662
43689
|
content: formCode.container
|
|
43663
43690
|
});
|
|
43664
43691
|
formLink.onSubmit(data => {
|
|
43665
|
-
|
|
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
|
+
}));
|
|
43666
43697
|
});
|
|
43667
43698
|
formCode.onSubmit(data => {
|
|
43668
43699
|
insertCode(data.code);
|
|
43669
43700
|
});
|
|
43670
|
-
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);
|
|
43671
43702
|
},
|
|
43672
43703
|
tags: ['iframe'],
|
|
43673
43704
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -46466,7 +46497,7 @@ module.exports = {assert(){}};;
|
|
|
46466
46497
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46467
46498
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; }
|
|
46468
46499
|
/* harmony export */ });
|
|
46469
|
-
/* 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 */
|
|
46470
46501
|
/******************************************************************************
|
|
46471
46502
|
Copyright (c) Microsoft Corporation.
|
|
46472
46503
|
|
|
@@ -46732,10 +46763,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
46732
46763
|
o["default"] = v;
|
|
46733
46764
|
};
|
|
46734
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
|
+
|
|
46735
46775
|
function __importStar(mod) {
|
|
46736
46776
|
if (mod && mod.__esModule) return mod;
|
|
46737
46777
|
var result = {};
|
|
46738
|
-
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]);
|
|
46739
46779
|
__setModuleDefault(result, mod);
|
|
46740
46780
|
return result;
|
|
46741
46781
|
}
|
|
@@ -46816,12 +46856,25 @@ function __disposeResources(env) {
|
|
|
46816
46856
|
return next();
|
|
46817
46857
|
}
|
|
46818
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
|
+
|
|
46819
46868
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
46820
46869
|
__extends,
|
|
46821
46870
|
__assign,
|
|
46822
46871
|
__rest,
|
|
46823
46872
|
__decorate,
|
|
46824
46873
|
__param,
|
|
46874
|
+
__esDecorate,
|
|
46875
|
+
__runInitializers,
|
|
46876
|
+
__propKey,
|
|
46877
|
+
__setFunctionName,
|
|
46825
46878
|
__metadata,
|
|
46826
46879
|
__awaiter,
|
|
46827
46880
|
__generator,
|
|
@@ -46844,6 +46897,7 @@ function __disposeResources(env) {
|
|
|
46844
46897
|
__classPrivateFieldIn,
|
|
46845
46898
|
__addDisposableResource,
|
|
46846
46899
|
__disposeResources,
|
|
46900
|
+
__rewriteRelativeImportExtension,
|
|
46847
46901
|
});
|
|
46848
46902
|
|
|
46849
46903
|
|
|
@@ -47129,7 +47183,7 @@ function __disposeResources(env) {
|
|
|
47129
47183
|
/******/
|
|
47130
47184
|
/************************************************************************/
|
|
47131
47185
|
var __webpack_exports__ = {};
|
|
47132
|
-
// This entry
|
|
47186
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
47133
47187
|
!function() {
|
|
47134
47188
|
"use strict";
|
|
47135
47189
|
__webpack_require__.r(__webpack_exports__);
|