jodit-pro 4.2.34 → 4.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/889.fat.min.js +1 -1
- package/es2015/889.min.js +1 -1
- package/es2015/jodit.css +10 -3
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +126 -58
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/889.fat.min.js +1 -1
- package/es2018/889.min.js +1 -1
- package/es2018/jodit.css +10 -3
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +126 -58
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/889.fat.min.js +1 -1
- package/es2021/889.min.js +1 -1
- package/es2021/jodit.css +10 -3
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +125 -57
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/889.fat.min.js +1 -1
- package/es2021.en/889.min.js +1 -1
- package/es2021.en/jodit.css +10 -3
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +125 -57
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/292.fat.min.js +2 -2
- package/es5/292.js +6 -6
- package/es5/292.min.js +2 -2
- package/es5/889.fat.min.js +1 -1
- package/es5/889.min.js +1 -1
- package/es5/jodit.css +13 -4
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +135 -73
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/package.json +1 -1
package/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
|
};
|
|
@@ -15458,6 +15469,7 @@ var UIForm = /** @class */ (function (_super) {
|
|
|
15458
15469
|
var form = this.j.c.element('form');
|
|
15459
15470
|
form.classList.add(this.componentName);
|
|
15460
15471
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
15472
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
15461
15473
|
return form;
|
|
15462
15474
|
};
|
|
15463
15475
|
UIForm = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -15919,7 +15931,22 @@ var UIInput = /** @class */ (function (_super) {
|
|
|
15919
15931
|
UIInput.prototype.validate = function () {
|
|
15920
15932
|
var _this = this;
|
|
15921
15933
|
this.error = '';
|
|
15922
|
-
|
|
15934
|
+
var validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(function (validator) {
|
|
15935
|
+
return validator(_this);
|
|
15936
|
+
});
|
|
15937
|
+
this.__markInputInvalid();
|
|
15938
|
+
return validate;
|
|
15939
|
+
};
|
|
15940
|
+
UIInput.prototype.__markInputInvalid = function () {
|
|
15941
|
+
var _a, _b, _c, _d;
|
|
15942
|
+
if (this.error) {
|
|
15943
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
15944
|
+
(_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
|
|
15945
|
+
}
|
|
15946
|
+
else {
|
|
15947
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
15948
|
+
(_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
|
|
15949
|
+
}
|
|
15923
15950
|
};
|
|
15924
15951
|
/** @override **/
|
|
15925
15952
|
UIInput.prototype.createContainer = function (options) {
|
|
@@ -17431,17 +17458,18 @@ var ProgressBar = /** @class */ (function (_super) {
|
|
|
17431
17458
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17432
17459
|
/* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
|
|
17433
17460
|
/* harmony export */ });
|
|
17434
|
-
/* harmony import */ var
|
|
17461
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
|
|
17435
17462
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
|
|
17436
|
-
/* harmony import */ var
|
|
17463
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
|
|
17437
17464
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
|
|
17438
17465
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
|
|
17439
17466
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
|
|
17440
|
-
/* harmony import */ var
|
|
17467
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(26986);
|
|
17441
17468
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
|
|
17442
|
-
/* harmony import */ var
|
|
17443
|
-
/* harmony import */ var
|
|
17444
|
-
/* 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);
|
|
17445
17473
|
/*!
|
|
17446
17474
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
17447
17475
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -17459,19 +17487,21 @@ var ProgressBar = /** @class */ (function (_super) {
|
|
|
17459
17487
|
|
|
17460
17488
|
|
|
17461
17489
|
|
|
17490
|
+
|
|
17462
17491
|
var ViewWithToolbar = /** @class */ (function (_super) {
|
|
17463
|
-
(0,
|
|
17492
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__extends */ .C6)(ViewWithToolbar, _super);
|
|
17464
17493
|
/** @override **/
|
|
17465
17494
|
function ViewWithToolbar(options, isJodit) {
|
|
17466
17495
|
if (isJodit === void 0) {
|
|
17467
17496
|
isJodit = false;
|
|
17468
17497
|
}
|
|
17469
17498
|
var _this = _super.call(this, options, isJodit) || this;
|
|
17470
|
-
_this.toolbar = (0,
|
|
17499
|
+
_this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(_this);
|
|
17471
17500
|
_this.__defaultToolbarContainer = _this.c.div('jodit-toolbar__box');
|
|
17472
17501
|
_this.registeredButtons = new Set();
|
|
17473
17502
|
_this.groupToButtons = {};
|
|
17474
17503
|
_this.isJodit = false;
|
|
17504
|
+
_this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(_this);
|
|
17475
17505
|
_this.isJodit = isJodit;
|
|
17476
17506
|
_this.e.on('beforeToolbarBuild', _this.beforeToolbarBuild);
|
|
17477
17507
|
return _this;
|
|
@@ -17482,7 +17512,7 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17482
17512
|
*/
|
|
17483
17513
|
get: function () {
|
|
17484
17514
|
if (!this.o.fullsize &&
|
|
17485
|
-
((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))) {
|
|
17486
17516
|
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
|
|
17487
17517
|
}
|
|
17488
17518
|
this.o.toolbar &&
|
|
@@ -17558,12 +17588,12 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17558
17588
|
var _this = this;
|
|
17559
17589
|
if (Object.keys(this.groupToButtons).length) {
|
|
17560
17590
|
return items.map(function (item) {
|
|
17561
|
-
if ((0,
|
|
17591
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_10__/* .isButtonGroup */ .i)(item) &&
|
|
17562
17592
|
item.group &&
|
|
17563
17593
|
_this.groupToButtons[item.group]) {
|
|
17564
17594
|
return {
|
|
17565
17595
|
group: item.group,
|
|
17566
|
-
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)
|
|
17567
17597
|
};
|
|
17568
17598
|
}
|
|
17569
17599
|
return item;
|
|
@@ -17576,19 +17606,20 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17576
17606
|
}
|
|
17577
17607
|
this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
17578
17608
|
this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
|
|
17609
|
+
this.__tooltip.destruct();
|
|
17579
17610
|
this.toolbar.destruct();
|
|
17580
17611
|
// @ts-ignore After destruct, we are not responsible for anything
|
|
17581
17612
|
this.toolbar = undefined;
|
|
17582
17613
|
_super.prototype.destruct.call(this);
|
|
17583
17614
|
};
|
|
17584
|
-
(0,
|
|
17615
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17585
17616
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
17586
17617
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
17587
|
-
(0,
|
|
17588
|
-
|
|
17618
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17619
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
|
|
17589
17620
|
], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
|
|
17590
17621
|
return ViewWithToolbar;
|
|
17591
|
-
}(
|
|
17622
|
+
}(jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S));
|
|
17592
17623
|
|
|
17593
17624
|
|
|
17594
17625
|
|
|
@@ -25765,7 +25796,6 @@ var ToolbarCollection = /** @class */ (function (_super) {
|
|
|
25765
25796
|
var _this = _super.call(this, jodit) || this;
|
|
25766
25797
|
_this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
|
|
25767
25798
|
'selectionchange changeSelection focus afterSetMode touchstart focus blur';
|
|
25768
|
-
_this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(_this.jodit);
|
|
25769
25799
|
return _this;
|
|
25770
25800
|
}
|
|
25771
25801
|
/** @override */
|
|
@@ -25858,12 +25888,9 @@ var ToolbarCollection = /** @class */ (function (_super) {
|
|
|
25858
25888
|
};
|
|
25859
25889
|
/** @override **/
|
|
25860
25890
|
ToolbarCollection.prototype.destruct = function () {
|
|
25861
|
-
var _a;
|
|
25862
25891
|
if (this.isDestructed) {
|
|
25863
25892
|
return;
|
|
25864
25893
|
}
|
|
25865
|
-
(_a = this.__tooltip) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
25866
|
-
this.__tooltip = null;
|
|
25867
25894
|
this.j.e
|
|
25868
25895
|
.off(this.__listenEvents, this.update)
|
|
25869
25896
|
.off('afterSetMode focus', this.__immediateUpdate);
|
|
@@ -32017,9 +32044,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
|
|
|
32017
32044
|
*/
|
|
32018
32045
|
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
32019
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);
|
|
32020
32048
|
var isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
|
|
32021
32049
|
// if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
|
|
32022
32050
|
if (isBRMode ||
|
|
32051
|
+
isCell ||
|
|
32023
32052
|
(shiftKeyPressed && !isMultiLineBlock) ||
|
|
32024
32053
|
(!shiftKeyPressed && isMultiLineBlock)) {
|
|
32025
32054
|
// 2 BR before
|
|
@@ -35617,6 +35646,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
35617
35646
|
|
|
35618
35647
|
|
|
35619
35648
|
|
|
35649
|
+
// import 'jodit/plugins/debug/debug';
|
|
35620
35650
|
|
|
35621
35651
|
|
|
35622
35652
|
|
|
@@ -36268,10 +36298,10 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
36268
36298
|
if (!this.j.o.toolbarInlineForSelection) {
|
|
36269
36299
|
return;
|
|
36270
36300
|
}
|
|
36271
|
-
var type = 'selection'
|
|
36272
|
-
|
|
36273
|
-
|
|
36274
|
-
|
|
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)) {
|
|
36275
36305
|
if (this.type === type && this.popup.isOpened) {
|
|
36276
36306
|
this.hidePopup();
|
|
36277
36307
|
}
|
|
@@ -36293,16 +36323,12 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
36293
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))) &&
|
|
36294
36324
|
r.startOffset === r.endOffset - 1);
|
|
36295
36325
|
};
|
|
36296
|
-
|
|
36297
|
-
|
|
36298
|
-
|
|
36299
|
-
|
|
36300
|
-
|
|
36301
|
-
|
|
36302
|
-
},
|
|
36303
|
-
enumerable: false,
|
|
36304
|
-
configurable: true
|
|
36305
|
-
});
|
|
36326
|
+
/**
|
|
36327
|
+
* Shortcut for Table module
|
|
36328
|
+
*/
|
|
36329
|
+
// private get tableModule(): Table {
|
|
36330
|
+
// return this.j.getInstance<Table>('Table', this.j.o);
|
|
36331
|
+
// }
|
|
36306
36332
|
/** @override **/
|
|
36307
36333
|
inlinePopup.prototype.beforeDestruct = function (jodit) {
|
|
36308
36334
|
jodit.e
|
|
@@ -37464,13 +37490,17 @@ var link = /** @class */ (function (_super) {
|
|
|
37464
37490
|
}
|
|
37465
37491
|
};
|
|
37466
37492
|
link.prototype.onProcessPasteLink = function (ignore, html) {
|
|
37493
|
+
var _a, _b, _c, _d;
|
|
37467
37494
|
var jodit = this.jodit;
|
|
37468
37495
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
|
|
37469
37496
|
return;
|
|
37470
37497
|
}
|
|
37471
37498
|
jodit.e.stopPropagation('processPaste');
|
|
37472
37499
|
if (jodit.o.link.processVideoLink) {
|
|
37473
|
-
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
|
+
});
|
|
37474
37504
|
if (embed !== html) {
|
|
37475
37505
|
return jodit.createInside.fromHTML(embed);
|
|
37476
37506
|
}
|
|
@@ -45665,12 +45695,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
45665
45695
|
|
|
45666
45696
|
|
|
45667
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
|
+
};
|
|
45668
45703
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
45669
45704
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
45670
|
-
popup: function (
|
|
45671
|
-
var formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
45672
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45673
|
-
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, {
|
|
45674
45709
|
name: 'url',
|
|
45675
45710
|
required: true,
|
|
45676
45711
|
label: 'URL',
|
|
@@ -45678,30 +45713,30 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
45678
45713
|
validators: ['url']
|
|
45679
45714
|
})
|
|
45680
45715
|
]),
|
|
45681
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45682
|
-
(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 () {
|
|
45683
45718
|
return formLink.submit();
|
|
45684
45719
|
})
|
|
45685
45720
|
])
|
|
45686
|
-
]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(
|
|
45687
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45688
|
-
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, {
|
|
45689
45724
|
name: 'code',
|
|
45690
45725
|
required: true,
|
|
45691
45726
|
label: 'Embed code'
|
|
45692
45727
|
})
|
|
45693
45728
|
]),
|
|
45694
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(
|
|
45695
|
-
(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 () {
|
|
45696
45731
|
return formCode.submit();
|
|
45697
45732
|
})
|
|
45698
45733
|
])
|
|
45699
45734
|
]), tabs = [], insertCode = function (code) {
|
|
45700
|
-
|
|
45701
|
-
|
|
45735
|
+
jodit.s.restore();
|
|
45736
|
+
jodit.s.insertHTML(code);
|
|
45702
45737
|
close();
|
|
45703
45738
|
};
|
|
45704
|
-
|
|
45739
|
+
jodit.s.save();
|
|
45705
45740
|
tabs.push({
|
|
45706
45741
|
icon: 'link',
|
|
45707
45742
|
name: 'Link',
|
|
@@ -45712,12 +45747,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
|
|
|
45712
45747
|
content: formCode.container
|
|
45713
45748
|
});
|
|
45714
45749
|
formLink.onSubmit(function (data) {
|
|
45715
|
-
|
|
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
|
+
}));
|
|
45716
45755
|
});
|
|
45717
45756
|
formCode.onSubmit(function (data) {
|
|
45718
45757
|
insertCode(data.code);
|
|
45719
45758
|
});
|
|
45720
|
-
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);
|
|
45721
45760
|
},
|
|
45722
45761
|
tags: ['iframe'],
|
|
45723
45762
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -48767,7 +48806,7 @@ module.exports = {assert(){}};;
|
|
|
48767
48806
|
/* harmony export */ sH: function() { return /* binding */ __awaiter; },
|
|
48768
48807
|
/* harmony export */ zs: function() { return /* binding */ __read; }
|
|
48769
48808
|
/* harmony export */ });
|
|
48770
|
-
/* 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 */
|
|
48771
48810
|
/******************************************************************************
|
|
48772
48811
|
Copyright (c) Microsoft Corporation.
|
|
48773
48812
|
|
|
@@ -49033,10 +49072,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
49033
49072
|
o["default"] = v;
|
|
49034
49073
|
};
|
|
49035
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
|
+
|
|
49036
49084
|
function __importStar(mod) {
|
|
49037
49085
|
if (mod && mod.__esModule) return mod;
|
|
49038
49086
|
var result = {};
|
|
49039
|
-
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]);
|
|
49040
49088
|
__setModuleDefault(result, mod);
|
|
49041
49089
|
return result;
|
|
49042
49090
|
}
|
|
@@ -49117,12 +49165,25 @@ function __disposeResources(env) {
|
|
|
49117
49165
|
return next();
|
|
49118
49166
|
}
|
|
49119
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
|
+
|
|
49120
49177
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
49121
49178
|
__extends,
|
|
49122
49179
|
__assign,
|
|
49123
49180
|
__rest,
|
|
49124
49181
|
__decorate,
|
|
49125
49182
|
__param,
|
|
49183
|
+
__esDecorate,
|
|
49184
|
+
__runInitializers,
|
|
49185
|
+
__propKey,
|
|
49186
|
+
__setFunctionName,
|
|
49126
49187
|
__metadata,
|
|
49127
49188
|
__awaiter,
|
|
49128
49189
|
__generator,
|
|
@@ -49145,6 +49206,7 @@ function __disposeResources(env) {
|
|
|
49145
49206
|
__classPrivateFieldIn,
|
|
49146
49207
|
__addDisposableResource,
|
|
49147
49208
|
__disposeResources,
|
|
49209
|
+
__rewriteRelativeImportExtension,
|
|
49148
49210
|
});
|
|
49149
49211
|
|
|
49150
49212
|
|
|
@@ -49442,7 +49504,7 @@ function __disposeResources(env) {
|
|
|
49442
49504
|
/******/
|
|
49443
49505
|
/************************************************************************/
|
|
49444
49506
|
var __webpack_exports__ = {};
|
|
49445
|
-
// This entry
|
|
49507
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
49446
49508
|
!function() {
|
|
49447
49509
|
"use strict";
|
|
49448
49510
|
__webpack_require__.r(__webpack_exports__);
|