jodit 4.19.14 → 4.20.1
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/CHANGELOG.md +30 -0
- package/es2015/jodit.css +76 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +1464 -599
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +12 -12
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +12 -12
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +12 -12
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +76 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +1445 -596
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +17 -17
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +76 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +1419 -570
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +17 -17
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +96 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1707 -706
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +10 -3
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/anchor.d.ts +22 -0
- package/esm/core/helpers/utils/anchor.js +29 -0
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/ui/form/inputs/input/input.js +2 -0
- package/esm/core/ui/popup/popup.d.ts +5 -0
- package/esm/core/ui/popup/popup.js +5 -0
- package/esm/jodit.js +11 -14
- package/esm/langs/ar.d.ts +5 -0
- package/esm/langs/ar.js +5 -0
- package/esm/langs/az.d.ts +5 -0
- package/esm/langs/az.js +5 -0
- package/esm/langs/cs_cz.d.ts +5 -0
- package/esm/langs/cs_cz.js +6 -1
- package/esm/langs/de.d.ts +5 -0
- package/esm/langs/de.js +6 -0
- package/esm/langs/es.d.ts +5 -0
- package/esm/langs/es.js +6 -1
- package/esm/langs/fa.d.ts +5 -0
- package/esm/langs/fa.js +6 -1
- package/esm/langs/fi.d.ts +5 -0
- package/esm/langs/fi.js +5 -0
- package/esm/langs/fr.d.ts +5 -0
- package/esm/langs/fr.js +5 -0
- package/esm/langs/he.d.ts +5 -0
- package/esm/langs/he.js +6 -1
- package/esm/langs/hu.d.ts +5 -0
- package/esm/langs/hu.js +5 -0
- package/esm/langs/id.d.ts +5 -0
- package/esm/langs/id.js +6 -1
- package/esm/langs/it.d.ts +5 -0
- package/esm/langs/it.js +6 -1
- package/esm/langs/ja.d.ts +5 -0
- package/esm/langs/ja.js +6 -1
- package/esm/langs/ko.d.ts +5 -0
- package/esm/langs/ko.js +6 -1
- package/esm/langs/mn.d.ts +5 -0
- package/esm/langs/mn.js +6 -1
- package/esm/langs/nl.d.ts +5 -0
- package/esm/langs/nl.js +5 -0
- package/esm/langs/no.d.ts +5 -0
- package/esm/langs/no.js +5 -0
- package/esm/langs/pl.d.ts +5 -0
- package/esm/langs/pl.js +5 -0
- package/esm/langs/pt_br.d.ts +5 -0
- package/esm/langs/pt_br.js +6 -1
- package/esm/langs/ru.d.ts +5 -0
- package/esm/langs/ru.js +6 -1
- package/esm/langs/sk.d.ts +5 -0
- package/esm/langs/sk.js +5 -0
- package/esm/langs/sv.d.ts +5 -0
- package/esm/langs/sv.js +5 -0
- package/esm/langs/tr.d.ts +5 -0
- package/esm/langs/tr.js +6 -1
- package/esm/langs/ua.d.ts +5 -0
- package/esm/langs/ua.js +6 -1
- package/esm/langs/zh_cn.d.ts +5 -0
- package/esm/langs/zh_cn.js +6 -1
- package/esm/langs/zh_tw.d.ts +5 -0
- package/esm/langs/zh_tw.js +5 -0
- package/esm/modules/file-browser/file-browser.d.ts +3 -4
- package/esm/modules/file-browser/file-browser.js +12 -12
- package/esm/modules/toolbar/button/button.d.ts +7 -0
- package/esm/modules/toolbar/button/button.js +32 -4
- package/esm/modules/uploader/config.js +18 -18
- package/esm/modules/uploader/helpers/index.d.ts +1 -0
- package/esm/modules/uploader/helpers/index.js +1 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.js +54 -0
- package/esm/modules/uploader/helpers/send-files.js +11 -6
- package/esm/modules/uploader/uploader.d.ts +4 -5
- package/esm/modules/uploader/uploader.js +12 -8
- package/esm/plugins/all.d.ts +1 -0
- package/esm/plugins/all.js +1 -0
- package/esm/plugins/anchor/anchor.d.ts +67 -0
- package/esm/plugins/anchor/anchor.js +302 -0
- package/esm/plugins/anchor/config.d.ts +6 -0
- package/esm/plugins/anchor/config.js +13 -0
- package/esm/plugins/file/file.d.ts +1 -1
- package/esm/plugins/file/file.js +6 -6
- package/esm/plugins/image/image.js +2 -2
- package/esm/plugins/image-caption/image-caption.js +1 -2
- package/esm/plugins/image-properties/utils/open-image-popup.js +7 -6
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.d.ts +8 -2
- package/esm/plugins/inline-popup/config/config.js +1 -0
- package/esm/plugins/inline-popup/config/items/cells.js +0 -10
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/esm/plugins/inline-popup/inline-popup.js +53 -77
- package/esm/plugins/link/link.js +150 -3
- package/esm/plugins/link/template.js +3 -1
- package/esm/plugins/resizer/resizer.d.ts +6 -0
- package/esm/plugins/resizer/resizer.js +11 -0
- package/esm/plugins/select/select.d.ts +31 -0
- package/esm/plugins/select/select.js +235 -2
- package/esm/plugins/select-cells/select-cells.d.ts +11 -0
- package/esm/plugins/select-cells/select-cells.js +48 -17
- package/esm/plugins/video/config.d.ts +1 -1
- package/esm/plugins/video/config.js +4 -3
- package/esm/plugins/video-properties/video-properties.js +7 -6
- package/esm/styles/icons/anchor.svg.js +1 -0
- package/esm/styles/icons/index.d.ts +1 -1
- package/esm/styles/icons/index.js +2 -1
- package/esm/types/file-browser.d.ts +8 -1
- package/esm/types/popup.d.ts +1 -0
- package/esm/types/uploader.d.ts +39 -1
- package/package.json +1 -1
- package/types/config.d.ts +10 -3
- package/types/core/helpers/utils/anchor.d.ts +22 -0
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/ui/popup/popup.d.ts +5 -0
- package/types/langs/ar.d.ts +5 -0
- package/types/langs/az.d.ts +5 -0
- package/types/langs/cs_cz.d.ts +5 -0
- package/types/langs/de.d.ts +5 -0
- package/types/langs/es.d.ts +5 -0
- package/types/langs/fa.d.ts +5 -0
- package/types/langs/fi.d.ts +5 -0
- package/types/langs/fr.d.ts +5 -0
- package/types/langs/he.d.ts +5 -0
- package/types/langs/hu.d.ts +5 -0
- package/types/langs/id.d.ts +5 -0
- package/types/langs/it.d.ts +5 -0
- package/types/langs/ja.d.ts +5 -0
- package/types/langs/ko.d.ts +5 -0
- package/types/langs/mn.d.ts +5 -0
- package/types/langs/nl.d.ts +5 -0
- package/types/langs/no.d.ts +5 -0
- package/types/langs/pl.d.ts +5 -0
- package/types/langs/pt_br.d.ts +5 -0
- package/types/langs/ru.d.ts +5 -0
- package/types/langs/sk.d.ts +5 -0
- package/types/langs/sv.d.ts +5 -0
- package/types/langs/tr.d.ts +5 -0
- package/types/langs/ua.d.ts +5 -0
- package/types/langs/zh_cn.d.ts +5 -0
- package/types/langs/zh_tw.d.ts +5 -0
- package/types/modules/file-browser/file-browser.d.ts +3 -4
- package/types/modules/toolbar/button/button.d.ts +7 -0
- package/types/modules/uploader/helpers/index.d.ts +1 -0
- package/types/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/types/modules/uploader/uploader.d.ts +4 -5
- package/types/plugins/anchor/anchor.d.ts +67 -0
- package/types/plugins/anchor/config.d.ts +6 -0
- package/types/plugins/file/file.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/config.d.ts +8 -2
- package/types/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/types/plugins/resizer/resizer.d.ts +6 -0
- package/types/plugins/select/select.d.ts +31 -0
- package/types/plugins/select-cells/select-cells.d.ts +11 -0
- package/types/plugins/video/config.d.ts +1 -1
- package/types/styles/icons/index.d.ts +1 -1
- package/types/types/file-browser.d.ts +8 -1
- package/types/types/popup.d.ts +1 -0
- package/types/types/uploader.d.ts +39 -1
package/es2021.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.20.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1824,7 +1824,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1824
1824
|
* ```
|
|
1825
1825
|
* @packageDocumentation
|
|
1826
1826
|
* @module constants
|
|
1827
|
-
*/ const APP_VERSION = "4.
|
|
1827
|
+
*/ const APP_VERSION = "4.20.1";
|
|
1828
1828
|
// prettier-ignore
|
|
1829
1829
|
const ES = "es2021";
|
|
1830
1830
|
const IS_ES_MODERN = true;
|
|
@@ -8498,6 +8498,45 @@ function alignElement(command, box) {
|
|
|
8498
8498
|
}
|
|
8499
8499
|
|
|
8500
8500
|
|
|
8501
|
+
/***/ }),
|
|
8502
|
+
|
|
8503
|
+
/***/ 85371:
|
|
8504
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8505
|
+
|
|
8506
|
+
"use strict";
|
|
8507
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8508
|
+
/* harmony export */ getAnchorName: function() { return /* binding */ getAnchorName; },
|
|
8509
|
+
/* harmony export */ getAnchors: function() { return /* binding */ getAnchors; },
|
|
8510
|
+
/* harmony export */ isAnchor: function() { return /* binding */ isAnchor; }
|
|
8511
|
+
/* harmony export */ });
|
|
8512
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
8513
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
|
|
8514
|
+
/*!
|
|
8515
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8516
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8517
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8518
|
+
*/ /**
|
|
8519
|
+
* @module helpers/utils
|
|
8520
|
+
*/
|
|
8521
|
+
|
|
8522
|
+
/**
|
|
8523
|
+
* The name a link reaches an anchor by: its `id`, or in older content its
|
|
8524
|
+
* `name`
|
|
8525
|
+
*/ function getAnchorName(anchor) {
|
|
8526
|
+
return anchor.id || anchor.getAttribute('name') || '';
|
|
8527
|
+
}
|
|
8528
|
+
/**
|
|
8529
|
+
* An anchor: an `<a>` with a name, no `href` and nothing in it
|
|
8530
|
+
*/ function isAnchor(node) {
|
|
8531
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(node, 'a') && !node.hasAttribute('href') && !node.hasChildNodes() && getAnchorName(node) !== '';
|
|
8532
|
+
}
|
|
8533
|
+
/**
|
|
8534
|
+
* The anchors in `root`, in the order they come
|
|
8535
|
+
*/ function getAnchors(root) {
|
|
8536
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll('a')).filter(isAnchor);
|
|
8537
|
+
}
|
|
8538
|
+
|
|
8539
|
+
|
|
8501
8540
|
/***/ }),
|
|
8502
8541
|
|
|
8503
8542
|
/***/ 47760:
|
|
@@ -9663,118 +9702,122 @@ const isPart = (node, part)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom
|
|
|
9663
9702
|
"use strict";
|
|
9664
9703
|
__webpack_require__.r(__webpack_exports__);
|
|
9665
9704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9666
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
9667
|
-
/* harmony export */ AnswerError: function() { return /* reexport safe */
|
|
9668
|
-
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */
|
|
9669
|
-
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */
|
|
9670
|
-
/* harmony export */ ConfigMerge: function() { return /* reexport safe */
|
|
9671
|
-
/* harmony export */ ConfigProto: function() { return /* reexport safe */
|
|
9672
|
-
/* harmony export */ ConnectionError: function() { return /* reexport safe */
|
|
9673
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
9674
|
-
/* harmony export */ OptionsError: function() { return /* reexport safe */
|
|
9675
|
-
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */
|
|
9676
|
-
/* harmony export */ abort: function() { return /* reexport safe */
|
|
9705
|
+
/* harmony export */ $$: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_28__.$$; },
|
|
9706
|
+
/* harmony export */ AnswerError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.AnswerError; },
|
|
9707
|
+
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
|
|
9708
|
+
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
|
|
9709
|
+
/* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_8__.ConfigMerge; },
|
|
9710
|
+
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_8__.ConfigProto; },
|
|
9711
|
+
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.ConnectionError; },
|
|
9712
|
+
/* harmony export */ LimitedStack: function() { return /* reexport safe */ _stack__WEBPACK_IMPORTED_MODULE_30__.LimitedStack; },
|
|
9713
|
+
/* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.OptionsError; },
|
|
9714
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */ _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_20__.UNSAFE_PROTO_KEYS; },
|
|
9715
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.abort; },
|
|
9677
9716
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9678
|
-
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */
|
|
9679
|
-
/* harmony export */ answer: function() { return /* reexport safe */
|
|
9680
|
-
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */
|
|
9681
|
-
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */
|
|
9682
|
-
/* harmony export */ attr: function() { return /* reexport safe */
|
|
9683
|
-
/* harmony export */ attrRaw: function() { return /* reexport safe */
|
|
9684
|
-
/* harmony export */ browser: function() { return /* reexport safe */
|
|
9685
|
-
/* harmony export */ buildQuery: function() { return /* reexport safe */
|
|
9686
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
9687
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
9688
|
-
/* harmony export */ callThis: function() { return /* reexport safe */
|
|
9717
|
+
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.alreadyLoadedList; },
|
|
9718
|
+
/* harmony export */ answer: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.answer; },
|
|
9719
|
+
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.appendScriptAsync; },
|
|
9720
|
+
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.appendStyleAsync; },
|
|
9721
|
+
/* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_4__.attr; },
|
|
9722
|
+
/* harmony export */ attrRaw: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_4__.attrRaw; },
|
|
9723
|
+
/* harmony export */ browser: function() { return /* reexport safe */ _browser__WEBPACK_IMPORTED_MODULE_5__.browser; },
|
|
9724
|
+
/* harmony export */ buildQuery: function() { return /* reexport safe */ _build_query__WEBPACK_IMPORTED_MODULE_6__.buildQuery; },
|
|
9725
|
+
/* harmony export */ call: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.call; },
|
|
9726
|
+
/* harmony export */ callPromise: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.callPromise; },
|
|
9727
|
+
/* harmony export */ callThis: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.callThis; },
|
|
9689
9728
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
9690
|
-
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */
|
|
9729
|
+
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_10__.clearCenterAlign; },
|
|
9691
9730
|
/* harmony export */ clearHAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.clearHAlign; },
|
|
9692
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
9693
|
-
/* harmony export */ completeUrl: function() { return /* reexport safe */
|
|
9694
|
-
/* harmony export */ connection: function() { return /* reexport safe */
|
|
9695
|
-
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */
|
|
9696
|
-
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */
|
|
9697
|
-
/* harmony export */ css: function() { return /* reexport safe */
|
|
9698
|
-
/* harmony export */ cssInline: function() { return /* reexport safe */
|
|
9699
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
9700
|
-
/* harmony export */ ctrlKey: function() { return /* reexport safe */
|
|
9701
|
-
/* harmony export */ dataBind: function() { return /* reexport safe */
|
|
9702
|
-
/* harmony export */ defaultLanguage: function() { return /* reexport safe */
|
|
9703
|
-
/* harmony export */ error: function() { return /* reexport safe */
|
|
9704
|
-
/* harmony export */ fastClone: function() { return /* reexport safe */
|
|
9705
|
-
/* harmony export */ get: function() { return /* reexport safe */
|
|
9731
|
+
/* harmony export */ cns: function() { return /* reexport safe */ _mark_deprecated__WEBPACK_IMPORTED_MODULE_21__.cns; },
|
|
9732
|
+
/* harmony export */ completeUrl: function() { return /* reexport safe */ _complete_url__WEBPACK_IMPORTED_MODULE_7__.completeUrl; },
|
|
9733
|
+
/* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.connection; },
|
|
9734
|
+
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */ _convert_media_url_to_video_embed__WEBPACK_IMPORTED_MODULE_9__.convertMediaUrlToVideoEmbed; },
|
|
9735
|
+
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */ _media_wrapper__WEBPACK_IMPORTED_MODULE_22__.createMediaWrapper; },
|
|
9736
|
+
/* harmony export */ css: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_10__.css; },
|
|
9737
|
+
/* harmony export */ cssInline: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_10__.cssInline; },
|
|
9738
|
+
/* harmony export */ cssPath: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_28__.cssPath; },
|
|
9739
|
+
/* harmony export */ ctrlKey: function() { return /* reexport safe */ _ctrl_key__WEBPACK_IMPORTED_MODULE_11__.ctrlKey; },
|
|
9740
|
+
/* harmony export */ dataBind: function() { return /* reexport safe */ _data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind; },
|
|
9741
|
+
/* harmony export */ defaultLanguage: function() { return /* reexport safe */ _default_language__WEBPACK_IMPORTED_MODULE_13__.defaultLanguage; },
|
|
9742
|
+
/* harmony export */ error: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.error; },
|
|
9743
|
+
/* harmony export */ fastClone: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_15__.fastClone; },
|
|
9744
|
+
/* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_16__.get; },
|
|
9706
9745
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.getAlignClasses; },
|
|
9707
|
-
/* harmony export */
|
|
9708
|
-
/* harmony export */
|
|
9709
|
-
/* harmony export */
|
|
9710
|
-
/* harmony export */
|
|
9746
|
+
/* harmony export */ getAnchorName: function() { return /* reexport safe */ _anchor__WEBPACK_IMPORTED_MODULE_1__.getAnchorName; },
|
|
9747
|
+
/* harmony export */ getAnchors: function() { return /* reexport safe */ _anchor__WEBPACK_IMPORTED_MODULE_1__.getAnchors; },
|
|
9748
|
+
/* harmony export */ getCaptionWrapper: function() { return /* reexport safe */ _image_caption__WEBPACK_IMPORTED_MODULE_19__.getCaptionWrapper; },
|
|
9749
|
+
/* harmony export */ getCaptionedImage: function() { return /* reexport safe */ _image_caption__WEBPACK_IMPORTED_MODULE_19__.getCaptionedImage; },
|
|
9750
|
+
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_17__.getClassName; },
|
|
9751
|
+
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.getDataTransfer; },
|
|
9711
9752
|
/* harmony export */ getHAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.getHAlign; },
|
|
9712
|
-
/* harmony export */ getImageCaption: function() { return /* reexport safe */
|
|
9713
|
-
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */
|
|
9714
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
9715
|
-
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */
|
|
9716
|
-
/* harmony export */ getXPathByElement: function() { return /* reexport safe */
|
|
9753
|
+
/* harmony export */ getImageCaption: function() { return /* reexport safe */ _image_caption__WEBPACK_IMPORTED_MODULE_19__.getImageCaption; },
|
|
9754
|
+
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */ _media_wrapper__WEBPACK_IMPORTED_MODULE_22__.getMediaWrapper; },
|
|
9755
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.getPropertyDescriptor; },
|
|
9756
|
+
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */ _media_wrapper__WEBPACK_IMPORTED_MODULE_22__.getWrappedMedia; },
|
|
9757
|
+
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_28__.getXPathByElement; },
|
|
9717
9758
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
9718
|
-
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */
|
|
9719
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
9720
|
-
/* harmony export */
|
|
9721
|
-
/* harmony export */
|
|
9722
|
-
/* harmony export */
|
|
9723
|
-
/* harmony export */
|
|
9724
|
-
/* harmony export */
|
|
9725
|
-
/* harmony export */
|
|
9726
|
-
/* harmony export */
|
|
9727
|
-
/* harmony export */
|
|
9728
|
-
/* harmony export */
|
|
9729
|
-
/* harmony export */
|
|
9730
|
-
/* harmony export */
|
|
9731
|
-
/* harmony export */
|
|
9732
|
-
/* harmony export */
|
|
9733
|
-
/* harmony export */
|
|
9734
|
-
/* harmony export */
|
|
9735
|
-
/* harmony export */
|
|
9736
|
-
/* harmony export */
|
|
9737
|
-
/* harmony export */
|
|
9738
|
-
/* harmony export */
|
|
9739
|
-
/* harmony export */
|
|
9740
|
-
/* harmony export */
|
|
9741
|
-
/* harmony export */
|
|
9759
|
+
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_18__.humanSizeToBytes; },
|
|
9760
|
+
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_27__.inView; },
|
|
9761
|
+
/* harmony export */ isAnchor: function() { return /* reexport safe */ _anchor__WEBPACK_IMPORTED_MODULE_1__.isAnchor; },
|
|
9762
|
+
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_15__.isAtom; },
|
|
9763
|
+
/* harmony export */ isUnsafeProtoKey: function() { return /* reexport safe */ _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_20__.isUnsafeProtoKey; },
|
|
9764
|
+
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_17__.keepNames; },
|
|
9765
|
+
/* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.keys; },
|
|
9766
|
+
/* harmony export */ loadImage: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.loadImage; },
|
|
9767
|
+
/* harmony export */ loadNext: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.loadNext; },
|
|
9768
|
+
/* harmony export */ loadNextStyle: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_2__.loadNextStyle; },
|
|
9769
|
+
/* harmony export */ markAsAtomic: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_15__.markAsAtomic; },
|
|
9770
|
+
/* harmony export */ markDeprecated: function() { return /* reexport safe */ _mark_deprecated__WEBPACK_IMPORTED_MODULE_21__.markDeprecated; },
|
|
9771
|
+
/* harmony export */ markOwner: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.markOwner; },
|
|
9772
|
+
/* harmony export */ memorizeExec: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_31__.memorizeExec; },
|
|
9773
|
+
/* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_14__.options; },
|
|
9774
|
+
/* harmony export */ parseQuery: function() { return /* reexport safe */ _parse_query__WEBPACK_IMPORTED_MODULE_23__.parseQuery; },
|
|
9775
|
+
/* harmony export */ prepareEmbedCode: function() { return /* reexport safe */ _prepare_media__WEBPACK_IMPORTED_MODULE_24__.prepareEmbedCode; },
|
|
9776
|
+
/* harmony export */ prepareMedia: function() { return /* reexport safe */ _prepare_media__WEBPACK_IMPORTED_MODULE_24__.prepareMedia; },
|
|
9777
|
+
/* harmony export */ previewBox: function() { return /* reexport safe */ _print__WEBPACK_IMPORTED_MODULE_25__.previewBox; },
|
|
9778
|
+
/* harmony export */ refs: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_28__.refs; },
|
|
9779
|
+
/* harmony export */ reset: function() { return /* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_26__.reset; },
|
|
9780
|
+
/* harmony export */ resolveElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_28__.resolveElement; },
|
|
9781
|
+
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_27__.scrollIntoViewIfNeeded; },
|
|
9782
|
+
/* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_29__.set; },
|
|
9783
|
+
/* harmony export */ wrapMedia: function() { return /* reexport safe */ _media_wrapper__WEBPACK_IMPORTED_MODULE_22__.wrapMedia; }
|
|
9742
9784
|
/* harmony export */ });
|
|
9743
9785
|
/* harmony import */ var _align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16849);
|
|
9744
|
-
/* harmony import */ var
|
|
9745
|
-
/* harmony import */ var
|
|
9746
|
-
/* harmony import */ var
|
|
9786
|
+
/* harmony import */ var _anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85371);
|
|
9787
|
+
/* harmony import */ var _append_script__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47760);
|
|
9788
|
+
/* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28712);
|
|
9789
|
+
/* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_assert__WEBPACK_IMPORTED_MODULE_3__);
|
|
9747
9790
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
9748
|
-
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in
|
|
9791
|
+
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_3__) if(["default","alignElement","clearAlign","clearHAlign","getAlignClasses","getHAlign","hAlignElement","getAnchorName","getAnchors","isAnchor","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_3__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
|
|
9749
9792
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
9750
|
-
/* harmony import */ var
|
|
9751
|
-
/* harmony import */ var
|
|
9752
|
-
/* harmony import */ var
|
|
9753
|
-
/* harmony import */ var
|
|
9754
|
-
/* harmony import */ var
|
|
9755
|
-
/* harmony import */ var
|
|
9756
|
-
/* harmony import */ var
|
|
9757
|
-
/* harmony import */ var
|
|
9758
|
-
/* harmony import */ var
|
|
9759
|
-
/* harmony import */ var
|
|
9760
|
-
/* harmony import */ var
|
|
9761
|
-
/* harmony import */ var
|
|
9762
|
-
/* harmony import */ var
|
|
9763
|
-
/* harmony import */ var
|
|
9764
|
-
/* harmony import */ var
|
|
9765
|
-
/* harmony import */ var
|
|
9766
|
-
/* harmony import */ var
|
|
9767
|
-
/* harmony import */ var
|
|
9768
|
-
/* harmony import */ var
|
|
9769
|
-
/* harmony import */ var
|
|
9770
|
-
/* harmony import */ var
|
|
9771
|
-
/* harmony import */ var
|
|
9772
|
-
/* harmony import */ var
|
|
9773
|
-
/* harmony import */ var
|
|
9774
|
-
/* harmony import */ var
|
|
9775
|
-
/* harmony import */ var
|
|
9776
|
-
/* harmony import */ var
|
|
9777
|
-
/* harmony import */ var
|
|
9793
|
+
/* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7909);
|
|
9794
|
+
/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26136);
|
|
9795
|
+
/* harmony import */ var _build_query__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36833);
|
|
9796
|
+
/* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91321);
|
|
9797
|
+
/* harmony import */ var _config_proto__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77483);
|
|
9798
|
+
/* harmony import */ var _convert_media_url_to_video_embed__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3856);
|
|
9799
|
+
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80991);
|
|
9800
|
+
/* harmony import */ var _ctrl_key__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(77213);
|
|
9801
|
+
/* harmony import */ var _data_bind__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36400);
|
|
9802
|
+
/* harmony import */ var _default_language__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(97228);
|
|
9803
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(33201);
|
|
9804
|
+
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(54794);
|
|
9805
|
+
/* harmony import */ var _get__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(89308);
|
|
9806
|
+
/* harmony import */ var _get_class_name__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(421);
|
|
9807
|
+
/* harmony import */ var _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(37427);
|
|
9808
|
+
/* harmony import */ var _image_caption__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(66638);
|
|
9809
|
+
/* harmony import */ var _is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(78048);
|
|
9810
|
+
/* harmony import */ var _mark_deprecated__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(49385);
|
|
9811
|
+
/* harmony import */ var _media_wrapper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(83314);
|
|
9812
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(36310);
|
|
9813
|
+
/* harmony import */ var _prepare_media__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(89214);
|
|
9814
|
+
/* harmony import */ var _print__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(57075);
|
|
9815
|
+
/* harmony import */ var _reset__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(43379);
|
|
9816
|
+
/* harmony import */ var _scroll_into_view__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(60898);
|
|
9817
|
+
/* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(28723);
|
|
9818
|
+
/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(52144);
|
|
9819
|
+
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(42820);
|
|
9820
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(71125);
|
|
9778
9821
|
/*!
|
|
9779
9822
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9780
9823
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9812,6 +9855,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9812
9855
|
|
|
9813
9856
|
|
|
9814
9857
|
|
|
9858
|
+
|
|
9815
9859
|
|
|
9816
9860
|
|
|
9817
9861
|
/***/ }),
|
|
@@ -16881,6 +16925,8 @@ class UIInput extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_6__.UIEleme
|
|
|
16881
16925
|
if (label) {
|
|
16882
16926
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.before(this.wrapper, this.label);
|
|
16883
16927
|
this.label.innerText = this.j.i18n(label);
|
|
16928
|
+
// The label is a span, so it names the input only this way
|
|
16929
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
16884
16930
|
} else {
|
|
16885
16931
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.label);
|
|
16886
16932
|
}
|
|
@@ -18321,7 +18367,10 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_10__.UIGr
|
|
|
18321
18367
|
return super.destruct();
|
|
18322
18368
|
}
|
|
18323
18369
|
constructor(jodit, smart = true){
|
|
18324
|
-
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "smart", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isOpened", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "strategy", void 0),
|
|
18370
|
+
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "smart", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isOpened", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "strategy", void 0), /**
|
|
18371
|
+
* The popup stays open after one of its buttons runs: the button closes
|
|
18372
|
+
* only the lists it opened. See #1741
|
|
18373
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "keepOpen", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "viewBound", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__targetBound", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__childrenPopups", void 0), this.smart = smart, this.isOpened = false, this.strategy = 'leftBottom', this.keepOpen = false, this.viewBound = ()=>({
|
|
18325
18374
|
left: 0,
|
|
18326
18375
|
top: 0,
|
|
18327
18376
|
width: this.ow.innerWidth,
|
|
@@ -18955,6 +19004,7 @@ View.defaultOptions = {
|
|
|
18955
19004
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(80512);
|
|
18956
19005
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5266);
|
|
18957
19006
|
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(60936);
|
|
19007
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7042);
|
|
18958
19008
|
/*!
|
|
18959
19009
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18960
19010
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18976,6 +19026,7 @@ View.defaultOptions = {
|
|
|
18976
19026
|
|
|
18977
19027
|
|
|
18978
19028
|
|
|
19029
|
+
|
|
18979
19030
|
const FOCUS_EVENTS = new Set([
|
|
18980
19031
|
'focus',
|
|
18981
19032
|
'blur',
|
|
@@ -19240,17 +19291,15 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_11__.ViewWithToolbar
|
|
|
19240
19291
|
theme: jodit.o.theme,
|
|
19241
19292
|
shadowRoot: jodit.o.shadowRoot,
|
|
19242
19293
|
defaultCallback (data) {
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
}
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
});
|
|
19253
|
-
}
|
|
19294
|
+
const { baseurl } = data;
|
|
19295
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_12__.getItems)(data).forEach(({ file, isImage })=>{
|
|
19296
|
+
const url = baseurl + file;
|
|
19297
|
+
if (isImage) {
|
|
19298
|
+
jodit.s.insertImage(url, null, jodit.o.imageDefaultWidth);
|
|
19299
|
+
} else {
|
|
19300
|
+
jodit.s.insertNode(jodit.createInside.fromHTML(`<a href='${url}' title='${url}'>${url}</a>`));
|
|
19301
|
+
}
|
|
19302
|
+
});
|
|
19254
19303
|
}
|
|
19255
19304
|
}, this.o.filebrowser);
|
|
19256
19305
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -22689,15 +22738,16 @@ function makeContextMenu(parent) {
|
|
|
22689
22738
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80512);
|
|
22690
22739
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2222);
|
|
22691
22740
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5266);
|
|
22692
|
-
/* harmony import */ var
|
|
22693
|
-
/* harmony import */ var
|
|
22694
|
-
/* harmony import */ var
|
|
22695
|
-
/* harmony import */ var
|
|
22696
|
-
/* harmony import */ var
|
|
22697
|
-
/* harmony import */ var
|
|
22698
|
-
/* harmony import */ var
|
|
22699
|
-
/* harmony import */ var
|
|
22700
|
-
/* harmony import */ var
|
|
22741
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7042);
|
|
22742
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(68502);
|
|
22743
|
+
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1488);
|
|
22744
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(53202);
|
|
22745
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(34269);
|
|
22746
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(36664);
|
|
22747
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74833);
|
|
22748
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(17780);
|
|
22749
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(18272);
|
|
22750
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(63425);
|
|
22701
22751
|
/*!
|
|
22702
22752
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
22703
22753
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22727,6 +22777,7 @@ function makeContextMenu(parent) {
|
|
|
22727
22777
|
|
|
22728
22778
|
|
|
22729
22779
|
|
|
22780
|
+
|
|
22730
22781
|
|
|
22731
22782
|
|
|
22732
22783
|
class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__.ViewWithToolbar {
|
|
@@ -22734,26 +22785,26 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22734
22785
|
return 'FileBrowser';
|
|
22735
22786
|
}
|
|
22736
22787
|
get dataProvider() {
|
|
22737
|
-
return (0,
|
|
22788
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_22__.makeDataProvider)(this, this.options);
|
|
22738
22789
|
}
|
|
22739
22790
|
onSelect(callback) {
|
|
22740
22791
|
return ()=>{
|
|
22741
22792
|
if (this.state.activeElements.length) {
|
|
22742
|
-
const
|
|
22743
|
-
const isImages = [];
|
|
22793
|
+
const items = [];
|
|
22744
22794
|
this.state.activeElements.forEach((elm)=>{
|
|
22745
22795
|
const url = elm.fileURL;
|
|
22746
22796
|
if (url) {
|
|
22747
|
-
|
|
22748
|
-
|
|
22797
|
+
items.push({
|
|
22798
|
+
file: url,
|
|
22799
|
+
isImage: elm.isImage || false
|
|
22800
|
+
});
|
|
22749
22801
|
}
|
|
22750
22802
|
});
|
|
22751
22803
|
this.close();
|
|
22752
|
-
const data = {
|
|
22804
|
+
const data = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_14__.normalizeUploaderData)({
|
|
22753
22805
|
baseurl: '',
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
};
|
|
22806
|
+
items
|
|
22807
|
+
});
|
|
22757
22808
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.isFunction)(callback)) {
|
|
22758
22809
|
callback(data);
|
|
22759
22810
|
}
|
|
@@ -22818,10 +22869,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22818
22869
|
* ```javascript
|
|
22819
22870
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
22820
22871
|
* fb.open(function (data) {
|
|
22821
|
-
*
|
|
22822
|
-
*
|
|
22823
|
-
*
|
|
22824
|
-
* }
|
|
22872
|
+
* data.items.forEach(function (item) {
|
|
22873
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
22874
|
+
* });
|
|
22825
22875
|
* });
|
|
22826
22876
|
* ```
|
|
22827
22877
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -22843,7 +22893,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22843
22893
|
this.__updateToolbarButtons();
|
|
22844
22894
|
this._dialog.open(this.browser, header);
|
|
22845
22895
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
22846
|
-
(0,
|
|
22896
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_17__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
22847
22897
|
if (this.isInDestruct) {
|
|
22848
22898
|
return;
|
|
22849
22899
|
}
|
|
@@ -22874,7 +22924,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22874
22924
|
}
|
|
22875
22925
|
initUploader(editor) {
|
|
22876
22926
|
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_13__.Config.defaultOptions.uploader);
|
|
22877
|
-
const uploadHandler = ()=>(0,
|
|
22927
|
+
const uploadHandler = ()=>(0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_16__.loadItems)(this);
|
|
22878
22928
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
22879
22929
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
22880
22930
|
this.state.on([
|
|
@@ -22905,9 +22955,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22905
22955
|
this.toolbar?.build(buttons);
|
|
22906
22956
|
}
|
|
22907
22957
|
constructor(options){
|
|
22908
|
-
super(options), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "browser", this.c.div(this.componentName)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "status_line", this.c.div(this.getFullElName('status'))), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "tree", new
|
|
22958
|
+
super(options), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "browser", this.c.div(this.componentName)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "status_line", this.c.div(this.getFullElName('status'))), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "tree", new _ui__WEBPACK_IMPORTED_MODULE_23__.FileBrowserTree(this)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "files", new _ui__WEBPACK_IMPORTED_MODULE_23__.FileBrowserFiles(this)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_7__.observable)({
|
|
22909
22959
|
currentPath: '',
|
|
22910
|
-
currentSource:
|
|
22960
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_21__.DEFAULT_SOURCE_NAME,
|
|
22911
22961
|
currentBaseUrl: '',
|
|
22912
22962
|
activeElements: [],
|
|
22913
22963
|
elements: [],
|
|
@@ -22940,9 +22990,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22940
22990
|
}
|
|
22941
22991
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.files.container);
|
|
22942
22992
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.status_line);
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22993
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_19__.selfListeners.call(self);
|
|
22994
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_18__.nativeListeners.call(self);
|
|
22995
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_20__.stateListeners.call(self);
|
|
22946
22996
|
const keys = [
|
|
22947
22997
|
'getLocalFileByUrl',
|
|
22948
22998
|
'crop',
|
|
@@ -25939,30 +25989,31 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25939
25989
|
/* harmony export */ });
|
|
25940
25990
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
25941
25991
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62445);
|
|
25942
|
-
/* harmony import */ var
|
|
25943
|
-
/* harmony import */ var
|
|
25944
|
-
/* harmony import */ var
|
|
25945
|
-
/* harmony import */ var
|
|
25946
|
-
/* harmony import */ var
|
|
25947
|
-
/* harmony import */ var
|
|
25948
|
-
/* harmony import */ var
|
|
25949
|
-
/* harmony import */ var
|
|
25950
|
-
/* harmony import */ var
|
|
25951
|
-
/* harmony import */ var
|
|
25952
|
-
/* harmony import */ var
|
|
25953
|
-
/* harmony import */ var
|
|
25954
|
-
/* harmony import */ var
|
|
25955
|
-
/* harmony import */ var
|
|
25956
|
-
/* harmony import */ var
|
|
25957
|
-
/* harmony import */ var
|
|
25958
|
-
/* harmony import */ var
|
|
25959
|
-
/* harmony import */ var
|
|
25960
|
-
/* harmony import */ var
|
|
25961
|
-
/* harmony import */ var
|
|
25962
|
-
/* harmony import */ var
|
|
25963
|
-
/* harmony import */ var
|
|
25964
|
-
/* harmony import */ var
|
|
25965
|
-
/* harmony import */ var
|
|
25992
|
+
/* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80251);
|
|
25993
|
+
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69364);
|
|
25994
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81937);
|
|
25995
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49574);
|
|
25996
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51676);
|
|
25997
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91672);
|
|
25998
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68616);
|
|
25999
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23211);
|
|
26000
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(17312);
|
|
26001
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91565);
|
|
26002
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24497);
|
|
26003
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62101);
|
|
26004
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(85932);
|
|
26005
|
+
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86878);
|
|
26006
|
+
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57821);
|
|
26007
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28712);
|
|
26008
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__);
|
|
26009
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7909);
|
|
26010
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71125);
|
|
26011
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59400);
|
|
26012
|
+
/* harmony import */ var jodit_core_ui_helpers_focus_form_field__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29577);
|
|
26013
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15982);
|
|
26014
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(29434);
|
|
26015
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(51116);
|
|
26016
|
+
/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(4274);
|
|
25966
26017
|
/*!
|
|
25967
26018
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25968
26019
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25995,6 +26046,7 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25995
26046
|
|
|
25996
26047
|
|
|
25997
26048
|
|
|
26049
|
+
|
|
25998
26050
|
|
|
25999
26051
|
|
|
26000
26052
|
const INPUT_TAGS = new Set([
|
|
@@ -26011,7 +26063,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
26011
26063
|
'textarea:not([disabled])',
|
|
26012
26064
|
'[tabindex]:not([tabindex="-1"])'
|
|
26013
26065
|
].join(',');
|
|
26014
|
-
class ToolbarButton extends
|
|
26066
|
+
class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButton {
|
|
26015
26067
|
className() {
|
|
26016
26068
|
return 'ToolbarButton';
|
|
26017
26069
|
}
|
|
@@ -26022,13 +26074,13 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26022
26074
|
super.updateAriaLabel();
|
|
26023
26075
|
if (this.trigger) {
|
|
26024
26076
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
26025
|
-
(0,
|
|
26077
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
26026
26078
|
}
|
|
26027
26079
|
}
|
|
26028
26080
|
/**
|
|
26029
26081
|
* Get parent toolbar
|
|
26030
26082
|
*/ get toolbar() {
|
|
26031
|
-
const ToolbarCollection = (0,
|
|
26083
|
+
const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.getComponentClass)('ToolbarCollection');
|
|
26032
26084
|
return this.closest(ToolbarCollection);
|
|
26033
26085
|
}
|
|
26034
26086
|
update() {
|
|
@@ -26048,7 +26100,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26048
26100
|
/**
|
|
26049
26101
|
* Calculates whether the button is active
|
|
26050
26102
|
*/ __calculateActivatedStatus(tc) {
|
|
26051
|
-
if ((0,
|
|
26103
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
26052
26104
|
return false;
|
|
26053
26105
|
}
|
|
26054
26106
|
if (this.control.isActive?.(this.j, this)) {
|
|
@@ -26071,20 +26123,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26071
26123
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
26072
26124
|
}
|
|
26073
26125
|
onChangeActivated() {
|
|
26074
|
-
;(0,
|
|
26126
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
26075
26127
|
super.onChangeActivated();
|
|
26076
26128
|
}
|
|
26077
26129
|
onChangeText() {
|
|
26078
|
-
if ((0,
|
|
26130
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(this.control.template)) {
|
|
26079
26131
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
26132
|
+
// The name given before the text came would otherwise stay
|
|
26133
|
+
this.updateAriaLabel();
|
|
26080
26134
|
} else {
|
|
26081
26135
|
super.onChangeText();
|
|
26082
26136
|
}
|
|
26083
26137
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
26084
26138
|
}
|
|
26085
26139
|
onChangeTabIndex() {
|
|
26086
|
-
;(0,
|
|
26087
|
-
(0,
|
|
26140
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
26141
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
26088
26142
|
}
|
|
26089
26143
|
createContainer() {
|
|
26090
26144
|
const cn = this.componentName;
|
|
@@ -26096,28 +26150,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26096
26150
|
value: this,
|
|
26097
26151
|
configurable: true
|
|
26098
26152
|
});
|
|
26099
|
-
|
|
26100
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
26153
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, button);
|
|
26154
|
+
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__.Icon.get('chevron')}</span>`);
|
|
26101
26155
|
// For caching
|
|
26102
|
-
|
|
26156
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(button, trigger);
|
|
26103
26157
|
return container;
|
|
26104
26158
|
}
|
|
26105
26159
|
/** @override */ focus() {
|
|
26106
|
-
|
|
26160
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.first(this.container, (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(node, 'button'))?.focus();
|
|
26107
26161
|
}
|
|
26108
26162
|
onChangeHasTrigger() {
|
|
26109
26163
|
if (this.state.hasTrigger) {
|
|
26110
|
-
|
|
26164
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(this.container, this.trigger);
|
|
26111
26165
|
} else {
|
|
26112
|
-
|
|
26166
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(this.trigger);
|
|
26113
26167
|
}
|
|
26114
26168
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
26115
26169
|
}
|
|
26116
26170
|
/** @override */ onChangeDisabled() {
|
|
26117
26171
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
26118
|
-
(0,
|
|
26119
|
-
(0,
|
|
26120
|
-
(0,
|
|
26172
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'disabled', disabled);
|
|
26173
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'disabled', disabled);
|
|
26174
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.container, 'disabled', disabled);
|
|
26121
26175
|
}
|
|
26122
26176
|
/**
|
|
26123
26177
|
* Init constant data from control
|
|
@@ -26127,19 +26181,19 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26127
26181
|
state.name = ctr.name;
|
|
26128
26182
|
this.__initIconFromControl();
|
|
26129
26183
|
if (ctr.tooltip) {
|
|
26130
|
-
state.tooltip = (0,
|
|
26184
|
+
state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
26131
26185
|
}
|
|
26132
26186
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
26133
26187
|
}
|
|
26134
26188
|
__initIconFromControl() {
|
|
26135
26189
|
const { control: ctr, state } = this;
|
|
26136
26190
|
const { textIcons } = this.j.o;
|
|
26137
|
-
if (textIcons === true || (0,
|
|
26138
|
-
state.icon = (0,
|
|
26191
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
26192
|
+
state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)().icon;
|
|
26139
26193
|
state.text = ctr.text || ctr.name;
|
|
26140
26194
|
return;
|
|
26141
26195
|
}
|
|
26142
|
-
if (!(0,
|
|
26196
|
+
if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(ctr.icon) && ctr.icon != null) {
|
|
26143
26197
|
state.icon = {
|
|
26144
26198
|
name: ctr.icon.name || ctr.name,
|
|
26145
26199
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -26152,7 +26206,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26152
26206
|
state.icon.iconURL = ctr.iconURL;
|
|
26153
26207
|
} else {
|
|
26154
26208
|
const name = ctr.icon || ctr.name;
|
|
26155
|
-
state.icon.name =
|
|
26209
|
+
state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
|
|
26156
26210
|
}
|
|
26157
26211
|
if (!ctr.iconURL && !state.icon.name) {
|
|
26158
26212
|
state.text = ctr.text || ctr.name;
|
|
@@ -26166,25 +26220,25 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26166
26220
|
return;
|
|
26167
26221
|
}
|
|
26168
26222
|
const { control: ctr } = this;
|
|
26169
|
-
(0,
|
|
26223
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', true);
|
|
26170
26224
|
e.buffer = {
|
|
26171
26225
|
actionTrigger: this
|
|
26172
26226
|
};
|
|
26173
26227
|
if (ctr.list) {
|
|
26174
26228
|
return this.__openControlList(ctr);
|
|
26175
26229
|
}
|
|
26176
|
-
if ((0,
|
|
26230
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26177
26231
|
const popup = this.openPopup();
|
|
26178
26232
|
popup.parentElement = this;
|
|
26179
26233
|
try {
|
|
26180
|
-
if (this.j.e.fire((0,
|
|
26234
|
+
if (this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
26181
26235
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26182
26236
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
26183
26237
|
if (elm) {
|
|
26184
|
-
popup.setContent((0,
|
|
26238
|
+
popup.setContent((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
26185
26239
|
// The focus stays in the content for a list, which
|
|
26186
26240
|
// typing searches, but goes to a form, as in a dialog
|
|
26187
|
-
(0,
|
|
26241
|
+
(0,jodit_core_ui_helpers_focus_form_field__WEBPACK_IMPORTED_MODULE_21__.focusFormField)(popup.container);
|
|
26188
26242
|
} else {
|
|
26189
26243
|
this.__closePopup();
|
|
26190
26244
|
}
|
|
@@ -26197,20 +26251,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26197
26251
|
* Fired after the popup was opened for some control button
|
|
26198
26252
|
*/ /**
|
|
26199
26253
|
* Close all opened popups
|
|
26200
|
-
*/ this.j.e.fire((0,
|
|
26254
|
+
*/ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
26201
26255
|
}
|
|
26202
26256
|
}
|
|
26203
26257
|
onTriggerKeyDown(e) {
|
|
26204
26258
|
if (this.state.disabled) {
|
|
26205
26259
|
return;
|
|
26206
26260
|
}
|
|
26207
|
-
if (e.key ===
|
|
26261
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN) {
|
|
26208
26262
|
this.onButtonKeyDown(e);
|
|
26209
26263
|
return;
|
|
26210
26264
|
}
|
|
26211
26265
|
if (![
|
|
26212
|
-
|
|
26213
|
-
|
|
26266
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ENTER,
|
|
26267
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_SPACE,
|
|
26214
26268
|
' '
|
|
26215
26269
|
].includes(e.key)) {
|
|
26216
26270
|
return;
|
|
@@ -26222,7 +26276,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26222
26276
|
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
26223
26277
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
26224
26278
|
*/ onButtonKeyDown(e) {
|
|
26225
|
-
if (e.key !==
|
|
26279
|
+
if (e.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
26226
26280
|
return;
|
|
26227
26281
|
}
|
|
26228
26282
|
e.preventDefault();
|
|
@@ -26241,22 +26295,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26241
26295
|
}
|
|
26242
26296
|
const target = e.target;
|
|
26243
26297
|
// A text field keeps the arrow keys for itself
|
|
26244
|
-
if (
|
|
26298
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(target, INPUT_TAGS) && e.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ESC) {
|
|
26245
26299
|
return;
|
|
26246
26300
|
}
|
|
26247
26301
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
26248
26302
|
switch(e.key){
|
|
26249
|
-
case
|
|
26303
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ESC:
|
|
26250
26304
|
this.__closePopup();
|
|
26251
26305
|
break;
|
|
26252
|
-
case
|
|
26306
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_UP:
|
|
26253
26307
|
if (index <= 0) {
|
|
26254
26308
|
this.__closePopup();
|
|
26255
26309
|
} else {
|
|
26256
26310
|
items[index - 1].focus();
|
|
26257
26311
|
}
|
|
26258
26312
|
break;
|
|
26259
|
-
case
|
|
26313
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN:
|
|
26260
26314
|
if (!items.length) {
|
|
26261
26315
|
return;
|
|
26262
26316
|
}
|
|
@@ -26324,7 +26378,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26324
26378
|
/**
|
|
26325
26379
|
* Create an open popup list
|
|
26326
26380
|
*/ __openControlList(control) {
|
|
26327
|
-
const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,
|
|
26381
|
+
const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_22__.findControlType)(key, controls);
|
|
26328
26382
|
const list = control.list;
|
|
26329
26383
|
const menu = this.openPopup();
|
|
26330
26384
|
menu.parentElement = this;
|
|
@@ -26332,18 +26386,18 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26332
26386
|
if (content) {
|
|
26333
26387
|
return this.__openMenu(menu, content);
|
|
26334
26388
|
}
|
|
26335
|
-
const toolbar = (0,
|
|
26389
|
+
const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_25__.makeCollection)(this.j);
|
|
26336
26390
|
toolbar.parentElement = menu;
|
|
26337
26391
|
toolbar.mode = 'vertical';
|
|
26338
|
-
const isListItem = (key)=>(0,
|
|
26392
|
+
const isListItem = (key)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
26339
26393
|
const getButton = (key, value)=>{
|
|
26340
|
-
if ((0,
|
|
26394
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value) && getControl(value)) {
|
|
26341
26395
|
return {
|
|
26342
26396
|
name: value.toString(),
|
|
26343
26397
|
...getControl(value)
|
|
26344
26398
|
};
|
|
26345
26399
|
}
|
|
26346
|
-
if ((0,
|
|
26400
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(key) && getControl(key)) {
|
|
26347
26401
|
return {
|
|
26348
26402
|
name: key.toString(),
|
|
26349
26403
|
...getControl(key),
|
|
@@ -26374,29 +26428,29 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26374
26428
|
value
|
|
26375
26429
|
]
|
|
26376
26430
|
};
|
|
26377
|
-
if ((0,
|
|
26431
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value)) {
|
|
26378
26432
|
childControl.text = value;
|
|
26379
26433
|
}
|
|
26380
26434
|
return childControl;
|
|
26381
26435
|
};
|
|
26382
|
-
toolbar.build((0,
|
|
26436
|
+
toolbar.build((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_10__.isArray)(list) ? list.map(getButton) : (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
|
|
26383
26437
|
this.__openMenu(menu, toolbar);
|
|
26384
26438
|
}
|
|
26385
26439
|
__openMenu(menu, content) {
|
|
26386
|
-
menu.setContent(content).open(()=>(0,
|
|
26440
|
+
menu.setContent(content).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
26387
26441
|
this.state.activated = true;
|
|
26388
26442
|
}
|
|
26389
26443
|
onOutsideClick(e) {
|
|
26390
26444
|
if (!this.openedPopup) {
|
|
26391
26445
|
return;
|
|
26392
26446
|
}
|
|
26393
|
-
if (!e || !
|
|
26447
|
+
if (!e || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isNode(e.target) || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
26394
26448
|
this.__closePopup();
|
|
26395
26449
|
}
|
|
26396
26450
|
}
|
|
26397
26451
|
openPopup() {
|
|
26398
26452
|
this.__closePopup();
|
|
26399
|
-
this.openedPopup = new
|
|
26453
|
+
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__.Popup(this.j, false);
|
|
26400
26454
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick).on('keydown', this.__onEditorKeyDown).on(this.openedPopup.container, 'keydown', this.__onPopupKeyDown);
|
|
26401
26455
|
return this.openedPopup;
|
|
26402
26456
|
}
|
|
@@ -26416,14 +26470,14 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26416
26470
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
26417
26471
|
// the button, otherwise it would fall out to the document. A form
|
|
26418
26472
|
// gives it back to the content, with the selection it was opened for
|
|
26419
|
-
const { activeElement } = this.od, hadFocus = activeElement &&
|
|
26473
|
+
const { activeElement } = this.od, hadFocus = activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(popup.container, activeElement), inForm = hadFocus && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.closest(activeElement, 'form', popup.container);
|
|
26420
26474
|
this.state.activated = false;
|
|
26421
26475
|
popup.close();
|
|
26422
26476
|
popup.destruct();
|
|
26423
26477
|
if (this.trigger) {
|
|
26424
|
-
(0,
|
|
26478
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', false);
|
|
26425
26479
|
}
|
|
26426
|
-
if (inForm && (0,
|
|
26480
|
+
if (inForm && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j)) {
|
|
26427
26481
|
this.j.s.focus();
|
|
26428
26482
|
} else if (hadFocus) {
|
|
26429
26483
|
this.focus();
|
|
@@ -26433,7 +26487,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26433
26487
|
* Click handler
|
|
26434
26488
|
*/ onClick(originalEvent) {
|
|
26435
26489
|
const { control: ctr } = this;
|
|
26436
|
-
if ((0,
|
|
26490
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.exec)) {
|
|
26437
26491
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26438
26492
|
const result = ctr.exec(this.j, target, {
|
|
26439
26493
|
control: ctr,
|
|
@@ -26446,9 +26500,10 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26446
26500
|
if (this.parentElement) {
|
|
26447
26501
|
this.parentElement.update();
|
|
26448
26502
|
}
|
|
26503
|
+
this.__closePopups();
|
|
26449
26504
|
/**
|
|
26450
26505
|
* Fired after calling `button.exec` function
|
|
26451
|
-
*/ this.j?.e?.fire('
|
|
26506
|
+
*/ this.j?.e?.fire('afterExec');
|
|
26452
26507
|
}
|
|
26453
26508
|
if (result !== false) {
|
|
26454
26509
|
return;
|
|
@@ -26457,34 +26512,55 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26457
26512
|
if (ctr.list) {
|
|
26458
26513
|
return this.__openControlList(ctr);
|
|
26459
26514
|
}
|
|
26460
|
-
if ((0,
|
|
26515
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26461
26516
|
return this.onTriggerClick(originalEvent);
|
|
26462
26517
|
}
|
|
26463
26518
|
if (ctr.command || ctr.name) {
|
|
26464
|
-
(0,
|
|
26465
|
-
this.
|
|
26519
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__.call)((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
26520
|
+
this.__closePopups();
|
|
26466
26521
|
}
|
|
26467
26522
|
}
|
|
26523
|
+
/**
|
|
26524
|
+
* After the button's action, a popup that stays open (an element's)
|
|
26525
|
+
* keeps its place beside the element, and only the lists the button is
|
|
26526
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
26527
|
+
* popup closes
|
|
26528
|
+
*/ __closePopups() {
|
|
26529
|
+
const openers = [
|
|
26530
|
+
this
|
|
26531
|
+
];
|
|
26532
|
+
for(let pe = this.parentElement; pe; pe = pe.parentElement){
|
|
26533
|
+
if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(pe, jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__.Popup) && pe.keepOpen && (!this.target || this.target.isConnected)) {
|
|
26534
|
+
openers.forEach((button)=>button.__closePopup());
|
|
26535
|
+
pe.updatePosition();
|
|
26536
|
+
return;
|
|
26537
|
+
}
|
|
26538
|
+
if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(pe, ToolbarButton)) {
|
|
26539
|
+
openers.push(pe);
|
|
26540
|
+
}
|
|
26541
|
+
}
|
|
26542
|
+
this.j?.e?.fire('closeAllPopups');
|
|
26543
|
+
}
|
|
26468
26544
|
destruct() {
|
|
26469
26545
|
this.__closePopup();
|
|
26470
26546
|
return super.destruct();
|
|
26471
26547
|
}
|
|
26472
26548
|
constructor(jodit, control, target = null){
|
|
26473
26549
|
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__typed", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__typedAt", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__typedTo", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "openedPopup", void 0), this.control = control, this.target = target, this.state = {
|
|
26474
|
-
...(0,
|
|
26550
|
+
...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)(),
|
|
26475
26551
|
theme: 'toolbar',
|
|
26476
26552
|
currentValue: '',
|
|
26477
26553
|
hasTrigger: false
|
|
26478
26554
|
}, this.__typed = '', this.__typedAt = 0, this.__typedTo = null, this.openedPopup = null;
|
|
26479
26555
|
const button = this.getElm('button');
|
|
26480
|
-
(0,
|
|
26556
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(button, 'Element button should exists');
|
|
26481
26557
|
this.button = button;
|
|
26482
26558
|
Object.defineProperty(button, 'component', {
|
|
26483
26559
|
value: this,
|
|
26484
26560
|
configurable: true
|
|
26485
26561
|
});
|
|
26486
26562
|
const trigger = this.getElm('trigger');
|
|
26487
|
-
(0,
|
|
26563
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(trigger, 'Element trigger should exists');
|
|
26488
26564
|
this.trigger = trigger;
|
|
26489
26565
|
trigger.remove();
|
|
26490
26566
|
// Prevent lost focus
|
|
@@ -26493,7 +26569,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26493
26569
|
this.trigger
|
|
26494
26570
|
], 'mousedown', (e)=>e.preventDefault());
|
|
26495
26571
|
this.onAction(this.onClick);
|
|
26496
|
-
this.hookStatus(
|
|
26572
|
+
this.hookStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_3__.STATUSES.ready, ()=>{
|
|
26497
26573
|
this.__initFromControl();
|
|
26498
26574
|
this.update();
|
|
26499
26575
|
});
|
|
@@ -26505,36 +26581,36 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26505
26581
|
}
|
|
26506
26582
|
}
|
|
26507
26583
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26508
|
-
|
|
26584
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__.cacheHTML
|
|
26509
26585
|
], ToolbarButton.prototype, "createContainer", null);
|
|
26510
26586
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26511
|
-
(0,
|
|
26587
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.hasTrigger', {
|
|
26512
26588
|
immediately: false
|
|
26513
26589
|
})
|
|
26514
26590
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
26515
26591
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26516
|
-
(0,
|
|
26592
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:click')
|
|
26517
26593
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
26518
26594
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26519
|
-
(0,
|
|
26595
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:keydown')
|
|
26520
26596
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
26521
26597
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26522
|
-
(0,
|
|
26598
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('button:keydown')
|
|
26523
26599
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
26524
26600
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26525
|
-
|
|
26601
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26526
26602
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
26527
26603
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26528
|
-
|
|
26604
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26529
26605
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
26530
26606
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26531
|
-
|
|
26607
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26532
26608
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
26533
26609
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26534
|
-
|
|
26610
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26535
26611
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
26536
26612
|
ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26537
|
-
|
|
26613
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.component
|
|
26538
26614
|
], ToolbarButton);
|
|
26539
26615
|
|
|
26540
26616
|
|
|
@@ -27047,6 +27123,7 @@ function makeSelect(view, control, target = null) {
|
|
|
27047
27123
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24497);
|
|
27048
27124
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
27049
27125
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
|
|
27126
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
27050
27127
|
/*!
|
|
27051
27128
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27052
27129
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27057,6 +27134,7 @@ function makeSelect(view, control, target = null) {
|
|
|
27057
27134
|
|
|
27058
27135
|
|
|
27059
27136
|
|
|
27137
|
+
|
|
27060
27138
|
/**
|
|
27061
27139
|
* Module for processing download documents and images by Drag and Drop
|
|
27062
27140
|
* Drag and Drop files
|
|
@@ -27117,27 +27195,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
27117
27195
|
if (!(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
27118
27196
|
return;
|
|
27119
27197
|
}
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
}
|
|
27198
|
+
const { baseurl } = resp;
|
|
27199
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(resp).forEach(({ file, isImage })=>{
|
|
27200
|
+
const [tagName, attrName] = isImage ? [
|
|
27201
|
+
'img',
|
|
27202
|
+
'src'
|
|
27203
|
+
] : [
|
|
27204
|
+
'a',
|
|
27205
|
+
'href'
|
|
27206
|
+
];
|
|
27207
|
+
const elm = j.createInside.element(tagName);
|
|
27208
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, attrName, baseurl + file);
|
|
27209
|
+
if (tagName === 'a') {
|
|
27210
|
+
elm.textContent = j.o.uploader.getDisplayName.call(this, baseurl, file);
|
|
27211
|
+
}
|
|
27212
|
+
if (tagName === 'img') {
|
|
27213
|
+
j.s.insertImage(elm, null, j.o.imageDefaultWidth);
|
|
27214
|
+
} else {
|
|
27215
|
+
j.s.insertNode(elm);
|
|
27216
|
+
}
|
|
27217
|
+
});
|
|
27141
27218
|
},
|
|
27142
27219
|
defaultHandlerError (e) {
|
|
27143
27220
|
this.j.message.error(e.message);
|
|
@@ -27231,17 +27308,19 @@ function buildData(uploader, data) {
|
|
|
27231
27308
|
|
|
27232
27309
|
"use strict";
|
|
27233
27310
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27234
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
27311
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
27235
27312
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
27236
27313
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
27237
|
-
/* harmony export */
|
|
27238
|
-
/* harmony export */
|
|
27239
|
-
/* harmony export */
|
|
27314
|
+
/* harmony export */ normalizeUploaderData: function() { return /* reexport safe */ _normalize_uploader_data__WEBPACK_IMPORTED_MODULE_1__.normalizeUploaderData; },
|
|
27315
|
+
/* harmony export */ processOldBrowserDrag: function() { return /* reexport safe */ _process_old_browser_drag__WEBPACK_IMPORTED_MODULE_2__.processOldBrowserDrag; },
|
|
27316
|
+
/* harmony export */ send: function() { return /* reexport safe */ _send__WEBPACK_IMPORTED_MODULE_3__.send; },
|
|
27317
|
+
/* harmony export */ sendFiles: function() { return /* reexport safe */ _send_files__WEBPACK_IMPORTED_MODULE_4__.sendFiles; }
|
|
27240
27318
|
/* harmony export */ });
|
|
27241
27319
|
/* harmony import */ var _build_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89446);
|
|
27242
|
-
/* harmony import */ var
|
|
27243
|
-
/* harmony import */ var
|
|
27244
|
-
/* harmony import */ var
|
|
27320
|
+
/* harmony import */ var _normalize_uploader_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7042);
|
|
27321
|
+
/* harmony import */ var _process_old_browser_drag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95436);
|
|
27322
|
+
/* harmony import */ var _send__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77911);
|
|
27323
|
+
/* harmony import */ var _send_files__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46533);
|
|
27245
27324
|
/*!
|
|
27246
27325
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27247
27326
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27253,6 +27332,7 @@ function buildData(uploader, data) {
|
|
|
27253
27332
|
|
|
27254
27333
|
|
|
27255
27334
|
|
|
27335
|
+
|
|
27256
27336
|
function hasFiles(data) {
|
|
27257
27337
|
return Boolean(data && data.files && data.files.length > 0);
|
|
27258
27338
|
}
|
|
@@ -27261,6 +27341,80 @@ function hasItems(data) {
|
|
|
27261
27341
|
}
|
|
27262
27342
|
|
|
27263
27343
|
|
|
27344
|
+
/***/ }),
|
|
27345
|
+
|
|
27346
|
+
/***/ 7042:
|
|
27347
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27348
|
+
|
|
27349
|
+
"use strict";
|
|
27350
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27351
|
+
/* harmony export */ getItems: function() { return /* binding */ getItems; },
|
|
27352
|
+
/* harmony export */ normalizeUploaderData: function() { return /* binding */ normalizeUploaderData; }
|
|
27353
|
+
/* harmony export */ });
|
|
27354
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
|
|
27355
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
|
|
27356
|
+
/*!
|
|
27357
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27358
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
27359
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
27360
|
+
*/ /**
|
|
27361
|
+
* @module modules/uploader
|
|
27362
|
+
*/
|
|
27363
|
+
|
|
27364
|
+
/**
|
|
27365
|
+
* The files in upload or file browser data, one object each. While the
|
|
27366
|
+
* deprecated `files` array is set, it and `isImages` and `fileNames` win
|
|
27367
|
+
* over `items`, so a handler that edits them and passes the data on to a
|
|
27368
|
+
* default handler still gets its edits inserted. A file browser that
|
|
27369
|
+
* passes only the arrays works too.
|
|
27370
|
+
*/ function getItems(data) {
|
|
27371
|
+
const { files, isImages, fileNames, items } = data;
|
|
27372
|
+
if (!(0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(files)) {
|
|
27373
|
+
return items ?? [];
|
|
27374
|
+
}
|
|
27375
|
+
return files.map((file, i)=>{
|
|
27376
|
+
const name = fileNames?.[i];
|
|
27377
|
+
return {
|
|
27378
|
+
file,
|
|
27379
|
+
isImage: Boolean(isImages?.[i]),
|
|
27380
|
+
...name !== undefined ? {
|
|
27381
|
+
name
|
|
27382
|
+
} : {}
|
|
27383
|
+
};
|
|
27384
|
+
});
|
|
27385
|
+
}
|
|
27386
|
+
/**
|
|
27387
|
+
* Gives the data both `items` and the deprecated `files`, `isImages` and
|
|
27388
|
+
* `fileNames` arrays, building whichever is missing, so a handler can read
|
|
27389
|
+
* either. When both are given, `items` is rebuilt from the arrays, as in
|
|
27390
|
+
* [[getItems]], unless `files` is empty and `items` isn't, as from a
|
|
27391
|
+
* `process` that spreads the server's answer and adds `items`. Anything but
|
|
27392
|
+
* an object, such as the `null` a custom `process` may return, is passed on
|
|
27393
|
+
* as it is.
|
|
27394
|
+
*/ function normalizeUploaderData(data) {
|
|
27395
|
+
if (!data || typeof data !== 'object') {
|
|
27396
|
+
return data;
|
|
27397
|
+
}
|
|
27398
|
+
const { files, items } = data;
|
|
27399
|
+
if (!items || (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(files) && (files.length || !items.length)) {
|
|
27400
|
+
return {
|
|
27401
|
+
...data,
|
|
27402
|
+
items: getItems(data)
|
|
27403
|
+
};
|
|
27404
|
+
}
|
|
27405
|
+
const names = items.map(({ name })=>name);
|
|
27406
|
+
return {
|
|
27407
|
+
...data,
|
|
27408
|
+
files: items.map(({ file })=>file),
|
|
27409
|
+
isImages: items.map(({ isImage })=>isImage),
|
|
27410
|
+
...names.every(jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString) ? {
|
|
27411
|
+
fileNames: names
|
|
27412
|
+
} : {},
|
|
27413
|
+
items
|
|
27414
|
+
};
|
|
27415
|
+
}
|
|
27416
|
+
|
|
27417
|
+
|
|
27264
27418
|
/***/ }),
|
|
27265
27419
|
|
|
27266
27420
|
/***/ 95436:
|
|
@@ -27326,8 +27480,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27326
27480
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65946);
|
|
27327
27481
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80512);
|
|
27328
27482
|
/* harmony import */ var jodit_modules_dialog_prompt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74103);
|
|
27329
|
-
/* harmony import */ var
|
|
27330
|
-
/* harmony import */ var
|
|
27483
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
27484
|
+
/* harmony import */ var jodit_modules_uploader_helpers_send__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77911);
|
|
27485
|
+
/* harmony import */ var jodit_modules_uploader_helpers_upload_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(55083);
|
|
27331
27486
|
/*!
|
|
27332
27487
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27333
27488
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27340,6 +27495,7 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27340
27495
|
|
|
27341
27496
|
|
|
27342
27497
|
|
|
27498
|
+
|
|
27343
27499
|
/**
|
|
27344
27500
|
* Send files to server
|
|
27345
27501
|
*/ async function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -27426,13 +27582,13 @@ retryOf) {
|
|
|
27426
27582
|
});
|
|
27427
27583
|
}
|
|
27428
27584
|
o.prepareData.call(uploader, form);
|
|
27429
|
-
promises.push((0,
|
|
27585
|
+
promises.push((0,jodit_modules_uploader_helpers_send__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
27430
27586
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27431
27587
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27432
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
27588
|
+
handler.call(uploader, (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
27433
27589
|
return resp;
|
|
27434
27590
|
}
|
|
27435
|
-
const err = new
|
|
27591
|
+
const err = new jodit_modules_uploader_helpers_upload_error__WEBPACK_IMPORTED_MODULE_6__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>sendFiles(uploader, plan?.files ?? fileList, handlerSuccess, handlerError, process, {
|
|
27436
27592
|
data: {
|
|
27437
27593
|
...extraData,
|
|
27438
27594
|
...plan?.data
|
|
@@ -27506,18 +27662,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
27506
27662
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
27507
27663
|
reader.onerror = reject;
|
|
27508
27664
|
reader.onloadend = ()=>{
|
|
27509
|
-
const resp = {
|
|
27665
|
+
const resp = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
27510
27666
|
baseurl: '',
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
fileNames: [
|
|
27518
|
-
name
|
|
27667
|
+
items: [
|
|
27668
|
+
{
|
|
27669
|
+
file: reader.result,
|
|
27670
|
+
isImage: true,
|
|
27671
|
+
name
|
|
27672
|
+
}
|
|
27519
27673
|
]
|
|
27520
|
-
};
|
|
27674
|
+
});
|
|
27521
27675
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
27522
27676
|
handler.call(uploader, resp);
|
|
27523
27677
|
resolve(resp);
|
|
@@ -27732,11 +27886,10 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27732
27886
|
* ```javascript
|
|
27733
27887
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
27734
27888
|
* jQuery('body').append($form);
|
|
27735
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
27736
|
-
*
|
|
27737
|
-
*
|
|
27738
|
-
*
|
|
27739
|
-
* }
|
|
27889
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (data) {
|
|
27890
|
+
* data.items.forEach(function (item) {
|
|
27891
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
27892
|
+
* });
|
|
27740
27893
|
* });
|
|
27741
27894
|
* ```
|
|
27742
27895
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -27831,7 +27984,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27831
27984
|
}).then((resp)=>{
|
|
27832
27985
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27833
27986
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27834
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
27987
|
+
handler.call(uploader, (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_7__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
27835
27988
|
return;
|
|
27836
27989
|
}
|
|
27837
27990
|
handlerE.call(uploader, (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_5__.answer)(o.getMessage.call(uploader, resp), resp, resp.data?.code));
|
|
@@ -27849,6 +28002,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27849
28002
|
if (!settled) {
|
|
27850
28003
|
resolve({
|
|
27851
28004
|
baseurl: '',
|
|
28005
|
+
items: [],
|
|
27852
28006
|
files: [],
|
|
27853
28007
|
isImages: []
|
|
27854
28008
|
});
|
|
@@ -29150,6 +29304,329 @@ UiAiAssistant = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
|
29150
29304
|
], UiAiAssistant);
|
|
29151
29305
|
|
|
29152
29306
|
|
|
29307
|
+
/***/ }),
|
|
29308
|
+
|
|
29309
|
+
/***/ 90010:
|
|
29310
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
29311
|
+
|
|
29312
|
+
"use strict";
|
|
29313
|
+
/* unused harmony export anchor */
|
|
29314
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
29315
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62445);
|
|
29316
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81937);
|
|
29317
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
|
|
29318
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
|
|
29319
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
29320
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
29321
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
29322
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
|
|
29323
|
+
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5658);
|
|
29324
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(95085);
|
|
29325
|
+
/*!
|
|
29326
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29327
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29328
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
29329
|
+
*/ /**
|
|
29330
|
+
* [[include:plugins/anchor/README.md]]
|
|
29331
|
+
* @packageDocumentation
|
|
29332
|
+
* @module plugins/anchor
|
|
29333
|
+
*/
|
|
29334
|
+
|
|
29335
|
+
|
|
29336
|
+
|
|
29337
|
+
|
|
29338
|
+
|
|
29339
|
+
|
|
29340
|
+
|
|
29341
|
+
|
|
29342
|
+
|
|
29343
|
+
|
|
29344
|
+
const ICON = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E\")";
|
|
29345
|
+
const MARKER = [
|
|
29346
|
+
'id',
|
|
29347
|
+
'name'
|
|
29348
|
+
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
29349
|
+
/**
|
|
29350
|
+
* Each anchor's marker, in the editing area only
|
|
29351
|
+
*/ const MARKER_STYLE = `${MARKER}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background:${ICON} center/contain no-repeat;cursor:pointer;content:''}`;
|
|
29352
|
+
/**
|
|
29353
|
+
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
29354
|
+
*/ const MARK = ' contenteditable="false"';
|
|
29355
|
+
/**
|
|
29356
|
+
* Inserts anchors, empty `<a id>` that links in the document reach as
|
|
29357
|
+
* `#name`, and renames and removes them
|
|
29358
|
+
*/ class anchor extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
29359
|
+
/** @override */ afterInit(jodit) {
|
|
29360
|
+
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
29361
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
|
|
29362
|
+
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
29363
|
+
top: true
|
|
29364
|
+
});
|
|
29365
|
+
}
|
|
29366
|
+
/**
|
|
29367
|
+
* An anchor gets its own popup, in place of the link's
|
|
29368
|
+
*/ __onClickA(target, e) {
|
|
29369
|
+
const { j } = this;
|
|
29370
|
+
if (j.o.readonly || !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isAnchor)(target)) {
|
|
29371
|
+
return;
|
|
29372
|
+
}
|
|
29373
|
+
j.e.stopPropagation((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.camelCase)((e?.type ?? 'click') + '_a'));
|
|
29374
|
+
// Afresh, so a form left with a change unsaved shows the name it has
|
|
29375
|
+
j.e.fire('showPopup', target, ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(target, j), 'anchor', true);
|
|
29376
|
+
return false;
|
|
29377
|
+
}
|
|
29378
|
+
/**
|
|
29379
|
+
* Anchors are uneditable in the editor, so typing beside one never goes
|
|
29380
|
+
* into it and it's deleted as a whole
|
|
29381
|
+
*/ onChange() {
|
|
29382
|
+
const { j } = this;
|
|
29383
|
+
if (j.isInDestruct || j.getMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.MODE_SOURCE) {
|
|
29384
|
+
return;
|
|
29385
|
+
}
|
|
29386
|
+
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(j.editor).forEach(markAnchor);
|
|
29387
|
+
}
|
|
29388
|
+
/**
|
|
29389
|
+
* The editor's own attribute stays out of the value
|
|
29390
|
+
*/ onAfterGetValueFromEditor(data) {
|
|
29391
|
+
data.value = unmarkAnchors(data.value);
|
|
29392
|
+
}
|
|
29393
|
+
/**
|
|
29394
|
+
* The form that names a new anchor, or renames or removes `target`
|
|
29395
|
+
*/ __generateForm(target, close) {
|
|
29396
|
+
const { j } = this;
|
|
29397
|
+
const current = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isAnchor)(target) ? target : null;
|
|
29398
|
+
const input = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIInput(j, {
|
|
29399
|
+
name: 'name',
|
|
29400
|
+
ref: 'name_input',
|
|
29401
|
+
label: 'Anchor',
|
|
29402
|
+
required: true
|
|
29403
|
+
});
|
|
29404
|
+
const buttons = [
|
|
29405
|
+
new jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton(j, {
|
|
29406
|
+
name: 'insert',
|
|
29407
|
+
type: 'submit',
|
|
29408
|
+
variant: 'primary',
|
|
29409
|
+
text: current ? 'Update' : 'Insert'
|
|
29410
|
+
})
|
|
29411
|
+
];
|
|
29412
|
+
if (current) {
|
|
29413
|
+
input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(current);
|
|
29414
|
+
buttons.unshift(new jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton(j, {
|
|
29415
|
+
name: 'remove',
|
|
29416
|
+
variant: 'default',
|
|
29417
|
+
text: 'Remove'
|
|
29418
|
+
}).onAction(()=>{
|
|
29419
|
+
if (!j.o.readonly) {
|
|
29420
|
+
j.s.restore();
|
|
29421
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.safeRemove(current);
|
|
29422
|
+
j.synchronizeValues();
|
|
29423
|
+
}
|
|
29424
|
+
close();
|
|
29425
|
+
}));
|
|
29426
|
+
}
|
|
29427
|
+
const form = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIForm(j, [
|
|
29428
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIBlock(j, [
|
|
29429
|
+
input
|
|
29430
|
+
]),
|
|
29431
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIBlock(j, buttons, {
|
|
29432
|
+
align: 'full'
|
|
29433
|
+
})
|
|
29434
|
+
]);
|
|
29435
|
+
if (current) {
|
|
29436
|
+
this.__dropForm();
|
|
29437
|
+
this.__form = form;
|
|
29438
|
+
// The toolbar's popup closes on Escape by itself; the anchor's own doesn't
|
|
29439
|
+
j.e.on(form.container, 'keydown', (e)=>{
|
|
29440
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
29441
|
+
close();
|
|
29442
|
+
j.s.restore();
|
|
29443
|
+
}
|
|
29444
|
+
});
|
|
29445
|
+
}
|
|
29446
|
+
form.onSubmit(()=>{
|
|
29447
|
+
// The editor can turn readonly while the form is open
|
|
29448
|
+
if (j.o.readonly) {
|
|
29449
|
+
close();
|
|
29450
|
+
return false;
|
|
29451
|
+
}
|
|
29452
|
+
const name = input.value.trim().replace(/^#/, '');
|
|
29453
|
+
const error = !name ? 'Please fill out this field' : /\s/.test(name) ? 'The name cannot contain spaces' : this.__isTaken(name, current) ? 'This name is already in use' : '';
|
|
29454
|
+
if (error) {
|
|
29455
|
+
input.error = error;
|
|
29456
|
+
input.focus();
|
|
29457
|
+
return false;
|
|
29458
|
+
}
|
|
29459
|
+
j.s.restore();
|
|
29460
|
+
if (current) {
|
|
29461
|
+
this.__rename(current, name);
|
|
29462
|
+
} else {
|
|
29463
|
+
this.__insert(name);
|
|
29464
|
+
}
|
|
29465
|
+
j.synchronizeValues();
|
|
29466
|
+
close();
|
|
29467
|
+
return false;
|
|
29468
|
+
});
|
|
29469
|
+
j.async.requestIdleCallback(()=>input.focus());
|
|
29470
|
+
return form;
|
|
29471
|
+
}
|
|
29472
|
+
__dropForm() {
|
|
29473
|
+
const form = this.__form;
|
|
29474
|
+
this.__form = null;
|
|
29475
|
+
if (form && !form.isInDestruct) {
|
|
29476
|
+
this.j.e.off(form.container, 'keydown');
|
|
29477
|
+
form.destruct();
|
|
29478
|
+
}
|
|
29479
|
+
}
|
|
29480
|
+
/**
|
|
29481
|
+
* Another element in the document has the name as its `id`, or another
|
|
29482
|
+
* anchor as its `name`
|
|
29483
|
+
*/ __isTaken(name, current) {
|
|
29484
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.toArray)(this.j.editor.querySelectorAll('[id], a[name]')).some((elm)=>elm !== current && (elm.id === name || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isAnchor)(elm) && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(elm, 'name') === name));
|
|
29485
|
+
}
|
|
29486
|
+
/**
|
|
29487
|
+
* At the caret, or at the start of the selection. An anchor can't go in
|
|
29488
|
+
* a link, so in one it goes just before it
|
|
29489
|
+
*/ __insert(name) {
|
|
29490
|
+
const { j } = this;
|
|
29491
|
+
const anchor = j.createInside.element('a', {
|
|
29492
|
+
id: name
|
|
29493
|
+
});
|
|
29494
|
+
const range = j.s.range;
|
|
29495
|
+
markAnchor(anchor);
|
|
29496
|
+
if (!range.collapsed) {
|
|
29497
|
+
range.collapse(true);
|
|
29498
|
+
j.s.selectRange(range);
|
|
29499
|
+
}
|
|
29500
|
+
const link = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(range.startContainer, 'a', j.editor);
|
|
29501
|
+
if (link) {
|
|
29502
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.before(link, anchor);
|
|
29503
|
+
j.s.setCursorAfter(anchor);
|
|
29504
|
+
} else {
|
|
29505
|
+
j.s.insertNode(anchor, true, false);
|
|
29506
|
+
}
|
|
29507
|
+
}
|
|
29508
|
+
/**
|
|
29509
|
+
* Gives the anchor the new name in whichever of `id` and `name` it has,
|
|
29510
|
+
* and the links to it the new `#name`, unless they still reach
|
|
29511
|
+
* something else by the old one, as they do after a copy is pasted
|
|
29512
|
+
*/ __rename(current, name) {
|
|
29513
|
+
const old = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(current);
|
|
29514
|
+
const shared = this.__isTaken(old, current);
|
|
29515
|
+
[
|
|
29516
|
+
'id',
|
|
29517
|
+
'name'
|
|
29518
|
+
].forEach((key)=>{
|
|
29519
|
+
if (current.hasAttribute(key)) {
|
|
29520
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(current, key, name);
|
|
29521
|
+
}
|
|
29522
|
+
});
|
|
29523
|
+
if (shared) {
|
|
29524
|
+
return;
|
|
29525
|
+
}
|
|
29526
|
+
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.toArray)(this.j.editor.querySelectorAll('a[href]')).forEach((link)=>{
|
|
29527
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'href') === '#' + old) {
|
|
29528
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'href', '#' + name);
|
|
29529
|
+
}
|
|
29530
|
+
});
|
|
29531
|
+
}
|
|
29532
|
+
/** @override */ beforeDestruct(jodit) {
|
|
29533
|
+
this.__dropForm();
|
|
29534
|
+
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
29535
|
+
}
|
|
29536
|
+
constructor(...args){
|
|
29537
|
+
super(...args), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "buttons", [
|
|
29538
|
+
{
|
|
29539
|
+
name: 'anchor',
|
|
29540
|
+
group: 'insert'
|
|
29541
|
+
}
|
|
29542
|
+
]), /**
|
|
29543
|
+
* The form in the anchor's own popup. The popup takes it out without
|
|
29544
|
+
* destructing it when it shows something else, so it goes when the next
|
|
29545
|
+
* one is made
|
|
29546
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__form", null);
|
|
29547
|
+
}
|
|
29548
|
+
}
|
|
29549
|
+
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29550
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
29551
|
+
], anchor.prototype, "__onClickA", null);
|
|
29552
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29553
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
29554
|
+
':change',
|
|
29555
|
+
':afterInit',
|
|
29556
|
+
':afterSetMode'
|
|
29557
|
+
]),
|
|
29558
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.debounce)()
|
|
29559
|
+
], anchor.prototype, "onChange", null);
|
|
29560
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29561
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':afterGetValueFromEditor')
|
|
29562
|
+
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
29563
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29564
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
29565
|
+
], anchor.prototype, "__generateForm", null);
|
|
29566
|
+
function markAnchor(anchor) {
|
|
29567
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(anchor, 'contenteditable') !== 'false') {
|
|
29568
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(anchor, 'contenteditable', false);
|
|
29569
|
+
}
|
|
29570
|
+
}
|
|
29571
|
+
/**
|
|
29572
|
+
* Takes `MARK` off each anchor in one pass over the tags, as a regex with
|
|
29573
|
+
* `[^>]*` backtracks quadratically on a long run of `<a` (CWE-1333)
|
|
29574
|
+
*/ function unmarkAnchors(html) {
|
|
29575
|
+
if (!html.includes(MARK)) {
|
|
29576
|
+
return html;
|
|
29577
|
+
}
|
|
29578
|
+
let result = '';
|
|
29579
|
+
let copied = 0;
|
|
29580
|
+
let cursor = 0;
|
|
29581
|
+
for(;;){
|
|
29582
|
+
const start = html.indexOf('<', cursor);
|
|
29583
|
+
if (start === -1) {
|
|
29584
|
+
break;
|
|
29585
|
+
}
|
|
29586
|
+
const end = html.indexOf('>', start);
|
|
29587
|
+
if (end === -1) {
|
|
29588
|
+
break;
|
|
29589
|
+
}
|
|
29590
|
+
if (html.startsWith('<a', start) && /\s/.test(html.charAt(start + 2)) && html.startsWith('</a>', end + 1)) {
|
|
29591
|
+
const tag = html.slice(start, end);
|
|
29592
|
+
const at = tag.indexOf(MARK);
|
|
29593
|
+
if (at !== -1 && !/\shref=/.test(tag)) {
|
|
29594
|
+
result += html.slice(copied, start + at);
|
|
29595
|
+
copied = start + at + MARK.length;
|
|
29596
|
+
}
|
|
29597
|
+
}
|
|
29598
|
+
// Past the whole tag, so an `<a` inside one of its attributes is never read as a tag
|
|
29599
|
+
cursor = end + 1;
|
|
29600
|
+
}
|
|
29601
|
+
return copied === 0 ? html : result + html.slice(copied);
|
|
29602
|
+
}
|
|
29603
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('anchor', anchor);
|
|
29604
|
+
|
|
29605
|
+
|
|
29606
|
+
/***/ }),
|
|
29607
|
+
|
|
29608
|
+
/***/ 95085:
|
|
29609
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
29610
|
+
|
|
29611
|
+
"use strict";
|
|
29612
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5266);
|
|
29613
|
+
/* harmony import */ var jodit_plugins_inline_popup_config_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89873);
|
|
29614
|
+
/*!
|
|
29615
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29616
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29617
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
29618
|
+
*/ /**
|
|
29619
|
+
* @module plugins/anchor
|
|
29620
|
+
*/
|
|
29621
|
+
// The anchor's popup goes in its list
|
|
29622
|
+
|
|
29623
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.anchor = {
|
|
29624
|
+
popup: (editor, current, close)=>editor.e.fire('generateAnchorForm.anchor', null, close),
|
|
29625
|
+
tooltip: 'Insert anchor'
|
|
29626
|
+
};
|
|
29627
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.anchor = (editor, target, close)=>editor.e.fire('generateAnchorForm.anchor', target, close);
|
|
29628
|
+
|
|
29629
|
+
|
|
29153
29630
|
/***/ }),
|
|
29154
29631
|
|
|
29155
29632
|
/***/ 28286:
|
|
@@ -34553,7 +35030,8 @@ function brBefore(start) {
|
|
|
34553
35030
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
|
|
34554
35031
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
34555
35032
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
|
|
34556
|
-
/* harmony import */ var
|
|
35033
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
35034
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15753);
|
|
34557
35035
|
/*!
|
|
34558
35036
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34559
35037
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34567,6 +35045,7 @@ function brBefore(start) {
|
|
|
34567
35045
|
|
|
34568
35046
|
|
|
34569
35047
|
|
|
35048
|
+
|
|
34570
35049
|
/**
|
|
34571
35050
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
34572
35051
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -34588,15 +35067,16 @@ function brBefore(start) {
|
|
|
34588
35067
|
return true;
|
|
34589
35068
|
}
|
|
34590
35069
|
function insertLinks(data) {
|
|
34591
|
-
data
|
|
34592
|
-
|
|
35070
|
+
const { baseurl } = data;
|
|
35071
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>{
|
|
35072
|
+
const href = baseurl + file;
|
|
34593
35073
|
if (wrapSelectionInLink(this, href)) {
|
|
34594
35074
|
return;
|
|
34595
35075
|
}
|
|
34596
35076
|
const link = this.createInside.element('a', {
|
|
34597
35077
|
href
|
|
34598
35078
|
});
|
|
34599
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
35079
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
34600
35080
|
this.s.insertNode(link);
|
|
34601
35081
|
});
|
|
34602
35082
|
}
|
|
@@ -34624,9 +35104,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
34624
35104
|
if (current && (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'a') || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, 'a', editor.editor))) {
|
|
34625
35105
|
sourceAnchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'a') ? current : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, 'a', editor.editor);
|
|
34626
35106
|
}
|
|
34627
|
-
return (0,
|
|
35107
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
34628
35108
|
filebrowser: (data)=>{
|
|
34629
|
-
|
|
35109
|
+
;(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
34630
35110
|
close();
|
|
34631
35111
|
},
|
|
34632
35112
|
upload: (data)=>{
|
|
@@ -36865,10 +37345,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
36865
37345
|
const fresh = this.__freshCaption(wrapper);
|
|
36866
37346
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
36867
37347
|
// The click opened the image's popup below the caption, so it
|
|
36868
|
-
//
|
|
37348
|
+
// moves below the image, as after the popup's Caption button
|
|
36869
37349
|
if (clicked) {
|
|
36870
37350
|
j.e.fire('recalcPositionPopup');
|
|
36871
|
-
j.e.fire('closeAllPopups');
|
|
36872
37351
|
}
|
|
36873
37352
|
}, 1);
|
|
36874
37353
|
}
|
|
@@ -38753,9 +39232,9 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38753
39232
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38754
39233
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
38755
39234
|
/* harmony export */ });
|
|
38756
|
-
/* harmony import */ var
|
|
38757
|
-
/* harmony import */ var
|
|
38758
|
-
/* harmony import */ var
|
|
39235
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23599);
|
|
39236
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51116);
|
|
39237
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7042);
|
|
38759
39238
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18762);
|
|
38760
39239
|
/*!
|
|
38761
39240
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -38768,25 +39247,27 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38768
39247
|
|
|
38769
39248
|
|
|
38770
39249
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
38771
|
-
const popup = new
|
|
39250
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
38772
39251
|
const closePopup = ()=>{
|
|
38773
39252
|
popup.close();
|
|
38774
39253
|
popup.destruct();
|
|
38775
39254
|
};
|
|
38776
39255
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
38777
39256
|
upload: (data)=>{
|
|
38778
|
-
|
|
38779
|
-
|
|
39257
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__.getItems)(data);
|
|
39258
|
+
if (item) {
|
|
39259
|
+
state.values.imageSrc = data.baseurl + item.file;
|
|
38780
39260
|
}
|
|
38781
39261
|
closePopup();
|
|
38782
39262
|
},
|
|
38783
39263
|
filebrowser: async (data)=>{
|
|
38784
|
-
|
|
38785
|
-
|
|
39264
|
+
const [item] = data ? (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__.getItems)(data) : [];
|
|
39265
|
+
if (item) {
|
|
39266
|
+
state.values.imageSrc = item.file;
|
|
38786
39267
|
closePopup();
|
|
38787
39268
|
}
|
|
38788
39269
|
}
|
|
38789
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
39270
|
+
}, state.image, closePopup)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
38790
39271
|
}
|
|
38791
39272
|
|
|
38792
39273
|
|
|
@@ -39090,9 +39571,10 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39090
39571
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
39091
39572
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
39092
39573
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
39093
|
-
/* harmony import */ var
|
|
39094
|
-
/* harmony import */ var
|
|
39095
|
-
/* harmony import */ var
|
|
39574
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7042);
|
|
39575
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15753);
|
|
39576
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(64831);
|
|
39577
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
39096
39578
|
/*!
|
|
39097
39579
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39098
39580
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39109,7 +39591,8 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39109
39591
|
|
|
39110
39592
|
|
|
39111
39593
|
|
|
39112
|
-
|
|
39594
|
+
|
|
39595
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
39113
39596
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
39114
39597
|
popup: (editor, current, close)=>{
|
|
39115
39598
|
let sourceImage = null;
|
|
@@ -39117,10 +39600,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
39117
39600
|
sourceImage = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, 'img') ? current : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
39118
39601
|
}
|
|
39119
39602
|
editor.s.save();
|
|
39120
|
-
return (0,
|
|
39603
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
39121
39604
|
filebrowser: (data)=>{
|
|
39122
39605
|
editor.s.restore();
|
|
39123
|
-
|
|
39606
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_6__.getItems)(data).forEach(({ file })=>editor.s.insertImage(data.baseurl + file, null, editor.o.imageDefaultWidth));
|
|
39124
39607
|
close();
|
|
39125
39608
|
},
|
|
39126
39609
|
upload: true,
|
|
@@ -39389,39 +39872,40 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39389
39872
|
/* harmony import */ var jodit_plugins_limit_limit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(50662);
|
|
39390
39873
|
/* harmony import */ var jodit_plugins_line_height_line_height__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(58354);
|
|
39391
39874
|
/* harmony import */ var jodit_plugins_link_link__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(68624);
|
|
39392
|
-
/* harmony import */ var
|
|
39393
|
-
/* harmony import */ var
|
|
39394
|
-
/* harmony import */ var
|
|
39395
|
-
/* harmony import */ var
|
|
39396
|
-
/* harmony import */ var
|
|
39397
|
-
/* harmony import */ var
|
|
39398
|
-
/* harmony import */ var
|
|
39399
|
-
/* harmony import */ var
|
|
39400
|
-
/* harmony import */ var
|
|
39401
|
-
/* harmony import */ var
|
|
39402
|
-
/* harmony import */ var
|
|
39403
|
-
/* harmony import */ var
|
|
39404
|
-
/* harmony import */ var
|
|
39405
|
-
/* harmony import */ var
|
|
39406
|
-
/* harmony import */ var
|
|
39407
|
-
/* harmony import */ var
|
|
39408
|
-
/* harmony import */ var
|
|
39409
|
-
/* harmony import */ var
|
|
39410
|
-
/* harmony import */ var
|
|
39411
|
-
/* harmony import */ var
|
|
39412
|
-
/* harmony import */ var
|
|
39413
|
-
/* harmony import */ var
|
|
39414
|
-
/* harmony import */ var
|
|
39415
|
-
/* harmony import */ var
|
|
39416
|
-
/* harmony import */ var
|
|
39417
|
-
/* harmony import */ var
|
|
39418
|
-
/* harmony import */ var
|
|
39419
|
-
/* harmony import */ var
|
|
39420
|
-
/* harmony import */ var
|
|
39421
|
-
/* harmony import */ var
|
|
39422
|
-
/* harmony import */ var
|
|
39423
|
-
/* harmony import */ var
|
|
39424
|
-
/* harmony import */ var
|
|
39875
|
+
/* harmony import */ var jodit_plugins_anchor_anchor__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90010);
|
|
39876
|
+
/* harmony import */ var jodit_plugins_media_media__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76830);
|
|
39877
|
+
/* harmony import */ var jodit_plugins_mobile_mobile__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(74240);
|
|
39878
|
+
/* harmony import */ var jodit_plugins_ordered_list_ordered_list__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(98792);
|
|
39879
|
+
/* harmony import */ var jodit_plugins_paste_paste__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(23422);
|
|
39880
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(96730);
|
|
39881
|
+
/* harmony import */ var jodit_plugins_paste_storage_paste_storage__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(7758);
|
|
39882
|
+
/* harmony import */ var jodit_plugins_placeholder_placeholder__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(28346);
|
|
39883
|
+
/* harmony import */ var jodit_plugins_powered_by_jodit_powered_by_jodit__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(198);
|
|
39884
|
+
/* harmony import */ var jodit_plugins_preview_preview__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(49690);
|
|
39885
|
+
/* harmony import */ var jodit_plugins_print_print__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(41134);
|
|
39886
|
+
/* harmony import */ var jodit_plugins_redo_undo_redo_undo__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(59758);
|
|
39887
|
+
/* harmony import */ var jodit_plugins_resize_cells_resize_cells__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(14248);
|
|
39888
|
+
/* harmony import */ var jodit_plugins_resize_handler_resize_handler__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(72214);
|
|
39889
|
+
/* harmony import */ var jodit_plugins_resizer_resizer__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(74522);
|
|
39890
|
+
/* harmony import */ var jodit_plugins_search_search__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(30500);
|
|
39891
|
+
/* harmony import */ var jodit_plugins_select_select__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(98988);
|
|
39892
|
+
/* harmony import */ var jodit_plugins_select_cells_select_cells__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(2756);
|
|
39893
|
+
/* harmony import */ var jodit_plugins_size_size__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(44322);
|
|
39894
|
+
/* harmony import */ var jodit_plugins_source_source__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(13810);
|
|
39895
|
+
/* harmony import */ var jodit_plugins_spellcheck_spellcheck__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(90204);
|
|
39896
|
+
/* harmony import */ var jodit_plugins_stat_stat__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(86236);
|
|
39897
|
+
/* harmony import */ var jodit_plugins_sticky_sticky__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(67582);
|
|
39898
|
+
/* harmony import */ var jodit_plugins_symbols_symbols__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(11774);
|
|
39899
|
+
/* harmony import */ var jodit_plugins_ai_assistant_ai_assistant__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(14774);
|
|
39900
|
+
/* harmony import */ var jodit_plugins_tab_tab__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(81582);
|
|
39901
|
+
/* harmony import */ var jodit_plugins_table_table__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(7994);
|
|
39902
|
+
/* harmony import */ var jodit_plugins_table_keyboard_navigation_table_keyboard_navigation__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(30110);
|
|
39903
|
+
/* harmony import */ var jodit_plugins_toolbar_navigation_toolbar_navigation__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(74192);
|
|
39904
|
+
/* harmony import */ var jodit_plugins_video_video__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(34142);
|
|
39905
|
+
/* harmony import */ var jodit_plugins_video_properties_video_properties__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40878);
|
|
39906
|
+
/* harmony import */ var jodit_plugins_wrap_nodes_wrap_nodes__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(22980);
|
|
39907
|
+
/* harmony import */ var jodit_plugins_dtd_dtd__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(56894);
|
|
39908
|
+
/* harmony import */ var jodit_plugins_xpath_xpath__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(52014);
|
|
39425
39909
|
/*!
|
|
39426
39910
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39427
39911
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39496,6 +39980,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39496
39980
|
|
|
39497
39981
|
|
|
39498
39982
|
|
|
39983
|
+
|
|
39499
39984
|
|
|
39500
39985
|
|
|
39501
39986
|
/***/ }),
|
|
@@ -39555,6 +40040,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39555
40040
|
|
|
39556
40041
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
39557
40042
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
40043
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
39558
40044
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
39559
40045
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
39560
40046
|
'source'
|
|
@@ -39642,8 +40128,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39642
40128
|
"use strict";
|
|
39643
40129
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
39644
40130
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28686);
|
|
39645
|
-
/* harmony import */ var
|
|
39646
|
-
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80991);
|
|
40131
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80991);
|
|
39647
40132
|
/*!
|
|
39648
40133
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39649
40134
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39653,7 +40138,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39653
40138
|
*/
|
|
39654
40139
|
|
|
39655
40140
|
|
|
39656
|
-
|
|
39657
40141
|
const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
39658
40142
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
39659
40143
|
'brushCell',
|
|
@@ -39669,7 +40153,7 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39669
40153
|
exec: (editor, table, { control })=>{
|
|
39670
40154
|
const command = cmd(control);
|
|
39671
40155
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
39672
|
-
(0,
|
|
40156
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
39673
40157
|
});
|
|
39674
40158
|
},
|
|
39675
40159
|
tooltip: 'Vertical align'
|
|
@@ -39735,13 +40219,6 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39735
40219
|
return;
|
|
39736
40220
|
}
|
|
39737
40221
|
editor.execCommand('tableheaderrow', false, table);
|
|
39738
|
-
const [cell] = editor.getInstance('Table', editor.o).getAllSelectedCells();
|
|
39739
|
-
// Beside the cell that replaced the one it opened for
|
|
39740
|
-
if (cell) {
|
|
39741
|
-
editor.e.fire('showPopup', table, ()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_2__.position)(cell, editor), 'cells');
|
|
39742
|
-
}
|
|
39743
|
-
// The popup stays open, so the button shows the new state
|
|
39744
|
-
return true;
|
|
39745
40222
|
},
|
|
39746
40223
|
isActive: (editor, button)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') && editor.getInstance('Table', editor.o).hasHeaderRow(button.target),
|
|
39747
40224
|
isDisabled: (editor, button)=>!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(button.target, 'table') || !editor.getInstance('Table', editor.o).canToggleHeaderRow(button.target),
|
|
@@ -39934,7 +40411,7 @@ const align = {
|
|
|
39934
40411
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
39935
40412
|
editor.synchronizeValues();
|
|
39936
40413
|
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
39937
|
-
editor.e.fire('hideResizer');
|
|
40414
|
+
editor.e.fire('hidePopup hideResizer');
|
|
39938
40415
|
editor.s.setCursorIn(caption);
|
|
39939
40416
|
} else {
|
|
39940
40417
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -40066,7 +40543,9 @@ const align = {
|
|
|
40066
40543
|
* Plugin for show inline popup dialog
|
|
40067
40544
|
*/ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
40068
40545
|
get popup() {
|
|
40069
|
-
|
|
40546
|
+
const popup = new jodit_core_ui_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.jodit, false);
|
|
40547
|
+
popup.keepOpen = this.j.o.toolbarInlineKeepOpen;
|
|
40548
|
+
return popup;
|
|
40070
40549
|
}
|
|
40071
40550
|
get toolbar() {
|
|
40072
40551
|
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_10__.makeCollection)(this.jodit, this.popup);
|
|
@@ -40079,8 +40558,8 @@ const align = {
|
|
|
40079
40558
|
const isMedia = type === 'jodit-media';
|
|
40080
40559
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
40081
40560
|
// the line, and below a captioned image's caption, so it stays in view
|
|
40082
|
-
const bound = mediaWrapper && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.getWrappedMedia)(this.j, mediaWrapper) || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.getCaptionWrapper)(this.j, target) || target;
|
|
40083
|
-
this.showPopup(()=>this.__bound(bound, isMedia), type, target);
|
|
40561
|
+
const bound = ()=>mediaWrapper && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.getWrappedMedia)(this.j, mediaWrapper) || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.getCaptionWrapper)(this.j, target) || target;
|
|
40562
|
+
this.showPopup(()=>this.__bound(bound(), isMedia), type, target);
|
|
40084
40563
|
return false;
|
|
40085
40564
|
}
|
|
40086
40565
|
}
|
|
@@ -40104,13 +40583,18 @@ const align = {
|
|
|
40104
40583
|
* Show inline popup with some toolbar
|
|
40105
40584
|
*
|
|
40106
40585
|
* @param type - selection, img, a etc.
|
|
40107
|
-
|
|
40586
|
+
* @param force - make the popup again for the same target
|
|
40587
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
40108
40588
|
type = type.toLowerCase();
|
|
40109
40589
|
if (!this.canShowPopupForType(type)) {
|
|
40110
40590
|
return false;
|
|
40111
40591
|
}
|
|
40112
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
40592
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
40113
40593
|
this.previousTarget = target;
|
|
40594
|
+
// What it showed is taken out, not destructed: an element a
|
|
40595
|
+
// function returns is its own, and may be shown again
|
|
40596
|
+
this.popup.elements.slice().forEach((elm)=>this.popup.remove(elm));
|
|
40597
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.detach(this.popup.getElm('content'));
|
|
40114
40598
|
const data = this.j.o.popup[type];
|
|
40115
40599
|
let content;
|
|
40116
40600
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(data)) {
|
|
@@ -40193,59 +40677,28 @@ const align = {
|
|
|
40193
40677
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
40194
40678
|
});
|
|
40195
40679
|
}
|
|
40196
|
-
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type)=>{
|
|
40197
|
-
this.showPopup(rect, type || ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? elm : elm.nodeName), (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? undefined : elm);
|
|
40680
|
+
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type, force)=>{
|
|
40681
|
+
this.showPopup(rect, type || ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? elm : elm.nodeName), (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? undefined : elm, force);
|
|
40198
40682
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
40199
|
-
if (this.popup.isOpened
|
|
40683
|
+
if (!this.popup.isOpened) {
|
|
40684
|
+
return;
|
|
40685
|
+
}
|
|
40686
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
40200
40687
|
this.hidePopup();
|
|
40201
40688
|
this.previousTarget = undefined;
|
|
40689
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
40690
|
+
this.hidePopup();
|
|
40202
40691
|
}
|
|
40203
40692
|
}).on([
|
|
40204
40693
|
this.j.ew,
|
|
40205
40694
|
this.j.ow
|
|
40206
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
40207
|
-
this.j.ew,
|
|
40208
|
-
this.j.ow
|
|
40209
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).on('closeAllPopups', this.__onCloseAllPopups);
|
|
40695
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40210
40696
|
this.addListenersForElements();
|
|
40211
40697
|
}
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
}
|
|
40217
|
-
__onDocumentMouseDown(e) {
|
|
40218
|
-
this.__reopenFor = null;
|
|
40219
|
-
if (this.popup.isOpened && this.type === 'selection' && e.target && jodit_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(e.target, jodit_core_ui_popup__WEBPACK_IMPORTED_MODULE_9__.Popup)) {
|
|
40220
|
-
this.__reopenSelectionPopup = true;
|
|
40221
|
-
}
|
|
40222
|
-
}
|
|
40223
|
-
__onCloseAllPopups() {
|
|
40224
|
-
const target = this.__reopenFor;
|
|
40225
|
-
if (target) {
|
|
40226
|
-
this.__reopenFor = null;
|
|
40227
|
-
// After the popup's own `closeAllPopups` handler, as below
|
|
40228
|
-
this.j.async.setTimeout(()=>{
|
|
40229
|
-
if (this.j.editor.contains(target)) {
|
|
40230
|
-
this.onClick(target);
|
|
40231
|
-
}
|
|
40232
|
-
}, 1);
|
|
40233
|
-
}
|
|
40234
|
-
if (!this.__reopenSelectionPopup) {
|
|
40235
|
-
return;
|
|
40236
|
-
}
|
|
40237
|
-
this.__reopenSelectionPopup = false;
|
|
40238
|
-
if (!this.j.o.toolbarInlineForSelection) {
|
|
40239
|
-
return;
|
|
40240
|
-
}
|
|
40241
|
-
// a zero timeout would run synchronously — before the popup's own
|
|
40242
|
-
// `closeAllPopups` handler closes it; defer to the next macrotask
|
|
40243
|
-
this.j.async.setTimeout(()=>{
|
|
40244
|
-
const sel = this.j.s.sel;
|
|
40245
|
-
if (sel && !sel.isCollapsed) {
|
|
40246
|
-
this.showPopup(()=>this.__selectionBound(), 'selection');
|
|
40247
|
-
}
|
|
40248
|
-
}, 1);
|
|
40698
|
+
/**
|
|
40699
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
40700
|
+
*/ onRecalcPositionPopup() {
|
|
40701
|
+
this.popup.updatePosition();
|
|
40249
40702
|
}
|
|
40250
40703
|
/**
|
|
40251
40704
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -40291,9 +40744,8 @@ const align = {
|
|
|
40291
40744
|
return;
|
|
40292
40745
|
}
|
|
40293
40746
|
const type = 'selection';
|
|
40294
|
-
const sel = this.j.s.sel;
|
|
40295
40747
|
const range = this.j.s.range;
|
|
40296
|
-
if (
|
|
40748
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
40297
40749
|
if (this.type === type && this.popup.isOpened) {
|
|
40298
40750
|
this.hidePopup();
|
|
40299
40751
|
}
|
|
@@ -40305,6 +40757,28 @@ const align = {
|
|
|
40305
40757
|
}
|
|
40306
40758
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
40307
40759
|
}
|
|
40760
|
+
/**
|
|
40761
|
+
* The selection holds more than a line break. A double click past the end
|
|
40762
|
+
* of a line, or a drag from there into the next, selects only the break,
|
|
40763
|
+
* with any rule, video or empty line it crosses: it starts at the end of a
|
|
40764
|
+
* line, after everything in it, and holds no text that shows
|
|
40765
|
+
*/ __hasSelectedContent() {
|
|
40766
|
+
const { sel, range } = this.j.s;
|
|
40767
|
+
if (!sel || sel.isCollapsed) {
|
|
40768
|
+
return false;
|
|
40769
|
+
}
|
|
40770
|
+
// HTML collapses ASCII white space, but not
|
|
40771
|
+
const showsText = (r)=>/[^\t\n\f\r \uFEFF\u200B]/.test(r.toString());
|
|
40772
|
+
const line = jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.closest(range.startContainer, jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isBlock, this.j.editor);
|
|
40773
|
+
if (!line || line === this.j.editor || showsText(range)) {
|
|
40774
|
+
return true;
|
|
40775
|
+
}
|
|
40776
|
+
// The rest of the line after the selection's start
|
|
40777
|
+
const rest = this.j.s.createRange();
|
|
40778
|
+
rest.setStart(range.startContainer, range.startOffset);
|
|
40779
|
+
rest.setEnd(line, line.childNodes.length);
|
|
40780
|
+
return showsText(rest) || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.toArray)(line.querySelectorAll(':not(br):empty')).some((elm)=>rest.intersectsNode(elm));
|
|
40781
|
+
}
|
|
40308
40782
|
/**
|
|
40309
40783
|
* In not collapsed selection - only one image
|
|
40310
40784
|
*/ isSelectedTarget(r) {
|
|
@@ -40320,10 +40794,7 @@ const align = {
|
|
|
40320
40794
|
jodit.e.off('showPopup').off([
|
|
40321
40795
|
this.j.ew,
|
|
40322
40796
|
this.j.ow
|
|
40323
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
40324
|
-
this.j.ew,
|
|
40325
|
-
this.j.ow
|
|
40326
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).off('closeAllPopups', this.__onCloseAllPopups);
|
|
40797
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40327
40798
|
this.removeListenersForElements();
|
|
40328
40799
|
}
|
|
40329
40800
|
_eventsList() {
|
|
@@ -40352,15 +40823,7 @@ const align = {
|
|
|
40352
40823
|
}, 'toolbar');
|
|
40353
40824
|
}
|
|
40354
40825
|
constructor(...args){
|
|
40355
|
-
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "type", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "previousTarget", void 0),
|
|
40356
|
-
* The user pressed a button inside the selection toolbar — after the
|
|
40357
|
-
* command fires `closeAllPopups`, the toolbar should be shown again
|
|
40358
|
-
* while the selection is still there. See #1238
|
|
40359
|
-
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__reopenSelectionPopup", false), /**
|
|
40360
|
-
* The alignment controls fire `recalcPositionPopup` once they have moved
|
|
40361
|
-
* the element, and their button then fires `closeAllPopups`. The popup
|
|
40362
|
-
* opens again beside the element, as the selection toolbar does
|
|
40363
|
-
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__reopenFor", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "snapRange", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keyDownElement", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "elmsList", (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.keys)(this.j.o.popup, false).filter((s)=>!this.isExcludedTarget(s)));
|
|
40826
|
+
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "type", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "previousTarget", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "snapRange", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keyDownElement", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "elmsList", (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.keys)(this.j.o.popup, false).filter((s)=>!this.isExcludedTarget(s)));
|
|
40364
40827
|
}
|
|
40365
40828
|
}
|
|
40366
40829
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(inlinePopup, "requires", [
|
|
@@ -40395,12 +40858,6 @@ const align = {
|
|
|
40395
40858
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40396
40859
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':recalcPositionPopup')
|
|
40397
40860
|
], inlinePopup.prototype, "onRecalcPositionPopup", null);
|
|
40398
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40399
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40400
|
-
], inlinePopup.prototype, "__onDocumentMouseDown", null);
|
|
40401
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40402
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40403
|
-
], inlinePopup.prototype, "__onCloseAllPopups", null);
|
|
40404
40861
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40405
40862
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40406
40863
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -41029,8 +41486,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41029
41486
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
41030
41487
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
41031
41488
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
41032
|
-
/* harmony import */ var
|
|
41033
|
-
/* harmony import */ var
|
|
41489
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
|
|
41490
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29434);
|
|
41491
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51116);
|
|
41492
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65230);
|
|
41493
|
+
/* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99763);
|
|
41034
41494
|
/*!
|
|
41035
41495
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41036
41496
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41049,6 +41509,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41049
41509
|
|
|
41050
41510
|
|
|
41051
41511
|
|
|
41512
|
+
|
|
41513
|
+
|
|
41514
|
+
|
|
41515
|
+
|
|
41052
41516
|
/**
|
|
41053
41517
|
* Process link. Insert, dblclick or remove format
|
|
41054
41518
|
*/ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
@@ -41192,6 +41656,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41192
41656
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
41193
41657
|
}
|
|
41194
41658
|
}
|
|
41659
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
41195
41660
|
jodit.editor.normalize();
|
|
41196
41661
|
const snapshot = jodit.history.snapshot.make();
|
|
41197
41662
|
if (unlink) {
|
|
@@ -41354,7 +41819,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41354
41819
|
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
|
|
41355
41820
|
return;
|
|
41356
41821
|
}
|
|
41357
|
-
const found = (0,
|
|
41822
|
+
const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_12__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
41358
41823
|
if (!found) {
|
|
41359
41824
|
return;
|
|
41360
41825
|
}
|
|
@@ -41445,6 +41910,136 @@ const MODIFIER_KEYS = new Set([
|
|
|
41445
41910
|
'CapsLock'
|
|
41446
41911
|
]);
|
|
41447
41912
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
41913
|
+
/**
|
|
41914
|
+
* A dropdown arrow in the URL field that lists the document's anchors by the
|
|
41915
|
+
* words after them, and fills in the one picked. The list opens in a popup of
|
|
41916
|
+
* its own, from the arrow or the down arrow key, and closes once an address is
|
|
41917
|
+
* typed
|
|
41918
|
+
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
41919
|
+
const anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(jodit.editor);
|
|
41920
|
+
const field = url?.closest('.jodit-ui-input__wrapper');
|
|
41921
|
+
const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement);
|
|
41922
|
+
if (!field || !input || !anchors.length) {
|
|
41923
|
+
return;
|
|
41924
|
+
}
|
|
41925
|
+
const { c } = jodit;
|
|
41926
|
+
const label = jodit.i18n('Link to an anchor');
|
|
41927
|
+
const toggle = c.element('button', {
|
|
41928
|
+
type: 'button',
|
|
41929
|
+
class: 'jodit-link-anchors__toggle',
|
|
41930
|
+
title: label,
|
|
41931
|
+
'aria-label': label
|
|
41932
|
+
});
|
|
41933
|
+
const heading = c.div('jodit-link-anchors__heading', {
|
|
41934
|
+
id: 'jodit-link-anchors-' + (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.uniqueUid)()
|
|
41935
|
+
});
|
|
41936
|
+
const list = c.div('jodit-link-anchors', {
|
|
41937
|
+
role: 'group',
|
|
41938
|
+
'aria-labelledby': heading.id
|
|
41939
|
+
});
|
|
41940
|
+
const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__.Icon.makeIcon(jodit, {
|
|
41941
|
+
name,
|
|
41942
|
+
iconURL: '',
|
|
41943
|
+
fill: '',
|
|
41944
|
+
scale: undefined
|
|
41945
|
+
}) ?? c.span();
|
|
41946
|
+
const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__.Popup(jodit).setMod('padding', false);
|
|
41947
|
+
const items = [];
|
|
41948
|
+
let filled = '';
|
|
41949
|
+
const open = ()=>{
|
|
41950
|
+
if (dropdown.isOpened) {
|
|
41951
|
+
return;
|
|
41952
|
+
}
|
|
41953
|
+
// Clicks in the list then count as the form's, which stays open
|
|
41954
|
+
dropdown.parentElement ||= input;
|
|
41955
|
+
list.style.minWidth = field.offsetWidth + 'px';
|
|
41956
|
+
dropdown.open(()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(field));
|
|
41957
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(toggle, 'aria-expanded', true);
|
|
41958
|
+
items.forEach((item, index)=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(item, 'aria-current', url.value === '#' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(anchors[index])));
|
|
41959
|
+
list.querySelector('[aria-current=true]')?.scrollIntoView({
|
|
41960
|
+
block: 'nearest'
|
|
41961
|
+
});
|
|
41962
|
+
};
|
|
41963
|
+
toggle.append(icon('chevron'));
|
|
41964
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(toggle, 'aria-expanded', false);
|
|
41965
|
+
heading.textContent = jodit.i18n('On this page');
|
|
41966
|
+
list.appendChild(heading);
|
|
41967
|
+
dropdown.setContent(list);
|
|
41968
|
+
anchors.forEach((anchor)=>{
|
|
41969
|
+
const name = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(anchor);
|
|
41970
|
+
const text = textAfter(jodit, anchor) || name;
|
|
41971
|
+
const item = c.element('button', {
|
|
41972
|
+
type: 'button',
|
|
41973
|
+
tabindex: -1,
|
|
41974
|
+
class: 'jodit-link-anchors__item'
|
|
41975
|
+
});
|
|
41976
|
+
items.push(item);
|
|
41977
|
+
const textBox = c.span('jodit-link-anchors__text');
|
|
41978
|
+
textBox.textContent = text;
|
|
41979
|
+
const nameBox = c.span('jodit-link-anchors__name');
|
|
41980
|
+
nameBox.textContent = '#' + name;
|
|
41981
|
+
item.append(icon('anchor'), textBox, nameBox);
|
|
41982
|
+
list.appendChild(item);
|
|
41983
|
+
jodit.e.on(item, 'click', ()=>{
|
|
41984
|
+
dropdown.close();
|
|
41985
|
+
url.value = '#' + name;
|
|
41986
|
+
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
41987
|
+
content.value = filled = text;
|
|
41988
|
+
}
|
|
41989
|
+
url.focus();
|
|
41990
|
+
});
|
|
41991
|
+
});
|
|
41992
|
+
// A press on the arrow closes the open list before the click
|
|
41993
|
+
let wasOpen = false;
|
|
41994
|
+
jodit.e.on(dropdown, 'beforeClose', ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(toggle, 'aria-expanded', false)).on(toggle, 'mousedown', ()=>wasOpen = dropdown.isOpened).on(toggle, 'click', ()=>{
|
|
41995
|
+
wasOpen || dropdown.isOpened ? dropdown.close() : open();
|
|
41996
|
+
wasOpen = false;
|
|
41997
|
+
}).on(url, 'input.anchors', ()=>{
|
|
41998
|
+
if (url.value && !url.value.startsWith('#')) {
|
|
41999
|
+
dropdown.close();
|
|
42000
|
+
}
|
|
42001
|
+
}).on(url, 'keydown.anchors', (e)=>{
|
|
42002
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN) {
|
|
42003
|
+
e.preventDefault();
|
|
42004
|
+
open();
|
|
42005
|
+
items[0].focus();
|
|
42006
|
+
}
|
|
42007
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC && dropdown.isOpened) {
|
|
42008
|
+
e.stopPropagation();
|
|
42009
|
+
dropdown.close();
|
|
42010
|
+
}
|
|
42011
|
+
}).on(list, 'keydown', (e)=>{
|
|
42012
|
+
const index = items.indexOf(e.target);
|
|
42013
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_UP) {
|
|
42014
|
+
e.preventDefault();
|
|
42015
|
+
items[index + (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN ? 1 : -1)]?.focus();
|
|
42016
|
+
}
|
|
42017
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
42018
|
+
e.stopPropagation();
|
|
42019
|
+
dropdown.close();
|
|
42020
|
+
url.focus();
|
|
42021
|
+
}
|
|
42022
|
+
});
|
|
42023
|
+
// The URL input is destructed when the form closes
|
|
42024
|
+
input.hookStatus('destructed', ()=>{
|
|
42025
|
+
dropdown.destruct();
|
|
42026
|
+
jodit.e.off([
|
|
42027
|
+
toggle,
|
|
42028
|
+
list,
|
|
42029
|
+
...items
|
|
42030
|
+
]).off(url, '.anchors');
|
|
42031
|
+
});
|
|
42032
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.after(url, toggle);
|
|
42033
|
+
}
|
|
42034
|
+
/**
|
|
42035
|
+
* The words after an anchor in its block, which say where it is
|
|
42036
|
+
*/ function textAfter(jodit, anchor) {
|
|
42037
|
+
const range = jodit.ed.createRange();
|
|
42038
|
+
range.selectNodeContents(jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.up(anchor, jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, jodit.editor) ?? jodit.editor);
|
|
42039
|
+
range.setStartAfter(anchor);
|
|
42040
|
+
const text = range.toString().replace(/\s+/g, ' ').trim();
|
|
42041
|
+
return text.length > 50 ? text.slice(0, 50).replace(/\s+\S*$/, '') + '…' : text;
|
|
42042
|
+
}
|
|
41448
42043
|
/**
|
|
41449
42044
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
41450
42045
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -41459,7 +42054,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
41459
42054
|
return value;
|
|
41460
42055
|
}
|
|
41461
42056
|
// email address -> mailto:
|
|
41462
|
-
if (
|
|
42057
|
+
if (_typed_link__WEBPACK_IMPORTED_MODULE_12__.EMAIL.test(value)) {
|
|
41463
42058
|
return `mailto:${value}`;
|
|
41464
42059
|
}
|
|
41465
42060
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -41560,7 +42155,9 @@ const formTemplate = (editor)=>{
|
|
|
41560
42155
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
41561
42156
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
41562
42157
|
name: 'url',
|
|
41563
|
-
|
|
42158
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
42159
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
42160
|
+
type: 'url',
|
|
41564
42161
|
ref: 'url_input',
|
|
41565
42162
|
label: 'URL',
|
|
41566
42163
|
placeholder: 'http://',
|
|
@@ -44588,6 +45185,13 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
44588
45185
|
this.addEventListeners();
|
|
44589
45186
|
this.__onChangeEditor();
|
|
44590
45187
|
}
|
|
45188
|
+
/**
|
|
45189
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
45190
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
45191
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
45192
|
+
*/ onEditorTouchEnd(e) {
|
|
45193
|
+
this.j.async.setTimeout(()=>this.onEditorClick(e), 1);
|
|
45194
|
+
}
|
|
44591
45195
|
/**
|
|
44592
45196
|
* Click in the editor area
|
|
44593
45197
|
*/ onEditorClick(e) {
|
|
@@ -45012,6 +45616,9 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
45012
45616
|
}
|
|
45013
45617
|
}
|
|
45014
45618
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
45619
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':touchend')
|
|
45620
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
45621
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
45015
45622
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':click')
|
|
45016
45623
|
], resizer.prototype, "onEditorClick", null);
|
|
45017
45624
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
@@ -45982,8 +46589,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
45982
46589
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
45983
46590
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
45984
46591
|
/* harmony import */ var jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42259);
|
|
45985
|
-
/* harmony import */ var
|
|
45986
|
-
/* harmony import */ var
|
|
46592
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4099);
|
|
46593
|
+
/* harmony import */ var jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(98803);
|
|
46594
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(69070);
|
|
45987
46595
|
/*!
|
|
45988
46596
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45989
46597
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46003,12 +46611,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
46003
46611
|
|
|
46004
46612
|
|
|
46005
46613
|
|
|
46614
|
+
|
|
46006
46615
|
const key = 'table_processor_observer';
|
|
46007
46616
|
class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
46008
46617
|
/**
|
|
46009
46618
|
* Shortcut for Jodit.modules.Table
|
|
46010
46619
|
*/ get __tableModule() {
|
|
46011
|
-
return this.j.getInstance(
|
|
46620
|
+
return this.j.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_10__.Table, this.j.o);
|
|
46012
46621
|
}
|
|
46013
46622
|
afterInit(jodit) {
|
|
46014
46623
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -46095,7 +46704,28 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46095
46704
|
// As after a click, the first change to the cell keeps the mark
|
|
46096
46705
|
this.__selectedCell = cell;
|
|
46097
46706
|
this.__tableModule.addSelection(cell);
|
|
46098
|
-
this.j.e.fire('showPopup', table,
|
|
46707
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46708
|
+
}
|
|
46709
|
+
/**
|
|
46710
|
+
* The box round the marked cells, which their popup opens beside and
|
|
46711
|
+
* follows when its commands add, merge or replace cells
|
|
46712
|
+
*/ __markedBound() {
|
|
46713
|
+
const bounds = this.__tableModule.getAllSelectedCells().filter((cell)=>cell.isConnected).map((cell)=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(cell, this.j));
|
|
46714
|
+
if (!bounds.length) {
|
|
46715
|
+
return {
|
|
46716
|
+
left: 0,
|
|
46717
|
+
top: 0,
|
|
46718
|
+
width: 0,
|
|
46719
|
+
height: 0
|
|
46720
|
+
};
|
|
46721
|
+
}
|
|
46722
|
+
const left = Math.min(...bounds.map((b)=>b.left)), top = Math.min(...bounds.map((b)=>b.top)), right = Math.max(...bounds.map((b)=>b.left + b.width)), bottom = Math.max(...bounds.map((b)=>b.top + b.height));
|
|
46723
|
+
return {
|
|
46724
|
+
left,
|
|
46725
|
+
top,
|
|
46726
|
+
width: right - left,
|
|
46727
|
+
height: bottom - top
|
|
46728
|
+
};
|
|
46099
46729
|
}
|
|
46100
46730
|
/**
|
|
46101
46731
|
* Mouse click inside the table
|
|
@@ -46119,7 +46749,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46119
46749
|
this.__selectedCell = cell;
|
|
46120
46750
|
this.j.s.sel?.removeAllRanges();
|
|
46121
46751
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
46122
|
-
this.j.e.fire('showPopup', table,
|
|
46752
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46123
46753
|
} else {
|
|
46124
46754
|
this.j.e.fire('hidePopup', 'cells');
|
|
46125
46755
|
}
|
|
@@ -46166,8 +46796,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46166
46796
|
return false;
|
|
46167
46797
|
}
|
|
46168
46798
|
}
|
|
46799
|
+
onPress(e) {
|
|
46800
|
+
this.__inPopup = Boolean(e && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isNode(e.target) && jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(e.target, jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__.Popup));
|
|
46801
|
+
}
|
|
46169
46802
|
onChange() {
|
|
46170
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
46803
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
46171
46804
|
this.__onRemoveSelection();
|
|
46172
46805
|
}
|
|
46173
46806
|
}
|
|
@@ -46278,15 +46911,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46278
46911
|
if (!min || !max) {
|
|
46279
46912
|
return;
|
|
46280
46913
|
}
|
|
46281
|
-
this.j.e.fire('showPopup', table,
|
|
46282
|
-
const minOffset = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(min, this.j), maxOffset = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(max, this.j);
|
|
46283
|
-
return {
|
|
46284
|
-
left: minOffset.left,
|
|
46285
|
-
top: minOffset.top,
|
|
46286
|
-
width: maxOffset.left - minOffset.left + maxOffset.width,
|
|
46287
|
-
height: maxOffset.top - minOffset.top + maxOffset.height
|
|
46288
|
-
};
|
|
46289
|
-
}, 'cells');
|
|
46914
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46290
46915
|
}
|
|
46291
46916
|
__stopListening() {
|
|
46292
46917
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -46399,6 +47024,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46399
47024
|
this.__toggleHeaderRow(table, cells);
|
|
46400
47025
|
break;
|
|
46401
47026
|
}
|
|
47027
|
+
// A split unmarks the cells. They stay marked, as after the
|
|
47028
|
+
// other commands, so their popup stays beside them
|
|
47029
|
+
if (/^split/.test(command)) {
|
|
47030
|
+
cells.forEach((cell)=>this.__tableModule.addSelection(cell));
|
|
47031
|
+
}
|
|
46402
47032
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
46403
47033
|
this.__removeTable(table);
|
|
46404
47034
|
}
|
|
@@ -46421,10 +47051,6 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46421
47051
|
module.addSelection(next);
|
|
46422
47052
|
}
|
|
46423
47053
|
});
|
|
46424
|
-
// As after the click that marked it, the command's own change keeps
|
|
46425
|
-
// the marks, so the popup can stay open for another toggle
|
|
46426
|
-
const anchor = this.__selectedCell ?? cells[0];
|
|
46427
|
-
this.__selectedCell = replaced.get(anchor) ?? anchor;
|
|
46428
47054
|
}
|
|
46429
47055
|
/**
|
|
46430
47056
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -46483,7 +47109,10 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46483
47109
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__movedTo", null), /**
|
|
46484
47110
|
* A drag let go outside the table ends in a click on the editor, which
|
|
46485
47111
|
* would unmark its cells
|
|
46486
|
-
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keepMarks", false)
|
|
47112
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keepMarks", false), /**
|
|
47113
|
+
* The last press or key went to a popup, as to the cell popup's own
|
|
47114
|
+
* controls, whose changes keep the cells marked
|
|
47115
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__inPopup", false);
|
|
46487
47116
|
}
|
|
46488
47117
|
}
|
|
46489
47118
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(selectCells, "requires", [
|
|
@@ -46495,6 +47124,9 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46495
47124
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46496
47125
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':keyup')
|
|
46497
47126
|
], selectCells.prototype, "onKeyUp", null);
|
|
47127
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47128
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
47129
|
+
], selectCells.prototype, "__markedBound", null);
|
|
46498
47130
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46499
47131
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46500
47132
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -46510,6 +47142,16 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46510
47142
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46511
47143
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46512
47144
|
], selectCells.prototype, "__onClickAfterDrag", null);
|
|
47145
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47146
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47147
|
+
'ow:mousedown',
|
|
47148
|
+
'ow:touchstart',
|
|
47149
|
+
'ow:keydown',
|
|
47150
|
+
':mousedown',
|
|
47151
|
+
':touchstart',
|
|
47152
|
+
':keydown'
|
|
47153
|
+
])
|
|
47154
|
+
], selectCells.prototype, "onPress", null);
|
|
46513
47155
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46514
47156
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':change')
|
|
46515
47157
|
], selectCells.prototype, "onChange", null);
|
|
@@ -46563,9 +47205,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46563
47205
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
46564
47206
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88475);
|
|
46565
47207
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57821);
|
|
46566
|
-
/* harmony import */ var
|
|
46567
|
-
/* harmony import */ var
|
|
46568
|
-
/* harmony import */ var
|
|
47208
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4040);
|
|
47209
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28723);
|
|
47210
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(91206);
|
|
47211
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4099);
|
|
47212
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47670);
|
|
46569
47213
|
/*!
|
|
46570
47214
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
46571
47215
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46585,6 +47229,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46585
47229
|
|
|
46586
47230
|
|
|
46587
47231
|
|
|
47232
|
+
|
|
47233
|
+
|
|
47234
|
+
const MEDIA = 'video, iframe, audio, object, embed';
|
|
47235
|
+
// The shade the browsers lay over a selected image: #b5d6fd on white
|
|
47236
|
+
const SHADE = `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'>" + "<filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'>" + "<feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/>" + '</filter></svg>')}#s")`;
|
|
46588
47237
|
/**
|
|
46589
47238
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
46590
47239
|
*
|
|
@@ -46595,7 +47244,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46595
47244
|
* console.log(img.src);
|
|
46596
47245
|
* })
|
|
46597
47246
|
* ```
|
|
46598
|
-
*/ class select extends
|
|
47247
|
+
*/ class select extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_10__.Plugin {
|
|
46599
47248
|
afterInit(jodit) {
|
|
46600
47249
|
this.proxyEventsList.forEach((eventName)=>{
|
|
46601
47250
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -46603,6 +47252,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46603
47252
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
46604
47253
|
top: true
|
|
46605
47254
|
});
|
|
47255
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
46606
47256
|
}
|
|
46607
47257
|
beforeDestruct(jodit) {
|
|
46608
47258
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -46610,6 +47260,38 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46610
47260
|
});
|
|
46611
47261
|
this.__endPressBesideRow();
|
|
46612
47262
|
jodit.e.off('dblclick', this.__onDblClickBesideRow);
|
|
47263
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
47264
|
+
}
|
|
47265
|
+
/**
|
|
47266
|
+
* The browsers shade an image in the selection, but Chrome doesn't shade
|
|
47267
|
+
* a video with controls, or one in a `jodit-media` wrapper, so a selection
|
|
47268
|
+
* that took one in didn't show it, and typing deleted it unseen (#1768).
|
|
47269
|
+
* The media gets the same shade from a filter, in place of the tint Safari
|
|
47270
|
+
* gives a block wrapper's whole line. It's a style in the editing
|
|
47271
|
+
* document, as selected cells get their border, so the content, and with
|
|
47272
|
+
* it the value, the history and a copy, doesn't change. Media a click
|
|
47273
|
+
* selected whole is left alone, as its resize frame shows it (#1528). A
|
|
47274
|
+
* change, read-only and the source mode redo or drop the style, as the
|
|
47275
|
+
* selection may not change with them, and the style's paths could then
|
|
47276
|
+
* fit other elements
|
|
47277
|
+
*/ __markSelectedMedia() {
|
|
47278
|
+
const { s, editor, o } = this.j;
|
|
47279
|
+
const range = s.sel?.rangeCount ? s.sel.getRangeAt(0) : null;
|
|
47280
|
+
const rules = [];
|
|
47281
|
+
if (range && !range.collapsed && !o.readonly && this.j.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.MODE_SOURCE && !isElementSelection(range) && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(editor, range.commonAncestorContainer)) {
|
|
47282
|
+
uneditableIn(range, editor).forEach((elm)=>{
|
|
47283
|
+
const media = elm.querySelector(MEDIA);
|
|
47284
|
+
const wrapper = (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__.cssPath)(elm);
|
|
47285
|
+
if (media && wrapper) {
|
|
47286
|
+
rules.push(`${wrapper}::selection,${wrapper} ::selection{background:transparent}`, `${(0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__.cssPath)(media)}{filter:${SHADE}}`);
|
|
47287
|
+
}
|
|
47288
|
+
});
|
|
47289
|
+
}
|
|
47290
|
+
const style = rules.join('');
|
|
47291
|
+
if (style !== this.__selectedMediaStyle) {
|
|
47292
|
+
this.__selectedMediaStyle = style;
|
|
47293
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.getContainer)(this.j, select, 'style', true).textContent = style;
|
|
47294
|
+
}
|
|
46613
47295
|
}
|
|
46614
47296
|
onStartSelection(e) {
|
|
46615
47297
|
const { j } = this;
|
|
@@ -46635,10 +47317,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46635
47317
|
}
|
|
46636
47318
|
// Selecting the text of a popup input with the mouse and releasing
|
|
46637
47319
|
// the button past the popup's edge is not a click outside of it.
|
|
46638
|
-
if (pressed &&
|
|
47320
|
+
if (pressed && jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIElement.closestElement(pressed, jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.Popup)) {
|
|
47321
|
+
return;
|
|
47322
|
+
}
|
|
47323
|
+
// An item of a list that closed once it was chosen was in a popup
|
|
47324
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isNode(node) && !node.isConnected) {
|
|
46639
47325
|
return;
|
|
46640
47326
|
}
|
|
46641
|
-
const box =
|
|
47327
|
+
const box = jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIElement.closestElement(node, jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.Popup);
|
|
46642
47328
|
if (!box) {
|
|
46643
47329
|
this.j.e.fire('outsideClick', e);
|
|
46644
47330
|
}
|
|
@@ -46843,6 +47529,75 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46843
47529
|
s.select(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(startContainer, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, this.j.editor) || startContainer, true);
|
|
46844
47530
|
}
|
|
46845
47531
|
}
|
|
47532
|
+
/**
|
|
47533
|
+
* A double click past the end of a line selects only its line break, up
|
|
47534
|
+
* to the start of the next line a caret can go on. The browsers show no
|
|
47535
|
+
* caret for it, and typing replaces the break, joining the lines and
|
|
47536
|
+
* taking any video in between with it (#1768). Put the caret at the end
|
|
47537
|
+
* of the line instead
|
|
47538
|
+
*/ onDblClickPastLineEnd() {
|
|
47539
|
+
const { s, editor, o } = this.j;
|
|
47540
|
+
const range = s.range;
|
|
47541
|
+
if (o.readonly || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(editor, range.commonAncestorContainer) || !isLineBreak(range, editor)) {
|
|
47542
|
+
return;
|
|
47543
|
+
}
|
|
47544
|
+
range.collapse(true);
|
|
47545
|
+
s.selectRange(range);
|
|
47546
|
+
}
|
|
47547
|
+
/**
|
|
47548
|
+
* The browsers have no caret position beside an uneditable block alone
|
|
47549
|
+
* on its line, such as a video, so a drag that ends on its line runs on
|
|
47550
|
+
* past it, and typing deletes it (#1768). Until the pointer has passed
|
|
47551
|
+
* the block, the selection stops at the last caret place in the block
|
|
47552
|
+
* before its line, or for a drag upwards at the first in the block after
|
|
47553
|
+
*/ onMouseUpOnUneditableLine(e) {
|
|
47554
|
+
const { s, editor, o } = this.j;
|
|
47555
|
+
const { sel } = s;
|
|
47556
|
+
if (o.readonly || !sel?.rangeCount || sel.isCollapsed) {
|
|
47557
|
+
return;
|
|
47558
|
+
}
|
|
47559
|
+
const range = sel.getRangeAt(0).cloneRange();
|
|
47560
|
+
// A video or image Jodit selected itself on the press
|
|
47561
|
+
if (isElementSelection(range)) {
|
|
47562
|
+
return;
|
|
47563
|
+
}
|
|
47564
|
+
const forward = sel.anchorNode === range.startContainer && sel.anchorOffset === range.startOffset;
|
|
47565
|
+
const lines = uneditableIn(range, editor).map((elm)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(elm, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor) ?? elm).filter((line)=>!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(ownText(line)));
|
|
47566
|
+
const isAhead = (line)=>{
|
|
47567
|
+
const box = line.getBoundingClientRect();
|
|
47568
|
+
return forward ? e.clientY < box.bottom : e.clientY > box.top;
|
|
47569
|
+
};
|
|
47570
|
+
const line = forward ? lines.find(isAhead) : lines.reverse().find(isAhead);
|
|
47571
|
+
if (!line) {
|
|
47572
|
+
return;
|
|
47573
|
+
}
|
|
47574
|
+
// Where a caret can go: in text, or before a <br>
|
|
47575
|
+
const isCaretPlace = (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isEmptyTextNode(node) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(node, 'br');
|
|
47576
|
+
// Only the block beside the line, not one further on
|
|
47577
|
+
const beside = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.findNotEmptySibling(line, forward);
|
|
47578
|
+
const place = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock(beside) ? forward ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.last(beside, isCaretPlace) : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.first(beside, isCaretPlace) : null;
|
|
47579
|
+
if (!place) {
|
|
47580
|
+
return;
|
|
47581
|
+
}
|
|
47582
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(place)) {
|
|
47583
|
+
if (forward) {
|
|
47584
|
+
range.setEnd(place, place.nodeValue?.length ?? 0);
|
|
47585
|
+
} else {
|
|
47586
|
+
range.setStart(place, 0);
|
|
47587
|
+
}
|
|
47588
|
+
} else if (forward) {
|
|
47589
|
+
range.setEndBefore(place);
|
|
47590
|
+
} else {
|
|
47591
|
+
range.setStartBefore(place);
|
|
47592
|
+
}
|
|
47593
|
+
// The drag's start stays the anchor
|
|
47594
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
47595
|
+
if (forward) {
|
|
47596
|
+
sel.setBaseAndExtent(startContainer, startOffset, endContainer, endOffset);
|
|
47597
|
+
} else {
|
|
47598
|
+
sel.setBaseAndExtent(endContainer, endOffset, startContainer, startOffset);
|
|
47599
|
+
}
|
|
47600
|
+
}
|
|
46846
47601
|
onCopyNormalizeSelectionBound(e) {
|
|
46847
47602
|
const { s, editor, o } = this.j;
|
|
46848
47603
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -46860,7 +47615,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46860
47615
|
'touchstart',
|
|
46861
47616
|
'mouseup',
|
|
46862
47617
|
'touchend'
|
|
46863
|
-
]), /**
|
|
47618
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__selectedMediaStyle", ''), /**
|
|
46864
47619
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
46865
47620
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
46866
47621
|
* press inside a popup is remembered to tell such a drag from a real click.
|
|
@@ -46871,6 +47626,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46871
47626
|
}
|
|
46872
47627
|
}
|
|
46873
47628
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47629
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47630
|
+
':change',
|
|
47631
|
+
':readonly',
|
|
47632
|
+
':afterSetMode'
|
|
47633
|
+
]),
|
|
47634
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
47635
|
+
], select.prototype, "__markSelectedMedia", null);
|
|
47636
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46874
47637
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46875
47638
|
], select.prototype, "onStartSelection", null);
|
|
46876
47639
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
@@ -46919,12 +47682,82 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46919
47682
|
':click'
|
|
46920
47683
|
])
|
|
46921
47684
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|
|
47685
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47686
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47687
|
+
':dblclick'
|
|
47688
|
+
])
|
|
47689
|
+
], select.prototype, "onDblClickPastLineEnd", null);
|
|
47690
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47691
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47692
|
+
':mouseup'
|
|
47693
|
+
])
|
|
47694
|
+
], select.prototype, "onMouseUpOnUneditableLine", null);
|
|
46922
47695
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46923
47696
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
46924
47697
|
':copy',
|
|
46925
47698
|
':cut'
|
|
46926
47699
|
])
|
|
46927
47700
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
|
47701
|
+
const isUneditable = (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(node) && node.getAttribute('contenteditable') === 'false';
|
|
47702
|
+
/**
|
|
47703
|
+
* The text a node shows outside its uneditable elements, whose own text, as
|
|
47704
|
+
* a video's fallback text, isn't on the line
|
|
47705
|
+
*/ const ownText = (node)=>isUneditable(node) ? '' : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) ? node.nodeValue ?? '' : (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(node.childNodes).map(ownText).join('');
|
|
47706
|
+
/**
|
|
47707
|
+
* The uneditable elements the range holds whole, without those inside
|
|
47708
|
+
* another. Only those under the range's common ancestor can be, and none
|
|
47709
|
+
* when that's a text node, as along one line of a drag
|
|
47710
|
+
*/ function uneditableIn(range, root) {
|
|
47711
|
+
const box = range.commonAncestorContainer;
|
|
47712
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(box)) {
|
|
47713
|
+
return [];
|
|
47714
|
+
}
|
|
47715
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(box.querySelectorAll('[contenteditable="false"]')).filter((elm)=>{
|
|
47716
|
+
if (!range.intersectsNode(elm)) {
|
|
47717
|
+
return false;
|
|
47718
|
+
}
|
|
47719
|
+
const own = elm.ownerDocument.createRange();
|
|
47720
|
+
own.selectNode(elm);
|
|
47721
|
+
return range.compareBoundaryPoints(Range.START_TO_START, own) <= 0 && range.compareBoundaryPoints(Range.END_TO_END, own) >= 0 && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(elm.parentNode, isUneditable, root);
|
|
47722
|
+
});
|
|
47723
|
+
}
|
|
47724
|
+
/**
|
|
47725
|
+
* The range holds one element and nothing else, as a selected image does
|
|
47726
|
+
*/ function isElementSelection(range) {
|
|
47727
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
47728
|
+
return startContainer === endContainer && endOffset - startOffset === 1 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(startContainer.childNodes[startOffset]);
|
|
47729
|
+
}
|
|
47730
|
+
/**
|
|
47731
|
+
* The range holds a line end and nothing else: no characters but
|
|
47732
|
+
* whitespace, and no element whole but a `<br>` or a line a caret can't go
|
|
47733
|
+
* on, as a video's. It ends in another block, or holds the `<br>`
|
|
47734
|
+
*/ function isLineBreak(range, root) {
|
|
47735
|
+
const { startContainer, endContainer } = range;
|
|
47736
|
+
if (range.collapsed || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(range.toString()) && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(ownText(range.cloneContents()))) {
|
|
47737
|
+
return false;
|
|
47738
|
+
}
|
|
47739
|
+
let crossesLineEnd = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(startContainer, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, root) !== jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(endContainer, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, root);
|
|
47740
|
+
const holdsBreaksOnly = (node)=>{
|
|
47741
|
+
if (!range.intersectsNode(node)) {
|
|
47742
|
+
return true;
|
|
47743
|
+
}
|
|
47744
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(node, startContainer) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(node, endContainer)) {
|
|
47745
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(node.childNodes).every(holdsBreaksOnly);
|
|
47746
|
+
}
|
|
47747
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(node, 'br')) {
|
|
47748
|
+
crossesLineEnd = true;
|
|
47749
|
+
return true;
|
|
47750
|
+
}
|
|
47751
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) || isCaretless(node);
|
|
47752
|
+
};
|
|
47753
|
+
return holdsBreaksOnly(range.commonAncestorContainer) && crossesLineEnd;
|
|
47754
|
+
}
|
|
47755
|
+
/**
|
|
47756
|
+
* An uneditable element, or a block holding one and nothing else
|
|
47757
|
+
*/ function isCaretless(node) {
|
|
47758
|
+
const children = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(node.childNodes);
|
|
47759
|
+
return isUneditable(node) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock(node) && children.some(isCaretless) && children.every((child)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isEmptyTextNode(child) || isCaretless(child));
|
|
47760
|
+
}
|
|
46928
47761
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('select', select);
|
|
46929
47762
|
|
|
46930
47763
|
|
|
@@ -50464,12 +51297,12 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50464
51297
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
|
|
50465
51298
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
50466
51299
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28077);
|
|
50467
|
-
/* harmony import */ var
|
|
50468
|
-
/* harmony import */ var
|
|
50469
|
-
/* harmony import */ var
|
|
50470
|
-
/* harmony import */ var
|
|
50471
|
-
/* harmony import */ var
|
|
50472
|
-
/* harmony import */ var
|
|
51300
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23599);
|
|
51301
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71125);
|
|
51302
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18855);
|
|
51303
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
|
|
51304
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51116);
|
|
51305
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7042);
|
|
50473
51306
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18762);
|
|
50474
51307
|
/* harmony import */ var _ui_ui_video_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(83533);
|
|
50475
51308
|
/* harmony import */ var _readers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(39057);
|
|
@@ -50508,7 +51341,7 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50508
51341
|
* ```javascript
|
|
50509
51342
|
* editor.events.fire('openVideoProperties', video);
|
|
50510
51343
|
* ```
|
|
50511
|
-
*/ class videoProperties extends
|
|
51344
|
+
*/ class videoProperties extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
50512
51345
|
get __size() {
|
|
50513
51346
|
const { width, height } = this.state.values;
|
|
50514
51347
|
return `${width}x${height}`;
|
|
@@ -50547,15 +51380,15 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50547
51380
|
],
|
|
50548
51381
|
buttons.check
|
|
50549
51382
|
]);
|
|
50550
|
-
(0,
|
|
51383
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_6__.markOwner)(j, dialog.container);
|
|
50551
51384
|
return dialog;
|
|
50552
51385
|
}
|
|
50553
51386
|
get __buttons() {
|
|
50554
51387
|
const { j } = this;
|
|
50555
51388
|
return {
|
|
50556
|
-
check: (0,
|
|
50557
|
-
remove: (0,
|
|
50558
|
-
cancel: (0,
|
|
51389
|
+
check: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'ok', 'Apply', 'primary'),
|
|
51390
|
+
remove: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'bin', 'Delete'),
|
|
51391
|
+
cancel: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'cancel', 'Cancel')
|
|
50559
51392
|
};
|
|
50560
51393
|
}
|
|
50561
51394
|
/**
|
|
@@ -50580,25 +51413,27 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50580
51413
|
}
|
|
50581
51414
|
__openPosterPopup(button) {
|
|
50582
51415
|
const { j, state } = this;
|
|
50583
|
-
const popup = new
|
|
51416
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.dialog);
|
|
50584
51417
|
const close = ()=>{
|
|
50585
51418
|
popup.close();
|
|
50586
51419
|
popup.destruct();
|
|
50587
51420
|
};
|
|
50588
51421
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__.FileSelectorWidget)(j, {
|
|
50589
51422
|
upload: (data)=>{
|
|
50590
|
-
|
|
50591
|
-
|
|
51423
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__.getItems)(data);
|
|
51424
|
+
if (item) {
|
|
51425
|
+
state.values.poster = data.baseurl + item.file;
|
|
50592
51426
|
}
|
|
50593
51427
|
close();
|
|
50594
51428
|
},
|
|
50595
51429
|
filebrowser: (data)=>{
|
|
50596
|
-
|
|
50597
|
-
|
|
51430
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__.getItems)(data);
|
|
51431
|
+
if (item) {
|
|
51432
|
+
state.values.poster = item.file;
|
|
50598
51433
|
close();
|
|
50599
51434
|
}
|
|
50600
51435
|
}
|
|
50601
|
-
}, null, close)).open(()=>(0,
|
|
51436
|
+
}, null, close)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_5__.position)(button));
|
|
50602
51437
|
}
|
|
50603
51438
|
/** @override */ afterInit() {}
|
|
50604
51439
|
/** @override */ beforeDestruct() {
|
|
@@ -50748,9 +51583,10 @@ function setFlag(media, name, on) {
|
|
|
50748
51583
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5658);
|
|
50749
51584
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29434);
|
|
50750
51585
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
|
|
50751
|
-
/* harmony import */ var
|
|
50752
|
-
/* harmony import */ var
|
|
50753
|
-
/* harmony import */ var
|
|
51586
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7042);
|
|
51587
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15753);
|
|
51588
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36339);
|
|
51589
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
50754
51590
|
/*!
|
|
50755
51591
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50756
51592
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -50764,11 +51600,13 @@ function setFlag(media, name, on) {
|
|
|
50764
51600
|
|
|
50765
51601
|
|
|
50766
51602
|
|
|
51603
|
+
|
|
50767
51604
|
function insertVideos(data) {
|
|
50768
|
-
data
|
|
51605
|
+
const { baseurl } = data;
|
|
51606
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
50769
51607
|
this.s.insertNode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
50770
51608
|
controls: '',
|
|
50771
|
-
src:
|
|
51609
|
+
src: baseurl + file
|
|
50772
51610
|
})));
|
|
50773
51611
|
});
|
|
50774
51612
|
}
|
|
@@ -50778,7 +51616,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
50778
51616
|
defaultHeight: 345,
|
|
50779
51617
|
defaultHandlerSuccess: insertVideos
|
|
50780
51618
|
};
|
|
50781
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (
|
|
51619
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
50782
51620
|
/**
|
|
50783
51621
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
50784
51622
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -50824,7 +51662,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50824
51662
|
const { uploader } = jodit.o;
|
|
50825
51663
|
// Base64 alone would put whole video files into the content
|
|
50826
51664
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
50827
|
-
tabs.push((0,
|
|
51665
|
+
tabs.push((0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
50828
51666
|
run(()=>(jodit.o.video?.defaultHandlerSuccess ?? insertVideos).call(jodit, data));
|
|
50829
51667
|
}, {
|
|
50830
51668
|
label: 'Drop file',
|
|
@@ -50849,7 +51687,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50849
51687
|
formCode.onSubmit((data)=>{
|
|
50850
51688
|
insertCode(data.code);
|
|
50851
51689
|
});
|
|
50852
|
-
const box = (0,
|
|
51690
|
+
const box = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
50853
51691
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
50854
51692
|
// "Upload" doesn't fit a third of the popup
|
|
50855
51693
|
box.classList.add('jodit-file-selector');
|
|
@@ -51246,94 +52084,97 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('xpath', xpath);
|
|
|
51246
52084
|
"use strict";
|
|
51247
52085
|
__webpack_require__.r(__webpack_exports__);
|
|
51248
52086
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51249
|
-
/* harmony export */
|
|
51250
|
-
/* harmony export */
|
|
51251
|
-
/* harmony export */
|
|
51252
|
-
/* harmony export */
|
|
51253
|
-
/* harmony export */
|
|
51254
|
-
/* harmony export */
|
|
51255
|
-
/* harmony export */
|
|
51256
|
-
/* harmony export */
|
|
51257
|
-
/* harmony export */
|
|
51258
|
-
/* harmony export */
|
|
51259
|
-
/* harmony export */
|
|
51260
|
-
/* harmony export */
|
|
51261
|
-
/* harmony export */
|
|
51262
|
-
/* harmony export */
|
|
51263
|
-
/* harmony export */
|
|
51264
|
-
/* harmony export */
|
|
51265
|
-
/* harmony export */
|
|
51266
|
-
/* harmony export */
|
|
51267
|
-
/* harmony export */
|
|
51268
|
-
/* harmony export */
|
|
51269
|
-
/* harmony export */
|
|
51270
|
-
/* harmony export */
|
|
51271
|
-
/* harmony export */
|
|
51272
|
-
/* harmony export */
|
|
51273
|
-
/* harmony export */
|
|
51274
|
-
/* harmony export */
|
|
51275
|
-
/* harmony export */
|
|
51276
|
-
/* harmony export */
|
|
51277
|
-
/* harmony export */
|
|
51278
|
-
/* harmony export */
|
|
51279
|
-
/* harmony
|
|
51280
|
-
/* harmony import */ var
|
|
51281
|
-
/* harmony import */ var
|
|
51282
|
-
/* harmony import */ var
|
|
51283
|
-
/* harmony import */ var
|
|
51284
|
-
/* harmony import */ var
|
|
51285
|
-
/* harmony import */ var
|
|
51286
|
-
/* harmony import */ var
|
|
51287
|
-
/* harmony import */ var
|
|
51288
|
-
/* harmony import */ var
|
|
51289
|
-
/* harmony import */ var
|
|
51290
|
-
/* harmony import */ var
|
|
51291
|
-
/* harmony import */ var
|
|
51292
|
-
/* harmony import */ var
|
|
51293
|
-
/* harmony import */ var
|
|
51294
|
-
/* harmony import */ var
|
|
51295
|
-
/* harmony import */ var
|
|
51296
|
-
/* harmony import */ var
|
|
51297
|
-
/* harmony import */ var
|
|
51298
|
-
/* harmony import */ var
|
|
51299
|
-
/* harmony import */ var
|
|
51300
|
-
/* harmony import */ var
|
|
51301
|
-
/* harmony import */ var
|
|
51302
|
-
/* harmony import */ var
|
|
51303
|
-
/* harmony import */ var
|
|
51304
|
-
/* harmony import */ var
|
|
51305
|
-
/* harmony import */ var
|
|
51306
|
-
/* harmony import */ var
|
|
51307
|
-
/* harmony import */ var
|
|
51308
|
-
/* harmony import */ var
|
|
51309
|
-
/* harmony import */ var
|
|
51310
|
-
/* harmony import */ var
|
|
51311
|
-
/* harmony import */ var
|
|
51312
|
-
/* harmony import */ var
|
|
51313
|
-
/* harmony import */ var
|
|
51314
|
-
/* harmony import */ var
|
|
51315
|
-
/* harmony import */ var
|
|
51316
|
-
/* harmony import */ var
|
|
51317
|
-
/* harmony import */ var
|
|
51318
|
-
/* harmony import */ var
|
|
51319
|
-
/* harmony import */ var
|
|
51320
|
-
/* harmony import */ var
|
|
51321
|
-
/* harmony import */ var
|
|
51322
|
-
/* harmony import */ var
|
|
51323
|
-
/* harmony import */ var
|
|
51324
|
-
/* harmony import */ var
|
|
51325
|
-
/* harmony import */ var
|
|
51326
|
-
/* harmony import */ var
|
|
51327
|
-
/* harmony import */ var
|
|
51328
|
-
/* harmony import */ var
|
|
51329
|
-
/* harmony import */ var
|
|
51330
|
-
/* harmony import */ var
|
|
51331
|
-
/* harmony import */ var
|
|
51332
|
-
/* harmony import */ var
|
|
51333
|
-
/* harmony import */ var
|
|
51334
|
-
/* harmony import */ var
|
|
51335
|
-
/* harmony import */ var
|
|
51336
|
-
/* harmony import */ var
|
|
52087
|
+
/* harmony export */ anchor: function() { return /* reexport default from dynamic */ _anchor_svg__WEBPACK_IMPORTED_MODULE_0___default.a; },
|
|
52088
|
+
/* harmony export */ angle_down: function() { return /* reexport default from dynamic */ _angle_down_svg__WEBPACK_IMPORTED_MODULE_1___default.a; },
|
|
52089
|
+
/* harmony export */ angle_left: function() { return /* reexport default from dynamic */ _angle_left_svg__WEBPACK_IMPORTED_MODULE_2___default.a; },
|
|
52090
|
+
/* harmony export */ angle_right: function() { return /* reexport default from dynamic */ _angle_right_svg__WEBPACK_IMPORTED_MODULE_3___default.a; },
|
|
52091
|
+
/* harmony export */ angle_up: function() { return /* reexport default from dynamic */ _angle_up_svg__WEBPACK_IMPORTED_MODULE_4___default.a; },
|
|
52092
|
+
/* harmony export */ bin: function() { return /* reexport default from dynamic */ _bin_svg__WEBPACK_IMPORTED_MODULE_5___default.a; },
|
|
52093
|
+
/* harmony export */ cancel: function() { return /* reexport default from dynamic */ _cancel_svg__WEBPACK_IMPORTED_MODULE_6___default.a; },
|
|
52094
|
+
/* harmony export */ center: function() { return /* reexport default from dynamic */ _center_svg__WEBPACK_IMPORTED_MODULE_7___default.a; },
|
|
52095
|
+
/* harmony export */ check: function() { return /* reexport default from dynamic */ _check_svg__WEBPACK_IMPORTED_MODULE_8___default.a; },
|
|
52096
|
+
/* harmony export */ chevron: function() { return /* reexport default from dynamic */ _chevron_svg__WEBPACK_IMPORTED_MODULE_9___default.a; },
|
|
52097
|
+
/* harmony export */ dots: function() { return /* reexport default from dynamic */ _dots_svg__WEBPACK_IMPORTED_MODULE_10___default.a; },
|
|
52098
|
+
/* harmony export */ download: function() { return /* reexport default from dynamic */ _download_svg__WEBPACK_IMPORTED_MODULE_11___default.a; },
|
|
52099
|
+
/* harmony export */ eraser: function() { return /* reexport default from dynamic */ _eraser_svg__WEBPACK_IMPORTED_MODULE_12___default.a; },
|
|
52100
|
+
/* harmony export */ eye: function() { return /* reexport default from dynamic */ _eye_svg__WEBPACK_IMPORTED_MODULE_13___default.a; },
|
|
52101
|
+
/* harmony export */ file: function() { return /* reexport default from dynamic */ _file_svg__WEBPACK_IMPORTED_MODULE_14___default.a; },
|
|
52102
|
+
/* harmony export */ folder: function() { return /* reexport default from dynamic */ _folder_svg__WEBPACK_IMPORTED_MODULE_15___default.a; },
|
|
52103
|
+
/* harmony export */ info_circle: function() { return /* reexport default from dynamic */ _info_circle_svg__WEBPACK_IMPORTED_MODULE_16___default.a; },
|
|
52104
|
+
/* harmony export */ left: function() { return /* reexport default from dynamic */ _left_svg__WEBPACK_IMPORTED_MODULE_17___default.a; },
|
|
52105
|
+
/* harmony export */ lock: function() { return /* reexport default from dynamic */ _lock_svg__WEBPACK_IMPORTED_MODULE_18___default.a; },
|
|
52106
|
+
/* harmony export */ ok: function() { return /* reexport default from dynamic */ _ok_svg__WEBPACK_IMPORTED_MODULE_19___default.a; },
|
|
52107
|
+
/* harmony export */ pencil: function() { return /* reexport default from dynamic */ _pencil_svg__WEBPACK_IMPORTED_MODULE_20___default.a; },
|
|
52108
|
+
/* harmony export */ plus: function() { return /* reexport default from dynamic */ _plus_svg__WEBPACK_IMPORTED_MODULE_21___default.a; },
|
|
52109
|
+
/* harmony export */ resize_handler: function() { return /* reexport default from dynamic */ _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22___default.a; },
|
|
52110
|
+
/* harmony export */ right: function() { return /* reexport default from dynamic */ _right_svg__WEBPACK_IMPORTED_MODULE_23___default.a; },
|
|
52111
|
+
/* harmony export */ save: function() { return /* reexport default from dynamic */ _save_svg__WEBPACK_IMPORTED_MODULE_24___default.a; },
|
|
52112
|
+
/* harmony export */ settings: function() { return /* reexport default from dynamic */ _settings_svg__WEBPACK_IMPORTED_MODULE_25___default.a; },
|
|
52113
|
+
/* harmony export */ unlock: function() { return /* reexport default from dynamic */ _unlock_svg__WEBPACK_IMPORTED_MODULE_26___default.a; },
|
|
52114
|
+
/* harmony export */ update: function() { return /* reexport default from dynamic */ _update_svg__WEBPACK_IMPORTED_MODULE_27___default.a; },
|
|
52115
|
+
/* harmony export */ upload: function() { return /* reexport default from dynamic */ _upload_svg__WEBPACK_IMPORTED_MODULE_28___default.a; },
|
|
52116
|
+
/* harmony export */ valign: function() { return /* reexport default from dynamic */ _valign_svg__WEBPACK_IMPORTED_MODULE_29___default.a; }
|
|
52117
|
+
/* harmony export */ });
|
|
52118
|
+
/* harmony import */ var _anchor_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61420);
|
|
52119
|
+
/* harmony import */ var _anchor_svg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_anchor_svg__WEBPACK_IMPORTED_MODULE_0__);
|
|
52120
|
+
/* harmony import */ var _angle_down_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88497);
|
|
52121
|
+
/* harmony import */ var _angle_down_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angle_down_svg__WEBPACK_IMPORTED_MODULE_1__);
|
|
52122
|
+
/* harmony import */ var _angle_left_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91882);
|
|
52123
|
+
/* harmony import */ var _angle_left_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angle_left_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
52124
|
+
/* harmony import */ var _angle_right_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14305);
|
|
52125
|
+
/* harmony import */ var _angle_right_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angle_right_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
52126
|
+
/* harmony import */ var _angle_up_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(58446);
|
|
52127
|
+
/* harmony import */ var _angle_up_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angle_up_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
52128
|
+
/* harmony import */ var _bin_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39858);
|
|
52129
|
+
/* harmony import */ var _bin_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_bin_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
52130
|
+
/* harmony import */ var _cancel_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70881);
|
|
52131
|
+
/* harmony import */ var _cancel_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_cancel_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
52132
|
+
/* harmony import */ var _center_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(60636);
|
|
52133
|
+
/* harmony import */ var _center_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_center_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
52134
|
+
/* harmony import */ var _check_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(32013);
|
|
52135
|
+
/* harmony import */ var _check_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_check_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
52136
|
+
/* harmony import */ var _chevron_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45512);
|
|
52137
|
+
/* harmony import */ var _chevron_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_chevron_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
52138
|
+
/* harmony import */ var _dots_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80347);
|
|
52139
|
+
/* harmony import */ var _dots_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_dots_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
52140
|
+
/* harmony import */ var _download_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91099);
|
|
52141
|
+
/* harmony import */ var _download_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_download_svg__WEBPACK_IMPORTED_MODULE_11__);
|
|
52142
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28967);
|
|
52143
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_12__);
|
|
52144
|
+
/* harmony import */ var _eye_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95134);
|
|
52145
|
+
/* harmony import */ var _eye_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_eye_svg__WEBPACK_IMPORTED_MODULE_13__);
|
|
52146
|
+
/* harmony import */ var _file_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70697);
|
|
52147
|
+
/* harmony import */ var _file_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_file_svg__WEBPACK_IMPORTED_MODULE_14__);
|
|
52148
|
+
/* harmony import */ var _folder_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(49983);
|
|
52149
|
+
/* harmony import */ var _folder_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_folder_svg__WEBPACK_IMPORTED_MODULE_15__);
|
|
52150
|
+
/* harmony import */ var _info_circle_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(98964);
|
|
52151
|
+
/* harmony import */ var _info_circle_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_info_circle_svg__WEBPACK_IMPORTED_MODULE_16__);
|
|
52152
|
+
/* harmony import */ var _left_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(8136);
|
|
52153
|
+
/* harmony import */ var _left_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_left_svg__WEBPACK_IMPORTED_MODULE_17__);
|
|
52154
|
+
/* harmony import */ var _lock_svg__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94806);
|
|
52155
|
+
/* harmony import */ var _lock_svg__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_lock_svg__WEBPACK_IMPORTED_MODULE_18__);
|
|
52156
|
+
/* harmony import */ var _ok_svg__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(31365);
|
|
52157
|
+
/* harmony import */ var _ok_svg__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ok_svg__WEBPACK_IMPORTED_MODULE_19__);
|
|
52158
|
+
/* harmony import */ var _pencil_svg__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(44636);
|
|
52159
|
+
/* harmony import */ var _pencil_svg__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_pencil_svg__WEBPACK_IMPORTED_MODULE_20__);
|
|
52160
|
+
/* harmony import */ var _plus_svg__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(36327);
|
|
52161
|
+
/* harmony import */ var _plus_svg__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_plus_svg__WEBPACK_IMPORTED_MODULE_21__);
|
|
52162
|
+
/* harmony import */ var _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(53328);
|
|
52163
|
+
/* harmony import */ var _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_resize_handler_svg__WEBPACK_IMPORTED_MODULE_22__);
|
|
52164
|
+
/* harmony import */ var _right_svg__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98711);
|
|
52165
|
+
/* harmony import */ var _right_svg__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_right_svg__WEBPACK_IMPORTED_MODULE_23__);
|
|
52166
|
+
/* harmony import */ var _save_svg__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(53808);
|
|
52167
|
+
/* harmony import */ var _save_svg__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_save_svg__WEBPACK_IMPORTED_MODULE_24__);
|
|
52168
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(20784);
|
|
52169
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_settings_svg__WEBPACK_IMPORTED_MODULE_25__);
|
|
52170
|
+
/* harmony import */ var _unlock_svg__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(70999);
|
|
52171
|
+
/* harmony import */ var _unlock_svg__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_unlock_svg__WEBPACK_IMPORTED_MODULE_26__);
|
|
52172
|
+
/* harmony import */ var _update_svg__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(45244);
|
|
52173
|
+
/* harmony import */ var _update_svg__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_update_svg__WEBPACK_IMPORTED_MODULE_27__);
|
|
52174
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(99876);
|
|
52175
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_upload_svg__WEBPACK_IMPORTED_MODULE_28__);
|
|
52176
|
+
/* harmony import */ var _valign_svg__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(14006);
|
|
52177
|
+
/* harmony import */ var _valign_svg__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_valign_svg__WEBPACK_IMPORTED_MODULE_29__);
|
|
51337
52178
|
/*!
|
|
51338
52179
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
51339
52180
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -51372,6 +52213,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51372
52213
|
|
|
51373
52214
|
|
|
51374
52215
|
|
|
52216
|
+
|
|
51375
52217
|
|
|
51376
52218
|
|
|
51377
52219
|
/***/ }),
|
|
@@ -51386,7 +52228,7 @@ module.exports["default"] = {"Type something":"Start writing...","pencil":"Edit"
|
|
|
51386
52228
|
/***/ 53414:
|
|
51387
52229
|
/***/ (function(module) {
|
|
51388
52230
|
|
|
51389
|
-
module.exports["default"] = [" URL","--Not Set--","About Jodit","Add column","Add folder","Add row","Advanced","Align","Align Center","Align Justify","Align Left","Align Right","All","Alternative","Alternative text","Anchor","Apply","Are you sure?","Audio properties","Autoplay","Background","Bold","Border","Border radius","Bottom","Break","Browse","Buy full version","Cancel","Caption","Center","Change mode","Chars: %d","Choose Content to Paste","Circle","Class name","Classes","Clean","Clear Formatting","Close","Code","Controls","Copy selection","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Create directory","Crop","Cut selection","Decrease Indent","Default","Delete","Delete column","Delete row","Delete table","Dot","Drop file","Drop image","Edit","Edit image","Edit link","Embed code","Empty cell","Enter Directory name","Enter new name","Error on load folders","Error on load list","Eye","File Browser","Fill color or set the text color","Filter","Find","Find Next","Find Previous","Font family","Font size","For information about the license, please go to our website:","Free Non-commercial Version","Header row","Heading 1","Heading 2","Heading 3","Heading 4","Height","Horizontal align","Image","Image properties","Increase Indent","Insert","Insert Horizontal Line","Insert Image","Insert Ordered List","Insert Special Character","Insert Unordered List","Insert as Text","Insert className","Insert column after","Insert column before","Insert file","Insert format block","Insert link","Insert only Text","Insert row above","Insert row below","Insert table","Insert youtube/vimeo video","Interim Results","Italic","Jodit Editor","Jodit User's Guide","Keep","Keep Aspect Ratio","Left","License: %s","Line height","Link","List view","Loop","Lower Alpha","Lower Greek","Lower Roman","Margins","Merge","Middle","Muted","No","No follow","Normal","Number for the first item","Ok","Open in fullsize","Open in new tab","Open link","Open link in new tab","Paint format","Paste","Paste as HTML","Paste from clipboard","Please enter a web address","Please fill out this field","Poster","Press Alt for custom resizing","Print","Quadrate","Quote","Redo","Remove","Remove file","Rename","Replace","Replace with","Reset","Resize","Right","Save","Save as ...","Search for","Select","Select %s","Select Special Character","Select all","Select file","Show all","Sort by changed","Sort by name","Sort by size","Sound","Speech Recognize","Spellcheck","Split","Split horizontal","Split vertical","Src","Start at...","Start numbering at","Strike through","Styles","Text","The image has been successfully uploaded to the host!","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","There are no files","Tiles view","Title","Top","Type something","Underline","Undo","Unlink","Update","Update file list","Upload","Upload file","Upper Alpha","Upper Roman","Vertical align","Video properties","Width","Word Paste Detected","Words: %d","Yes","You can only edit your own images. Download this image on the host?","Your browser doesn't support direct access to the clipboard.","Your code is similar to HTML. Keep as HTML?","about","apply","bold","bottom","brush","circle","contains detailed help for using","copy","cut","default","delete","dot","download","edit","eraser","file","font","fontsize","fullsize","hr","image","indent","italic","left","link","newline","ol","or click","outdent","palette","paragraph","pencil","preview","print","redo","right","selectall","shrink","sound","source","space","spellcheck","square","strikethrough","subscript","superscript","table","top","type dir name","type name","ul","underline","undo","video"]
|
|
52231
|
+
module.exports["default"] = [" URL","--Not Set--","About Jodit","Add column","Add folder","Add row","Advanced","Align","Align Center","Align Justify","Align Left","Align Right","All","Alternative","Alternative text","Anchor","Apply","Are you sure?","Audio properties","Autoplay","Background","Bold","Border","Border radius","Bottom","Break","Browse","Buy full version","Cancel","Caption","Center","Change mode","Chars: %d","Choose Content to Paste","Circle","Class name","Classes","Clean","Clear Formatting","Close","Code","Controls","Copy selection","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Create directory","Crop","Cut selection","Decrease Indent","Default","Delete","Delete column","Delete row","Delete table","Dot","Drop file","Drop image","Edit","Edit image","Edit link","Embed code","Empty cell","Enter Directory name","Enter new name","Error on load folders","Error on load list","Eye","File Browser","Fill color or set the text color","Filter","Find","Find Next","Find Previous","Font family","Font size","For information about the license, please go to our website:","Free Non-commercial Version","Header row","Heading 1","Heading 2","Heading 3","Heading 4","Height","Horizontal align","Image","Image properties","Increase Indent","Insert","Insert Horizontal Line","Insert Image","Insert Ordered List","Insert Special Character","Insert Unordered List","Insert anchor","Insert as Text","Insert className","Insert column after","Insert column before","Insert file","Insert format block","Insert link","Insert only Text","Insert row above","Insert row below","Insert table","Insert youtube/vimeo video","Interim Results","Italic","Jodit Editor","Jodit User's Guide","Keep","Keep Aspect Ratio","Left","License: %s","Line height","Link","Link to an anchor","List view","Loop","Lower Alpha","Lower Greek","Lower Roman","Margins","Merge","Middle","Muted","No","No follow","Normal","Number for the first item","Ok","On this page","Open in fullsize","Open in new tab","Open link","Open link in new tab","Paint format","Paste","Paste as HTML","Paste from clipboard","Please enter a web address","Please fill out this field","Poster","Press Alt for custom resizing","Print","Quadrate","Quote","Redo","Remove","Remove file","Rename","Replace","Replace with","Reset","Resize","Right","Save","Save as ...","Search for","Select","Select %s","Select Special Character","Select all","Select file","Show all","Sort by changed","Sort by name","Sort by size","Sound","Speech Recognize","Spellcheck","Split","Split horizontal","Split vertical","Src","Start at...","Start numbering at","Strike through","Styles","Text","The image has been successfully uploaded to the host!","The name cannot contain spaces","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","There are no files","This name is already in use","Tiles view","Title","Top","Type something","Underline","Undo","Unlink","Update","Update file list","Upload","Upload file","Upper Alpha","Upper Roman","Vertical align","Video properties","Width","Word Paste Detected","Words: %d","Yes","You can only edit your own images. Download this image on the host?","Your browser doesn't support direct access to the clipboard.","Your code is similar to HTML. Keep as HTML?","about","apply","bold","bottom","brush","circle","contains detailed help for using","copy","cut","default","delete","dot","download","edit","eraser","file","font","fontsize","fullsize","hr","image","indent","italic","left","link","newline","ol","or click","outdent","palette","paragraph","pencil","preview","print","redo","right","selectall","shrink","sound","source","space","spellcheck","square","strikethrough","subscript","superscript","table","top","type dir name","type name","ul","underline","undo","video"]
|
|
51390
52232
|
|
|
51391
52233
|
/***/ }),
|
|
51392
52234
|
|
|
@@ -51761,6 +52603,13 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=
|
|
|
51761
52603
|
|
|
51762
52604
|
/***/ }),
|
|
51763
52605
|
|
|
52606
|
+
/***/ 61420:
|
|
52607
|
+
/***/ (function(module) {
|
|
52608
|
+
|
|
52609
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <path d=\"M6 3h12v18l-6-4-6 4z\"/> </g> </svg>"
|
|
52610
|
+
|
|
52611
|
+
/***/ }),
|
|
52612
|
+
|
|
51764
52613
|
/***/ 88497:
|
|
51765
52614
|
/***/ (function(module) {
|
|
51766
52615
|
|