jodit 4.19.14 → 4.20.0
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 +22 -0
- package/es2015/jodit.css +76 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +9 -9
- package/es2015/jodit.js +1447 -598
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +9 -9
- 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 +9 -9
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +9 -9
- 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 +14 -14
- package/es2021/jodit.js +1428 -595
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +14 -14
- 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 +14 -14
- package/es2021.en/jodit.js +1402 -569
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +14 -14
- 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 +1684 -705
- 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/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 +30 -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/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/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.0
|
|
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.0";
|
|
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
|
/***/ }),
|
|
@@ -18321,7 +18365,10 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_10__.UIGr
|
|
|
18321
18365
|
return super.destruct();
|
|
18322
18366
|
}
|
|
18323
18367
|
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),
|
|
18368
|
+
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), /**
|
|
18369
|
+
* The popup stays open after one of its buttons runs: the button closes
|
|
18370
|
+
* only the lists it opened. See #1741
|
|
18371
|
+
*/ (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
18372
|
left: 0,
|
|
18326
18373
|
top: 0,
|
|
18327
18374
|
width: this.ow.innerWidth,
|
|
@@ -18955,6 +19002,7 @@ View.defaultOptions = {
|
|
|
18955
19002
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(80512);
|
|
18956
19003
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5266);
|
|
18957
19004
|
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(60936);
|
|
19005
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7042);
|
|
18958
19006
|
/*!
|
|
18959
19007
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18960
19008
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18976,6 +19024,7 @@ View.defaultOptions = {
|
|
|
18976
19024
|
|
|
18977
19025
|
|
|
18978
19026
|
|
|
19027
|
+
|
|
18979
19028
|
const FOCUS_EVENTS = new Set([
|
|
18980
19029
|
'focus',
|
|
18981
19030
|
'blur',
|
|
@@ -19240,17 +19289,15 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_11__.ViewWithToolbar
|
|
|
19240
19289
|
theme: jodit.o.theme,
|
|
19241
19290
|
shadowRoot: jodit.o.shadowRoot,
|
|
19242
19291
|
defaultCallback (data) {
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
}
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
});
|
|
19253
|
-
}
|
|
19292
|
+
const { baseurl } = data;
|
|
19293
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_12__.getItems)(data).forEach(({ file, isImage })=>{
|
|
19294
|
+
const url = baseurl + file;
|
|
19295
|
+
if (isImage) {
|
|
19296
|
+
jodit.s.insertImage(url, null, jodit.o.imageDefaultWidth);
|
|
19297
|
+
} else {
|
|
19298
|
+
jodit.s.insertNode(jodit.createInside.fromHTML(`<a href='${url}' title='${url}'>${url}</a>`));
|
|
19299
|
+
}
|
|
19300
|
+
});
|
|
19254
19301
|
}
|
|
19255
19302
|
}, this.o.filebrowser);
|
|
19256
19303
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -22689,15 +22736,16 @@ function makeContextMenu(parent) {
|
|
|
22689
22736
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80512);
|
|
22690
22737
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2222);
|
|
22691
22738
|
/* 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
|
|
22739
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7042);
|
|
22740
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(68502);
|
|
22741
|
+
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1488);
|
|
22742
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(53202);
|
|
22743
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(34269);
|
|
22744
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(36664);
|
|
22745
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74833);
|
|
22746
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(17780);
|
|
22747
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(18272);
|
|
22748
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(63425);
|
|
22701
22749
|
/*!
|
|
22702
22750
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
22703
22751
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22727,6 +22775,7 @@ function makeContextMenu(parent) {
|
|
|
22727
22775
|
|
|
22728
22776
|
|
|
22729
22777
|
|
|
22778
|
+
|
|
22730
22779
|
|
|
22731
22780
|
|
|
22732
22781
|
class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__.ViewWithToolbar {
|
|
@@ -22734,26 +22783,26 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22734
22783
|
return 'FileBrowser';
|
|
22735
22784
|
}
|
|
22736
22785
|
get dataProvider() {
|
|
22737
|
-
return (0,
|
|
22786
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_22__.makeDataProvider)(this, this.options);
|
|
22738
22787
|
}
|
|
22739
22788
|
onSelect(callback) {
|
|
22740
22789
|
return ()=>{
|
|
22741
22790
|
if (this.state.activeElements.length) {
|
|
22742
|
-
const
|
|
22743
|
-
const isImages = [];
|
|
22791
|
+
const items = [];
|
|
22744
22792
|
this.state.activeElements.forEach((elm)=>{
|
|
22745
22793
|
const url = elm.fileURL;
|
|
22746
22794
|
if (url) {
|
|
22747
|
-
|
|
22748
|
-
|
|
22795
|
+
items.push({
|
|
22796
|
+
file: url,
|
|
22797
|
+
isImage: elm.isImage || false
|
|
22798
|
+
});
|
|
22749
22799
|
}
|
|
22750
22800
|
});
|
|
22751
22801
|
this.close();
|
|
22752
|
-
const data = {
|
|
22802
|
+
const data = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_14__.normalizeUploaderData)({
|
|
22753
22803
|
baseurl: '',
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
};
|
|
22804
|
+
items
|
|
22805
|
+
});
|
|
22757
22806
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.isFunction)(callback)) {
|
|
22758
22807
|
callback(data);
|
|
22759
22808
|
}
|
|
@@ -22818,10 +22867,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22818
22867
|
* ```javascript
|
|
22819
22868
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
22820
22869
|
* fb.open(function (data) {
|
|
22821
|
-
*
|
|
22822
|
-
*
|
|
22823
|
-
*
|
|
22824
|
-
* }
|
|
22870
|
+
* data.items.forEach(function (item) {
|
|
22871
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
22872
|
+
* });
|
|
22825
22873
|
* });
|
|
22826
22874
|
* ```
|
|
22827
22875
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -22843,7 +22891,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22843
22891
|
this.__updateToolbarButtons();
|
|
22844
22892
|
this._dialog.open(this.browser, header);
|
|
22845
22893
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
22846
|
-
(0,
|
|
22894
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_17__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
22847
22895
|
if (this.isInDestruct) {
|
|
22848
22896
|
return;
|
|
22849
22897
|
}
|
|
@@ -22874,7 +22922,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22874
22922
|
}
|
|
22875
22923
|
initUploader(editor) {
|
|
22876
22924
|
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,
|
|
22925
|
+
const uploadHandler = ()=>(0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_16__.loadItems)(this);
|
|
22878
22926
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
22879
22927
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
22880
22928
|
this.state.on([
|
|
@@ -22905,9 +22953,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22905
22953
|
this.toolbar?.build(buttons);
|
|
22906
22954
|
}
|
|
22907
22955
|
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
|
|
22956
|
+
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
22957
|
currentPath: '',
|
|
22910
|
-
currentSource:
|
|
22958
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_21__.DEFAULT_SOURCE_NAME,
|
|
22911
22959
|
currentBaseUrl: '',
|
|
22912
22960
|
activeElements: [],
|
|
22913
22961
|
elements: [],
|
|
@@ -22940,9 +22988,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22940
22988
|
}
|
|
22941
22989
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.files.container);
|
|
22942
22990
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.status_line);
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22991
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_19__.selfListeners.call(self);
|
|
22992
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_18__.nativeListeners.call(self);
|
|
22993
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_20__.stateListeners.call(self);
|
|
22946
22994
|
const keys = [
|
|
22947
22995
|
'getLocalFileByUrl',
|
|
22948
22996
|
'crop',
|
|
@@ -25939,30 +25987,31 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25939
25987
|
/* harmony export */ });
|
|
25940
25988
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
25941
25989
|
/* 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
|
|
25990
|
+
/* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80251);
|
|
25991
|
+
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69364);
|
|
25992
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81937);
|
|
25993
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49574);
|
|
25994
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51676);
|
|
25995
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91672);
|
|
25996
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68616);
|
|
25997
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23211);
|
|
25998
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(17312);
|
|
25999
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91565);
|
|
26000
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24497);
|
|
26001
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62101);
|
|
26002
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(85932);
|
|
26003
|
+
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86878);
|
|
26004
|
+
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57821);
|
|
26005
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28712);
|
|
26006
|
+
/* 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__);
|
|
26007
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7909);
|
|
26008
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71125);
|
|
26009
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59400);
|
|
26010
|
+
/* harmony import */ var jodit_core_ui_helpers_focus_form_field__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29577);
|
|
26011
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15982);
|
|
26012
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(29434);
|
|
26013
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(51116);
|
|
26014
|
+
/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(4274);
|
|
25966
26015
|
/*!
|
|
25967
26016
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25968
26017
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25995,6 +26044,7 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25995
26044
|
|
|
25996
26045
|
|
|
25997
26046
|
|
|
26047
|
+
|
|
25998
26048
|
|
|
25999
26049
|
|
|
26000
26050
|
const INPUT_TAGS = new Set([
|
|
@@ -26011,7 +26061,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
26011
26061
|
'textarea:not([disabled])',
|
|
26012
26062
|
'[tabindex]:not([tabindex="-1"])'
|
|
26013
26063
|
].join(',');
|
|
26014
|
-
class ToolbarButton extends
|
|
26064
|
+
class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButton {
|
|
26015
26065
|
className() {
|
|
26016
26066
|
return 'ToolbarButton';
|
|
26017
26067
|
}
|
|
@@ -26022,13 +26072,13 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26022
26072
|
super.updateAriaLabel();
|
|
26023
26073
|
if (this.trigger) {
|
|
26024
26074
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
26025
|
-
(0,
|
|
26075
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
26026
26076
|
}
|
|
26027
26077
|
}
|
|
26028
26078
|
/**
|
|
26029
26079
|
* Get parent toolbar
|
|
26030
26080
|
*/ get toolbar() {
|
|
26031
|
-
const ToolbarCollection = (0,
|
|
26081
|
+
const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.getComponentClass)('ToolbarCollection');
|
|
26032
26082
|
return this.closest(ToolbarCollection);
|
|
26033
26083
|
}
|
|
26034
26084
|
update() {
|
|
@@ -26048,7 +26098,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26048
26098
|
/**
|
|
26049
26099
|
* Calculates whether the button is active
|
|
26050
26100
|
*/ __calculateActivatedStatus(tc) {
|
|
26051
|
-
if ((0,
|
|
26101
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
26052
26102
|
return false;
|
|
26053
26103
|
}
|
|
26054
26104
|
if (this.control.isActive?.(this.j, this)) {
|
|
@@ -26071,11 +26121,11 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26071
26121
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
26072
26122
|
}
|
|
26073
26123
|
onChangeActivated() {
|
|
26074
|
-
;(0,
|
|
26124
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
26075
26125
|
super.onChangeActivated();
|
|
26076
26126
|
}
|
|
26077
26127
|
onChangeText() {
|
|
26078
|
-
if ((0,
|
|
26128
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(this.control.template)) {
|
|
26079
26129
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
26080
26130
|
} else {
|
|
26081
26131
|
super.onChangeText();
|
|
@@ -26083,8 +26133,8 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26083
26133
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
26084
26134
|
}
|
|
26085
26135
|
onChangeTabIndex() {
|
|
26086
|
-
;(0,
|
|
26087
|
-
(0,
|
|
26136
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
26137
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
26088
26138
|
}
|
|
26089
26139
|
createContainer() {
|
|
26090
26140
|
const cn = this.componentName;
|
|
@@ -26096,28 +26146,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26096
26146
|
value: this,
|
|
26097
26147
|
configurable: true
|
|
26098
26148
|
});
|
|
26099
|
-
|
|
26100
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
26149
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, button);
|
|
26150
|
+
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
26151
|
// For caching
|
|
26102
|
-
|
|
26152
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(button, trigger);
|
|
26103
26153
|
return container;
|
|
26104
26154
|
}
|
|
26105
26155
|
/** @override */ focus() {
|
|
26106
|
-
|
|
26156
|
+
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
26157
|
}
|
|
26108
26158
|
onChangeHasTrigger() {
|
|
26109
26159
|
if (this.state.hasTrigger) {
|
|
26110
|
-
|
|
26160
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(this.container, this.trigger);
|
|
26111
26161
|
} else {
|
|
26112
|
-
|
|
26162
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(this.trigger);
|
|
26113
26163
|
}
|
|
26114
26164
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
26115
26165
|
}
|
|
26116
26166
|
/** @override */ onChangeDisabled() {
|
|
26117
26167
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
26118
|
-
(0,
|
|
26119
|
-
(0,
|
|
26120
|
-
(0,
|
|
26168
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'disabled', disabled);
|
|
26169
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'disabled', disabled);
|
|
26170
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.container, 'disabled', disabled);
|
|
26121
26171
|
}
|
|
26122
26172
|
/**
|
|
26123
26173
|
* Init constant data from control
|
|
@@ -26127,19 +26177,19 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26127
26177
|
state.name = ctr.name;
|
|
26128
26178
|
this.__initIconFromControl();
|
|
26129
26179
|
if (ctr.tooltip) {
|
|
26130
|
-
state.tooltip = (0,
|
|
26180
|
+
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
26181
|
}
|
|
26132
26182
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
26133
26183
|
}
|
|
26134
26184
|
__initIconFromControl() {
|
|
26135
26185
|
const { control: ctr, state } = this;
|
|
26136
26186
|
const { textIcons } = this.j.o;
|
|
26137
|
-
if (textIcons === true || (0,
|
|
26138
|
-
state.icon = (0,
|
|
26187
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
26188
|
+
state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)().icon;
|
|
26139
26189
|
state.text = ctr.text || ctr.name;
|
|
26140
26190
|
return;
|
|
26141
26191
|
}
|
|
26142
|
-
if (!(0,
|
|
26192
|
+
if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(ctr.icon) && ctr.icon != null) {
|
|
26143
26193
|
state.icon = {
|
|
26144
26194
|
name: ctr.icon.name || ctr.name,
|
|
26145
26195
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -26152,7 +26202,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26152
26202
|
state.icon.iconURL = ctr.iconURL;
|
|
26153
26203
|
} else {
|
|
26154
26204
|
const name = ctr.icon || ctr.name;
|
|
26155
|
-
state.icon.name =
|
|
26205
|
+
state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
|
|
26156
26206
|
}
|
|
26157
26207
|
if (!ctr.iconURL && !state.icon.name) {
|
|
26158
26208
|
state.text = ctr.text || ctr.name;
|
|
@@ -26166,25 +26216,25 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26166
26216
|
return;
|
|
26167
26217
|
}
|
|
26168
26218
|
const { control: ctr } = this;
|
|
26169
|
-
(0,
|
|
26219
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', true);
|
|
26170
26220
|
e.buffer = {
|
|
26171
26221
|
actionTrigger: this
|
|
26172
26222
|
};
|
|
26173
26223
|
if (ctr.list) {
|
|
26174
26224
|
return this.__openControlList(ctr);
|
|
26175
26225
|
}
|
|
26176
|
-
if ((0,
|
|
26226
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26177
26227
|
const popup = this.openPopup();
|
|
26178
26228
|
popup.parentElement = this;
|
|
26179
26229
|
try {
|
|
26180
|
-
if (this.j.e.fire((0,
|
|
26230
|
+
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
26231
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26182
26232
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
26183
26233
|
if (elm) {
|
|
26184
|
-
popup.setContent((0,
|
|
26234
|
+
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
26235
|
// The focus stays in the content for a list, which
|
|
26186
26236
|
// typing searches, but goes to a form, as in a dialog
|
|
26187
|
-
(0,
|
|
26237
|
+
(0,jodit_core_ui_helpers_focus_form_field__WEBPACK_IMPORTED_MODULE_21__.focusFormField)(popup.container);
|
|
26188
26238
|
} else {
|
|
26189
26239
|
this.__closePopup();
|
|
26190
26240
|
}
|
|
@@ -26197,20 +26247,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26197
26247
|
* Fired after the popup was opened for some control button
|
|
26198
26248
|
*/ /**
|
|
26199
26249
|
* Close all opened popups
|
|
26200
|
-
*/ this.j.e.fire((0,
|
|
26250
|
+
*/ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
26201
26251
|
}
|
|
26202
26252
|
}
|
|
26203
26253
|
onTriggerKeyDown(e) {
|
|
26204
26254
|
if (this.state.disabled) {
|
|
26205
26255
|
return;
|
|
26206
26256
|
}
|
|
26207
|
-
if (e.key ===
|
|
26257
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN) {
|
|
26208
26258
|
this.onButtonKeyDown(e);
|
|
26209
26259
|
return;
|
|
26210
26260
|
}
|
|
26211
26261
|
if (![
|
|
26212
|
-
|
|
26213
|
-
|
|
26262
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ENTER,
|
|
26263
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_SPACE,
|
|
26214
26264
|
' '
|
|
26215
26265
|
].includes(e.key)) {
|
|
26216
26266
|
return;
|
|
@@ -26222,7 +26272,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26222
26272
|
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
26223
26273
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
26224
26274
|
*/ onButtonKeyDown(e) {
|
|
26225
|
-
if (e.key !==
|
|
26275
|
+
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
26276
|
return;
|
|
26227
26277
|
}
|
|
26228
26278
|
e.preventDefault();
|
|
@@ -26241,22 +26291,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26241
26291
|
}
|
|
26242
26292
|
const target = e.target;
|
|
26243
26293
|
// A text field keeps the arrow keys for itself
|
|
26244
|
-
if (
|
|
26294
|
+
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
26295
|
return;
|
|
26246
26296
|
}
|
|
26247
26297
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
26248
26298
|
switch(e.key){
|
|
26249
|
-
case
|
|
26299
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ESC:
|
|
26250
26300
|
this.__closePopup();
|
|
26251
26301
|
break;
|
|
26252
|
-
case
|
|
26302
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_UP:
|
|
26253
26303
|
if (index <= 0) {
|
|
26254
26304
|
this.__closePopup();
|
|
26255
26305
|
} else {
|
|
26256
26306
|
items[index - 1].focus();
|
|
26257
26307
|
}
|
|
26258
26308
|
break;
|
|
26259
|
-
case
|
|
26309
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN:
|
|
26260
26310
|
if (!items.length) {
|
|
26261
26311
|
return;
|
|
26262
26312
|
}
|
|
@@ -26324,7 +26374,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26324
26374
|
/**
|
|
26325
26375
|
* Create an open popup list
|
|
26326
26376
|
*/ __openControlList(control) {
|
|
26327
|
-
const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,
|
|
26377
|
+
const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_22__.findControlType)(key, controls);
|
|
26328
26378
|
const list = control.list;
|
|
26329
26379
|
const menu = this.openPopup();
|
|
26330
26380
|
menu.parentElement = this;
|
|
@@ -26332,18 +26382,18 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26332
26382
|
if (content) {
|
|
26333
26383
|
return this.__openMenu(menu, content);
|
|
26334
26384
|
}
|
|
26335
|
-
const toolbar = (0,
|
|
26385
|
+
const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_25__.makeCollection)(this.j);
|
|
26336
26386
|
toolbar.parentElement = menu;
|
|
26337
26387
|
toolbar.mode = 'vertical';
|
|
26338
|
-
const isListItem = (key)=>(0,
|
|
26388
|
+
const isListItem = (key)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
26339
26389
|
const getButton = (key, value)=>{
|
|
26340
|
-
if ((0,
|
|
26390
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value) && getControl(value)) {
|
|
26341
26391
|
return {
|
|
26342
26392
|
name: value.toString(),
|
|
26343
26393
|
...getControl(value)
|
|
26344
26394
|
};
|
|
26345
26395
|
}
|
|
26346
|
-
if ((0,
|
|
26396
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(key) && getControl(key)) {
|
|
26347
26397
|
return {
|
|
26348
26398
|
name: key.toString(),
|
|
26349
26399
|
...getControl(key),
|
|
@@ -26374,29 +26424,29 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26374
26424
|
value
|
|
26375
26425
|
]
|
|
26376
26426
|
};
|
|
26377
|
-
if ((0,
|
|
26427
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value)) {
|
|
26378
26428
|
childControl.text = value;
|
|
26379
26429
|
}
|
|
26380
26430
|
return childControl;
|
|
26381
26431
|
};
|
|
26382
|
-
toolbar.build((0,
|
|
26432
|
+
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
26433
|
this.__openMenu(menu, toolbar);
|
|
26384
26434
|
}
|
|
26385
26435
|
__openMenu(menu, content) {
|
|
26386
|
-
menu.setContent(content).open(()=>(0,
|
|
26436
|
+
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
26437
|
this.state.activated = true;
|
|
26388
26438
|
}
|
|
26389
26439
|
onOutsideClick(e) {
|
|
26390
26440
|
if (!this.openedPopup) {
|
|
26391
26441
|
return;
|
|
26392
26442
|
}
|
|
26393
|
-
if (!e || !
|
|
26443
|
+
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
26444
|
this.__closePopup();
|
|
26395
26445
|
}
|
|
26396
26446
|
}
|
|
26397
26447
|
openPopup() {
|
|
26398
26448
|
this.__closePopup();
|
|
26399
|
-
this.openedPopup = new
|
|
26449
|
+
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__.Popup(this.j, false);
|
|
26400
26450
|
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
26451
|
return this.openedPopup;
|
|
26402
26452
|
}
|
|
@@ -26416,14 +26466,14 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26416
26466
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
26417
26467
|
// the button, otherwise it would fall out to the document. A form
|
|
26418
26468
|
// gives it back to the content, with the selection it was opened for
|
|
26419
|
-
const { activeElement } = this.od, hadFocus = activeElement &&
|
|
26469
|
+
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
26470
|
this.state.activated = false;
|
|
26421
26471
|
popup.close();
|
|
26422
26472
|
popup.destruct();
|
|
26423
26473
|
if (this.trigger) {
|
|
26424
|
-
(0,
|
|
26474
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', false);
|
|
26425
26475
|
}
|
|
26426
|
-
if (inForm && (0,
|
|
26476
|
+
if (inForm && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j)) {
|
|
26427
26477
|
this.j.s.focus();
|
|
26428
26478
|
} else if (hadFocus) {
|
|
26429
26479
|
this.focus();
|
|
@@ -26433,7 +26483,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26433
26483
|
* Click handler
|
|
26434
26484
|
*/ onClick(originalEvent) {
|
|
26435
26485
|
const { control: ctr } = this;
|
|
26436
|
-
if ((0,
|
|
26486
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.exec)) {
|
|
26437
26487
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26438
26488
|
const result = ctr.exec(this.j, target, {
|
|
26439
26489
|
control: ctr,
|
|
@@ -26446,9 +26496,10 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26446
26496
|
if (this.parentElement) {
|
|
26447
26497
|
this.parentElement.update();
|
|
26448
26498
|
}
|
|
26499
|
+
this.__closePopups();
|
|
26449
26500
|
/**
|
|
26450
26501
|
* Fired after calling `button.exec` function
|
|
26451
|
-
*/ this.j?.e?.fire('
|
|
26502
|
+
*/ this.j?.e?.fire('afterExec');
|
|
26452
26503
|
}
|
|
26453
26504
|
if (result !== false) {
|
|
26454
26505
|
return;
|
|
@@ -26457,13 +26508,34 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26457
26508
|
if (ctr.list) {
|
|
26458
26509
|
return this.__openControlList(ctr);
|
|
26459
26510
|
}
|
|
26460
|
-
if ((0,
|
|
26511
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26461
26512
|
return this.onTriggerClick(originalEvent);
|
|
26462
26513
|
}
|
|
26463
26514
|
if (ctr.command || ctr.name) {
|
|
26464
|
-
(0,
|
|
26465
|
-
this.
|
|
26515
|
+
(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]);
|
|
26516
|
+
this.__closePopups();
|
|
26517
|
+
}
|
|
26518
|
+
}
|
|
26519
|
+
/**
|
|
26520
|
+
* After the button's action, a popup that stays open (an element's)
|
|
26521
|
+
* keeps its place beside the element, and only the lists the button is
|
|
26522
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
26523
|
+
* popup closes
|
|
26524
|
+
*/ __closePopups() {
|
|
26525
|
+
const openers = [
|
|
26526
|
+
this
|
|
26527
|
+
];
|
|
26528
|
+
for(let pe = this.parentElement; pe; pe = pe.parentElement){
|
|
26529
|
+
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)) {
|
|
26530
|
+
openers.forEach((button)=>button.__closePopup());
|
|
26531
|
+
pe.updatePosition();
|
|
26532
|
+
return;
|
|
26533
|
+
}
|
|
26534
|
+
if (jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(pe, ToolbarButton)) {
|
|
26535
|
+
openers.push(pe);
|
|
26536
|
+
}
|
|
26466
26537
|
}
|
|
26538
|
+
this.j?.e?.fire('closeAllPopups');
|
|
26467
26539
|
}
|
|
26468
26540
|
destruct() {
|
|
26469
26541
|
this.__closePopup();
|
|
@@ -26471,20 +26543,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26471
26543
|
}
|
|
26472
26544
|
constructor(jodit, control, target = null){
|
|
26473
26545
|
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,
|
|
26546
|
+
...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)(),
|
|
26475
26547
|
theme: 'toolbar',
|
|
26476
26548
|
currentValue: '',
|
|
26477
26549
|
hasTrigger: false
|
|
26478
26550
|
}, this.__typed = '', this.__typedAt = 0, this.__typedTo = null, this.openedPopup = null;
|
|
26479
26551
|
const button = this.getElm('button');
|
|
26480
|
-
(0,
|
|
26552
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(button, 'Element button should exists');
|
|
26481
26553
|
this.button = button;
|
|
26482
26554
|
Object.defineProperty(button, 'component', {
|
|
26483
26555
|
value: this,
|
|
26484
26556
|
configurable: true
|
|
26485
26557
|
});
|
|
26486
26558
|
const trigger = this.getElm('trigger');
|
|
26487
|
-
(0,
|
|
26559
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(trigger, 'Element trigger should exists');
|
|
26488
26560
|
this.trigger = trigger;
|
|
26489
26561
|
trigger.remove();
|
|
26490
26562
|
// Prevent lost focus
|
|
@@ -26493,7 +26565,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26493
26565
|
this.trigger
|
|
26494
26566
|
], 'mousedown', (e)=>e.preventDefault());
|
|
26495
26567
|
this.onAction(this.onClick);
|
|
26496
|
-
this.hookStatus(
|
|
26568
|
+
this.hookStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_3__.STATUSES.ready, ()=>{
|
|
26497
26569
|
this.__initFromControl();
|
|
26498
26570
|
this.update();
|
|
26499
26571
|
});
|
|
@@ -26505,36 +26577,36 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26505
26577
|
}
|
|
26506
26578
|
}
|
|
26507
26579
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26508
|
-
|
|
26580
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__.cacheHTML
|
|
26509
26581
|
], ToolbarButton.prototype, "createContainer", null);
|
|
26510
26582
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26511
|
-
(0,
|
|
26583
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.hasTrigger', {
|
|
26512
26584
|
immediately: false
|
|
26513
26585
|
})
|
|
26514
26586
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
26515
26587
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26516
|
-
(0,
|
|
26588
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:click')
|
|
26517
26589
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
26518
26590
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26519
|
-
(0,
|
|
26591
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:keydown')
|
|
26520
26592
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
26521
26593
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26522
|
-
(0,
|
|
26594
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('button:keydown')
|
|
26523
26595
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
26524
26596
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26525
|
-
|
|
26597
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26526
26598
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
26527
26599
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26528
|
-
|
|
26600
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26529
26601
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
26530
26602
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26531
|
-
|
|
26603
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26532
26604
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
26533
26605
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26534
|
-
|
|
26606
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26535
26607
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
26536
26608
|
ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26537
|
-
|
|
26609
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.component
|
|
26538
26610
|
], ToolbarButton);
|
|
26539
26611
|
|
|
26540
26612
|
|
|
@@ -27047,6 +27119,7 @@ function makeSelect(view, control, target = null) {
|
|
|
27047
27119
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24497);
|
|
27048
27120
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
27049
27121
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
|
|
27122
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
27050
27123
|
/*!
|
|
27051
27124
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27052
27125
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27057,6 +27130,7 @@ function makeSelect(view, control, target = null) {
|
|
|
27057
27130
|
|
|
27058
27131
|
|
|
27059
27132
|
|
|
27133
|
+
|
|
27060
27134
|
/**
|
|
27061
27135
|
* Module for processing download documents and images by Drag and Drop
|
|
27062
27136
|
* Drag and Drop files
|
|
@@ -27117,27 +27191,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
27117
27191
|
if (!(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
27118
27192
|
return;
|
|
27119
27193
|
}
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
}
|
|
27194
|
+
const { baseurl } = resp;
|
|
27195
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(resp).forEach(({ file, isImage })=>{
|
|
27196
|
+
const [tagName, attrName] = isImage ? [
|
|
27197
|
+
'img',
|
|
27198
|
+
'src'
|
|
27199
|
+
] : [
|
|
27200
|
+
'a',
|
|
27201
|
+
'href'
|
|
27202
|
+
];
|
|
27203
|
+
const elm = j.createInside.element(tagName);
|
|
27204
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, attrName, baseurl + file);
|
|
27205
|
+
if (tagName === 'a') {
|
|
27206
|
+
elm.textContent = j.o.uploader.getDisplayName.call(this, baseurl, file);
|
|
27207
|
+
}
|
|
27208
|
+
if (tagName === 'img') {
|
|
27209
|
+
j.s.insertImage(elm, null, j.o.imageDefaultWidth);
|
|
27210
|
+
} else {
|
|
27211
|
+
j.s.insertNode(elm);
|
|
27212
|
+
}
|
|
27213
|
+
});
|
|
27141
27214
|
},
|
|
27142
27215
|
defaultHandlerError (e) {
|
|
27143
27216
|
this.j.message.error(e.message);
|
|
@@ -27231,17 +27304,19 @@ function buildData(uploader, data) {
|
|
|
27231
27304
|
|
|
27232
27305
|
"use strict";
|
|
27233
27306
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27234
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
27307
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
27235
27308
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
27236
27309
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
27237
|
-
/* harmony export */
|
|
27238
|
-
/* harmony export */
|
|
27239
|
-
/* harmony export */
|
|
27310
|
+
/* harmony export */ normalizeUploaderData: function() { return /* reexport safe */ _normalize_uploader_data__WEBPACK_IMPORTED_MODULE_1__.normalizeUploaderData; },
|
|
27311
|
+
/* harmony export */ processOldBrowserDrag: function() { return /* reexport safe */ _process_old_browser_drag__WEBPACK_IMPORTED_MODULE_2__.processOldBrowserDrag; },
|
|
27312
|
+
/* harmony export */ send: function() { return /* reexport safe */ _send__WEBPACK_IMPORTED_MODULE_3__.send; },
|
|
27313
|
+
/* harmony export */ sendFiles: function() { return /* reexport safe */ _send_files__WEBPACK_IMPORTED_MODULE_4__.sendFiles; }
|
|
27240
27314
|
/* harmony export */ });
|
|
27241
27315
|
/* harmony import */ var _build_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89446);
|
|
27242
|
-
/* harmony import */ var
|
|
27243
|
-
/* harmony import */ var
|
|
27244
|
-
/* harmony import */ var
|
|
27316
|
+
/* harmony import */ var _normalize_uploader_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7042);
|
|
27317
|
+
/* harmony import */ var _process_old_browser_drag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95436);
|
|
27318
|
+
/* harmony import */ var _send__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77911);
|
|
27319
|
+
/* harmony import */ var _send_files__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46533);
|
|
27245
27320
|
/*!
|
|
27246
27321
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27247
27322
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27253,6 +27328,7 @@ function buildData(uploader, data) {
|
|
|
27253
27328
|
|
|
27254
27329
|
|
|
27255
27330
|
|
|
27331
|
+
|
|
27256
27332
|
function hasFiles(data) {
|
|
27257
27333
|
return Boolean(data && data.files && data.files.length > 0);
|
|
27258
27334
|
}
|
|
@@ -27261,6 +27337,80 @@ function hasItems(data) {
|
|
|
27261
27337
|
}
|
|
27262
27338
|
|
|
27263
27339
|
|
|
27340
|
+
/***/ }),
|
|
27341
|
+
|
|
27342
|
+
/***/ 7042:
|
|
27343
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27344
|
+
|
|
27345
|
+
"use strict";
|
|
27346
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27347
|
+
/* harmony export */ getItems: function() { return /* binding */ getItems; },
|
|
27348
|
+
/* harmony export */ normalizeUploaderData: function() { return /* binding */ normalizeUploaderData; }
|
|
27349
|
+
/* harmony export */ });
|
|
27350
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
|
|
27351
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
|
|
27352
|
+
/*!
|
|
27353
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27354
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
27355
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
27356
|
+
*/ /**
|
|
27357
|
+
* @module modules/uploader
|
|
27358
|
+
*/
|
|
27359
|
+
|
|
27360
|
+
/**
|
|
27361
|
+
* The files in upload or file browser data, one object each. While the
|
|
27362
|
+
* deprecated `files` array is set, it and `isImages` and `fileNames` win
|
|
27363
|
+
* over `items`, so a handler that edits them and passes the data on to a
|
|
27364
|
+
* default handler still gets its edits inserted. A file browser that
|
|
27365
|
+
* passes only the arrays works too.
|
|
27366
|
+
*/ function getItems(data) {
|
|
27367
|
+
const { files, isImages, fileNames, items } = data;
|
|
27368
|
+
if (!(0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(files)) {
|
|
27369
|
+
return items ?? [];
|
|
27370
|
+
}
|
|
27371
|
+
return files.map((file, i)=>{
|
|
27372
|
+
const name = fileNames?.[i];
|
|
27373
|
+
return {
|
|
27374
|
+
file,
|
|
27375
|
+
isImage: Boolean(isImages?.[i]),
|
|
27376
|
+
...name !== undefined ? {
|
|
27377
|
+
name
|
|
27378
|
+
} : {}
|
|
27379
|
+
};
|
|
27380
|
+
});
|
|
27381
|
+
}
|
|
27382
|
+
/**
|
|
27383
|
+
* Gives the data both `items` and the deprecated `files`, `isImages` and
|
|
27384
|
+
* `fileNames` arrays, building whichever is missing, so a handler can read
|
|
27385
|
+
* either. When both are given, `items` is rebuilt from the arrays, as in
|
|
27386
|
+
* [[getItems]], unless `files` is empty and `items` isn't, as from a
|
|
27387
|
+
* `process` that spreads the server's answer and adds `items`. Anything but
|
|
27388
|
+
* an object, such as the `null` a custom `process` may return, is passed on
|
|
27389
|
+
* as it is.
|
|
27390
|
+
*/ function normalizeUploaderData(data) {
|
|
27391
|
+
if (!data || typeof data !== 'object') {
|
|
27392
|
+
return data;
|
|
27393
|
+
}
|
|
27394
|
+
const { files, items } = data;
|
|
27395
|
+
if (!items || (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(files) && (files.length || !items.length)) {
|
|
27396
|
+
return {
|
|
27397
|
+
...data,
|
|
27398
|
+
items: getItems(data)
|
|
27399
|
+
};
|
|
27400
|
+
}
|
|
27401
|
+
const names = items.map(({ name })=>name);
|
|
27402
|
+
return {
|
|
27403
|
+
...data,
|
|
27404
|
+
files: items.map(({ file })=>file),
|
|
27405
|
+
isImages: items.map(({ isImage })=>isImage),
|
|
27406
|
+
...names.every(jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString) ? {
|
|
27407
|
+
fileNames: names
|
|
27408
|
+
} : {},
|
|
27409
|
+
items
|
|
27410
|
+
};
|
|
27411
|
+
}
|
|
27412
|
+
|
|
27413
|
+
|
|
27264
27414
|
/***/ }),
|
|
27265
27415
|
|
|
27266
27416
|
/***/ 95436:
|
|
@@ -27326,8 +27476,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27326
27476
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65946);
|
|
27327
27477
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80512);
|
|
27328
27478
|
/* harmony import */ var jodit_modules_dialog_prompt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74103);
|
|
27329
|
-
/* harmony import */ var
|
|
27330
|
-
/* harmony import */ var
|
|
27479
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
27480
|
+
/* harmony import */ var jodit_modules_uploader_helpers_send__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77911);
|
|
27481
|
+
/* harmony import */ var jodit_modules_uploader_helpers_upload_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(55083);
|
|
27331
27482
|
/*!
|
|
27332
27483
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27333
27484
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27340,6 +27491,7 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27340
27491
|
|
|
27341
27492
|
|
|
27342
27493
|
|
|
27494
|
+
|
|
27343
27495
|
/**
|
|
27344
27496
|
* Send files to server
|
|
27345
27497
|
*/ async function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -27426,13 +27578,13 @@ retryOf) {
|
|
|
27426
27578
|
});
|
|
27427
27579
|
}
|
|
27428
27580
|
o.prepareData.call(uploader, form);
|
|
27429
|
-
promises.push((0,
|
|
27581
|
+
promises.push((0,jodit_modules_uploader_helpers_send__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
27430
27582
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27431
27583
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27432
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
27584
|
+
handler.call(uploader, (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
27433
27585
|
return resp;
|
|
27434
27586
|
}
|
|
27435
|
-
const err = new
|
|
27587
|
+
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
27588
|
data: {
|
|
27437
27589
|
...extraData,
|
|
27438
27590
|
...plan?.data
|
|
@@ -27506,18 +27658,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
27506
27658
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
27507
27659
|
reader.onerror = reject;
|
|
27508
27660
|
reader.onloadend = ()=>{
|
|
27509
|
-
const resp = {
|
|
27661
|
+
const resp = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
27510
27662
|
baseurl: '',
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
fileNames: [
|
|
27518
|
-
name
|
|
27663
|
+
items: [
|
|
27664
|
+
{
|
|
27665
|
+
file: reader.result,
|
|
27666
|
+
isImage: true,
|
|
27667
|
+
name
|
|
27668
|
+
}
|
|
27519
27669
|
]
|
|
27520
|
-
};
|
|
27670
|
+
});
|
|
27521
27671
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
27522
27672
|
handler.call(uploader, resp);
|
|
27523
27673
|
resolve(resp);
|
|
@@ -27732,11 +27882,10 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27732
27882
|
* ```javascript
|
|
27733
27883
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
27734
27884
|
* jQuery('body').append($form);
|
|
27735
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
27736
|
-
*
|
|
27737
|
-
*
|
|
27738
|
-
*
|
|
27739
|
-
* }
|
|
27885
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (data) {
|
|
27886
|
+
* data.items.forEach(function (item) {
|
|
27887
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
27888
|
+
* });
|
|
27740
27889
|
* });
|
|
27741
27890
|
* ```
|
|
27742
27891
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -27831,7 +27980,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27831
27980
|
}).then((resp)=>{
|
|
27832
27981
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27833
27982
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27834
|
-
handler.call(uploader, o.process.call(uploader, resp));
|
|
27983
|
+
handler.call(uploader, (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_7__.normalizeUploaderData)(o.process.call(uploader, resp)));
|
|
27835
27984
|
return;
|
|
27836
27985
|
}
|
|
27837
27986
|
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 +27998,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27849
27998
|
if (!settled) {
|
|
27850
27999
|
resolve({
|
|
27851
28000
|
baseurl: '',
|
|
28001
|
+
items: [],
|
|
27852
28002
|
files: [],
|
|
27853
28003
|
isImages: []
|
|
27854
28004
|
});
|
|
@@ -29150,6 +29300,329 @@ UiAiAssistant = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
|
29150
29300
|
], UiAiAssistant);
|
|
29151
29301
|
|
|
29152
29302
|
|
|
29303
|
+
/***/ }),
|
|
29304
|
+
|
|
29305
|
+
/***/ 90010:
|
|
29306
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
29307
|
+
|
|
29308
|
+
"use strict";
|
|
29309
|
+
/* unused harmony export anchor */
|
|
29310
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
29311
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62445);
|
|
29312
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81937);
|
|
29313
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
|
|
29314
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
|
|
29315
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
29316
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
29317
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
29318
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
|
|
29319
|
+
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5658);
|
|
29320
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(95085);
|
|
29321
|
+
/*!
|
|
29322
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29323
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29324
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
29325
|
+
*/ /**
|
|
29326
|
+
* [[include:plugins/anchor/README.md]]
|
|
29327
|
+
* @packageDocumentation
|
|
29328
|
+
* @module plugins/anchor
|
|
29329
|
+
*/
|
|
29330
|
+
|
|
29331
|
+
|
|
29332
|
+
|
|
29333
|
+
|
|
29334
|
+
|
|
29335
|
+
|
|
29336
|
+
|
|
29337
|
+
|
|
29338
|
+
|
|
29339
|
+
|
|
29340
|
+
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\")";
|
|
29341
|
+
const MARKER = [
|
|
29342
|
+
'id',
|
|
29343
|
+
'name'
|
|
29344
|
+
].map((key)=>`.jodit-wysiwyg a[${key}]:not([href]):empty::before`).join(',');
|
|
29345
|
+
/**
|
|
29346
|
+
* Each anchor's marker, in the editing area only
|
|
29347
|
+
*/ 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:''}`;
|
|
29348
|
+
/**
|
|
29349
|
+
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
29350
|
+
*/ const MARK = ' contenteditable="false"';
|
|
29351
|
+
/**
|
|
29352
|
+
* Inserts anchors, empty `<a id>` that links in the document reach as
|
|
29353
|
+
* `#name`, and renames and removes them
|
|
29354
|
+
*/ class anchor extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
29355
|
+
/** @override */ afterInit(jodit) {
|
|
29356
|
+
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
29357
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
|
|
29358
|
+
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
29359
|
+
top: true
|
|
29360
|
+
});
|
|
29361
|
+
}
|
|
29362
|
+
/**
|
|
29363
|
+
* An anchor gets its own popup, in place of the link's
|
|
29364
|
+
*/ __onClickA(target, e) {
|
|
29365
|
+
const { j } = this;
|
|
29366
|
+
if (j.o.readonly || !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isAnchor)(target)) {
|
|
29367
|
+
return;
|
|
29368
|
+
}
|
|
29369
|
+
j.e.stopPropagation((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.camelCase)((e?.type ?? 'click') + '_a'));
|
|
29370
|
+
// Afresh, so a form left with a change unsaved shows the name it has
|
|
29371
|
+
j.e.fire('showPopup', target, ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(target, j), 'anchor', true);
|
|
29372
|
+
return false;
|
|
29373
|
+
}
|
|
29374
|
+
/**
|
|
29375
|
+
* Anchors are uneditable in the editor, so typing beside one never goes
|
|
29376
|
+
* into it and it's deleted as a whole
|
|
29377
|
+
*/ onChange() {
|
|
29378
|
+
const { j } = this;
|
|
29379
|
+
if (j.isInDestruct || j.getMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.MODE_SOURCE) {
|
|
29380
|
+
return;
|
|
29381
|
+
}
|
|
29382
|
+
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(j.editor).forEach(markAnchor);
|
|
29383
|
+
}
|
|
29384
|
+
/**
|
|
29385
|
+
* The editor's own attribute stays out of the value
|
|
29386
|
+
*/ onAfterGetValueFromEditor(data) {
|
|
29387
|
+
data.value = unmarkAnchors(data.value);
|
|
29388
|
+
}
|
|
29389
|
+
/**
|
|
29390
|
+
* The form that names a new anchor, or renames or removes `target`
|
|
29391
|
+
*/ __generateForm(target, close) {
|
|
29392
|
+
const { j } = this;
|
|
29393
|
+
const current = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isAnchor)(target) ? target : null;
|
|
29394
|
+
const input = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIInput(j, {
|
|
29395
|
+
name: 'name',
|
|
29396
|
+
ref: 'name_input',
|
|
29397
|
+
label: 'Anchor',
|
|
29398
|
+
required: true
|
|
29399
|
+
});
|
|
29400
|
+
const buttons = [
|
|
29401
|
+
new jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton(j, {
|
|
29402
|
+
name: 'insert',
|
|
29403
|
+
type: 'submit',
|
|
29404
|
+
variant: 'primary',
|
|
29405
|
+
text: current ? 'Update' : 'Insert'
|
|
29406
|
+
})
|
|
29407
|
+
];
|
|
29408
|
+
if (current) {
|
|
29409
|
+
input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(current);
|
|
29410
|
+
buttons.unshift(new jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton(j, {
|
|
29411
|
+
name: 'remove',
|
|
29412
|
+
variant: 'default',
|
|
29413
|
+
text: 'Remove'
|
|
29414
|
+
}).onAction(()=>{
|
|
29415
|
+
if (!j.o.readonly) {
|
|
29416
|
+
j.s.restore();
|
|
29417
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.safeRemove(current);
|
|
29418
|
+
j.synchronizeValues();
|
|
29419
|
+
}
|
|
29420
|
+
close();
|
|
29421
|
+
}));
|
|
29422
|
+
}
|
|
29423
|
+
const form = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIForm(j, [
|
|
29424
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIBlock(j, [
|
|
29425
|
+
input
|
|
29426
|
+
]),
|
|
29427
|
+
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_9__.UIBlock(j, buttons, {
|
|
29428
|
+
align: 'full'
|
|
29429
|
+
})
|
|
29430
|
+
]);
|
|
29431
|
+
if (current) {
|
|
29432
|
+
this.__dropForm();
|
|
29433
|
+
this.__form = form;
|
|
29434
|
+
// The toolbar's popup closes on Escape by itself; the anchor's own doesn't
|
|
29435
|
+
j.e.on(form.container, 'keydown', (e)=>{
|
|
29436
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
29437
|
+
close();
|
|
29438
|
+
j.s.restore();
|
|
29439
|
+
}
|
|
29440
|
+
});
|
|
29441
|
+
}
|
|
29442
|
+
form.onSubmit(()=>{
|
|
29443
|
+
// The editor can turn readonly while the form is open
|
|
29444
|
+
if (j.o.readonly) {
|
|
29445
|
+
close();
|
|
29446
|
+
return false;
|
|
29447
|
+
}
|
|
29448
|
+
const name = input.value.trim().replace(/^#/, '');
|
|
29449
|
+
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' : '';
|
|
29450
|
+
if (error) {
|
|
29451
|
+
input.error = error;
|
|
29452
|
+
input.focus();
|
|
29453
|
+
return false;
|
|
29454
|
+
}
|
|
29455
|
+
j.s.restore();
|
|
29456
|
+
if (current) {
|
|
29457
|
+
this.__rename(current, name);
|
|
29458
|
+
} else {
|
|
29459
|
+
this.__insert(name);
|
|
29460
|
+
}
|
|
29461
|
+
j.synchronizeValues();
|
|
29462
|
+
close();
|
|
29463
|
+
return false;
|
|
29464
|
+
});
|
|
29465
|
+
j.async.requestIdleCallback(()=>input.focus());
|
|
29466
|
+
return form;
|
|
29467
|
+
}
|
|
29468
|
+
__dropForm() {
|
|
29469
|
+
const form = this.__form;
|
|
29470
|
+
this.__form = null;
|
|
29471
|
+
if (form && !form.isInDestruct) {
|
|
29472
|
+
this.j.e.off(form.container, 'keydown');
|
|
29473
|
+
form.destruct();
|
|
29474
|
+
}
|
|
29475
|
+
}
|
|
29476
|
+
/**
|
|
29477
|
+
* Another element in the document has the name as its `id`, or another
|
|
29478
|
+
* anchor as its `name`
|
|
29479
|
+
*/ __isTaken(name, current) {
|
|
29480
|
+
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));
|
|
29481
|
+
}
|
|
29482
|
+
/**
|
|
29483
|
+
* At the caret, or at the start of the selection. An anchor can't go in
|
|
29484
|
+
* a link, so in one it goes just before it
|
|
29485
|
+
*/ __insert(name) {
|
|
29486
|
+
const { j } = this;
|
|
29487
|
+
const anchor = j.createInside.element('a', {
|
|
29488
|
+
id: name
|
|
29489
|
+
});
|
|
29490
|
+
const range = j.s.range;
|
|
29491
|
+
markAnchor(anchor);
|
|
29492
|
+
if (!range.collapsed) {
|
|
29493
|
+
range.collapse(true);
|
|
29494
|
+
j.s.selectRange(range);
|
|
29495
|
+
}
|
|
29496
|
+
const link = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(range.startContainer, 'a', j.editor);
|
|
29497
|
+
if (link) {
|
|
29498
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.before(link, anchor);
|
|
29499
|
+
j.s.setCursorAfter(anchor);
|
|
29500
|
+
} else {
|
|
29501
|
+
j.s.insertNode(anchor, true, false);
|
|
29502
|
+
}
|
|
29503
|
+
}
|
|
29504
|
+
/**
|
|
29505
|
+
* Gives the anchor the new name in whichever of `id` and `name` it has,
|
|
29506
|
+
* and the links to it the new `#name`, unless they still reach
|
|
29507
|
+
* something else by the old one, as they do after a copy is pasted
|
|
29508
|
+
*/ __rename(current, name) {
|
|
29509
|
+
const old = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(current);
|
|
29510
|
+
const shared = this.__isTaken(old, current);
|
|
29511
|
+
[
|
|
29512
|
+
'id',
|
|
29513
|
+
'name'
|
|
29514
|
+
].forEach((key)=>{
|
|
29515
|
+
if (current.hasAttribute(key)) {
|
|
29516
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(current, key, name);
|
|
29517
|
+
}
|
|
29518
|
+
});
|
|
29519
|
+
if (shared) {
|
|
29520
|
+
return;
|
|
29521
|
+
}
|
|
29522
|
+
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.toArray)(this.j.editor.querySelectorAll('a[href]')).forEach((link)=>{
|
|
29523
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'href') === '#' + old) {
|
|
29524
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'href', '#' + name);
|
|
29525
|
+
}
|
|
29526
|
+
});
|
|
29527
|
+
}
|
|
29528
|
+
/** @override */ beforeDestruct(jodit) {
|
|
29529
|
+
this.__dropForm();
|
|
29530
|
+
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
29531
|
+
}
|
|
29532
|
+
constructor(...args){
|
|
29533
|
+
super(...args), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "buttons", [
|
|
29534
|
+
{
|
|
29535
|
+
name: 'anchor',
|
|
29536
|
+
group: 'insert'
|
|
29537
|
+
}
|
|
29538
|
+
]), /**
|
|
29539
|
+
* The form in the anchor's own popup. The popup takes it out without
|
|
29540
|
+
* destructing it when it shows something else, so it goes when the next
|
|
29541
|
+
* one is made
|
|
29542
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__form", null);
|
|
29543
|
+
}
|
|
29544
|
+
}
|
|
29545
|
+
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29546
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
29547
|
+
], anchor.prototype, "__onClickA", null);
|
|
29548
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29549
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
29550
|
+
':change',
|
|
29551
|
+
':afterInit',
|
|
29552
|
+
':afterSetMode'
|
|
29553
|
+
]),
|
|
29554
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.debounce)()
|
|
29555
|
+
], anchor.prototype, "onChange", null);
|
|
29556
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29557
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':afterGetValueFromEditor')
|
|
29558
|
+
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
29559
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
29560
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
29561
|
+
], anchor.prototype, "__generateForm", null);
|
|
29562
|
+
function markAnchor(anchor) {
|
|
29563
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(anchor, 'contenteditable') !== 'false') {
|
|
29564
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(anchor, 'contenteditable', false);
|
|
29565
|
+
}
|
|
29566
|
+
}
|
|
29567
|
+
/**
|
|
29568
|
+
* Takes `MARK` off each anchor in one pass over the tags, as a regex with
|
|
29569
|
+
* `[^>]*` backtracks quadratically on a long run of `<a` (CWE-1333)
|
|
29570
|
+
*/ function unmarkAnchors(html) {
|
|
29571
|
+
if (!html.includes(MARK)) {
|
|
29572
|
+
return html;
|
|
29573
|
+
}
|
|
29574
|
+
let result = '';
|
|
29575
|
+
let copied = 0;
|
|
29576
|
+
let cursor = 0;
|
|
29577
|
+
for(;;){
|
|
29578
|
+
const start = html.indexOf('<', cursor);
|
|
29579
|
+
if (start === -1) {
|
|
29580
|
+
break;
|
|
29581
|
+
}
|
|
29582
|
+
const end = html.indexOf('>', start);
|
|
29583
|
+
if (end === -1) {
|
|
29584
|
+
break;
|
|
29585
|
+
}
|
|
29586
|
+
if (html.startsWith('<a', start) && /\s/.test(html.charAt(start + 2)) && html.startsWith('</a>', end + 1)) {
|
|
29587
|
+
const tag = html.slice(start, end);
|
|
29588
|
+
const at = tag.indexOf(MARK);
|
|
29589
|
+
if (at !== -1 && !/\shref=/.test(tag)) {
|
|
29590
|
+
result += html.slice(copied, start + at);
|
|
29591
|
+
copied = start + at + MARK.length;
|
|
29592
|
+
}
|
|
29593
|
+
}
|
|
29594
|
+
// Past the whole tag, so an `<a` inside one of its attributes is never read as a tag
|
|
29595
|
+
cursor = end + 1;
|
|
29596
|
+
}
|
|
29597
|
+
return copied === 0 ? html : result + html.slice(copied);
|
|
29598
|
+
}
|
|
29599
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('anchor', anchor);
|
|
29600
|
+
|
|
29601
|
+
|
|
29602
|
+
/***/ }),
|
|
29603
|
+
|
|
29604
|
+
/***/ 95085:
|
|
29605
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
29606
|
+
|
|
29607
|
+
"use strict";
|
|
29608
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5266);
|
|
29609
|
+
/* harmony import */ var jodit_plugins_inline_popup_config_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89873);
|
|
29610
|
+
/*!
|
|
29611
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29612
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29613
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
29614
|
+
*/ /**
|
|
29615
|
+
* @module plugins/anchor
|
|
29616
|
+
*/
|
|
29617
|
+
// The anchor's popup goes in its list
|
|
29618
|
+
|
|
29619
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.anchor = {
|
|
29620
|
+
popup: (editor, current, close)=>editor.e.fire('generateAnchorForm.anchor', null, close),
|
|
29621
|
+
tooltip: 'Insert anchor'
|
|
29622
|
+
};
|
|
29623
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.anchor = (editor, target, close)=>editor.e.fire('generateAnchorForm.anchor', target, close);
|
|
29624
|
+
|
|
29625
|
+
|
|
29153
29626
|
/***/ }),
|
|
29154
29627
|
|
|
29155
29628
|
/***/ 28286:
|
|
@@ -34553,7 +35026,8 @@ function brBefore(start) {
|
|
|
34553
35026
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
|
|
34554
35027
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
34555
35028
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
|
|
34556
|
-
/* harmony import */ var
|
|
35029
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7042);
|
|
35030
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15753);
|
|
34557
35031
|
/*!
|
|
34558
35032
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34559
35033
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34567,6 +35041,7 @@ function brBefore(start) {
|
|
|
34567
35041
|
|
|
34568
35042
|
|
|
34569
35043
|
|
|
35044
|
+
|
|
34570
35045
|
/**
|
|
34571
35046
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
34572
35047
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -34588,15 +35063,16 @@ function brBefore(start) {
|
|
|
34588
35063
|
return true;
|
|
34589
35064
|
}
|
|
34590
35065
|
function insertLinks(data) {
|
|
34591
|
-
data
|
|
34592
|
-
|
|
35066
|
+
const { baseurl } = data;
|
|
35067
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>{
|
|
35068
|
+
const href = baseurl + file;
|
|
34593
35069
|
if (wrapSelectionInLink(this, href)) {
|
|
34594
35070
|
return;
|
|
34595
35071
|
}
|
|
34596
35072
|
const link = this.createInside.element('a', {
|
|
34597
35073
|
href
|
|
34598
35074
|
});
|
|
34599
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
35075
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
34600
35076
|
this.s.insertNode(link);
|
|
34601
35077
|
});
|
|
34602
35078
|
}
|
|
@@ -34624,9 +35100,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
34624
35100
|
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
35101
|
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
35102
|
}
|
|
34627
|
-
return (0,
|
|
35103
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
34628
35104
|
filebrowser: (data)=>{
|
|
34629
|
-
|
|
35105
|
+
;(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
34630
35106
|
close();
|
|
34631
35107
|
},
|
|
34632
35108
|
upload: (data)=>{
|
|
@@ -36865,10 +37341,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
36865
37341
|
const fresh = this.__freshCaption(wrapper);
|
|
36866
37342
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
36867
37343
|
// The click opened the image's popup below the caption, so it
|
|
36868
|
-
//
|
|
37344
|
+
// moves below the image, as after the popup's Caption button
|
|
36869
37345
|
if (clicked) {
|
|
36870
37346
|
j.e.fire('recalcPositionPopup');
|
|
36871
|
-
j.e.fire('closeAllPopups');
|
|
36872
37347
|
}
|
|
36873
37348
|
}, 1);
|
|
36874
37349
|
}
|
|
@@ -38753,9 +39228,9 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38753
39228
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38754
39229
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
38755
39230
|
/* harmony export */ });
|
|
38756
|
-
/* harmony import */ var
|
|
38757
|
-
/* harmony import */ var
|
|
38758
|
-
/* harmony import */ var
|
|
39231
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23599);
|
|
39232
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51116);
|
|
39233
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7042);
|
|
38759
39234
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18762);
|
|
38760
39235
|
/*!
|
|
38761
39236
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -38768,25 +39243,27 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38768
39243
|
|
|
38769
39244
|
|
|
38770
39245
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
38771
|
-
const popup = new
|
|
39246
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
38772
39247
|
const closePopup = ()=>{
|
|
38773
39248
|
popup.close();
|
|
38774
39249
|
popup.destruct();
|
|
38775
39250
|
};
|
|
38776
39251
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
38777
39252
|
upload: (data)=>{
|
|
38778
|
-
|
|
38779
|
-
|
|
39253
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__.getItems)(data);
|
|
39254
|
+
if (item) {
|
|
39255
|
+
state.values.imageSrc = data.baseurl + item.file;
|
|
38780
39256
|
}
|
|
38781
39257
|
closePopup();
|
|
38782
39258
|
},
|
|
38783
39259
|
filebrowser: async (data)=>{
|
|
38784
|
-
|
|
38785
|
-
|
|
39260
|
+
const [item] = data ? (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_2__.getItems)(data) : [];
|
|
39261
|
+
if (item) {
|
|
39262
|
+
state.values.imageSrc = item.file;
|
|
38786
39263
|
closePopup();
|
|
38787
39264
|
}
|
|
38788
39265
|
}
|
|
38789
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
39266
|
+
}, state.image, closePopup)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
38790
39267
|
}
|
|
38791
39268
|
|
|
38792
39269
|
|
|
@@ -39090,9 +39567,10 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39090
39567
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
39091
39568
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
39092
39569
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
39093
|
-
/* harmony import */ var
|
|
39094
|
-
/* harmony import */ var
|
|
39095
|
-
/* harmony import */ var
|
|
39570
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7042);
|
|
39571
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15753);
|
|
39572
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(64831);
|
|
39573
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
39096
39574
|
/*!
|
|
39097
39575
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39098
39576
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39109,7 +39587,8 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39109
39587
|
|
|
39110
39588
|
|
|
39111
39589
|
|
|
39112
|
-
|
|
39590
|
+
|
|
39591
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
39113
39592
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
39114
39593
|
popup: (editor, current, close)=>{
|
|
39115
39594
|
let sourceImage = null;
|
|
@@ -39117,10 +39596,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
39117
39596
|
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
39597
|
}
|
|
39119
39598
|
editor.s.save();
|
|
39120
|
-
return (0,
|
|
39599
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
39121
39600
|
filebrowser: (data)=>{
|
|
39122
39601
|
editor.s.restore();
|
|
39123
|
-
|
|
39602
|
+
(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
39603
|
close();
|
|
39125
39604
|
},
|
|
39126
39605
|
upload: true,
|
|
@@ -39389,39 +39868,40 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39389
39868
|
/* harmony import */ var jodit_plugins_limit_limit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(50662);
|
|
39390
39869
|
/* harmony import */ var jodit_plugins_line_height_line_height__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(58354);
|
|
39391
39870
|
/* 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
|
|
39871
|
+
/* harmony import */ var jodit_plugins_anchor_anchor__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(90010);
|
|
39872
|
+
/* harmony import */ var jodit_plugins_media_media__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76830);
|
|
39873
|
+
/* harmony import */ var jodit_plugins_mobile_mobile__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(74240);
|
|
39874
|
+
/* harmony import */ var jodit_plugins_ordered_list_ordered_list__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(98792);
|
|
39875
|
+
/* harmony import */ var jodit_plugins_paste_paste__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(23422);
|
|
39876
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(96730);
|
|
39877
|
+
/* harmony import */ var jodit_plugins_paste_storage_paste_storage__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(7758);
|
|
39878
|
+
/* harmony import */ var jodit_plugins_placeholder_placeholder__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(28346);
|
|
39879
|
+
/* harmony import */ var jodit_plugins_powered_by_jodit_powered_by_jodit__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(198);
|
|
39880
|
+
/* harmony import */ var jodit_plugins_preview_preview__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(49690);
|
|
39881
|
+
/* harmony import */ var jodit_plugins_print_print__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(41134);
|
|
39882
|
+
/* harmony import */ var jodit_plugins_redo_undo_redo_undo__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(59758);
|
|
39883
|
+
/* harmony import */ var jodit_plugins_resize_cells_resize_cells__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(14248);
|
|
39884
|
+
/* harmony import */ var jodit_plugins_resize_handler_resize_handler__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(72214);
|
|
39885
|
+
/* harmony import */ var jodit_plugins_resizer_resizer__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(74522);
|
|
39886
|
+
/* harmony import */ var jodit_plugins_search_search__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(30500);
|
|
39887
|
+
/* harmony import */ var jodit_plugins_select_select__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(98988);
|
|
39888
|
+
/* harmony import */ var jodit_plugins_select_cells_select_cells__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(2756);
|
|
39889
|
+
/* harmony import */ var jodit_plugins_size_size__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(44322);
|
|
39890
|
+
/* harmony import */ var jodit_plugins_source_source__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(13810);
|
|
39891
|
+
/* harmony import */ var jodit_plugins_spellcheck_spellcheck__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(90204);
|
|
39892
|
+
/* harmony import */ var jodit_plugins_stat_stat__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(86236);
|
|
39893
|
+
/* harmony import */ var jodit_plugins_sticky_sticky__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(67582);
|
|
39894
|
+
/* harmony import */ var jodit_plugins_symbols_symbols__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(11774);
|
|
39895
|
+
/* harmony import */ var jodit_plugins_ai_assistant_ai_assistant__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(14774);
|
|
39896
|
+
/* harmony import */ var jodit_plugins_tab_tab__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(81582);
|
|
39897
|
+
/* harmony import */ var jodit_plugins_table_table__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(7994);
|
|
39898
|
+
/* harmony import */ var jodit_plugins_table_keyboard_navigation_table_keyboard_navigation__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(30110);
|
|
39899
|
+
/* harmony import */ var jodit_plugins_toolbar_navigation_toolbar_navigation__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(74192);
|
|
39900
|
+
/* harmony import */ var jodit_plugins_video_video__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(34142);
|
|
39901
|
+
/* harmony import */ var jodit_plugins_video_properties_video_properties__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40878);
|
|
39902
|
+
/* harmony import */ var jodit_plugins_wrap_nodes_wrap_nodes__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(22980);
|
|
39903
|
+
/* harmony import */ var jodit_plugins_dtd_dtd__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(56894);
|
|
39904
|
+
/* harmony import */ var jodit_plugins_xpath_xpath__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(52014);
|
|
39425
39905
|
/*!
|
|
39426
39906
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39427
39907
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39496,6 +39976,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39496
39976
|
|
|
39497
39977
|
|
|
39498
39978
|
|
|
39979
|
+
|
|
39499
39980
|
|
|
39500
39981
|
|
|
39501
39982
|
/***/ }),
|
|
@@ -39555,6 +40036,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39555
40036
|
|
|
39556
40037
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
39557
40038
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
40039
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
39558
40040
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
39559
40041
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
39560
40042
|
'source'
|
|
@@ -39642,8 +40124,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39642
40124
|
"use strict";
|
|
39643
40125
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
39644
40126
|
/* 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);
|
|
40127
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80991);
|
|
39647
40128
|
/*!
|
|
39648
40129
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39649
40130
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39653,7 +40134,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39653
40134
|
*/
|
|
39654
40135
|
|
|
39655
40136
|
|
|
39656
|
-
|
|
39657
40137
|
const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
39658
40138
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
39659
40139
|
'brushCell',
|
|
@@ -39669,7 +40149,7 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39669
40149
|
exec: (editor, table, { control })=>{
|
|
39670
40150
|
const command = cmd(control);
|
|
39671
40151
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
39672
|
-
(0,
|
|
40152
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
39673
40153
|
});
|
|
39674
40154
|
},
|
|
39675
40155
|
tooltip: 'Vertical align'
|
|
@@ -39735,13 +40215,6 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39735
40215
|
return;
|
|
39736
40216
|
}
|
|
39737
40217
|
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
40218
|
},
|
|
39746
40219
|
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
40220
|
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 +40407,7 @@ const align = {
|
|
|
39934
40407
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
39935
40408
|
editor.synchronizeValues();
|
|
39936
40409
|
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
39937
|
-
editor.e.fire('hideResizer');
|
|
40410
|
+
editor.e.fire('hidePopup hideResizer');
|
|
39938
40411
|
editor.s.setCursorIn(caption);
|
|
39939
40412
|
} else {
|
|
39940
40413
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -40066,7 +40539,9 @@ const align = {
|
|
|
40066
40539
|
* Plugin for show inline popup dialog
|
|
40067
40540
|
*/ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
40068
40541
|
get popup() {
|
|
40069
|
-
|
|
40542
|
+
const popup = new jodit_core_ui_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.jodit, false);
|
|
40543
|
+
popup.keepOpen = this.j.o.toolbarInlineKeepOpen;
|
|
40544
|
+
return popup;
|
|
40070
40545
|
}
|
|
40071
40546
|
get toolbar() {
|
|
40072
40547
|
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_10__.makeCollection)(this.jodit, this.popup);
|
|
@@ -40079,8 +40554,8 @@ const align = {
|
|
|
40079
40554
|
const isMedia = type === 'jodit-media';
|
|
40080
40555
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
40081
40556
|
// 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);
|
|
40557
|
+
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;
|
|
40558
|
+
this.showPopup(()=>this.__bound(bound(), isMedia), type, target);
|
|
40084
40559
|
return false;
|
|
40085
40560
|
}
|
|
40086
40561
|
}
|
|
@@ -40104,13 +40579,18 @@ const align = {
|
|
|
40104
40579
|
* Show inline popup with some toolbar
|
|
40105
40580
|
*
|
|
40106
40581
|
* @param type - selection, img, a etc.
|
|
40107
|
-
|
|
40582
|
+
* @param force - make the popup again for the same target
|
|
40583
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
40108
40584
|
type = type.toLowerCase();
|
|
40109
40585
|
if (!this.canShowPopupForType(type)) {
|
|
40110
40586
|
return false;
|
|
40111
40587
|
}
|
|
40112
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
40588
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
40113
40589
|
this.previousTarget = target;
|
|
40590
|
+
// What it showed is taken out, not destructed: an element a
|
|
40591
|
+
// function returns is its own, and may be shown again
|
|
40592
|
+
this.popup.elements.slice().forEach((elm)=>this.popup.remove(elm));
|
|
40593
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.detach(this.popup.getElm('content'));
|
|
40114
40594
|
const data = this.j.o.popup[type];
|
|
40115
40595
|
let content;
|
|
40116
40596
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(data)) {
|
|
@@ -40193,59 +40673,28 @@ const align = {
|
|
|
40193
40673
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
40194
40674
|
});
|
|
40195
40675
|
}
|
|
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);
|
|
40676
|
+
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type, force)=>{
|
|
40677
|
+
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
40678
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
40199
|
-
if (this.popup.isOpened
|
|
40679
|
+
if (!this.popup.isOpened) {
|
|
40680
|
+
return;
|
|
40681
|
+
}
|
|
40682
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
40200
40683
|
this.hidePopup();
|
|
40201
40684
|
this.previousTarget = undefined;
|
|
40685
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
40686
|
+
this.hidePopup();
|
|
40202
40687
|
}
|
|
40203
40688
|
}).on([
|
|
40204
40689
|
this.j.ew,
|
|
40205
40690
|
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);
|
|
40691
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40210
40692
|
this.addListenersForElements();
|
|
40211
40693
|
}
|
|
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);
|
|
40694
|
+
/**
|
|
40695
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
40696
|
+
*/ onRecalcPositionPopup() {
|
|
40697
|
+
this.popup.updatePosition();
|
|
40249
40698
|
}
|
|
40250
40699
|
/**
|
|
40251
40700
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -40291,9 +40740,8 @@ const align = {
|
|
|
40291
40740
|
return;
|
|
40292
40741
|
}
|
|
40293
40742
|
const type = 'selection';
|
|
40294
|
-
const sel = this.j.s.sel;
|
|
40295
40743
|
const range = this.j.s.range;
|
|
40296
|
-
if (
|
|
40744
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
40297
40745
|
if (this.type === type && this.popup.isOpened) {
|
|
40298
40746
|
this.hidePopup();
|
|
40299
40747
|
}
|
|
@@ -40305,6 +40753,28 @@ const align = {
|
|
|
40305
40753
|
}
|
|
40306
40754
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
40307
40755
|
}
|
|
40756
|
+
/**
|
|
40757
|
+
* The selection holds more than a line break. A double click past the end
|
|
40758
|
+
* of a line, or a drag from there into the next, selects only the break,
|
|
40759
|
+
* with any rule, video or empty line it crosses: it starts at the end of a
|
|
40760
|
+
* line, after everything in it, and holds no text that shows
|
|
40761
|
+
*/ __hasSelectedContent() {
|
|
40762
|
+
const { sel, range } = this.j.s;
|
|
40763
|
+
if (!sel || sel.isCollapsed) {
|
|
40764
|
+
return false;
|
|
40765
|
+
}
|
|
40766
|
+
// HTML collapses ASCII white space, but not
|
|
40767
|
+
const showsText = (r)=>/[^\t\n\f\r \uFEFF\u200B]/.test(r.toString());
|
|
40768
|
+
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);
|
|
40769
|
+
if (!line || line === this.j.editor || showsText(range)) {
|
|
40770
|
+
return true;
|
|
40771
|
+
}
|
|
40772
|
+
// The rest of the line after the selection's start
|
|
40773
|
+
const rest = this.j.s.createRange();
|
|
40774
|
+
rest.setStart(range.startContainer, range.startOffset);
|
|
40775
|
+
rest.setEnd(line, line.childNodes.length);
|
|
40776
|
+
return showsText(rest) || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.toArray)(line.querySelectorAll(':not(br):empty')).some((elm)=>rest.intersectsNode(elm));
|
|
40777
|
+
}
|
|
40308
40778
|
/**
|
|
40309
40779
|
* In not collapsed selection - only one image
|
|
40310
40780
|
*/ isSelectedTarget(r) {
|
|
@@ -40320,10 +40790,7 @@ const align = {
|
|
|
40320
40790
|
jodit.e.off('showPopup').off([
|
|
40321
40791
|
this.j.ew,
|
|
40322
40792
|
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);
|
|
40793
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40327
40794
|
this.removeListenersForElements();
|
|
40328
40795
|
}
|
|
40329
40796
|
_eventsList() {
|
|
@@ -40352,15 +40819,7 @@ const align = {
|
|
|
40352
40819
|
}, 'toolbar');
|
|
40353
40820
|
}
|
|
40354
40821
|
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)));
|
|
40822
|
+
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
40823
|
}
|
|
40365
40824
|
}
|
|
40366
40825
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(inlinePopup, "requires", [
|
|
@@ -40395,12 +40854,6 @@ const align = {
|
|
|
40395
40854
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40396
40855
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':recalcPositionPopup')
|
|
40397
40856
|
], 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
40857
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40405
40858
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40406
40859
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -41029,8 +41482,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41029
41482
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
41030
41483
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
41031
41484
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
41032
|
-
/* harmony import */ var
|
|
41033
|
-
/* harmony import */ var
|
|
41485
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
|
|
41486
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29434);
|
|
41487
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51116);
|
|
41488
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65230);
|
|
41489
|
+
/* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99763);
|
|
41034
41490
|
/*!
|
|
41035
41491
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41036
41492
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41049,6 +41505,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41049
41505
|
|
|
41050
41506
|
|
|
41051
41507
|
|
|
41508
|
+
|
|
41509
|
+
|
|
41510
|
+
|
|
41511
|
+
|
|
41052
41512
|
/**
|
|
41053
41513
|
* Process link. Insert, dblclick or remove format
|
|
41054
41514
|
*/ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
@@ -41192,6 +41652,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41192
41652
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
41193
41653
|
}
|
|
41194
41654
|
}
|
|
41655
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
41195
41656
|
jodit.editor.normalize();
|
|
41196
41657
|
const snapshot = jodit.history.snapshot.make();
|
|
41197
41658
|
if (unlink) {
|
|
@@ -41354,7 +41815,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41354
41815
|
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
41816
|
return;
|
|
41356
41817
|
}
|
|
41357
|
-
const found = (0,
|
|
41818
|
+
const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_12__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
41358
41819
|
if (!found) {
|
|
41359
41820
|
return;
|
|
41360
41821
|
}
|
|
@@ -41445,6 +41906,136 @@ const MODIFIER_KEYS = new Set([
|
|
|
41445
41906
|
'CapsLock'
|
|
41446
41907
|
]);
|
|
41447
41908
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
41909
|
+
/**
|
|
41910
|
+
* A dropdown arrow in the URL field that lists the document's anchors by the
|
|
41911
|
+
* words after them, and fills in the one picked. The list opens in a popup of
|
|
41912
|
+
* its own, from the arrow or the down arrow key, and closes once an address is
|
|
41913
|
+
* typed
|
|
41914
|
+
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
41915
|
+
const anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(jodit.editor);
|
|
41916
|
+
const field = url?.closest('.jodit-ui-input__wrapper');
|
|
41917
|
+
const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement);
|
|
41918
|
+
if (!field || !input || !anchors.length) {
|
|
41919
|
+
return;
|
|
41920
|
+
}
|
|
41921
|
+
const { c } = jodit;
|
|
41922
|
+
const label = jodit.i18n('Link to an anchor');
|
|
41923
|
+
const toggle = c.element('button', {
|
|
41924
|
+
type: 'button',
|
|
41925
|
+
class: 'jodit-link-anchors__toggle',
|
|
41926
|
+
title: label,
|
|
41927
|
+
'aria-label': label
|
|
41928
|
+
});
|
|
41929
|
+
const heading = c.div('jodit-link-anchors__heading', {
|
|
41930
|
+
id: 'jodit-link-anchors-' + (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.uniqueUid)()
|
|
41931
|
+
});
|
|
41932
|
+
const list = c.div('jodit-link-anchors', {
|
|
41933
|
+
role: 'group',
|
|
41934
|
+
'aria-labelledby': heading.id
|
|
41935
|
+
});
|
|
41936
|
+
const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__.Icon.makeIcon(jodit, {
|
|
41937
|
+
name,
|
|
41938
|
+
iconURL: '',
|
|
41939
|
+
fill: '',
|
|
41940
|
+
scale: undefined
|
|
41941
|
+
}) ?? c.span();
|
|
41942
|
+
const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__.Popup(jodit).setMod('padding', false);
|
|
41943
|
+
const items = [];
|
|
41944
|
+
let filled = '';
|
|
41945
|
+
const open = ()=>{
|
|
41946
|
+
if (dropdown.isOpened) {
|
|
41947
|
+
return;
|
|
41948
|
+
}
|
|
41949
|
+
// Clicks in the list then count as the form's, which stays open
|
|
41950
|
+
dropdown.parentElement ||= input;
|
|
41951
|
+
list.style.minWidth = field.offsetWidth + 'px';
|
|
41952
|
+
dropdown.open(()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(field));
|
|
41953
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(toggle, 'aria-expanded', true);
|
|
41954
|
+
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])));
|
|
41955
|
+
list.querySelector('[aria-current=true]')?.scrollIntoView({
|
|
41956
|
+
block: 'nearest'
|
|
41957
|
+
});
|
|
41958
|
+
};
|
|
41959
|
+
toggle.append(icon('chevron'));
|
|
41960
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(toggle, 'aria-expanded', false);
|
|
41961
|
+
heading.textContent = jodit.i18n('On this page');
|
|
41962
|
+
list.appendChild(heading);
|
|
41963
|
+
dropdown.setContent(list);
|
|
41964
|
+
anchors.forEach((anchor)=>{
|
|
41965
|
+
const name = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchorName)(anchor);
|
|
41966
|
+
const text = textAfter(jodit, anchor) || name;
|
|
41967
|
+
const item = c.element('button', {
|
|
41968
|
+
type: 'button',
|
|
41969
|
+
tabindex: -1,
|
|
41970
|
+
class: 'jodit-link-anchors__item'
|
|
41971
|
+
});
|
|
41972
|
+
items.push(item);
|
|
41973
|
+
const textBox = c.span('jodit-link-anchors__text');
|
|
41974
|
+
textBox.textContent = text;
|
|
41975
|
+
const nameBox = c.span('jodit-link-anchors__name');
|
|
41976
|
+
nameBox.textContent = '#' + name;
|
|
41977
|
+
item.append(icon('anchor'), textBox, nameBox);
|
|
41978
|
+
list.appendChild(item);
|
|
41979
|
+
jodit.e.on(item, 'click', ()=>{
|
|
41980
|
+
dropdown.close();
|
|
41981
|
+
url.value = '#' + name;
|
|
41982
|
+
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
41983
|
+
content.value = filled = text;
|
|
41984
|
+
}
|
|
41985
|
+
url.focus();
|
|
41986
|
+
});
|
|
41987
|
+
});
|
|
41988
|
+
// A press on the arrow closes the open list before the click
|
|
41989
|
+
let wasOpen = false;
|
|
41990
|
+
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', ()=>{
|
|
41991
|
+
wasOpen || dropdown.isOpened ? dropdown.close() : open();
|
|
41992
|
+
wasOpen = false;
|
|
41993
|
+
}).on(url, 'input.anchors', ()=>{
|
|
41994
|
+
if (url.value && !url.value.startsWith('#')) {
|
|
41995
|
+
dropdown.close();
|
|
41996
|
+
}
|
|
41997
|
+
}).on(url, 'keydown.anchors', (e)=>{
|
|
41998
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN) {
|
|
41999
|
+
e.preventDefault();
|
|
42000
|
+
open();
|
|
42001
|
+
items[0].focus();
|
|
42002
|
+
}
|
|
42003
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC && dropdown.isOpened) {
|
|
42004
|
+
e.stopPropagation();
|
|
42005
|
+
dropdown.close();
|
|
42006
|
+
}
|
|
42007
|
+
}).on(list, 'keydown', (e)=>{
|
|
42008
|
+
const index = items.indexOf(e.target);
|
|
42009
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_UP) {
|
|
42010
|
+
e.preventDefault();
|
|
42011
|
+
items[index + (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN ? 1 : -1)]?.focus();
|
|
42012
|
+
}
|
|
42013
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
42014
|
+
e.stopPropagation();
|
|
42015
|
+
dropdown.close();
|
|
42016
|
+
url.focus();
|
|
42017
|
+
}
|
|
42018
|
+
});
|
|
42019
|
+
// The URL input is destructed when the form closes
|
|
42020
|
+
input.hookStatus('destructed', ()=>{
|
|
42021
|
+
dropdown.destruct();
|
|
42022
|
+
jodit.e.off([
|
|
42023
|
+
toggle,
|
|
42024
|
+
list,
|
|
42025
|
+
...items
|
|
42026
|
+
]).off(url, '.anchors');
|
|
42027
|
+
});
|
|
42028
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.after(url, toggle);
|
|
42029
|
+
}
|
|
42030
|
+
/**
|
|
42031
|
+
* The words after an anchor in its block, which say where it is
|
|
42032
|
+
*/ function textAfter(jodit, anchor) {
|
|
42033
|
+
const range = jodit.ed.createRange();
|
|
42034
|
+
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);
|
|
42035
|
+
range.setStartAfter(anchor);
|
|
42036
|
+
const text = range.toString().replace(/\s+/g, ' ').trim();
|
|
42037
|
+
return text.length > 50 ? text.slice(0, 50).replace(/\s+\S*$/, '') + '…' : text;
|
|
42038
|
+
}
|
|
41448
42039
|
/**
|
|
41449
42040
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
41450
42041
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -41459,7 +42050,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
41459
42050
|
return value;
|
|
41460
42051
|
}
|
|
41461
42052
|
// email address -> mailto:
|
|
41462
|
-
if (
|
|
42053
|
+
if (_typed_link__WEBPACK_IMPORTED_MODULE_12__.EMAIL.test(value)) {
|
|
41463
42054
|
return `mailto:${value}`;
|
|
41464
42055
|
}
|
|
41465
42056
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -45982,8 +46573,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
45982
46573
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
45983
46574
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
45984
46575
|
/* harmony import */ var jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42259);
|
|
45985
|
-
/* harmony import */ var
|
|
45986
|
-
/* harmony import */ var
|
|
46576
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4099);
|
|
46577
|
+
/* harmony import */ var jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(98803);
|
|
46578
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(69070);
|
|
45987
46579
|
/*!
|
|
45988
46580
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45989
46581
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46003,12 +46595,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
46003
46595
|
|
|
46004
46596
|
|
|
46005
46597
|
|
|
46598
|
+
|
|
46006
46599
|
const key = 'table_processor_observer';
|
|
46007
46600
|
class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
46008
46601
|
/**
|
|
46009
46602
|
* Shortcut for Jodit.modules.Table
|
|
46010
46603
|
*/ get __tableModule() {
|
|
46011
|
-
return this.j.getInstance(
|
|
46604
|
+
return this.j.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_10__.Table, this.j.o);
|
|
46012
46605
|
}
|
|
46013
46606
|
afterInit(jodit) {
|
|
46014
46607
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -46095,7 +46688,28 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46095
46688
|
// As after a click, the first change to the cell keeps the mark
|
|
46096
46689
|
this.__selectedCell = cell;
|
|
46097
46690
|
this.__tableModule.addSelection(cell);
|
|
46098
|
-
this.j.e.fire('showPopup', table,
|
|
46691
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46692
|
+
}
|
|
46693
|
+
/**
|
|
46694
|
+
* The box round the marked cells, which their popup opens beside and
|
|
46695
|
+
* follows when its commands add, merge or replace cells
|
|
46696
|
+
*/ __markedBound() {
|
|
46697
|
+
const bounds = this.__tableModule.getAllSelectedCells().filter((cell)=>cell.isConnected).map((cell)=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.position)(cell, this.j));
|
|
46698
|
+
if (!bounds.length) {
|
|
46699
|
+
return {
|
|
46700
|
+
left: 0,
|
|
46701
|
+
top: 0,
|
|
46702
|
+
width: 0,
|
|
46703
|
+
height: 0
|
|
46704
|
+
};
|
|
46705
|
+
}
|
|
46706
|
+
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));
|
|
46707
|
+
return {
|
|
46708
|
+
left,
|
|
46709
|
+
top,
|
|
46710
|
+
width: right - left,
|
|
46711
|
+
height: bottom - top
|
|
46712
|
+
};
|
|
46099
46713
|
}
|
|
46100
46714
|
/**
|
|
46101
46715
|
* Mouse click inside the table
|
|
@@ -46119,7 +46733,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46119
46733
|
this.__selectedCell = cell;
|
|
46120
46734
|
this.j.s.sel?.removeAllRanges();
|
|
46121
46735
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
46122
|
-
this.j.e.fire('showPopup', table,
|
|
46736
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46123
46737
|
} else {
|
|
46124
46738
|
this.j.e.fire('hidePopup', 'cells');
|
|
46125
46739
|
}
|
|
@@ -46166,8 +46780,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46166
46780
|
return false;
|
|
46167
46781
|
}
|
|
46168
46782
|
}
|
|
46783
|
+
onPress(e) {
|
|
46784
|
+
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));
|
|
46785
|
+
}
|
|
46169
46786
|
onChange() {
|
|
46170
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
46787
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
46171
46788
|
this.__onRemoveSelection();
|
|
46172
46789
|
}
|
|
46173
46790
|
}
|
|
@@ -46278,15 +46895,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46278
46895
|
if (!min || !max) {
|
|
46279
46896
|
return;
|
|
46280
46897
|
}
|
|
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');
|
|
46898
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46290
46899
|
}
|
|
46291
46900
|
__stopListening() {
|
|
46292
46901
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -46399,6 +47008,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46399
47008
|
this.__toggleHeaderRow(table, cells);
|
|
46400
47009
|
break;
|
|
46401
47010
|
}
|
|
47011
|
+
// A split unmarks the cells. They stay marked, as after the
|
|
47012
|
+
// other commands, so their popup stays beside them
|
|
47013
|
+
if (/^split/.test(command)) {
|
|
47014
|
+
cells.forEach((cell)=>this.__tableModule.addSelection(cell));
|
|
47015
|
+
}
|
|
46402
47016
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
46403
47017
|
this.__removeTable(table);
|
|
46404
47018
|
}
|
|
@@ -46421,10 +47035,6 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46421
47035
|
module.addSelection(next);
|
|
46422
47036
|
}
|
|
46423
47037
|
});
|
|
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
47038
|
}
|
|
46429
47039
|
/**
|
|
46430
47040
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -46483,7 +47093,10 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46483
47093
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__movedTo", null), /**
|
|
46484
47094
|
* A drag let go outside the table ends in a click on the editor, which
|
|
46485
47095
|
* would unmark its cells
|
|
46486
|
-
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keepMarks", false)
|
|
47096
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__keepMarks", false), /**
|
|
47097
|
+
* The last press or key went to a popup, as to the cell popup's own
|
|
47098
|
+
* controls, whose changes keep the cells marked
|
|
47099
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__inPopup", false);
|
|
46487
47100
|
}
|
|
46488
47101
|
}
|
|
46489
47102
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(selectCells, "requires", [
|
|
@@ -46495,6 +47108,9 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46495
47108
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46496
47109
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':keyup')
|
|
46497
47110
|
], selectCells.prototype, "onKeyUp", null);
|
|
47111
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47112
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
47113
|
+
], selectCells.prototype, "__markedBound", null);
|
|
46498
47114
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46499
47115
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46500
47116
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -46510,6 +47126,16 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46510
47126
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46511
47127
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46512
47128
|
], selectCells.prototype, "__onClickAfterDrag", null);
|
|
47129
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47130
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47131
|
+
'ow:mousedown',
|
|
47132
|
+
'ow:touchstart',
|
|
47133
|
+
'ow:keydown',
|
|
47134
|
+
':mousedown',
|
|
47135
|
+
':touchstart',
|
|
47136
|
+
':keydown'
|
|
47137
|
+
])
|
|
47138
|
+
], selectCells.prototype, "onPress", null);
|
|
46513
47139
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46514
47140
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':change')
|
|
46515
47141
|
], selectCells.prototype, "onChange", null);
|
|
@@ -46563,9 +47189,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46563
47189
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
46564
47190
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88475);
|
|
46565
47191
|
/* 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
|
|
47192
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4040);
|
|
47193
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28723);
|
|
47194
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(91206);
|
|
47195
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4099);
|
|
47196
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47670);
|
|
46569
47197
|
/*!
|
|
46570
47198
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
46571
47199
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46585,6 +47213,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46585
47213
|
|
|
46586
47214
|
|
|
46587
47215
|
|
|
47216
|
+
|
|
47217
|
+
|
|
47218
|
+
const MEDIA = 'video, iframe, audio, object, embed';
|
|
47219
|
+
// The shade the browsers lay over a selected image: #b5d6fd on white
|
|
47220
|
+
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
47221
|
/**
|
|
46589
47222
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
46590
47223
|
*
|
|
@@ -46595,7 +47228,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46595
47228
|
* console.log(img.src);
|
|
46596
47229
|
* })
|
|
46597
47230
|
* ```
|
|
46598
|
-
*/ class select extends
|
|
47231
|
+
*/ class select extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_10__.Plugin {
|
|
46599
47232
|
afterInit(jodit) {
|
|
46600
47233
|
this.proxyEventsList.forEach((eventName)=>{
|
|
46601
47234
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -46603,6 +47236,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46603
47236
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
46604
47237
|
top: true
|
|
46605
47238
|
});
|
|
47239
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
46606
47240
|
}
|
|
46607
47241
|
beforeDestruct(jodit) {
|
|
46608
47242
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -46610,6 +47244,38 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46610
47244
|
});
|
|
46611
47245
|
this.__endPressBesideRow();
|
|
46612
47246
|
jodit.e.off('dblclick', this.__onDblClickBesideRow);
|
|
47247
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
47248
|
+
}
|
|
47249
|
+
/**
|
|
47250
|
+
* The browsers shade an image in the selection, but Chrome doesn't shade
|
|
47251
|
+
* a video with controls, or one in a `jodit-media` wrapper, so a selection
|
|
47252
|
+
* that took one in didn't show it, and typing deleted it unseen (#1768).
|
|
47253
|
+
* The media gets the same shade from a filter, in place of the tint Safari
|
|
47254
|
+
* gives a block wrapper's whole line. It's a style in the editing
|
|
47255
|
+
* document, as selected cells get their border, so the content, and with
|
|
47256
|
+
* it the value, the history and a copy, doesn't change. Media a click
|
|
47257
|
+
* selected whole is left alone, as its resize frame shows it (#1528). A
|
|
47258
|
+
* change, read-only and the source mode redo or drop the style, as the
|
|
47259
|
+
* selection may not change with them, and the style's paths could then
|
|
47260
|
+
* fit other elements
|
|
47261
|
+
*/ __markSelectedMedia() {
|
|
47262
|
+
const { s, editor, o } = this.j;
|
|
47263
|
+
const range = s.sel?.rangeCount ? s.sel.getRangeAt(0) : null;
|
|
47264
|
+
const rules = [];
|
|
47265
|
+
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)) {
|
|
47266
|
+
uneditableIn(range, editor).forEach((elm)=>{
|
|
47267
|
+
const media = elm.querySelector(MEDIA);
|
|
47268
|
+
const wrapper = (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__.cssPath)(elm);
|
|
47269
|
+
if (media && wrapper) {
|
|
47270
|
+
rules.push(`${wrapper}::selection,${wrapper} ::selection{background:transparent}`, `${(0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_9__.cssPath)(media)}{filter:${SHADE}}`);
|
|
47271
|
+
}
|
|
47272
|
+
});
|
|
47273
|
+
}
|
|
47274
|
+
const style = rules.join('');
|
|
47275
|
+
if (style !== this.__selectedMediaStyle) {
|
|
47276
|
+
this.__selectedMediaStyle = style;
|
|
47277
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.getContainer)(this.j, select, 'style', true).textContent = style;
|
|
47278
|
+
}
|
|
46613
47279
|
}
|
|
46614
47280
|
onStartSelection(e) {
|
|
46615
47281
|
const { j } = this;
|
|
@@ -46635,10 +47301,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46635
47301
|
}
|
|
46636
47302
|
// Selecting the text of a popup input with the mouse and releasing
|
|
46637
47303
|
// the button past the popup's edge is not a click outside of it.
|
|
46638
|
-
if (pressed &&
|
|
47304
|
+
if (pressed && jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIElement.closestElement(pressed, jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.Popup)) {
|
|
47305
|
+
return;
|
|
47306
|
+
}
|
|
47307
|
+
// An item of a list that closed once it was chosen was in a popup
|
|
47308
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isNode(node) && !node.isConnected) {
|
|
46639
47309
|
return;
|
|
46640
47310
|
}
|
|
46641
|
-
const box =
|
|
47311
|
+
const box = jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIElement.closestElement(node, jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.Popup);
|
|
46642
47312
|
if (!box) {
|
|
46643
47313
|
this.j.e.fire('outsideClick', e);
|
|
46644
47314
|
}
|
|
@@ -46843,6 +47513,75 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46843
47513
|
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
47514
|
}
|
|
46845
47515
|
}
|
|
47516
|
+
/**
|
|
47517
|
+
* A double click past the end of a line selects only its line break, up
|
|
47518
|
+
* to the start of the next line a caret can go on. The browsers show no
|
|
47519
|
+
* caret for it, and typing replaces the break, joining the lines and
|
|
47520
|
+
* taking any video in between with it (#1768). Put the caret at the end
|
|
47521
|
+
* of the line instead
|
|
47522
|
+
*/ onDblClickPastLineEnd() {
|
|
47523
|
+
const { s, editor, o } = this.j;
|
|
47524
|
+
const range = s.range;
|
|
47525
|
+
if (o.readonly || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(editor, range.commonAncestorContainer) || !isLineBreak(range, editor)) {
|
|
47526
|
+
return;
|
|
47527
|
+
}
|
|
47528
|
+
range.collapse(true);
|
|
47529
|
+
s.selectRange(range);
|
|
47530
|
+
}
|
|
47531
|
+
/**
|
|
47532
|
+
* The browsers have no caret position beside an uneditable block alone
|
|
47533
|
+
* on its line, such as a video, so a drag that ends on its line runs on
|
|
47534
|
+
* past it, and typing deletes it (#1768). Until the pointer has passed
|
|
47535
|
+
* the block, the selection stops at the last caret place in the block
|
|
47536
|
+
* before its line, or for a drag upwards at the first in the block after
|
|
47537
|
+
*/ onMouseUpOnUneditableLine(e) {
|
|
47538
|
+
const { s, editor, o } = this.j;
|
|
47539
|
+
const { sel } = s;
|
|
47540
|
+
if (o.readonly || !sel?.rangeCount || sel.isCollapsed) {
|
|
47541
|
+
return;
|
|
47542
|
+
}
|
|
47543
|
+
const range = sel.getRangeAt(0).cloneRange();
|
|
47544
|
+
// A video or image Jodit selected itself on the press
|
|
47545
|
+
if (isElementSelection(range)) {
|
|
47546
|
+
return;
|
|
47547
|
+
}
|
|
47548
|
+
const forward = sel.anchorNode === range.startContainer && sel.anchorOffset === range.startOffset;
|
|
47549
|
+
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)));
|
|
47550
|
+
const isAhead = (line)=>{
|
|
47551
|
+
const box = line.getBoundingClientRect();
|
|
47552
|
+
return forward ? e.clientY < box.bottom : e.clientY > box.top;
|
|
47553
|
+
};
|
|
47554
|
+
const line = forward ? lines.find(isAhead) : lines.reverse().find(isAhead);
|
|
47555
|
+
if (!line) {
|
|
47556
|
+
return;
|
|
47557
|
+
}
|
|
47558
|
+
// Where a caret can go: in text, or before a <br>
|
|
47559
|
+
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');
|
|
47560
|
+
// Only the block beside the line, not one further on
|
|
47561
|
+
const beside = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.findNotEmptySibling(line, forward);
|
|
47562
|
+
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;
|
|
47563
|
+
if (!place) {
|
|
47564
|
+
return;
|
|
47565
|
+
}
|
|
47566
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(place)) {
|
|
47567
|
+
if (forward) {
|
|
47568
|
+
range.setEnd(place, place.nodeValue?.length ?? 0);
|
|
47569
|
+
} else {
|
|
47570
|
+
range.setStart(place, 0);
|
|
47571
|
+
}
|
|
47572
|
+
} else if (forward) {
|
|
47573
|
+
range.setEndBefore(place);
|
|
47574
|
+
} else {
|
|
47575
|
+
range.setStartBefore(place);
|
|
47576
|
+
}
|
|
47577
|
+
// The drag's start stays the anchor
|
|
47578
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
47579
|
+
if (forward) {
|
|
47580
|
+
sel.setBaseAndExtent(startContainer, startOffset, endContainer, endOffset);
|
|
47581
|
+
} else {
|
|
47582
|
+
sel.setBaseAndExtent(endContainer, endOffset, startContainer, startOffset);
|
|
47583
|
+
}
|
|
47584
|
+
}
|
|
46846
47585
|
onCopyNormalizeSelectionBound(e) {
|
|
46847
47586
|
const { s, editor, o } = this.j;
|
|
46848
47587
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -46860,7 +47599,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46860
47599
|
'touchstart',
|
|
46861
47600
|
'mouseup',
|
|
46862
47601
|
'touchend'
|
|
46863
|
-
]), /**
|
|
47602
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__selectedMediaStyle", ''), /**
|
|
46864
47603
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
46865
47604
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
46866
47605
|
* press inside a popup is remembered to tell such a drag from a real click.
|
|
@@ -46871,6 +47610,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46871
47610
|
}
|
|
46872
47611
|
}
|
|
46873
47612
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47613
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47614
|
+
':change',
|
|
47615
|
+
':readonly',
|
|
47616
|
+
':afterSetMode'
|
|
47617
|
+
]),
|
|
47618
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
47619
|
+
], select.prototype, "__markSelectedMedia", null);
|
|
47620
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46874
47621
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46875
47622
|
], select.prototype, "onStartSelection", null);
|
|
46876
47623
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
@@ -46919,12 +47666,82 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46919
47666
|
':click'
|
|
46920
47667
|
])
|
|
46921
47668
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|
|
47669
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47670
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47671
|
+
':dblclick'
|
|
47672
|
+
])
|
|
47673
|
+
], select.prototype, "onDblClickPastLineEnd", null);
|
|
47674
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
47675
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
47676
|
+
':mouseup'
|
|
47677
|
+
])
|
|
47678
|
+
], select.prototype, "onMouseUpOnUneditableLine", null);
|
|
46922
47679
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46923
47680
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
46924
47681
|
':copy',
|
|
46925
47682
|
':cut'
|
|
46926
47683
|
])
|
|
46927
47684
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
|
47685
|
+
const isUneditable = (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(node) && node.getAttribute('contenteditable') === 'false';
|
|
47686
|
+
/**
|
|
47687
|
+
* The text a node shows outside its uneditable elements, whose own text, as
|
|
47688
|
+
* a video's fallback text, isn't on the line
|
|
47689
|
+
*/ 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('');
|
|
47690
|
+
/**
|
|
47691
|
+
* The uneditable elements the range holds whole, without those inside
|
|
47692
|
+
* another. Only those under the range's common ancestor can be, and none
|
|
47693
|
+
* when that's a text node, as along one line of a drag
|
|
47694
|
+
*/ function uneditableIn(range, root) {
|
|
47695
|
+
const box = range.commonAncestorContainer;
|
|
47696
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(box)) {
|
|
47697
|
+
return [];
|
|
47698
|
+
}
|
|
47699
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(box.querySelectorAll('[contenteditable="false"]')).filter((elm)=>{
|
|
47700
|
+
if (!range.intersectsNode(elm)) {
|
|
47701
|
+
return false;
|
|
47702
|
+
}
|
|
47703
|
+
const own = elm.ownerDocument.createRange();
|
|
47704
|
+
own.selectNode(elm);
|
|
47705
|
+
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);
|
|
47706
|
+
});
|
|
47707
|
+
}
|
|
47708
|
+
/**
|
|
47709
|
+
* The range holds one element and nothing else, as a selected image does
|
|
47710
|
+
*/ function isElementSelection(range) {
|
|
47711
|
+
const { startContainer, startOffset, endContainer, endOffset } = range;
|
|
47712
|
+
return startContainer === endContainer && endOffset - startOffset === 1 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(startContainer.childNodes[startOffset]);
|
|
47713
|
+
}
|
|
47714
|
+
/**
|
|
47715
|
+
* The range holds a line end and nothing else: no characters but
|
|
47716
|
+
* whitespace, and no element whole but a `<br>` or a line a caret can't go
|
|
47717
|
+
* on, as a video's. It ends in another block, or holds the `<br>`
|
|
47718
|
+
*/ function isLineBreak(range, root) {
|
|
47719
|
+
const { startContainer, endContainer } = range;
|
|
47720
|
+
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()))) {
|
|
47721
|
+
return false;
|
|
47722
|
+
}
|
|
47723
|
+
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);
|
|
47724
|
+
const holdsBreaksOnly = (node)=>{
|
|
47725
|
+
if (!range.intersectsNode(node)) {
|
|
47726
|
+
return true;
|
|
47727
|
+
}
|
|
47728
|
+
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)) {
|
|
47729
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(node.childNodes).every(holdsBreaksOnly);
|
|
47730
|
+
}
|
|
47731
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(node, 'br')) {
|
|
47732
|
+
crossesLineEnd = true;
|
|
47733
|
+
return true;
|
|
47734
|
+
}
|
|
47735
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) || isCaretless(node);
|
|
47736
|
+
};
|
|
47737
|
+
return holdsBreaksOnly(range.commonAncestorContainer) && crossesLineEnd;
|
|
47738
|
+
}
|
|
47739
|
+
/**
|
|
47740
|
+
* An uneditable element, or a block holding one and nothing else
|
|
47741
|
+
*/ function isCaretless(node) {
|
|
47742
|
+
const children = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(node.childNodes);
|
|
47743
|
+
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));
|
|
47744
|
+
}
|
|
46928
47745
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('select', select);
|
|
46929
47746
|
|
|
46930
47747
|
|
|
@@ -50464,12 +51281,12 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50464
51281
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
|
|
50465
51282
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
50466
51283
|
/* 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
|
|
51284
|
+
/* harmony import */ var jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23599);
|
|
51285
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71125);
|
|
51286
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18855);
|
|
51287
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
|
|
51288
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51116);
|
|
51289
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7042);
|
|
50473
51290
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18762);
|
|
50474
51291
|
/* harmony import */ var _ui_ui_video_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(83533);
|
|
50475
51292
|
/* harmony import */ var _readers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(39057);
|
|
@@ -50508,7 +51325,7 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50508
51325
|
* ```javascript
|
|
50509
51326
|
* editor.events.fire('openVideoProperties', video);
|
|
50510
51327
|
* ```
|
|
50511
|
-
*/ class videoProperties extends
|
|
51328
|
+
*/ class videoProperties extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
50512
51329
|
get __size() {
|
|
50513
51330
|
const { width, height } = this.state.values;
|
|
50514
51331
|
return `${width}x${height}`;
|
|
@@ -50547,15 +51364,15 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50547
51364
|
],
|
|
50548
51365
|
buttons.check
|
|
50549
51366
|
]);
|
|
50550
|
-
(0,
|
|
51367
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_6__.markOwner)(j, dialog.container);
|
|
50551
51368
|
return dialog;
|
|
50552
51369
|
}
|
|
50553
51370
|
get __buttons() {
|
|
50554
51371
|
const { j } = this;
|
|
50555
51372
|
return {
|
|
50556
|
-
check: (0,
|
|
50557
|
-
remove: (0,
|
|
50558
|
-
cancel: (0,
|
|
51373
|
+
check: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'ok', 'Apply', 'primary'),
|
|
51374
|
+
remove: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'bin', 'Delete'),
|
|
51375
|
+
cancel: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.Button)(j, 'cancel', 'Cancel')
|
|
50559
51376
|
};
|
|
50560
51377
|
}
|
|
50561
51378
|
/**
|
|
@@ -50580,25 +51397,27 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50580
51397
|
}
|
|
50581
51398
|
__openPosterPopup(button) {
|
|
50582
51399
|
const { j, state } = this;
|
|
50583
|
-
const popup = new
|
|
51400
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.dialog);
|
|
50584
51401
|
const close = ()=>{
|
|
50585
51402
|
popup.close();
|
|
50586
51403
|
popup.destruct();
|
|
50587
51404
|
};
|
|
50588
51405
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__.FileSelectorWidget)(j, {
|
|
50589
51406
|
upload: (data)=>{
|
|
50590
|
-
|
|
50591
|
-
|
|
51407
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__.getItems)(data);
|
|
51408
|
+
if (item) {
|
|
51409
|
+
state.values.poster = data.baseurl + item.file;
|
|
50592
51410
|
}
|
|
50593
51411
|
close();
|
|
50594
51412
|
},
|
|
50595
51413
|
filebrowser: (data)=>{
|
|
50596
|
-
|
|
50597
|
-
|
|
51414
|
+
const [item] = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_10__.getItems)(data);
|
|
51415
|
+
if (item) {
|
|
51416
|
+
state.values.poster = item.file;
|
|
50598
51417
|
close();
|
|
50599
51418
|
}
|
|
50600
51419
|
}
|
|
50601
|
-
}, null, close)).open(()=>(0,
|
|
51420
|
+
}, null, close)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_5__.position)(button));
|
|
50602
51421
|
}
|
|
50603
51422
|
/** @override */ afterInit() {}
|
|
50604
51423
|
/** @override */ beforeDestruct() {
|
|
@@ -50748,9 +51567,10 @@ function setFlag(media, name, on) {
|
|
|
50748
51567
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5658);
|
|
50749
51568
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29434);
|
|
50750
51569
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
|
|
50751
|
-
/* harmony import */ var
|
|
50752
|
-
/* harmony import */ var
|
|
50753
|
-
/* harmony import */ var
|
|
51570
|
+
/* harmony import */ var jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7042);
|
|
51571
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15753);
|
|
51572
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36339);
|
|
51573
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
50754
51574
|
/*!
|
|
50755
51575
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50756
51576
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -50764,11 +51584,13 @@ function setFlag(media, name, on) {
|
|
|
50764
51584
|
|
|
50765
51585
|
|
|
50766
51586
|
|
|
51587
|
+
|
|
50767
51588
|
function insertVideos(data) {
|
|
50768
|
-
data
|
|
51589
|
+
const { baseurl } = data;
|
|
51590
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
50769
51591
|
this.s.insertNode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
50770
51592
|
controls: '',
|
|
50771
|
-
src:
|
|
51593
|
+
src: baseurl + file
|
|
50772
51594
|
})));
|
|
50773
51595
|
});
|
|
50774
51596
|
}
|
|
@@ -50778,7 +51600,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
50778
51600
|
defaultHeight: 345,
|
|
50779
51601
|
defaultHandlerSuccess: insertVideos
|
|
50780
51602
|
};
|
|
50781
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (
|
|
51603
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
50782
51604
|
/**
|
|
50783
51605
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
50784
51606
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -50824,7 +51646,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50824
51646
|
const { uploader } = jodit.o;
|
|
50825
51647
|
// Base64 alone would put whole video files into the content
|
|
50826
51648
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
50827
|
-
tabs.push((0,
|
|
51649
|
+
tabs.push((0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
50828
51650
|
run(()=>(jodit.o.video?.defaultHandlerSuccess ?? insertVideos).call(jodit, data));
|
|
50829
51651
|
}, {
|
|
50830
51652
|
label: 'Drop file',
|
|
@@ -50849,7 +51671,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50849
51671
|
formCode.onSubmit((data)=>{
|
|
50850
51672
|
insertCode(data.code);
|
|
50851
51673
|
});
|
|
50852
|
-
const box = (0,
|
|
51674
|
+
const box = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
50853
51675
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
50854
51676
|
// "Upload" doesn't fit a third of the popup
|
|
50855
51677
|
box.classList.add('jodit-file-selector');
|
|
@@ -51246,94 +52068,97 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('xpath', xpath);
|
|
|
51246
52068
|
"use strict";
|
|
51247
52069
|
__webpack_require__.r(__webpack_exports__);
|
|
51248
52070
|
/* 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
|
|
52071
|
+
/* harmony export */ anchor: function() { return /* reexport default from dynamic */ _anchor_svg__WEBPACK_IMPORTED_MODULE_0___default.a; },
|
|
52072
|
+
/* harmony export */ angle_down: function() { return /* reexport default from dynamic */ _angle_down_svg__WEBPACK_IMPORTED_MODULE_1___default.a; },
|
|
52073
|
+
/* harmony export */ angle_left: function() { return /* reexport default from dynamic */ _angle_left_svg__WEBPACK_IMPORTED_MODULE_2___default.a; },
|
|
52074
|
+
/* harmony export */ angle_right: function() { return /* reexport default from dynamic */ _angle_right_svg__WEBPACK_IMPORTED_MODULE_3___default.a; },
|
|
52075
|
+
/* harmony export */ angle_up: function() { return /* reexport default from dynamic */ _angle_up_svg__WEBPACK_IMPORTED_MODULE_4___default.a; },
|
|
52076
|
+
/* harmony export */ bin: function() { return /* reexport default from dynamic */ _bin_svg__WEBPACK_IMPORTED_MODULE_5___default.a; },
|
|
52077
|
+
/* harmony export */ cancel: function() { return /* reexport default from dynamic */ _cancel_svg__WEBPACK_IMPORTED_MODULE_6___default.a; },
|
|
52078
|
+
/* harmony export */ center: function() { return /* reexport default from dynamic */ _center_svg__WEBPACK_IMPORTED_MODULE_7___default.a; },
|
|
52079
|
+
/* harmony export */ check: function() { return /* reexport default from dynamic */ _check_svg__WEBPACK_IMPORTED_MODULE_8___default.a; },
|
|
52080
|
+
/* harmony export */ chevron: function() { return /* reexport default from dynamic */ _chevron_svg__WEBPACK_IMPORTED_MODULE_9___default.a; },
|
|
52081
|
+
/* harmony export */ dots: function() { return /* reexport default from dynamic */ _dots_svg__WEBPACK_IMPORTED_MODULE_10___default.a; },
|
|
52082
|
+
/* harmony export */ download: function() { return /* reexport default from dynamic */ _download_svg__WEBPACK_IMPORTED_MODULE_11___default.a; },
|
|
52083
|
+
/* harmony export */ eraser: function() { return /* reexport default from dynamic */ _eraser_svg__WEBPACK_IMPORTED_MODULE_12___default.a; },
|
|
52084
|
+
/* harmony export */ eye: function() { return /* reexport default from dynamic */ _eye_svg__WEBPACK_IMPORTED_MODULE_13___default.a; },
|
|
52085
|
+
/* harmony export */ file: function() { return /* reexport default from dynamic */ _file_svg__WEBPACK_IMPORTED_MODULE_14___default.a; },
|
|
52086
|
+
/* harmony export */ folder: function() { return /* reexport default from dynamic */ _folder_svg__WEBPACK_IMPORTED_MODULE_15___default.a; },
|
|
52087
|
+
/* harmony export */ info_circle: function() { return /* reexport default from dynamic */ _info_circle_svg__WEBPACK_IMPORTED_MODULE_16___default.a; },
|
|
52088
|
+
/* harmony export */ left: function() { return /* reexport default from dynamic */ _left_svg__WEBPACK_IMPORTED_MODULE_17___default.a; },
|
|
52089
|
+
/* harmony export */ lock: function() { return /* reexport default from dynamic */ _lock_svg__WEBPACK_IMPORTED_MODULE_18___default.a; },
|
|
52090
|
+
/* harmony export */ ok: function() { return /* reexport default from dynamic */ _ok_svg__WEBPACK_IMPORTED_MODULE_19___default.a; },
|
|
52091
|
+
/* harmony export */ pencil: function() { return /* reexport default from dynamic */ _pencil_svg__WEBPACK_IMPORTED_MODULE_20___default.a; },
|
|
52092
|
+
/* harmony export */ plus: function() { return /* reexport default from dynamic */ _plus_svg__WEBPACK_IMPORTED_MODULE_21___default.a; },
|
|
52093
|
+
/* harmony export */ resize_handler: function() { return /* reexport default from dynamic */ _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22___default.a; },
|
|
52094
|
+
/* harmony export */ right: function() { return /* reexport default from dynamic */ _right_svg__WEBPACK_IMPORTED_MODULE_23___default.a; },
|
|
52095
|
+
/* harmony export */ save: function() { return /* reexport default from dynamic */ _save_svg__WEBPACK_IMPORTED_MODULE_24___default.a; },
|
|
52096
|
+
/* harmony export */ settings: function() { return /* reexport default from dynamic */ _settings_svg__WEBPACK_IMPORTED_MODULE_25___default.a; },
|
|
52097
|
+
/* harmony export */ unlock: function() { return /* reexport default from dynamic */ _unlock_svg__WEBPACK_IMPORTED_MODULE_26___default.a; },
|
|
52098
|
+
/* harmony export */ update: function() { return /* reexport default from dynamic */ _update_svg__WEBPACK_IMPORTED_MODULE_27___default.a; },
|
|
52099
|
+
/* harmony export */ upload: function() { return /* reexport default from dynamic */ _upload_svg__WEBPACK_IMPORTED_MODULE_28___default.a; },
|
|
52100
|
+
/* harmony export */ valign: function() { return /* reexport default from dynamic */ _valign_svg__WEBPACK_IMPORTED_MODULE_29___default.a; }
|
|
52101
|
+
/* harmony export */ });
|
|
52102
|
+
/* harmony import */ var _anchor_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61420);
|
|
52103
|
+
/* harmony import */ var _anchor_svg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_anchor_svg__WEBPACK_IMPORTED_MODULE_0__);
|
|
52104
|
+
/* harmony import */ var _angle_down_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88497);
|
|
52105
|
+
/* harmony import */ var _angle_down_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angle_down_svg__WEBPACK_IMPORTED_MODULE_1__);
|
|
52106
|
+
/* harmony import */ var _angle_left_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91882);
|
|
52107
|
+
/* harmony import */ var _angle_left_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angle_left_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
52108
|
+
/* harmony import */ var _angle_right_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14305);
|
|
52109
|
+
/* harmony import */ var _angle_right_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angle_right_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
52110
|
+
/* harmony import */ var _angle_up_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(58446);
|
|
52111
|
+
/* harmony import */ var _angle_up_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angle_up_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
52112
|
+
/* harmony import */ var _bin_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39858);
|
|
52113
|
+
/* harmony import */ var _bin_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_bin_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
52114
|
+
/* harmony import */ var _cancel_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70881);
|
|
52115
|
+
/* harmony import */ var _cancel_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_cancel_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
52116
|
+
/* harmony import */ var _center_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(60636);
|
|
52117
|
+
/* harmony import */ var _center_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_center_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
52118
|
+
/* harmony import */ var _check_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(32013);
|
|
52119
|
+
/* harmony import */ var _check_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_check_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
52120
|
+
/* harmony import */ var _chevron_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45512);
|
|
52121
|
+
/* harmony import */ var _chevron_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_chevron_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
52122
|
+
/* harmony import */ var _dots_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80347);
|
|
52123
|
+
/* harmony import */ var _dots_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_dots_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
52124
|
+
/* harmony import */ var _download_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91099);
|
|
52125
|
+
/* harmony import */ var _download_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_download_svg__WEBPACK_IMPORTED_MODULE_11__);
|
|
52126
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28967);
|
|
52127
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_12__);
|
|
52128
|
+
/* harmony import */ var _eye_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95134);
|
|
52129
|
+
/* harmony import */ var _eye_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_eye_svg__WEBPACK_IMPORTED_MODULE_13__);
|
|
52130
|
+
/* harmony import */ var _file_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70697);
|
|
52131
|
+
/* harmony import */ var _file_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_file_svg__WEBPACK_IMPORTED_MODULE_14__);
|
|
52132
|
+
/* harmony import */ var _folder_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(49983);
|
|
52133
|
+
/* harmony import */ var _folder_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_folder_svg__WEBPACK_IMPORTED_MODULE_15__);
|
|
52134
|
+
/* harmony import */ var _info_circle_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(98964);
|
|
52135
|
+
/* harmony import */ var _info_circle_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_info_circle_svg__WEBPACK_IMPORTED_MODULE_16__);
|
|
52136
|
+
/* harmony import */ var _left_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(8136);
|
|
52137
|
+
/* harmony import */ var _left_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_left_svg__WEBPACK_IMPORTED_MODULE_17__);
|
|
52138
|
+
/* harmony import */ var _lock_svg__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(94806);
|
|
52139
|
+
/* harmony import */ var _lock_svg__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_lock_svg__WEBPACK_IMPORTED_MODULE_18__);
|
|
52140
|
+
/* harmony import */ var _ok_svg__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(31365);
|
|
52141
|
+
/* harmony import */ var _ok_svg__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ok_svg__WEBPACK_IMPORTED_MODULE_19__);
|
|
52142
|
+
/* harmony import */ var _pencil_svg__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(44636);
|
|
52143
|
+
/* harmony import */ var _pencil_svg__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_pencil_svg__WEBPACK_IMPORTED_MODULE_20__);
|
|
52144
|
+
/* harmony import */ var _plus_svg__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(36327);
|
|
52145
|
+
/* harmony import */ var _plus_svg__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_plus_svg__WEBPACK_IMPORTED_MODULE_21__);
|
|
52146
|
+
/* harmony import */ var _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(53328);
|
|
52147
|
+
/* harmony import */ var _resize_handler_svg__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_resize_handler_svg__WEBPACK_IMPORTED_MODULE_22__);
|
|
52148
|
+
/* harmony import */ var _right_svg__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98711);
|
|
52149
|
+
/* harmony import */ var _right_svg__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_right_svg__WEBPACK_IMPORTED_MODULE_23__);
|
|
52150
|
+
/* harmony import */ var _save_svg__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(53808);
|
|
52151
|
+
/* harmony import */ var _save_svg__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_save_svg__WEBPACK_IMPORTED_MODULE_24__);
|
|
52152
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(20784);
|
|
52153
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_settings_svg__WEBPACK_IMPORTED_MODULE_25__);
|
|
52154
|
+
/* harmony import */ var _unlock_svg__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(70999);
|
|
52155
|
+
/* harmony import */ var _unlock_svg__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_unlock_svg__WEBPACK_IMPORTED_MODULE_26__);
|
|
52156
|
+
/* harmony import */ var _update_svg__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(45244);
|
|
52157
|
+
/* harmony import */ var _update_svg__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_update_svg__WEBPACK_IMPORTED_MODULE_27__);
|
|
52158
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(99876);
|
|
52159
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_upload_svg__WEBPACK_IMPORTED_MODULE_28__);
|
|
52160
|
+
/* harmony import */ var _valign_svg__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(14006);
|
|
52161
|
+
/* harmony import */ var _valign_svg__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_valign_svg__WEBPACK_IMPORTED_MODULE_29__);
|
|
51337
52162
|
/*!
|
|
51338
52163
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
51339
52164
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -51372,6 +52197,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51372
52197
|
|
|
51373
52198
|
|
|
51374
52199
|
|
|
52200
|
+
|
|
51375
52201
|
|
|
51376
52202
|
|
|
51377
52203
|
/***/ }),
|
|
@@ -51386,7 +52212,7 @@ module.exports["default"] = {"Type something":"Start writing...","pencil":"Edit"
|
|
|
51386
52212
|
/***/ 53414:
|
|
51387
52213
|
/***/ (function(module) {
|
|
51388
52214
|
|
|
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"]
|
|
52215
|
+
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
52216
|
|
|
51391
52217
|
/***/ }),
|
|
51392
52218
|
|
|
@@ -51761,6 +52587,13 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=
|
|
|
51761
52587
|
|
|
51762
52588
|
/***/ }),
|
|
51763
52589
|
|
|
52590
|
+
/***/ 61420:
|
|
52591
|
+
/***/ (function(module) {
|
|
52592
|
+
|
|
52593
|
+
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>"
|
|
52594
|
+
|
|
52595
|
+
/***/ }),
|
|
52596
|
+
|
|
51764
52597
|
/***/ 88497:
|
|
51765
52598
|
/***/ (function(module) {
|
|
51766
52599
|
|