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/es5/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
|
*/
|
|
@@ -2558,7 +2558,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2558
2558
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2559
2559
|
*/
|
|
2560
2560
|
|
|
2561
|
-
var APP_VERSION = "4.2.
|
|
2561
|
+
var APP_VERSION = "4.2.40";
|
|
2562
2562
|
// prettier-ignore
|
|
2563
2563
|
var ES = "es5";
|
|
2564
2564
|
var IS_ES_MODERN = false;
|
|
@@ -8833,17 +8833,13 @@ function ConfigFlatten(obj) {
|
|
|
8833
8833
|
/**
|
|
8834
8834
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8835
8835
|
*/
|
|
8836
|
-
var convertMediaUrlToVideoEmbed = function (url,
|
|
8837
|
-
|
|
8838
|
-
width = 400;
|
|
8839
|
-
}
|
|
8840
|
-
if (height === void 0) {
|
|
8841
|
-
height = 345;
|
|
8842
|
-
}
|
|
8836
|
+
var convertMediaUrlToVideoEmbed = function (url, _a) {
|
|
8837
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.width, width = _c === void 0 ? 400 : _c, _d = _b.height, height = _d === void 0 ? 345 : _d;
|
|
8843
8838
|
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8844
8839
|
return url;
|
|
8845
8840
|
}
|
|
8846
|
-
var parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a')
|
|
8841
|
+
var parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
8842
|
+
var pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8847
8843
|
parser.href = url;
|
|
8848
8844
|
if (!width) {
|
|
8849
8845
|
width = 400;
|
|
@@ -8870,7 +8866,10 @@ var convertMediaUrlToVideoEmbed = function (url, width, height) {
|
|
|
8870
8866
|
case 'www.youtu.be': {
|
|
8871
8867
|
var query = parser.search
|
|
8872
8868
|
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8873
|
-
: { v: parser.pathname.
|
|
8869
|
+
: { v: parser.pathname.substring(1) };
|
|
8870
|
+
if (/^embed\/.*/.test(query.v)) {
|
|
8871
|
+
query.v = query.v.substring(6);
|
|
8872
|
+
}
|
|
8874
8873
|
return query.v
|
|
8875
8874
|
? '<iframe width="' +
|
|
8876
8875
|
width +
|
|
@@ -14948,6 +14947,7 @@ var JODIT_EVENTS_ON_HIDE = [
|
|
|
14948
14947
|
'changePlace.tooltip',
|
|
14949
14948
|
'afterOpenPopup.tooltip',
|
|
14950
14949
|
'hidePopup.tooltip',
|
|
14950
|
+
'beforePopupClose.tooltip',
|
|
14951
14951
|
'closeAllPopups.tooltip'
|
|
14952
14952
|
];
|
|
14953
14953
|
var UITooltip = /** @class */ (function (_super) {
|
|
@@ -14955,6 +14955,7 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
14955
14955
|
function UITooltip(view) {
|
|
14956
14956
|
var _this = _super.call(this, view) || this;
|
|
14957
14957
|
_this.__isOpened = false;
|
|
14958
|
+
_this.__attachedContainers = new Set();
|
|
14958
14959
|
_this.__listenClose = false;
|
|
14959
14960
|
_this.__currentTarget = null;
|
|
14960
14961
|
_this.__delayShowTimeout = 0;
|
|
@@ -14981,7 +14982,16 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
14981
14982
|
UITooltip.prototype.__onAttach = function (container) {
|
|
14982
14983
|
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14983
14984
|
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14984
|
-
this.
|
|
14985
|
+
this.__attachedContainers.add(container);
|
|
14986
|
+
this.__attachedContainers.add(this.j.container);
|
|
14987
|
+
this.j.e
|
|
14988
|
+
.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14989
|
+
capture: true
|
|
14990
|
+
})
|
|
14991
|
+
.on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14992
|
+
capture: true
|
|
14993
|
+
})
|
|
14994
|
+
.on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14985
14995
|
capture: true
|
|
14986
14996
|
});
|
|
14987
14997
|
};
|
|
@@ -14993,10 +15003,7 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
14993
15003
|
var view = this.j;
|
|
14994
15004
|
view.e
|
|
14995
15005
|
.on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
14996
|
-
.on(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
14997
|
-
.on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
|
|
14998
|
-
capture: true
|
|
14999
|
-
});
|
|
15006
|
+
.on(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
15000
15007
|
};
|
|
15001
15008
|
UITooltip.prototype.__removeListenersOnLeave = function () {
|
|
15002
15009
|
if (!this.__listenClose) {
|
|
@@ -15006,8 +15013,7 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
15006
15013
|
var view = this.j;
|
|
15007
15014
|
view.e
|
|
15008
15015
|
.off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
|
|
15009
|
-
.off(JODIT_EVENTS_ON_HIDE, this.__hide)
|
|
15010
|
-
.off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
|
|
15016
|
+
.off(JODIT_EVENTS_ON_HIDE, this.__hide);
|
|
15011
15017
|
};
|
|
15012
15018
|
UITooltip.prototype.__onMouseLeave = function (e) {
|
|
15013
15019
|
if (this.__currentTarget === e.target) {
|
|
@@ -15085,7 +15091,12 @@ var UITooltip = /** @class */ (function (_super) {
|
|
|
15085
15091
|
this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
|
|
15086
15092
|
};
|
|
15087
15093
|
UITooltip.prototype.destruct = function () {
|
|
15088
|
-
|
|
15094
|
+
var _this = this;
|
|
15095
|
+
this.__attachedContainers.forEach(function (container) {
|
|
15096
|
+
_this.j.e
|
|
15097
|
+
.off(container, 'mouseenter.tooltip', _this.__onMouseEnter)
|
|
15098
|
+
.off(container, 'mouseleave.tooltip', _this.__onMouseLeave);
|
|
15099
|
+
});
|
|
15089
15100
|
this.__hide();
|
|
15090
15101
|
_super.prototype.destruct.call(this);
|
|
15091
15102
|
};
|
|
@@ -17447,17 +17458,18 @@ var ProgressBar = /** @class */ (function (_super) {
|
|
|
17447
17458
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17448
17459
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
17449
17460
|
/* harmony export */ });
|
|
17450
|
-
/* harmony import */ var
|
|
17461
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
|
|
17451
17462
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
17452
|
-
/* harmony import */ var
|
|
17463
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
17453
17464
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
17454
17465
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
17455
17466
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
17456
|
-
/* harmony import */ var
|
|
17467
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(26986);
|
|
17457
17468
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
17458
|
-
/* harmony import */ var
|
|
17459
|
-
/* harmony import */ var
|
|
17460
|
-
/* harmony import */ var
|
|
17469
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
|
|
17470
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73246);
|
|
17471
|
+
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
|
|
17472
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
|
|
17461
17473
|
/*!
|
|
17462
17474
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
17463
17475
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -17475,19 +17487,21 @@ var ProgressBar = /** @class */ (function (_super) {
|
|
|
17475
17487
|
|
|
17476
17488
|
|
|
17477
17489
|
|
|
17490
|
+
|
|
17478
17491
|
var ViewWithToolbar = /** @class */ (function (_super) {
|
|
17479
|
-
(0,
|
|
17492
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__extends */ .C6)(ViewWithToolbar, _super);
|
|
17480
17493
|
/** @override **/
|
|
17481
17494
|
function ViewWithToolbar(options, isJodit) {
|
|
17482
17495
|
if (isJodit === void 0) {
|
|
17483
17496
|
isJodit = false;
|
|
17484
17497
|
}
|
|
17485
17498
|
var _this = _super.call(this, options, isJodit) || this;
|
|
17486
|
-
_this.toolbar = (0,
|
|
17499
|
+
_this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(_this);
|
|
17487
17500
|
_this.__defaultToolbarContainer = _this.c.div('jodit-toolbar__box');
|
|
17488
17501
|
_this.registeredButtons = new Set();
|
|
17489
17502
|
_this.groupToButtons = {};
|
|
17490
17503
|
_this.isJodit = false;
|
|
17504
|
+
_this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(_this);
|
|
17491
17505
|
_this.isJodit = isJodit;
|
|
17492
17506
|
_this.e.on('beforeToolbarBuild', _this.beforeToolbarBuild);
|
|
17493
17507
|
return _this;
|
|
@@ -17498,7 +17512,7 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17498
17512
|
*/
|
|
17499
17513
|
get: function () {
|
|
17500
17514
|
if (!this.o.fullsize &&
|
|
17501
|
-
((0,
|
|
17515
|
+
((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__/* .isString */ .K)(this.o.toolbar) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(this.o.toolbar))) {
|
|
17502
17516
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
17503
17517
|
}
|
|
17504
17518
|
this.o.toolbar &&
|
|
@@ -17574,12 +17588,12 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17574
17588
|
var _this = this;
|
|
17575
17589
|
if (Object.keys(this.groupToButtons).length) {
|
|
17576
17590
|
return items.map(function (item) {
|
|
17577
|
-
if ((0,
|
|
17591
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_10__/* .isButtonGroup */ .i)(item) &&
|
|
17578
17592
|
item.group &&
|
|
17579
17593
|
_this.groupToButtons[item.group]) {
|
|
17580
17594
|
return {
|
|
17581
17595
|
group: item.group,
|
|
17582
|
-
buttons: (0,
|
|
17596
|
+
buttons: (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .fX)((0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .zs)(item.buttons), false), (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .zs)(_this.groupToButtons[item.group]), false)
|
|
17583
17597
|
};
|
|
17584
17598
|
}
|
|
17585
17599
|
return item;
|
|
@@ -17592,19 +17606,20 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17592
17606
|
}
|
|
17593
17607
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
17594
17608
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
17609
|
+
this.__tooltip.destruct();
|
|
17595
17610
|
this.toolbar.destruct();
|
|
17596
17611
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
17597
17612
|
this.toolbar = undefined;
|
|
17598
17613
|
_super.prototype.destruct.call(this);
|
|
17599
17614
|
};
|
|
17600
|
-
(0,
|
|
17615
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17601
17616
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
17602
17617
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
17603
|
-
(0,
|
|
17604
|
-
|
|
17618
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17619
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
17605
17620
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
17606
17621
|
return ViewWithToolbar;
|
|
17607
|
-
}(
|
|
17622
|
+
}(jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S));
|
|
17608
17623
|
|
|
17609
17624
|
|
|
17610
17625
|
|
|
@@ -25781,7 +25796,6 @@ var ToolbarCollection = /** @class */ (function (_super) {
|
|
|
25781
25796
|
var _this = _super.call(this, jodit) || this;
|
|
25782
25797
|
_this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
25783
25798
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
25784
|
-
_this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(_this.jodit);
|
|
25785
25799
|
return _this;
|
|
25786
25800
|
}
|
|
25787
25801
|
/** @override */
|
|
@@ -25874,12 +25888,9 @@ var ToolbarCollection = /** @class */ (function (_super) {
|
|
|
25874
25888
|
};
|
|
25875
25889
|
/** @override **/
|
|
25876
25890
|
ToolbarCollection.prototype.destruct = function () {
|
|
25877
|
-
var _a;
|
|
25878
25891
|
if (this.isDestructed) {
|
|
25879
25892
|
return;
|
|
25880
25893
|
}
|
|
25881
|
-
(_a = this.__tooltip) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
25882
|
-
this.__tooltip = null;
|
|
25883
25894
|
this.j.e
|
|
25884
25895
|
.off(this.__listenEvents, this.update)
|
|
25885
25896
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -32033,9 +32044,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
32033
32044
|
*/
|
|
32034
32045
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
32035
32046
|
var isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
|
|
32047
|
+
var isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
|
|
32036
32048
|
var isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
32037
32049
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
32038
32050
|
if (isBRMode ||
|
|
32051
|
+
isCell ||
|
|
32039
32052
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
32040
32053
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
32041
32054
|
// 2 BR before
|
|
@@ -35633,6 +35646,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
35633
35646
|
|
|
35634
35647
|
|
|
35635
35648
|
|
|
35649
|
+
// import 'jodit/plugins/debug/debug';
|
|
35636
35650
|
|
|
35637
35651
|
|
|
35638
35652
|
|
|
@@ -36284,10 +36298,10 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
36284
36298
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
36285
36299
|
return;
|
|
36286
36300
|
}
|
|
36287
|
-
var type = 'selection'
|
|
36288
|
-
|
|
36289
|
-
|
|
36290
|
-
|
|
36301
|
+
var type = 'selection';
|
|
36302
|
+
var sel = this.j.s.sel;
|
|
36303
|
+
var range = this.j.s.range;
|
|
36304
|
+
if ((sel === null || sel === void 0 ? void 0 : sel.isCollapsed) || this.isSelectedTarget(range)) {
|
|
36291
36305
|
if (this.type === type && this.popup.isOpened) {
|
|
36292
36306
|
this.hidePopup();
|
|
36293
36307
|
}
|
|
@@ -36309,16 +36323,12 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
36309
36323
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(sc.childNodes[r.startOffset], new Set((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.keys)(this.j.o.popup, false))) &&
|
|
36310
36324
|
r.startOffset === r.endOffset - 1);
|
|
36311
36325
|
};
|
|
36312
|
-
|
|
36313
|
-
|
|
36314
|
-
|
|
36315
|
-
|
|
36316
|
-
|
|
36317
|
-
|
|
36318
|
-
},
|
|
36319
|
-
enumerable: false,
|
|
36320
|
-
configurable: true
|
|
36321
|
-
});
|
|
36326
|
+
/**
|
|
36327
|
+
* Shortcut for Table module
|
|
36328
|
+
*/
|
|
36329
|
+
// private get tableModule(): Table {
|
|
36330
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
36331
|
+
// }
|
|
36322
36332
|
/** @override **/
|
|
36323
36333
|
inlinePopup.prototype.beforeDestruct = function (jodit) {
|
|
36324
36334
|
jodit.e
|
|
@@ -37480,13 +37490,17 @@ var link = /** @class */ (function (_super) {
|
|
|
37480
37490
|
}
|
|
37481
37491
|
};
|
|
37482
37492
|
link.prototype.onProcessPasteLink = function (ignore, html) {
|
|
37493
|
+
var _a, _b, _c, _d;
|
|
37483
37494
|
var jodit = this.jodit;
|
|
37484
37495
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
|
|
37485
37496
|
return;
|
|
37486
37497
|
}
|
|
37487
37498
|
jodit.e.stopPropagation('processPaste');
|
|
37488
37499
|
if (jodit.o.link.processVideoLink) {
|
|
37489
|
-
var embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.
|
|
37500
|
+
var 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, {
|
|
37501
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
37502
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
37503
|
+
});
|
|
37490
37504
|
if (embed !== html) {
|
|
37491
37505
|
return jodit.createInside.fromHTML(embed);
|
|
37492
37506
|
}
|
|
@@ -45681,12 +45695,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
45681
45695
|
|
|
45682
45696
|
|
|
45683
45697
|
|
|
45698
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
|
|
45699
|
+
parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
|
|
45700
|
+
defaultWidth: 400,
|
|
45701
|
+
defaultHeight: 345
|
|
45702
|
+
};
|
|
45684
45703
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
45685
45704
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
45686
|
-
popup: function (
|
|
45687
|
-
var formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
45688
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45689
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(
|
|
45705
|
+
popup: function (jodit, current, close) {
|
|
45706
|
+
var formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
45707
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
45708
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
|
|
45690
45709
|
name: 'url',
|
|
45691
45710
|
required: true,
|
|
45692
45711
|
label: 'URL',
|
|
@@ -45694,30 +45713,30 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
45694
45713
|
validators: ['url']
|
|
45695
45714
|
})
|
|
45696
45715
|
]),
|
|
45697
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45698
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
45716
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
45717
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(function () {
|
|
45699
45718
|
return formLink.submit();
|
|
45700
45719
|
})
|
|
45701
45720
|
])
|
|
45702
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
45703
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45704
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(
|
|
45721
|
+
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
|
|
45722
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
45723
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
45705
45724
|
name: 'code',
|
|
45706
45725
|
required: true,
|
|
45707
45726
|
label: 'Embed code'
|
|
45708
45727
|
})
|
|
45709
45728
|
]),
|
|
45710
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45711
|
-
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(
|
|
45729
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
|
|
45730
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(function () {
|
|
45712
45731
|
return formCode.submit();
|
|
45713
45732
|
})
|
|
45714
45733
|
])
|
|
45715
45734
|
]), tabs = [], insertCode = function (code) {
|
|
45716
|
-
|
|
45717
|
-
|
|
45735
|
+
jodit.s.restore();
|
|
45736
|
+
jodit.s.insertHTML(code);
|
|
45718
45737
|
close();
|
|
45719
45738
|
};
|
|
45720
|
-
|
|
45739
|
+
jodit.s.save();
|
|
45721
45740
|
tabs.push({
|
|
45722
45741
|
icon: 'link',
|
|
45723
45742
|
name: 'Link',
|
|
@@ -45728,12 +45747,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
45728
45747
|
content: formCode.container
|
|
45729
45748
|
});
|
|
45730
45749
|
formLink.onSubmit(function (data) {
|
|
45731
|
-
|
|
45750
|
+
var _a, _b, _c, _d;
|
|
45751
|
+
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, {
|
|
45752
|
+
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
|
|
45753
|
+
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
|
|
45754
|
+
}));
|
|
45732
45755
|
});
|
|
45733
45756
|
formCode.onSubmit(function (data) {
|
|
45734
45757
|
insertCode(data.code);
|
|
45735
45758
|
});
|
|
45736
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(
|
|
45759
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
|
|
45737
45760
|
},
|
|
45738
45761
|
tags: ['iframe'],
|
|
45739
45762
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -48783,7 +48806,7 @@ module.exports = {assert(){}};;
|
|
|
48783
48806
|
/* harmony export */ sH: function() { return /* binding */ __awaiter; },
|
|
48784
48807
|
/* harmony export */ zs: function() { return /* binding */ __read; }
|
|
48785
48808
|
/* harmony export */ });
|
|
48786
|
-
/* unused harmony exports __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __createBinding, __exportStar, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
|
|
48809
|
+
/* unused harmony exports __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __createBinding, __exportStar, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
|
|
48787
48810
|
/******************************************************************************
|
|
48788
48811
|
Copyright (c) Microsoft Corporation.
|
|
48789
48812
|
|
|
@@ -49049,10 +49072,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
49049
49072
|
o["default"] = v;
|
|
49050
49073
|
};
|
|
49051
49074
|
|
|
49075
|
+
var ownKeys = function(o) {
|
|
49076
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
49077
|
+
var ar = [];
|
|
49078
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
49079
|
+
return ar;
|
|
49080
|
+
};
|
|
49081
|
+
return ownKeys(o);
|
|
49082
|
+
};
|
|
49083
|
+
|
|
49052
49084
|
function __importStar(mod) {
|
|
49053
49085
|
if (mod && mod.__esModule) return mod;
|
|
49054
49086
|
var result = {};
|
|
49055
|
-
if (mod != null) for (var k
|
|
49087
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
49056
49088
|
__setModuleDefault(result, mod);
|
|
49057
49089
|
return result;
|
|
49058
49090
|
}
|
|
@@ -49133,12 +49165,25 @@ function __disposeResources(env) {
|
|
|
49133
49165
|
return next();
|
|
49134
49166
|
}
|
|
49135
49167
|
|
|
49168
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
49169
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
49170
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
49171
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
49172
|
+
});
|
|
49173
|
+
}
|
|
49174
|
+
return path;
|
|
49175
|
+
}
|
|
49176
|
+
|
|
49136
49177
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
49137
49178
|
__extends,
|
|
49138
49179
|
__assign,
|
|
49139
49180
|
__rest,
|
|
49140
49181
|
__decorate,
|
|
49141
49182
|
__param,
|
|
49183
|
+
__esDecorate,
|
|
49184
|
+
__runInitializers,
|
|
49185
|
+
__propKey,
|
|
49186
|
+
__setFunctionName,
|
|
49142
49187
|
__metadata,
|
|
49143
49188
|
__awaiter,
|
|
49144
49189
|
__generator,
|
|
@@ -49161,6 +49206,7 @@ function __disposeResources(env) {
|
|
|
49161
49206
|
__classPrivateFieldIn,
|
|
49162
49207
|
__addDisposableResource,
|
|
49163
49208
|
__disposeResources,
|
|
49209
|
+
__rewriteRelativeImportExtension,
|
|
49164
49210
|
});
|
|
49165
49211
|
|
|
49166
49212
|
|
|
@@ -49458,7 +49504,7 @@ function __disposeResources(env) {
|
|
|
49458
49504
|
/******/
|
|
49459
49505
|
/************************************************************************/
|
|
49460
49506
|
var __webpack_exports__ = {};
|
|
49461
|
-
// This entry
|
|
49507
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
49462
49508
|
!function() {
|
|
49463
49509
|
"use strict";
|
|
49464
49510
|
__webpack_require__.r(__webpack_exports__);
|