jodit 4.19.12 → 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 +30 -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 +1583 -681
- 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 +1564 -678
- 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 +1514 -628
- 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 +1844 -791
- 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/global.d.ts +6 -0
- package/esm/core/global.js +21 -4
- package/esm/core/helpers/html/safe-html.js +26 -0
- 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.d.ts +4 -0
- package/esm/jodit.js +16 -15
- 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/languages.js +7 -1
- 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/global.d.ts +6 -0
- 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/jodit.d.ts +4 -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;
|
|
@@ -4780,16 +4780,18 @@ class EventHandlersStore {
|
|
|
4780
4780
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
4781
4781
|
/* harmony export */ });
|
|
4782
4782
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
|
|
4783
|
-
/* harmony import */ var
|
|
4784
|
-
/* harmony import */ var
|
|
4785
|
-
/* harmony import */ var
|
|
4786
|
-
/* harmony import */ var
|
|
4787
|
-
/* harmony import */ var
|
|
4788
|
-
/* harmony import */ var
|
|
4789
|
-
/* harmony import */ var
|
|
4790
|
-
/* harmony import */ var
|
|
4791
|
-
/* harmony import */ var
|
|
4792
|
-
/* harmony import */ var
|
|
4783
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
4784
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
|
|
4785
|
+
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31534);
|
|
4786
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74264);
|
|
4787
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7909);
|
|
4788
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80991);
|
|
4789
|
+
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(421);
|
|
4790
|
+
/* harmony import */ var jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78048);
|
|
4791
|
+
/* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(85305);
|
|
4792
|
+
/* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(42689);
|
|
4793
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(81937);
|
|
4794
|
+
/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27795);
|
|
4793
4795
|
/*!
|
|
4794
4796
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4795
4797
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4807,6 +4809,8 @@ class EventHandlersStore {
|
|
|
4807
4809
|
|
|
4808
4810
|
|
|
4809
4811
|
|
|
4812
|
+
|
|
4813
|
+
|
|
4810
4814
|
const instances = {};
|
|
4811
4815
|
let counter = 1;
|
|
4812
4816
|
const uuids = new Set();
|
|
@@ -4824,26 +4828,40 @@ const uuids = new Set();
|
|
|
4824
4828
|
uuids.add(uid);
|
|
4825
4829
|
return uid;
|
|
4826
4830
|
}
|
|
4827
|
-
const pluginSystem = new
|
|
4831
|
+
const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_9__.PluginSystem({
|
|
4828
4832
|
getContainer
|
|
4829
4833
|
});
|
|
4830
4834
|
const modules = {};
|
|
4831
|
-
|
|
4835
|
+
// A CommonJS pack imported as a namespace carries the dictionary in `default`; a translation of the word is a string
|
|
4836
|
+
const unwrapModule = (pack)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack) && (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack.default) ? pack.default : pack;
|
|
4837
|
+
/**
|
|
4838
|
+
* Merge language packs into the global `lang` registry
|
|
4839
|
+
*
|
|
4840
|
+
* `__proto__`, `constructor` and `prototype` are skipped on both levels, so a
|
|
4841
|
+
* pack parsed from untrusted JSON cannot reach `Object.prototype` (CWE-1321).
|
|
4842
|
+
*/ const extendLang = (langs)=>{
|
|
4832
4843
|
Object.keys(langs).forEach((key)=>{
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4844
|
+
const pack = unwrapModule(langs[key]);
|
|
4845
|
+
if ((0,jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(key) || !(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack)) {
|
|
4846
|
+
return;
|
|
4847
|
+
}
|
|
4848
|
+
if (!Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_11__.lang, key) || !(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key])) {
|
|
4849
|
+
_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key] = {};
|
|
4837
4850
|
}
|
|
4851
|
+
Object.keys(pack).forEach((name)=>{
|
|
4852
|
+
if (!(0,jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(name)) {
|
|
4853
|
+
_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key][name] = pack[name];
|
|
4854
|
+
}
|
|
4855
|
+
});
|
|
4838
4856
|
});
|
|
4839
4857
|
};
|
|
4840
4858
|
const boxes = new WeakMap();
|
|
4841
4859
|
/**
|
|
4842
4860
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
4843
4861
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
4844
|
-
const name = (0,
|
|
4862
|
+
const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_7__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
4845
4863
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
4846
|
-
const view = (0,
|
|
4864
|
+
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
4847
4865
|
let body;
|
|
4848
4866
|
if (!data[key]) {
|
|
4849
4867
|
let c = view.c;
|
|
@@ -4854,18 +4872,18 @@ const boxes = new WeakMap();
|
|
|
4854
4872
|
body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
4855
4873
|
}
|
|
4856
4874
|
const box = c.element(tag, {
|
|
4857
|
-
className: `jodit jodit-${(0,
|
|
4875
|
+
className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
|
|
4858
4876
|
});
|
|
4859
4877
|
// Let a strict CSP accept the injected <style>/<script> box
|
|
4860
4878
|
if (view.o.nonce && (tag === 'style' || tag === 'script')) {
|
|
4861
|
-
(0,
|
|
4879
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(box, 'nonce', view.o.nonce);
|
|
4862
4880
|
}
|
|
4863
4881
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
4864
|
-
|
|
4882
|
+
_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.append(body, box);
|
|
4865
4883
|
data[key] = box;
|
|
4866
4884
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
4867
4885
|
view.events.off(box);
|
|
4868
|
-
|
|
4886
|
+
_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.safeRemove(box);
|
|
4869
4887
|
delete data[key];
|
|
4870
4888
|
if (Object.keys(data).length) {
|
|
4871
4889
|
boxes.delete(jodit);
|
|
@@ -4882,15 +4900,15 @@ const boxes = new WeakMap();
|
|
|
4882
4900
|
* Get root element for view
|
|
4883
4901
|
* @internal
|
|
4884
4902
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
4885
|
-
return o.popupRoot ?? o.shadowRoot ??
|
|
4903
|
+
return o.popupRoot ?? o.shadowRoot ?? _dom__WEBPACK_IMPORTED_MODULE_12__.Dom.closest(container, (parentElement)=>_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.isTag(parentElement, 'dialog') || [
|
|
4886
4904
|
'fixed',
|
|
4887
4905
|
'absolute'
|
|
4888
|
-
].includes((0,
|
|
4906
|
+
].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
|
|
4889
4907
|
}
|
|
4890
4908
|
/**
|
|
4891
4909
|
* Global event emitter
|
|
4892
4910
|
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
4893
|
-
*/ const eventEmitter =
|
|
4911
|
+
*/ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
|
|
4894
4912
|
|
|
4895
4913
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
4896
4914
|
/* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
|
|
@@ -6478,6 +6496,22 @@ function isSmuggledForeignHtml(elm) {
|
|
|
6478
6496
|
'background',
|
|
6479
6497
|
'xlink:href'
|
|
6480
6498
|
];
|
|
6499
|
+
/**
|
|
6500
|
+
* SVG animation elements can write a URL attribute at run time, as
|
|
6501
|
+
* `<animate attributeName="href" values="javascript:…">` does, and the
|
|
6502
|
+
* attributes below carry the values they write.
|
|
6503
|
+
*/ const ANIMATION_TAGS = new Set([
|
|
6504
|
+
'animate',
|
|
6505
|
+
'set',
|
|
6506
|
+
'animatemotion',
|
|
6507
|
+
'animatetransform'
|
|
6508
|
+
]);
|
|
6509
|
+
const ANIMATION_VALUE_ATTRIBUTES = [
|
|
6510
|
+
'values',
|
|
6511
|
+
'from',
|
|
6512
|
+
'to',
|
|
6513
|
+
'by'
|
|
6514
|
+
];
|
|
6481
6515
|
/**
|
|
6482
6516
|
* Tags that load their URL as a *document* (scripts inside run). An SVG data
|
|
6483
6517
|
* URL is only an XSS vector here — as an `<img>` source it renders inertly.
|
|
@@ -6551,6 +6585,19 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError, removeEve
|
|
|
6551
6585
|
effected = true;
|
|
6552
6586
|
}
|
|
6553
6587
|
}
|
|
6588
|
+
// SMIL sets the attribute on click time, after the static check above:
|
|
6589
|
+
// `<svg><a><animate attributeName="href" values="javascript:…">` ran
|
|
6590
|
+
// in Chromium and Safari. Drop the values that hold a dangerous
|
|
6591
|
+
// scheme; `values` is a `;` list. See GHSA-6wrw-v5gj-6xg7
|
|
6592
|
+
if (ANIMATION_TAGS.has(tagName)) {
|
|
6593
|
+
for (const name of ANIMATION_VALUE_ATTRIBUTES){
|
|
6594
|
+
const value = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attrRaw)(elm, name);
|
|
6595
|
+
if (value && value.split(';').some((part)=>isDangerousUrl(part, 'a'))) {
|
|
6596
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(elm, name, null);
|
|
6597
|
+
effected = true;
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
}
|
|
6554
6601
|
}
|
|
6555
6602
|
return effected;
|
|
6556
6603
|
}
|
|
@@ -8451,6 +8498,45 @@ function alignElement(command, box) {
|
|
|
8451
8498
|
}
|
|
8452
8499
|
|
|
8453
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
|
+
|
|
8454
8540
|
/***/ }),
|
|
8455
8541
|
|
|
8456
8542
|
/***/ 47760:
|
|
@@ -9616,118 +9702,122 @@ const isPart = (node, part)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom
|
|
|
9616
9702
|
"use strict";
|
|
9617
9703
|
__webpack_require__.r(__webpack_exports__);
|
|
9618
9704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9619
|
-
/* harmony export */ $$: function() { return /* reexport safe */
|
|
9620
|
-
/* harmony export */ AnswerError: function() { return /* reexport safe */
|
|
9621
|
-
/* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */
|
|
9622
|
-
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */
|
|
9623
|
-
/* harmony export */ ConfigMerge: function() { return /* reexport safe */
|
|
9624
|
-
/* harmony export */ ConfigProto: function() { return /* reexport safe */
|
|
9625
|
-
/* harmony export */ ConnectionError: function() { return /* reexport safe */
|
|
9626
|
-
/* harmony export */ LimitedStack: function() { return /* reexport safe */
|
|
9627
|
-
/* harmony export */ OptionsError: function() { return /* reexport safe */
|
|
9628
|
-
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* reexport safe */
|
|
9629
|
-
/* 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; },
|
|
9630
9716
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
|
|
9631
|
-
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */
|
|
9632
|
-
/* harmony export */ answer: function() { return /* reexport safe */
|
|
9633
|
-
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */
|
|
9634
|
-
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */
|
|
9635
|
-
/* harmony export */ attr: function() { return /* reexport safe */
|
|
9636
|
-
/* harmony export */ attrRaw: function() { return /* reexport safe */
|
|
9637
|
-
/* harmony export */ browser: function() { return /* reexport safe */
|
|
9638
|
-
/* harmony export */ buildQuery: function() { return /* reexport safe */
|
|
9639
|
-
/* harmony export */ call: function() { return /* reexport safe */
|
|
9640
|
-
/* harmony export */ callPromise: function() { return /* reexport safe */
|
|
9641
|
-
/* 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; },
|
|
9642
9728
|
/* harmony export */ clearAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.clearAlign; },
|
|
9643
|
-
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */
|
|
9729
|
+
/* harmony export */ clearCenterAlign: function() { return /* reexport safe */ _css__WEBPACK_IMPORTED_MODULE_10__.clearCenterAlign; },
|
|
9644
9730
|
/* harmony export */ clearHAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.clearHAlign; },
|
|
9645
|
-
/* harmony export */ cns: function() { return /* reexport safe */
|
|
9646
|
-
/* harmony export */ completeUrl: function() { return /* reexport safe */
|
|
9647
|
-
/* harmony export */ connection: function() { return /* reexport safe */
|
|
9648
|
-
/* harmony export */ convertMediaUrlToVideoEmbed: function() { return /* reexport safe */
|
|
9649
|
-
/* harmony export */ createMediaWrapper: function() { return /* reexport safe */
|
|
9650
|
-
/* harmony export */ css: function() { return /* reexport safe */
|
|
9651
|
-
/* harmony export */ cssInline: function() { return /* reexport safe */
|
|
9652
|
-
/* harmony export */ cssPath: function() { return /* reexport safe */
|
|
9653
|
-
/* harmony export */ ctrlKey: function() { return /* reexport safe */
|
|
9654
|
-
/* harmony export */ dataBind: function() { return /* reexport safe */
|
|
9655
|
-
/* harmony export */ defaultLanguage: function() { return /* reexport safe */
|
|
9656
|
-
/* harmony export */ error: function() { return /* reexport safe */
|
|
9657
|
-
/* harmony export */ fastClone: function() { return /* reexport safe */
|
|
9658
|
-
/* 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; },
|
|
9659
9745
|
/* harmony export */ getAlignClasses: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.getAlignClasses; },
|
|
9660
|
-
/* harmony export */
|
|
9661
|
-
/* harmony export */
|
|
9662
|
-
/* harmony export */
|
|
9663
|
-
/* 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; },
|
|
9664
9752
|
/* harmony export */ getHAlign: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.getHAlign; },
|
|
9665
|
-
/* harmony export */ getImageCaption: function() { return /* reexport safe */
|
|
9666
|
-
/* harmony export */ getMediaWrapper: function() { return /* reexport safe */
|
|
9667
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */
|
|
9668
|
-
/* harmony export */ getWrappedMedia: function() { return /* reexport safe */
|
|
9669
|
-
/* 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; },
|
|
9670
9758
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
9671
|
-
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */
|
|
9672
|
-
/* harmony export */ inView: function() { return /* reexport safe */
|
|
9673
|
-
/* harmony export */
|
|
9674
|
-
/* harmony export */
|
|
9675
|
-
/* harmony export */
|
|
9676
|
-
/* harmony export */
|
|
9677
|
-
/* harmony export */
|
|
9678
|
-
/* harmony export */
|
|
9679
|
-
/* harmony export */
|
|
9680
|
-
/* harmony export */
|
|
9681
|
-
/* harmony export */
|
|
9682
|
-
/* harmony export */
|
|
9683
|
-
/* harmony export */
|
|
9684
|
-
/* harmony export */
|
|
9685
|
-
/* harmony export */
|
|
9686
|
-
/* harmony export */
|
|
9687
|
-
/* harmony export */
|
|
9688
|
-
/* harmony export */
|
|
9689
|
-
/* harmony export */
|
|
9690
|
-
/* harmony export */
|
|
9691
|
-
/* harmony export */
|
|
9692
|
-
/* harmony export */
|
|
9693
|
-
/* harmony export */
|
|
9694
|
-
/* 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; }
|
|
9695
9784
|
/* harmony export */ });
|
|
9696
9785
|
/* harmony import */ var _align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16849);
|
|
9697
|
-
/* harmony import */ var
|
|
9698
|
-
/* harmony import */ var
|
|
9699
|
-
/* 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__);
|
|
9700
9790
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
9701
|
-
/* 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__)
|
|
9702
9792
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
9703
|
-
/* harmony import */ var
|
|
9704
|
-
/* harmony import */ var
|
|
9705
|
-
/* harmony import */ var
|
|
9706
|
-
/* harmony import */ var
|
|
9707
|
-
/* harmony import */ var
|
|
9708
|
-
/* harmony import */ var
|
|
9709
|
-
/* harmony import */ var
|
|
9710
|
-
/* harmony import */ var
|
|
9711
|
-
/* harmony import */ var
|
|
9712
|
-
/* harmony import */ var
|
|
9713
|
-
/* harmony import */ var
|
|
9714
|
-
/* harmony import */ var
|
|
9715
|
-
/* harmony import */ var
|
|
9716
|
-
/* harmony import */ var
|
|
9717
|
-
/* harmony import */ var
|
|
9718
|
-
/* harmony import */ var
|
|
9719
|
-
/* harmony import */ var
|
|
9720
|
-
/* harmony import */ var
|
|
9721
|
-
/* harmony import */ var
|
|
9722
|
-
/* harmony import */ var
|
|
9723
|
-
/* harmony import */ var
|
|
9724
|
-
/* harmony import */ var
|
|
9725
|
-
/* harmony import */ var
|
|
9726
|
-
/* harmony import */ var
|
|
9727
|
-
/* harmony import */ var
|
|
9728
|
-
/* harmony import */ var
|
|
9729
|
-
/* harmony import */ var
|
|
9730
|
-
/* 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);
|
|
9731
9821
|
/*!
|
|
9732
9822
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9733
9823
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9765,6 +9855,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9765
9855
|
|
|
9766
9856
|
|
|
9767
9857
|
|
|
9858
|
+
|
|
9768
9859
|
|
|
9769
9860
|
|
|
9770
9861
|
/***/ }),
|
|
@@ -18274,7 +18365,10 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_10__.UIGr
|
|
|
18274
18365
|
return super.destruct();
|
|
18275
18366
|
}
|
|
18276
18367
|
constructor(jodit, smart = true){
|
|
18277
|
-
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 = ()=>({
|
|
18278
18372
|
left: 0,
|
|
18279
18373
|
top: 0,
|
|
18280
18374
|
width: this.ow.innerWidth,
|
|
@@ -18908,6 +19002,7 @@ View.defaultOptions = {
|
|
|
18908
19002
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(80512);
|
|
18909
19003
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5266);
|
|
18910
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);
|
|
18911
19006
|
/*!
|
|
18912
19007
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18913
19008
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18929,6 +19024,7 @@ View.defaultOptions = {
|
|
|
18929
19024
|
|
|
18930
19025
|
|
|
18931
19026
|
|
|
19027
|
+
|
|
18932
19028
|
const FOCUS_EVENTS = new Set([
|
|
18933
19029
|
'focus',
|
|
18934
19030
|
'blur',
|
|
@@ -19193,17 +19289,15 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_11__.ViewWithToolbar
|
|
|
19193
19289
|
theme: jodit.o.theme,
|
|
19194
19290
|
shadowRoot: jodit.o.shadowRoot,
|
|
19195
19291
|
defaultCallback (data) {
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
}
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
});
|
|
19206
|
-
}
|
|
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
|
+
});
|
|
19207
19301
|
}
|
|
19208
19302
|
}, this.o.filebrowser);
|
|
19209
19303
|
return jodit.getInstance('FileBrowser', options);
|
|
@@ -20197,6 +20291,9 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_11__.ViewWithToolbar
|
|
|
20197
20291
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "constants", jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__);
|
|
20198
20292
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "instances", jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.instances);
|
|
20199
20293
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "lang", jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.lang);
|
|
20294
|
+
/**
|
|
20295
|
+
* Merge language packs into `Jodit.lang`; prototype keys are ignored
|
|
20296
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "extendLang", jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.extendLang);
|
|
20200
20297
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "core", {
|
|
20201
20298
|
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_11__.Plugin
|
|
20202
20299
|
});
|
|
@@ -20241,10 +20338,11 @@ function addClassNames(className, elm) {
|
|
|
20241
20338
|
|
|
20242
20339
|
"use strict";
|
|
20243
20340
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
|
|
20244
|
-
/* harmony import */ var
|
|
20245
|
-
/* harmony import */ var
|
|
20246
|
-
/* harmony import */ var
|
|
20247
|
-
/* harmony import */ var
|
|
20341
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
20342
|
+
/* harmony import */ var jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41324);
|
|
20343
|
+
/* harmony import */ var jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2__);
|
|
20344
|
+
/* harmony import */ var jodit_langs_en__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63837);
|
|
20345
|
+
/* harmony import */ var jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53414);
|
|
20248
20346
|
/*!
|
|
20249
20347
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20250
20348
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20281,41 +20379,43 @@ function addClassNames(className, elm) {
|
|
|
20281
20379
|
|
|
20282
20380
|
|
|
20283
20381
|
|
|
20382
|
+
|
|
20284
20383
|
|
|
20285
20384
|
|
|
20286
20385
|
let exp = {};
|
|
20287
20386
|
exp = {
|
|
20288
|
-
ar: (
|
|
20289
|
-
az: (
|
|
20290
|
-
cs_cz: (
|
|
20291
|
-
de: (
|
|
20292
|
-
en:
|
|
20293
|
-
es: (
|
|
20294
|
-
fa: (
|
|
20295
|
-
fi: (
|
|
20296
|
-
fr: (
|
|
20297
|
-
he: (
|
|
20298
|
-
hu: (
|
|
20299
|
-
id: (
|
|
20300
|
-
it: (
|
|
20301
|
-
ja: (
|
|
20302
|
-
ko: (
|
|
20303
|
-
mn: (
|
|
20304
|
-
nl: (
|
|
20305
|
-
no: (
|
|
20306
|
-
pl: (
|
|
20307
|
-
pt_br: (
|
|
20308
|
-
ru: (
|
|
20309
|
-
sk: (
|
|
20310
|
-
sv: (
|
|
20311
|
-
tr: (
|
|
20312
|
-
ua: (
|
|
20313
|
-
zh_cn: (
|
|
20314
|
-
zh_tw: (
|
|
20387
|
+
ar: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20388
|
+
az: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20389
|
+
cs_cz: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20390
|
+
de: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20391
|
+
en: jodit_langs_en__WEBPACK_IMPORTED_MODULE_3__,
|
|
20392
|
+
es: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20393
|
+
fa: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20394
|
+
fi: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20395
|
+
fr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20396
|
+
he: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20397
|
+
hu: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20398
|
+
id: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20399
|
+
it: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20400
|
+
ja: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20401
|
+
ko: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20402
|
+
mn: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20403
|
+
nl: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20404
|
+
no: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20405
|
+
pl: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20406
|
+
pt_br: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20407
|
+
ru: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20408
|
+
sk: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20409
|
+
sv: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20410
|
+
tr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20411
|
+
ua: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20412
|
+
zh_cn: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20413
|
+
zh_tw: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default())
|
|
20315
20414
|
};
|
|
20316
|
-
/* Unpack array to hash */
|
|
20317
|
-
|
|
20318
|
-
|
|
20415
|
+
/* Unpack array to hash */ // Unwrap a module (`default` is the dictionary or the packed array), but keep a dictionary whose `default` is a translation (`no.js`)
|
|
20416
|
+
const get = (value)=>value ? (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(value.default) || (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value.default) ? value.default : value : {}, hashLang = {};
|
|
20417
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(get(jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__))) {
|
|
20418
|
+
get(jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__).forEach((key, index)=>{
|
|
20319
20419
|
hashLang[index] = key;
|
|
20320
20420
|
});
|
|
20321
20421
|
}
|
|
@@ -22636,15 +22736,16 @@ function makeContextMenu(parent) {
|
|
|
22636
22736
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80512);
|
|
22637
22737
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2222);
|
|
22638
22738
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5266);
|
|
22639
|
-
/* harmony import */ var
|
|
22640
|
-
/* harmony import */ var
|
|
22641
|
-
/* harmony import */ var
|
|
22642
|
-
/* harmony import */ var
|
|
22643
|
-
/* harmony import */ var
|
|
22644
|
-
/* harmony import */ var
|
|
22645
|
-
/* harmony import */ var
|
|
22646
|
-
/* harmony import */ var
|
|
22647
|
-
/* 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);
|
|
22648
22749
|
/*!
|
|
22649
22750
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
22650
22751
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22674,6 +22775,7 @@ function makeContextMenu(parent) {
|
|
|
22674
22775
|
|
|
22675
22776
|
|
|
22676
22777
|
|
|
22778
|
+
|
|
22677
22779
|
|
|
22678
22780
|
|
|
22679
22781
|
class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_12__.ViewWithToolbar {
|
|
@@ -22681,26 +22783,26 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22681
22783
|
return 'FileBrowser';
|
|
22682
22784
|
}
|
|
22683
22785
|
get dataProvider() {
|
|
22684
|
-
return (0,
|
|
22786
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_22__.makeDataProvider)(this, this.options);
|
|
22685
22787
|
}
|
|
22686
22788
|
onSelect(callback) {
|
|
22687
22789
|
return ()=>{
|
|
22688
22790
|
if (this.state.activeElements.length) {
|
|
22689
|
-
const
|
|
22690
|
-
const isImages = [];
|
|
22791
|
+
const items = [];
|
|
22691
22792
|
this.state.activeElements.forEach((elm)=>{
|
|
22692
22793
|
const url = elm.fileURL;
|
|
22693
22794
|
if (url) {
|
|
22694
|
-
|
|
22695
|
-
|
|
22795
|
+
items.push({
|
|
22796
|
+
file: url,
|
|
22797
|
+
isImage: elm.isImage || false
|
|
22798
|
+
});
|
|
22696
22799
|
}
|
|
22697
22800
|
});
|
|
22698
22801
|
this.close();
|
|
22699
|
-
const data = {
|
|
22802
|
+
const data = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_14__.normalizeUploaderData)({
|
|
22700
22803
|
baseurl: '',
|
|
22701
|
-
|
|
22702
|
-
|
|
22703
|
-
};
|
|
22804
|
+
items
|
|
22805
|
+
});
|
|
22704
22806
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.isFunction)(callback)) {
|
|
22705
22807
|
callback(data);
|
|
22706
22808
|
}
|
|
@@ -22765,10 +22867,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22765
22867
|
* ```javascript
|
|
22766
22868
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
22767
22869
|
* fb.open(function (data) {
|
|
22768
|
-
*
|
|
22769
|
-
*
|
|
22770
|
-
*
|
|
22771
|
-
* }
|
|
22870
|
+
* data.items.forEach(function (item) {
|
|
22871
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
22872
|
+
* });
|
|
22772
22873
|
* });
|
|
22773
22874
|
* ```
|
|
22774
22875
|
*/ open(callback = this.o.defaultCallback, onlyImages = false) {
|
|
@@ -22790,7 +22891,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22790
22891
|
this.__updateToolbarButtons();
|
|
22791
22892
|
this._dialog.open(this.browser, header);
|
|
22792
22893
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
22793
|
-
(0,
|
|
22894
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_17__.loadTree)(this).then(resolve, reject).finally(()=>{
|
|
22794
22895
|
if (this.isInDestruct) {
|
|
22795
22896
|
return;
|
|
22796
22897
|
}
|
|
@@ -22821,7 +22922,7 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22821
22922
|
}
|
|
22822
22923
|
initUploader(editor) {
|
|
22823
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);
|
|
22824
|
-
const uploadHandler = ()=>(0,
|
|
22925
|
+
const uploadHandler = ()=>(0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_16__.loadItems)(this);
|
|
22825
22926
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
22826
22927
|
self.uploader.setPath(self.state.currentPath).setSource(self.state.currentSource).bind(self.browser, uploadHandler, self.errorHandler);
|
|
22827
22928
|
this.state.on([
|
|
@@ -22852,9 +22953,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22852
22953
|
this.toolbar?.build(buttons);
|
|
22853
22954
|
}
|
|
22854
22955
|
constructor(options){
|
|
22855
|
-
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)({
|
|
22856
22957
|
currentPath: '',
|
|
22857
|
-
currentSource:
|
|
22958
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_21__.DEFAULT_SOURCE_NAME,
|
|
22858
22959
|
currentBaseUrl: '',
|
|
22859
22960
|
activeElements: [],
|
|
22860
22961
|
elements: [],
|
|
@@ -22887,9 +22988,9 @@ class FileBrowser extends jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MO
|
|
|
22887
22988
|
}
|
|
22888
22989
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.files.container);
|
|
22889
22990
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.append(self.browser, self.status_line);
|
|
22890
|
-
|
|
22891
|
-
|
|
22892
|
-
|
|
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);
|
|
22893
22994
|
const keys = [
|
|
22894
22995
|
'getLocalFileByUrl',
|
|
22895
22996
|
'crop',
|
|
@@ -25886,30 +25987,31 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25886
25987
|
/* harmony export */ });
|
|
25887
25988
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
25888
25989
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62445);
|
|
25889
|
-
/* harmony import */ var
|
|
25890
|
-
/* harmony import */ var
|
|
25891
|
-
/* harmony import */ var
|
|
25892
|
-
/* harmony import */ var
|
|
25893
|
-
/* harmony import */ var
|
|
25894
|
-
/* harmony import */ var
|
|
25895
|
-
/* harmony import */ var
|
|
25896
|
-
/* harmony import */ var
|
|
25897
|
-
/* harmony import */ var
|
|
25898
|
-
/* harmony import */ var
|
|
25899
|
-
/* harmony import */ var
|
|
25900
|
-
/* harmony import */ var
|
|
25901
|
-
/* harmony import */ var
|
|
25902
|
-
/* harmony import */ var
|
|
25903
|
-
/* harmony import */ var
|
|
25904
|
-
/* harmony import */ var
|
|
25905
|
-
/* harmony import */ var
|
|
25906
|
-
/* harmony import */ var
|
|
25907
|
-
/* harmony import */ var
|
|
25908
|
-
/* harmony import */ var
|
|
25909
|
-
/* harmony import */ var
|
|
25910
|
-
/* harmony import */ var
|
|
25911
|
-
/* harmony import */ var
|
|
25912
|
-
/* 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);
|
|
25913
26015
|
/*!
|
|
25914
26016
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25915
26017
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25942,6 +26044,7 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
25942
26044
|
|
|
25943
26045
|
|
|
25944
26046
|
|
|
26047
|
+
|
|
25945
26048
|
|
|
25946
26049
|
|
|
25947
26050
|
const INPUT_TAGS = new Set([
|
|
@@ -25958,7 +26061,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
25958
26061
|
'textarea:not([disabled])',
|
|
25959
26062
|
'[tabindex]:not([tabindex="-1"])'
|
|
25960
26063
|
].join(',');
|
|
25961
|
-
class ToolbarButton extends
|
|
26064
|
+
class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButton {
|
|
25962
26065
|
className() {
|
|
25963
26066
|
return 'ToolbarButton';
|
|
25964
26067
|
}
|
|
@@ -25969,13 +26072,13 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
25969
26072
|
super.updateAriaLabel();
|
|
25970
26073
|
if (this.trigger) {
|
|
25971
26074
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
25972
|
-
(0,
|
|
26075
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
25973
26076
|
}
|
|
25974
26077
|
}
|
|
25975
26078
|
/**
|
|
25976
26079
|
* Get parent toolbar
|
|
25977
26080
|
*/ get toolbar() {
|
|
25978
|
-
const ToolbarCollection = (0,
|
|
26081
|
+
const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.getComponentClass)('ToolbarCollection');
|
|
25979
26082
|
return this.closest(ToolbarCollection);
|
|
25980
26083
|
}
|
|
25981
26084
|
update() {
|
|
@@ -25995,7 +26098,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
25995
26098
|
/**
|
|
25996
26099
|
* Calculates whether the button is active
|
|
25997
26100
|
*/ __calculateActivatedStatus(tc) {
|
|
25998
|
-
if ((0,
|
|
26101
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
25999
26102
|
return false;
|
|
26000
26103
|
}
|
|
26001
26104
|
if (this.control.isActive?.(this.j, this)) {
|
|
@@ -26018,11 +26121,11 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26018
26121
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
26019
26122
|
}
|
|
26020
26123
|
onChangeActivated() {
|
|
26021
|
-
;(0,
|
|
26124
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
26022
26125
|
super.onChangeActivated();
|
|
26023
26126
|
}
|
|
26024
26127
|
onChangeText() {
|
|
26025
|
-
if ((0,
|
|
26128
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(this.control.template)) {
|
|
26026
26129
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
26027
26130
|
} else {
|
|
26028
26131
|
super.onChangeText();
|
|
@@ -26030,8 +26133,8 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26030
26133
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
26031
26134
|
}
|
|
26032
26135
|
onChangeTabIndex() {
|
|
26033
|
-
;(0,
|
|
26034
|
-
(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);
|
|
26035
26138
|
}
|
|
26036
26139
|
createContainer() {
|
|
26037
26140
|
const cn = this.componentName;
|
|
@@ -26043,28 +26146,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26043
26146
|
value: this,
|
|
26044
26147
|
configurable: true
|
|
26045
26148
|
});
|
|
26046
|
-
|
|
26047
|
-
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>`);
|
|
26048
26151
|
// For caching
|
|
26049
|
-
|
|
26152
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(button, trigger);
|
|
26050
26153
|
return container;
|
|
26051
26154
|
}
|
|
26052
26155
|
/** @override */ focus() {
|
|
26053
|
-
|
|
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();
|
|
26054
26157
|
}
|
|
26055
26158
|
onChangeHasTrigger() {
|
|
26056
26159
|
if (this.state.hasTrigger) {
|
|
26057
|
-
|
|
26160
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.append(this.container, this.trigger);
|
|
26058
26161
|
} else {
|
|
26059
|
-
|
|
26162
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(this.trigger);
|
|
26060
26163
|
}
|
|
26061
26164
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
26062
26165
|
}
|
|
26063
26166
|
/** @override */ onChangeDisabled() {
|
|
26064
26167
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
26065
|
-
(0,
|
|
26066
|
-
(0,
|
|
26067
|
-
(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);
|
|
26068
26171
|
}
|
|
26069
26172
|
/**
|
|
26070
26173
|
* Init constant data from control
|
|
@@ -26074,19 +26177,19 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26074
26177
|
state.name = ctr.name;
|
|
26075
26178
|
this.__initIconFromControl();
|
|
26076
26179
|
if (ctr.tooltip) {
|
|
26077
|
-
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;
|
|
26078
26181
|
}
|
|
26079
26182
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
26080
26183
|
}
|
|
26081
26184
|
__initIconFromControl() {
|
|
26082
26185
|
const { control: ctr, state } = this;
|
|
26083
26186
|
const { textIcons } = this.j.o;
|
|
26084
|
-
if (textIcons === true || (0,
|
|
26085
|
-
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;
|
|
26086
26189
|
state.text = ctr.text || ctr.name;
|
|
26087
26190
|
return;
|
|
26088
26191
|
}
|
|
26089
|
-
if (!(0,
|
|
26192
|
+
if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(ctr.icon) && ctr.icon != null) {
|
|
26090
26193
|
state.icon = {
|
|
26091
26194
|
name: ctr.icon.name || ctr.name,
|
|
26092
26195
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -26099,7 +26202,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26099
26202
|
state.icon.iconURL = ctr.iconURL;
|
|
26100
26203
|
} else {
|
|
26101
26204
|
const name = ctr.icon || ctr.name;
|
|
26102
|
-
state.icon.name =
|
|
26205
|
+
state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_23__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
|
|
26103
26206
|
}
|
|
26104
26207
|
if (!ctr.iconURL && !state.icon.name) {
|
|
26105
26208
|
state.text = ctr.text || ctr.name;
|
|
@@ -26113,25 +26216,25 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26113
26216
|
return;
|
|
26114
26217
|
}
|
|
26115
26218
|
const { control: ctr } = this;
|
|
26116
|
-
(0,
|
|
26219
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', true);
|
|
26117
26220
|
e.buffer = {
|
|
26118
26221
|
actionTrigger: this
|
|
26119
26222
|
};
|
|
26120
26223
|
if (ctr.list) {
|
|
26121
26224
|
return this.__openControlList(ctr);
|
|
26122
26225
|
}
|
|
26123
|
-
if ((0,
|
|
26226
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26124
26227
|
const popup = this.openPopup();
|
|
26125
26228
|
popup.parentElement = this;
|
|
26126
26229
|
try {
|
|
26127
|
-
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) {
|
|
26128
26231
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26129
26232
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
26130
26233
|
if (elm) {
|
|
26131
|
-
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);
|
|
26132
26235
|
// The focus stays in the content for a list, which
|
|
26133
26236
|
// typing searches, but goes to a form, as in a dialog
|
|
26134
|
-
(0,
|
|
26237
|
+
(0,jodit_core_ui_helpers_focus_form_field__WEBPACK_IMPORTED_MODULE_21__.focusFormField)(popup.container);
|
|
26135
26238
|
} else {
|
|
26136
26239
|
this.__closePopup();
|
|
26137
26240
|
}
|
|
@@ -26144,20 +26247,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26144
26247
|
* Fired after the popup was opened for some control button
|
|
26145
26248
|
*/ /**
|
|
26146
26249
|
* Close all opened popups
|
|
26147
|
-
*/ 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);
|
|
26148
26251
|
}
|
|
26149
26252
|
}
|
|
26150
26253
|
onTriggerKeyDown(e) {
|
|
26151
26254
|
if (this.state.disabled) {
|
|
26152
26255
|
return;
|
|
26153
26256
|
}
|
|
26154
|
-
if (e.key ===
|
|
26257
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN) {
|
|
26155
26258
|
this.onButtonKeyDown(e);
|
|
26156
26259
|
return;
|
|
26157
26260
|
}
|
|
26158
26261
|
if (![
|
|
26159
|
-
|
|
26160
|
-
|
|
26262
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ENTER,
|
|
26263
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_SPACE,
|
|
26161
26264
|
' '
|
|
26162
26265
|
].includes(e.key)) {
|
|
26163
26266
|
return;
|
|
@@ -26169,7 +26272,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26169
26272
|
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
26170
26273
|
* focus into it, like the WAI-ARIA menu button pattern
|
|
26171
26274
|
*/ onButtonKeyDown(e) {
|
|
26172
|
-
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) {
|
|
26173
26276
|
return;
|
|
26174
26277
|
}
|
|
26175
26278
|
e.preventDefault();
|
|
@@ -26188,22 +26291,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26188
26291
|
}
|
|
26189
26292
|
const target = e.target;
|
|
26190
26293
|
// A text field keeps the arrow keys for itself
|
|
26191
|
-
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) {
|
|
26192
26295
|
return;
|
|
26193
26296
|
}
|
|
26194
26297
|
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
26195
26298
|
switch(e.key){
|
|
26196
|
-
case
|
|
26299
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_ESC:
|
|
26197
26300
|
this.__closePopup();
|
|
26198
26301
|
break;
|
|
26199
|
-
case
|
|
26302
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_UP:
|
|
26200
26303
|
if (index <= 0) {
|
|
26201
26304
|
this.__closePopup();
|
|
26202
26305
|
} else {
|
|
26203
26306
|
items[index - 1].focus();
|
|
26204
26307
|
}
|
|
26205
26308
|
break;
|
|
26206
|
-
case
|
|
26309
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.KEY_DOWN:
|
|
26207
26310
|
if (!items.length) {
|
|
26208
26311
|
return;
|
|
26209
26312
|
}
|
|
@@ -26271,7 +26374,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26271
26374
|
/**
|
|
26272
26375
|
* Create an open popup list
|
|
26273
26376
|
*/ __openControlList(control) {
|
|
26274
|
-
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);
|
|
26275
26378
|
const list = control.list;
|
|
26276
26379
|
const menu = this.openPopup();
|
|
26277
26380
|
menu.parentElement = this;
|
|
@@ -26279,18 +26382,18 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26279
26382
|
if (content) {
|
|
26280
26383
|
return this.__openMenu(menu, content);
|
|
26281
26384
|
}
|
|
26282
|
-
const toolbar = (0,
|
|
26385
|
+
const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_25__.makeCollection)(this.j);
|
|
26283
26386
|
toolbar.parentElement = menu;
|
|
26284
26387
|
toolbar.mode = 'vertical';
|
|
26285
|
-
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;
|
|
26286
26389
|
const getButton = (key, value)=>{
|
|
26287
|
-
if ((0,
|
|
26390
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value) && getControl(value)) {
|
|
26288
26391
|
return {
|
|
26289
26392
|
name: value.toString(),
|
|
26290
26393
|
...getControl(value)
|
|
26291
26394
|
};
|
|
26292
26395
|
}
|
|
26293
|
-
if ((0,
|
|
26396
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(key) && getControl(key)) {
|
|
26294
26397
|
return {
|
|
26295
26398
|
name: key.toString(),
|
|
26296
26399
|
...getControl(key),
|
|
@@ -26321,29 +26424,29 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26321
26424
|
value
|
|
26322
26425
|
]
|
|
26323
26426
|
};
|
|
26324
|
-
if ((0,
|
|
26427
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value)) {
|
|
26325
26428
|
childControl.text = value;
|
|
26326
26429
|
}
|
|
26327
26430
|
return childControl;
|
|
26328
26431
|
};
|
|
26329
|
-
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);
|
|
26330
26433
|
this.__openMenu(menu, toolbar);
|
|
26331
26434
|
}
|
|
26332
26435
|
__openMenu(menu, content) {
|
|
26333
|
-
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);
|
|
26334
26437
|
this.state.activated = true;
|
|
26335
26438
|
}
|
|
26336
26439
|
onOutsideClick(e) {
|
|
26337
26440
|
if (!this.openedPopup) {
|
|
26338
26441
|
return;
|
|
26339
26442
|
}
|
|
26340
|
-
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)) {
|
|
26341
26444
|
this.__closePopup();
|
|
26342
26445
|
}
|
|
26343
26446
|
}
|
|
26344
26447
|
openPopup() {
|
|
26345
26448
|
this.__closePopup();
|
|
26346
|
-
this.openedPopup = new
|
|
26449
|
+
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_24__.Popup(this.j, false);
|
|
26347
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);
|
|
26348
26451
|
return this.openedPopup;
|
|
26349
26452
|
}
|
|
@@ -26363,14 +26466,14 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26363
26466
|
// The keyboard brought the focus into the dropdown: give it back to
|
|
26364
26467
|
// the button, otherwise it would fall out to the document. A form
|
|
26365
26468
|
// gives it back to the content, with the selection it was opened for
|
|
26366
|
-
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);
|
|
26367
26470
|
this.state.activated = false;
|
|
26368
26471
|
popup.close();
|
|
26369
26472
|
popup.destruct();
|
|
26370
26473
|
if (this.trigger) {
|
|
26371
|
-
(0,
|
|
26474
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'aria-expanded', false);
|
|
26372
26475
|
}
|
|
26373
|
-
if (inForm && (0,
|
|
26476
|
+
if (inForm && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j)) {
|
|
26374
26477
|
this.j.s.focus();
|
|
26375
26478
|
} else if (hadFocus) {
|
|
26376
26479
|
this.focus();
|
|
@@ -26380,7 +26483,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26380
26483
|
* Click handler
|
|
26381
26484
|
*/ onClick(originalEvent) {
|
|
26382
26485
|
const { control: ctr } = this;
|
|
26383
|
-
if ((0,
|
|
26486
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.exec)) {
|
|
26384
26487
|
const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
|
|
26385
26488
|
const result = ctr.exec(this.j, target, {
|
|
26386
26489
|
control: ctr,
|
|
@@ -26393,9 +26496,10 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26393
26496
|
if (this.parentElement) {
|
|
26394
26497
|
this.parentElement.update();
|
|
26395
26498
|
}
|
|
26499
|
+
this.__closePopups();
|
|
26396
26500
|
/**
|
|
26397
26501
|
* Fired after calling `button.exec` function
|
|
26398
|
-
*/ this.j?.e?.fire('
|
|
26502
|
+
*/ this.j?.e?.fire('afterExec');
|
|
26399
26503
|
}
|
|
26400
26504
|
if (result !== false) {
|
|
26401
26505
|
return;
|
|
@@ -26404,13 +26508,34 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26404
26508
|
if (ctr.list) {
|
|
26405
26509
|
return this.__openControlList(ctr);
|
|
26406
26510
|
}
|
|
26407
|
-
if ((0,
|
|
26511
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
26408
26512
|
return this.onTriggerClick(originalEvent);
|
|
26409
26513
|
}
|
|
26410
26514
|
if (ctr.command || ctr.name) {
|
|
26411
|
-
(0,
|
|
26412
|
-
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
|
+
}
|
|
26413
26537
|
}
|
|
26538
|
+
this.j?.e?.fire('closeAllPopups');
|
|
26414
26539
|
}
|
|
26415
26540
|
destruct() {
|
|
26416
26541
|
this.__closePopup();
|
|
@@ -26418,20 +26543,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26418
26543
|
}
|
|
26419
26544
|
constructor(jodit, control, target = null){
|
|
26420
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 = {
|
|
26421
|
-
...(0,
|
|
26546
|
+
...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)(),
|
|
26422
26547
|
theme: 'toolbar',
|
|
26423
26548
|
currentValue: '',
|
|
26424
26549
|
hasTrigger: false
|
|
26425
26550
|
}, this.__typed = '', this.__typedAt = 0, this.__typedTo = null, this.openedPopup = null;
|
|
26426
26551
|
const button = this.getElm('button');
|
|
26427
|
-
(0,
|
|
26552
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(button, 'Element button should exists');
|
|
26428
26553
|
this.button = button;
|
|
26429
26554
|
Object.defineProperty(button, 'component', {
|
|
26430
26555
|
value: this,
|
|
26431
26556
|
configurable: true
|
|
26432
26557
|
});
|
|
26433
26558
|
const trigger = this.getElm('trigger');
|
|
26434
|
-
(0,
|
|
26559
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(trigger, 'Element trigger should exists');
|
|
26435
26560
|
this.trigger = trigger;
|
|
26436
26561
|
trigger.remove();
|
|
26437
26562
|
// Prevent lost focus
|
|
@@ -26440,7 +26565,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26440
26565
|
this.trigger
|
|
26441
26566
|
], 'mousedown', (e)=>e.preventDefault());
|
|
26442
26567
|
this.onAction(this.onClick);
|
|
26443
|
-
this.hookStatus(
|
|
26568
|
+
this.hookStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_3__.STATUSES.ready, ()=>{
|
|
26444
26569
|
this.__initFromControl();
|
|
26445
26570
|
this.update();
|
|
26446
26571
|
});
|
|
@@ -26452,36 +26577,36 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_19__.U
|
|
|
26452
26577
|
}
|
|
26453
26578
|
}
|
|
26454
26579
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26455
|
-
|
|
26580
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__.cacheHTML
|
|
26456
26581
|
], ToolbarButton.prototype, "createContainer", null);
|
|
26457
26582
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26458
|
-
(0,
|
|
26583
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.hasTrigger', {
|
|
26459
26584
|
immediately: false
|
|
26460
26585
|
})
|
|
26461
26586
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
26462
26587
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26463
|
-
(0,
|
|
26588
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:click')
|
|
26464
26589
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
26465
26590
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26466
|
-
(0,
|
|
26591
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:keydown')
|
|
26467
26592
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
26468
26593
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26469
|
-
(0,
|
|
26594
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('button:keydown')
|
|
26470
26595
|
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
26471
26596
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26472
|
-
|
|
26597
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26473
26598
|
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
26474
26599
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26475
|
-
|
|
26600
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26476
26601
|
], ToolbarButton.prototype, "__onEditorKeyDown", null);
|
|
26477
26602
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26478
|
-
|
|
26603
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26479
26604
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
26480
26605
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26481
|
-
|
|
26606
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
26482
26607
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
26483
26608
|
ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
26484
|
-
|
|
26609
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.component
|
|
26485
26610
|
], ToolbarButton);
|
|
26486
26611
|
|
|
26487
26612
|
|
|
@@ -26994,6 +27119,7 @@ function makeSelect(view, control, target = null) {
|
|
|
26994
27119
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24497);
|
|
26995
27120
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
26996
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);
|
|
26997
27123
|
/*!
|
|
26998
27124
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26999
27125
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27004,6 +27130,7 @@ function makeSelect(view, control, target = null) {
|
|
|
27004
27130
|
|
|
27005
27131
|
|
|
27006
27132
|
|
|
27133
|
+
|
|
27007
27134
|
/**
|
|
27008
27135
|
* Module for processing download documents and images by Drag and Drop
|
|
27009
27136
|
* Drag and Drop files
|
|
@@ -27064,27 +27191,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
|
|
|
27064
27191
|
if (!(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(j)) {
|
|
27065
27192
|
return;
|
|
27066
27193
|
}
|
|
27067
|
-
|
|
27068
|
-
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
|
|
27082
|
-
|
|
27083
|
-
|
|
27084
|
-
|
|
27085
|
-
|
|
27086
|
-
|
|
27087
|
-
}
|
|
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
|
+
});
|
|
27088
27214
|
},
|
|
27089
27215
|
defaultHandlerError (e) {
|
|
27090
27216
|
this.j.message.error(e.message);
|
|
@@ -27178,17 +27304,19 @@ function buildData(uploader, data) {
|
|
|
27178
27304
|
|
|
27179
27305
|
"use strict";
|
|
27180
27306
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27181
|
-
/* harmony export */ ajaxInstances: function() { return /* reexport safe */
|
|
27307
|
+
/* harmony export */ ajaxInstances: function() { return /* reexport safe */ _send__WEBPACK_IMPORTED_MODULE_3__.ajaxInstances; },
|
|
27182
27308
|
/* harmony export */ hasFiles: function() { return /* binding */ hasFiles; },
|
|
27183
27309
|
/* harmony export */ hasItems: function() { return /* binding */ hasItems; },
|
|
27184
|
-
/* harmony export */
|
|
27185
|
-
/* harmony export */
|
|
27186
|
-
/* 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; }
|
|
27187
27314
|
/* harmony export */ });
|
|
27188
27315
|
/* harmony import */ var _build_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89446);
|
|
27189
|
-
/* harmony import */ var
|
|
27190
|
-
/* harmony import */ var
|
|
27191
|
-
/* 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);
|
|
27192
27320
|
/*!
|
|
27193
27321
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27194
27322
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27200,6 +27328,7 @@ function buildData(uploader, data) {
|
|
|
27200
27328
|
|
|
27201
27329
|
|
|
27202
27330
|
|
|
27331
|
+
|
|
27203
27332
|
function hasFiles(data) {
|
|
27204
27333
|
return Boolean(data && data.files && data.files.length > 0);
|
|
27205
27334
|
}
|
|
@@ -27208,6 +27337,80 @@ function hasItems(data) {
|
|
|
27208
27337
|
}
|
|
27209
27338
|
|
|
27210
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
|
+
|
|
27211
27414
|
/***/ }),
|
|
27212
27415
|
|
|
27213
27416
|
/***/ 95436:
|
|
@@ -27273,8 +27476,9 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27273
27476
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65946);
|
|
27274
27477
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80512);
|
|
27275
27478
|
/* harmony import */ var jodit_modules_dialog_prompt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74103);
|
|
27276
|
-
/* harmony import */ var
|
|
27277
|
-
/* 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);
|
|
27278
27482
|
/*!
|
|
27279
27483
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27280
27484
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27287,6 +27491,7 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
|
|
|
27287
27491
|
|
|
27288
27492
|
|
|
27289
27493
|
|
|
27494
|
+
|
|
27290
27495
|
/**
|
|
27291
27496
|
* Send files to server
|
|
27292
27497
|
*/ async function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
|
|
@@ -27373,13 +27578,13 @@ retryOf) {
|
|
|
27373
27578
|
});
|
|
27374
27579
|
}
|
|
27375
27580
|
o.prepareData.call(uploader, form);
|
|
27376
|
-
promises.push((0,
|
|
27581
|
+
promises.push((0,jodit_modules_uploader_helpers_send__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, form).then((resp)=>{
|
|
27377
27582
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27378
27583
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27379
|
-
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)));
|
|
27380
27585
|
return resp;
|
|
27381
27586
|
}
|
|
27382
|
-
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, {
|
|
27383
27588
|
data: {
|
|
27384
27589
|
...extraData,
|
|
27385
27590
|
...plan?.data
|
|
@@ -27453,18 +27658,16 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
27453
27658
|
const readerPromise = uploader.j.async.promise((resolve, reject)=>{
|
|
27454
27659
|
reader.onerror = reject;
|
|
27455
27660
|
reader.onloadend = ()=>{
|
|
27456
|
-
const resp = {
|
|
27661
|
+
const resp = (0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.normalizeUploaderData)({
|
|
27457
27662
|
baseurl: '',
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
fileNames: [
|
|
27465
|
-
name
|
|
27663
|
+
items: [
|
|
27664
|
+
{
|
|
27665
|
+
file: reader.result,
|
|
27666
|
+
isImage: true,
|
|
27667
|
+
name
|
|
27668
|
+
}
|
|
27466
27669
|
]
|
|
27467
|
-
};
|
|
27670
|
+
});
|
|
27468
27671
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
|
|
27469
27672
|
handler.call(uploader, resp);
|
|
27470
27673
|
resolve(resp);
|
|
@@ -27679,11 +27882,10 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27679
27882
|
* ```javascript
|
|
27680
27883
|
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
27681
27884
|
* jQuery('body').append($form);
|
|
27682
|
-
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (
|
|
27683
|
-
*
|
|
27684
|
-
*
|
|
27685
|
-
*
|
|
27686
|
-
* }
|
|
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
|
+
* });
|
|
27687
27889
|
* });
|
|
27688
27890
|
* ```
|
|
27689
27891
|
*/ bind(form, handlerSuccess, handlerError) {
|
|
@@ -27778,7 +27980,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27778
27980
|
}).then((resp)=>{
|
|
27779
27981
|
if (o.isSuccess.call(uploader, resp)) {
|
|
27780
27982
|
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
|
|
27781
|
-
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)));
|
|
27782
27984
|
return;
|
|
27783
27985
|
}
|
|
27784
27986
|
handlerE.call(uploader, (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_5__.answer)(o.getMessage.call(uploader, resp), resp, resp.data?.code));
|
|
@@ -27796,6 +27998,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_1__.ViewCo
|
|
|
27796
27998
|
if (!settled) {
|
|
27797
27999
|
resolve({
|
|
27798
28000
|
baseurl: '',
|
|
28001
|
+
items: [],
|
|
27799
28002
|
files: [],
|
|
27800
28003
|
isImages: []
|
|
27801
28004
|
});
|
|
@@ -29097,6 +29300,329 @@ UiAiAssistant = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
|
29097
29300
|
], UiAiAssistant);
|
|
29098
29301
|
|
|
29099
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
|
+
|
|
29100
29626
|
/***/ }),
|
|
29101
29627
|
|
|
29102
29628
|
/***/ 28286:
|
|
@@ -34500,7 +35026,8 @@ function brBefore(start) {
|
|
|
34500
35026
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
|
|
34501
35027
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
34502
35028
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
|
|
34503
|
-
/* 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);
|
|
34504
35031
|
/*!
|
|
34505
35032
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34506
35033
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34514,6 +35041,7 @@ function brBefore(start) {
|
|
|
34514
35041
|
|
|
34515
35042
|
|
|
34516
35043
|
|
|
35044
|
+
|
|
34517
35045
|
/**
|
|
34518
35046
|
* Selected text becomes the link's text, as the Link button does, instead
|
|
34519
35047
|
* of being replaced by the file's name. Returns false with nothing selected
|
|
@@ -34535,15 +35063,16 @@ function brBefore(start) {
|
|
|
34535
35063
|
return true;
|
|
34536
35064
|
}
|
|
34537
35065
|
function insertLinks(data) {
|
|
34538
|
-
data
|
|
34539
|
-
|
|
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;
|
|
34540
35069
|
if (wrapSelectionInLink(this, href)) {
|
|
34541
35070
|
return;
|
|
34542
35071
|
}
|
|
34543
35072
|
const link = this.createInside.element('a', {
|
|
34544
35073
|
href
|
|
34545
35074
|
});
|
|
34546
|
-
link.textContent = this.o.uploader.getDisplayName.call(this.uploader,
|
|
35075
|
+
link.textContent = this.o.uploader.getDisplayName.call(this.uploader, baseurl, file);
|
|
34547
35076
|
this.s.insertNode(link);
|
|
34548
35077
|
});
|
|
34549
35078
|
}
|
|
@@ -34571,9 +35100,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
34571
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))) {
|
|
34572
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);
|
|
34573
35102
|
}
|
|
34574
|
-
return (0,
|
|
35103
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__.FileSelectorWidget)(editor, {
|
|
34575
35104
|
filebrowser: (data)=>{
|
|
34576
|
-
|
|
35105
|
+
;(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_4__.getItems)(data).forEach(({ file })=>insert(data.baseurl + file));
|
|
34577
35106
|
close();
|
|
34578
35107
|
},
|
|
34579
35108
|
upload: (data)=>{
|
|
@@ -36812,10 +37341,9 @@ const PLACEHOLDER = 'data-jodit-placeholder';
|
|
|
36812
37341
|
const fresh = this.__freshCaption(wrapper);
|
|
36813
37342
|
this.__unrecorded(()=>fresh ? this.__restore(fresh) : this.__uncaption(wrapper, image));
|
|
36814
37343
|
// The click opened the image's popup below the caption, so it
|
|
36815
|
-
//
|
|
37344
|
+
// moves below the image, as after the popup's Caption button
|
|
36816
37345
|
if (clicked) {
|
|
36817
37346
|
j.e.fire('recalcPositionPopup');
|
|
36818
|
-
j.e.fire('closeAllPopups');
|
|
36819
37347
|
}
|
|
36820
37348
|
}, 1);
|
|
36821
37349
|
}
|
|
@@ -38700,9 +39228,9 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38700
39228
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38701
39229
|
/* harmony export */ openImagePopup: function() { return /* binding */ openImagePopup; }
|
|
38702
39230
|
/* harmony export */ });
|
|
38703
|
-
/* harmony import */ var
|
|
38704
|
-
/* harmony import */ var
|
|
38705
|
-
/* 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);
|
|
38706
39234
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18762);
|
|
38707
39235
|
/*!
|
|
38708
39236
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -38715,25 +39243,27 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
38715
39243
|
|
|
38716
39244
|
|
|
38717
39245
|
/** @private */ function openImagePopup(j, dialog, state, button) {
|
|
38718
|
-
const popup = new
|
|
39246
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_1__.Popup(dialog);
|
|
38719
39247
|
const closePopup = ()=>{
|
|
38720
39248
|
popup.close();
|
|
38721
39249
|
popup.destruct();
|
|
38722
39250
|
};
|
|
38723
39251
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_3__.FileSelectorWidget)(j, {
|
|
38724
39252
|
upload: (data)=>{
|
|
38725
|
-
|
|
38726
|
-
|
|
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;
|
|
38727
39256
|
}
|
|
38728
39257
|
closePopup();
|
|
38729
39258
|
},
|
|
38730
39259
|
filebrowser: async (data)=>{
|
|
38731
|
-
|
|
38732
|
-
|
|
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;
|
|
38733
39263
|
closePopup();
|
|
38734
39264
|
}
|
|
38735
39265
|
}
|
|
38736
|
-
}, state.image, closePopup)).open(()=>(0,
|
|
39266
|
+
}, state.image, closePopup)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_0__.position)(button));
|
|
38737
39267
|
}
|
|
38738
39268
|
|
|
38739
39269
|
|
|
@@ -39037,9 +39567,10 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39037
39567
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
39038
39568
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
39039
39569
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
39040
|
-
/* harmony import */ var
|
|
39041
|
-
/* harmony import */ var
|
|
39042
|
-
/* 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__);
|
|
39043
39574
|
/*!
|
|
39044
39575
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39045
39576
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39056,7 +39587,8 @@ UIImagePositionTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)
|
|
|
39056
39587
|
|
|
39057
39588
|
|
|
39058
39589
|
|
|
39059
|
-
|
|
39590
|
+
|
|
39591
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
39060
39592
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
39061
39593
|
popup: (editor, current, close)=>{
|
|
39062
39594
|
let sourceImage = null;
|
|
@@ -39064,10 +39596,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.image = {
|
|
|
39064
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];
|
|
39065
39597
|
}
|
|
39066
39598
|
editor.s.save();
|
|
39067
|
-
return (0,
|
|
39599
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_7__.FileSelectorWidget)(editor, {
|
|
39068
39600
|
filebrowser: (data)=>{
|
|
39069
39601
|
editor.s.restore();
|
|
39070
|
-
|
|
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));
|
|
39071
39603
|
close();
|
|
39072
39604
|
},
|
|
39073
39605
|
upload: true,
|
|
@@ -39336,39 +39868,40 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39336
39868
|
/* harmony import */ var jodit_plugins_limit_limit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(50662);
|
|
39337
39869
|
/* harmony import */ var jodit_plugins_line_height_line_height__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(58354);
|
|
39338
39870
|
/* harmony import */ var jodit_plugins_link_link__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(68624);
|
|
39339
|
-
/* harmony import */ var
|
|
39340
|
-
/* harmony import */ var
|
|
39341
|
-
/* harmony import */ var
|
|
39342
|
-
/* harmony import */ var
|
|
39343
|
-
/* harmony import */ var
|
|
39344
|
-
/* harmony import */ var
|
|
39345
|
-
/* harmony import */ var
|
|
39346
|
-
/* harmony import */ var
|
|
39347
|
-
/* harmony import */ var
|
|
39348
|
-
/* harmony import */ var
|
|
39349
|
-
/* harmony import */ var
|
|
39350
|
-
/* harmony import */ var
|
|
39351
|
-
/* harmony import */ var
|
|
39352
|
-
/* harmony import */ var
|
|
39353
|
-
/* harmony import */ var
|
|
39354
|
-
/* harmony import */ var
|
|
39355
|
-
/* harmony import */ var
|
|
39356
|
-
/* harmony import */ var
|
|
39357
|
-
/* harmony import */ var
|
|
39358
|
-
/* harmony import */ var
|
|
39359
|
-
/* harmony import */ var
|
|
39360
|
-
/* harmony import */ var
|
|
39361
|
-
/* harmony import */ var
|
|
39362
|
-
/* harmony import */ var
|
|
39363
|
-
/* harmony import */ var
|
|
39364
|
-
/* harmony import */ var
|
|
39365
|
-
/* harmony import */ var
|
|
39366
|
-
/* harmony import */ var
|
|
39367
|
-
/* harmony import */ var
|
|
39368
|
-
/* harmony import */ var
|
|
39369
|
-
/* harmony import */ var
|
|
39370
|
-
/* harmony import */ var
|
|
39371
|
-
/* 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);
|
|
39372
39905
|
/*!
|
|
39373
39906
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39374
39907
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39443,6 +39976,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39443
39976
|
|
|
39444
39977
|
|
|
39445
39978
|
|
|
39979
|
+
|
|
39446
39980
|
|
|
39447
39981
|
|
|
39448
39982
|
/***/ }),
|
|
@@ -39502,6 +40036,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
39502
40036
|
|
|
39503
40037
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
39504
40038
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
40039
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
39505
40040
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
39506
40041
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
39507
40042
|
'source'
|
|
@@ -39589,8 +40124,7 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39589
40124
|
"use strict";
|
|
39590
40125
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
39591
40126
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28686);
|
|
39592
|
-
/* harmony import */ var
|
|
39593
|
-
/* 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);
|
|
39594
40128
|
/*!
|
|
39595
40129
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39596
40130
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39600,7 +40134,6 @@ const isSafeHref = (href)=>/^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(j
|
|
|
39600
40134
|
*/
|
|
39601
40135
|
|
|
39602
40136
|
|
|
39603
|
-
|
|
39604
40137
|
const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__.isString)(control.args[0]) ? control.args[0].toLowerCase() : '';
|
|
39605
40138
|
/* harmony default export */ __webpack_exports__["default"] = ([
|
|
39606
40139
|
'brushCell',
|
|
@@ -39616,7 +40149,7 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39616
40149
|
exec: (editor, table, { control })=>{
|
|
39617
40150
|
const command = cmd(control);
|
|
39618
40151
|
editor.getInstance('Table', editor.o).getAllSelectedCells().forEach((cell)=>{
|
|
39619
|
-
(0,
|
|
40152
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__.css)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
39620
40153
|
});
|
|
39621
40154
|
},
|
|
39622
40155
|
tooltip: 'Vertical align'
|
|
@@ -39682,13 +40215,6 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
39682
40215
|
return;
|
|
39683
40216
|
}
|
|
39684
40217
|
editor.execCommand('tableheaderrow', false, table);
|
|
39685
|
-
const [cell] = editor.getInstance('Table', editor.o).getAllSelectedCells();
|
|
39686
|
-
// Beside the cell that replaced the one it opened for
|
|
39687
|
-
if (cell) {
|
|
39688
|
-
editor.e.fire('showPopup', table, ()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_2__.position)(cell, editor), 'cells');
|
|
39689
|
-
}
|
|
39690
|
-
// The popup stays open, so the button shows the new state
|
|
39691
|
-
return true;
|
|
39692
40218
|
},
|
|
39693
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),
|
|
39694
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),
|
|
@@ -39881,7 +40407,7 @@ const align = {
|
|
|
39881
40407
|
const caption = editor.e.fire('toggleImageCaption', image);
|
|
39882
40408
|
editor.synchronizeValues();
|
|
39883
40409
|
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTMLElement(caption)) {
|
|
39884
|
-
editor.e.fire('hideResizer');
|
|
40410
|
+
editor.e.fire('hidePopup hideResizer');
|
|
39885
40411
|
editor.s.setCursorIn(caption);
|
|
39886
40412
|
} else {
|
|
39887
40413
|
editor.e.fire('recalcPositionPopup');
|
|
@@ -40013,7 +40539,9 @@ const align = {
|
|
|
40013
40539
|
* Plugin for show inline popup dialog
|
|
40014
40540
|
*/ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
40015
40541
|
get popup() {
|
|
40016
|
-
|
|
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;
|
|
40017
40545
|
}
|
|
40018
40546
|
get toolbar() {
|
|
40019
40547
|
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_10__.makeCollection)(this.jodit, this.popup);
|
|
@@ -40026,8 +40554,8 @@ const align = {
|
|
|
40026
40554
|
const isMedia = type === 'jodit-media';
|
|
40027
40555
|
// Beside the media in a wrapper kept in the content, which can fill
|
|
40028
40556
|
// the line, and below a captioned image's caption, so it stays in view
|
|
40029
|
-
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;
|
|
40030
|
-
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);
|
|
40031
40559
|
return false;
|
|
40032
40560
|
}
|
|
40033
40561
|
}
|
|
@@ -40051,13 +40579,18 @@ const align = {
|
|
|
40051
40579
|
* Show inline popup with some toolbar
|
|
40052
40580
|
*
|
|
40053
40581
|
* @param type - selection, img, a etc.
|
|
40054
|
-
|
|
40582
|
+
* @param force - make the popup again for the same target
|
|
40583
|
+
*/ showPopup(rect, type, target, force = false) {
|
|
40055
40584
|
type = type.toLowerCase();
|
|
40056
40585
|
if (!this.canShowPopupForType(type)) {
|
|
40057
40586
|
return false;
|
|
40058
40587
|
}
|
|
40059
|
-
if (this.type !== type || target !== this.previousTarget) {
|
|
40588
|
+
if (force || this.type !== type || target !== this.previousTarget) {
|
|
40060
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'));
|
|
40061
40594
|
const data = this.j.o.popup[type];
|
|
40062
40595
|
let content;
|
|
40063
40596
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(data)) {
|
|
@@ -40140,59 +40673,28 @@ const align = {
|
|
|
40140
40673
|
return name && name !== '|' && name !== '\n' && !names.includes(name);
|
|
40141
40674
|
});
|
|
40142
40675
|
}
|
|
40143
|
-
}).on('hidePopup', this.hidePopup).on('showInlineToolbar', this.showInlineToolbar).on('showPopup', (elm, rect, type)=>{
|
|
40144
|
-
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);
|
|
40145
40678
|
}).on('mousedown keydown', this.onSelectionStart).on('change', ()=>{
|
|
40146
|
-
if (this.popup.isOpened
|
|
40679
|
+
if (!this.popup.isOpened) {
|
|
40680
|
+
return;
|
|
40681
|
+
}
|
|
40682
|
+
if (this.previousTarget && !this.previousTarget.parentNode) {
|
|
40147
40683
|
this.hidePopup();
|
|
40148
40684
|
this.previousTarget = undefined;
|
|
40685
|
+
} else if (this.type === 'selection' && !this.__hasSelectedContent()) {
|
|
40686
|
+
this.hidePopup();
|
|
40149
40687
|
}
|
|
40150
40688
|
}).on([
|
|
40151
40689
|
this.j.ew,
|
|
40152
40690
|
this.j.ow
|
|
40153
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
40154
|
-
this.j.ew,
|
|
40155
|
-
this.j.ow
|
|
40156
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).on('closeAllPopups', this.__onCloseAllPopups);
|
|
40691
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40157
40692
|
this.addListenersForElements();
|
|
40158
40693
|
}
|
|
40159
|
-
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40163
|
-
}
|
|
40164
|
-
__onDocumentMouseDown(e) {
|
|
40165
|
-
this.__reopenFor = null;
|
|
40166
|
-
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)) {
|
|
40167
|
-
this.__reopenSelectionPopup = true;
|
|
40168
|
-
}
|
|
40169
|
-
}
|
|
40170
|
-
__onCloseAllPopups() {
|
|
40171
|
-
const target = this.__reopenFor;
|
|
40172
|
-
if (target) {
|
|
40173
|
-
this.__reopenFor = null;
|
|
40174
|
-
// After the popup's own `closeAllPopups` handler, as below
|
|
40175
|
-
this.j.async.setTimeout(()=>{
|
|
40176
|
-
if (this.j.editor.contains(target)) {
|
|
40177
|
-
this.onClick(target);
|
|
40178
|
-
}
|
|
40179
|
-
}, 1);
|
|
40180
|
-
}
|
|
40181
|
-
if (!this.__reopenSelectionPopup) {
|
|
40182
|
-
return;
|
|
40183
|
-
}
|
|
40184
|
-
this.__reopenSelectionPopup = false;
|
|
40185
|
-
if (!this.j.o.toolbarInlineForSelection) {
|
|
40186
|
-
return;
|
|
40187
|
-
}
|
|
40188
|
-
// a zero timeout would run synchronously — before the popup's own
|
|
40189
|
-
// `closeAllPopups` handler closes it; defer to the next macrotask
|
|
40190
|
-
this.j.async.setTimeout(()=>{
|
|
40191
|
-
const sel = this.j.s.sel;
|
|
40192
|
-
if (sel && !sel.isCollapsed) {
|
|
40193
|
-
this.showPopup(()=>this.__selectionBound(), 'selection');
|
|
40194
|
-
}
|
|
40195
|
-
}, 1);
|
|
40694
|
+
/**
|
|
40695
|
+
* Follow the element once a control has moved it, as the alignments do
|
|
40696
|
+
*/ onRecalcPositionPopup() {
|
|
40697
|
+
this.popup.updatePosition();
|
|
40196
40698
|
}
|
|
40197
40699
|
/**
|
|
40198
40700
|
* The selection rect comes from the editor document — in iframe mode its
|
|
@@ -40238,9 +40740,8 @@ const align = {
|
|
|
40238
40740
|
return;
|
|
40239
40741
|
}
|
|
40240
40742
|
const type = 'selection';
|
|
40241
|
-
const sel = this.j.s.sel;
|
|
40242
40743
|
const range = this.j.s.range;
|
|
40243
|
-
if (
|
|
40744
|
+
if (!this.__hasSelectedContent() || this.isSelectedTarget(range)) {
|
|
40244
40745
|
if (this.type === type && this.popup.isOpened) {
|
|
40245
40746
|
this.hidePopup();
|
|
40246
40747
|
}
|
|
@@ -40252,6 +40753,28 @@ const align = {
|
|
|
40252
40753
|
}
|
|
40253
40754
|
this.showPopup(()=>this.__selectionBound(), type);
|
|
40254
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
|
+
}
|
|
40255
40778
|
/**
|
|
40256
40779
|
* In not collapsed selection - only one image
|
|
40257
40780
|
*/ isSelectedTarget(r) {
|
|
@@ -40267,10 +40790,7 @@ const align = {
|
|
|
40267
40790
|
jodit.e.off('showPopup').off([
|
|
40268
40791
|
this.j.ew,
|
|
40269
40792
|
this.j.ow
|
|
40270
|
-
], 'mouseup keyup', this.onSelectionEnd)
|
|
40271
|
-
this.j.ew,
|
|
40272
|
-
this.j.ow
|
|
40273
|
-
], 'mousedown touchstart', this.__onDocumentMouseDown).off('closeAllPopups', this.__onCloseAllPopups);
|
|
40793
|
+
], 'mouseup keyup', this.onSelectionEnd);
|
|
40274
40794
|
this.removeListenersForElements();
|
|
40275
40795
|
}
|
|
40276
40796
|
_eventsList() {
|
|
@@ -40299,15 +40819,7 @@ const align = {
|
|
|
40299
40819
|
}, 'toolbar');
|
|
40300
40820
|
}
|
|
40301
40821
|
constructor(...args){
|
|
40302
|
-
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),
|
|
40303
|
-
* The user pressed a button inside the selection toolbar — after the
|
|
40304
|
-
* command fires `closeAllPopups`, the toolbar should be shown again
|
|
40305
|
-
* while the selection is still there. See #1238
|
|
40306
|
-
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__reopenSelectionPopup", false), /**
|
|
40307
|
-
* The alignment controls fire `recalcPositionPopup` once they have moved
|
|
40308
|
-
* the element, and their button then fires `closeAllPopups`. The popup
|
|
40309
|
-
* opens again beside the element, as the selection toolbar does
|
|
40310
|
-
*/ (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)));
|
|
40311
40823
|
}
|
|
40312
40824
|
}
|
|
40313
40825
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(inlinePopup, "requires", [
|
|
@@ -40342,12 +40854,6 @@ const align = {
|
|
|
40342
40854
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40343
40855
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':recalcPositionPopup')
|
|
40344
40856
|
], inlinePopup.prototype, "onRecalcPositionPopup", null);
|
|
40345
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40346
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40347
|
-
], inlinePopup.prototype, "__onDocumentMouseDown", null);
|
|
40348
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40349
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40350
|
-
], inlinePopup.prototype, "__onCloseAllPopups", null);
|
|
40351
40857
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
40352
40858
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40353
40859
|
], inlinePopup.prototype, "onSelectionStart", null);
|
|
@@ -40976,8 +41482,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
40976
41482
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
40977
41483
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
40978
41484
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
40979
|
-
/* harmony import */ var
|
|
40980
|
-
/* 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);
|
|
40981
41490
|
/*!
|
|
40982
41491
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40983
41492
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40996,6 +41505,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
40996
41505
|
|
|
40997
41506
|
|
|
40998
41507
|
|
|
41508
|
+
|
|
41509
|
+
|
|
41510
|
+
|
|
41511
|
+
|
|
40999
41512
|
/**
|
|
41000
41513
|
* Process link. Insert, dblclick or remove format
|
|
41001
41514
|
*/ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
@@ -41139,6 +41652,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41139
41652
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
41140
41653
|
}
|
|
41141
41654
|
}
|
|
41655
|
+
addAnchorList(jodit, url_input, content_input, isImageContent);
|
|
41142
41656
|
jodit.editor.normalize();
|
|
41143
41657
|
const snapshot = jodit.history.snapshot.make();
|
|
41144
41658
|
if (unlink) {
|
|
@@ -41301,7 +41815,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
41301
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)) {
|
|
41302
41816
|
return;
|
|
41303
41817
|
}
|
|
41304
|
-
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);
|
|
41305
41819
|
if (!found) {
|
|
41306
41820
|
return;
|
|
41307
41821
|
}
|
|
@@ -41392,6 +41906,136 @@ const MODIFIER_KEYS = new Set([
|
|
|
41392
41906
|
'CapsLock'
|
|
41393
41907
|
]);
|
|
41394
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
|
+
}
|
|
41395
42039
|
/**
|
|
41396
42040
|
* Guess a usable `href` from the selected text for the link dialog.
|
|
41397
42041
|
* Returns an empty string when the text is not a plausible URL/email,
|
|
@@ -41406,7 +42050,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
41406
42050
|
return value;
|
|
41407
42051
|
}
|
|
41408
42052
|
// email address -> mailto:
|
|
41409
|
-
if (
|
|
42053
|
+
if (_typed_link__WEBPACK_IMPORTED_MODULE_12__.EMAIL.test(value)) {
|
|
41410
42054
|
return `mailto:${value}`;
|
|
41411
42055
|
}
|
|
41412
42056
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -45929,8 +46573,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
45929
46573
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
45930
46574
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
45931
46575
|
/* harmony import */ var jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42259);
|
|
45932
|
-
/* harmony import */ var
|
|
45933
|
-
/* 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);
|
|
45934
46579
|
/*!
|
|
45935
46580
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45936
46581
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -45950,12 +46595,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelecti
|
|
|
45950
46595
|
|
|
45951
46596
|
|
|
45952
46597
|
|
|
46598
|
+
|
|
45953
46599
|
const key = 'table_processor_observer';
|
|
45954
46600
|
class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
45955
46601
|
/**
|
|
45956
46602
|
* Shortcut for Jodit.modules.Table
|
|
45957
46603
|
*/ get __tableModule() {
|
|
45958
|
-
return this.j.getInstance(
|
|
46604
|
+
return this.j.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_10__.Table, this.j.o);
|
|
45959
46605
|
}
|
|
45960
46606
|
afterInit(jodit) {
|
|
45961
46607
|
if (!jodit.o.tableAllowCellSelection) {
|
|
@@ -46042,7 +46688,28 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46042
46688
|
// As after a click, the first change to the cell keeps the mark
|
|
46043
46689
|
this.__selectedCell = cell;
|
|
46044
46690
|
this.__tableModule.addSelection(cell);
|
|
46045
|
-
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
|
+
};
|
|
46046
46713
|
}
|
|
46047
46714
|
/**
|
|
46048
46715
|
* Mouse click inside the table
|
|
@@ -46066,7 +46733,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46066
46733
|
this.__selectedCell = cell;
|
|
46067
46734
|
this.j.s.sel?.removeAllRanges();
|
|
46068
46735
|
if (this.__tableModule.getAllSelectedCells().length) {
|
|
46069
|
-
this.j.e.fire('showPopup', table,
|
|
46736
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46070
46737
|
} else {
|
|
46071
46738
|
this.j.e.fire('hidePopup', 'cells');
|
|
46072
46739
|
}
|
|
@@ -46113,8 +46780,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46113
46780
|
return false;
|
|
46114
46781
|
}
|
|
46115
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
|
+
}
|
|
46116
46786
|
onChange() {
|
|
46117
|
-
if (!this.j.isLocked && !this.__isSelectionMode) {
|
|
46787
|
+
if (!this.j.isLocked && !this.__isSelectionMode && !this.__inPopup) {
|
|
46118
46788
|
this.__onRemoveSelection();
|
|
46119
46789
|
}
|
|
46120
46790
|
}
|
|
@@ -46225,15 +46895,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46225
46895
|
if (!min || !max) {
|
|
46226
46896
|
return;
|
|
46227
46897
|
}
|
|
46228
|
-
this.j.e.fire('showPopup', table,
|
|
46229
|
-
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);
|
|
46230
|
-
return {
|
|
46231
|
-
left: minOffset.left,
|
|
46232
|
-
top: minOffset.top,
|
|
46233
|
-
width: maxOffset.left - minOffset.left + maxOffset.width,
|
|
46234
|
-
height: maxOffset.top - minOffset.top + maxOffset.height
|
|
46235
|
-
};
|
|
46236
|
-
}, 'cells');
|
|
46898
|
+
this.j.e.fire('showPopup', table, this.__markedBound, 'cells');
|
|
46237
46899
|
}
|
|
46238
46900
|
__stopListening() {
|
|
46239
46901
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.$$)('table', this.j.editor).forEach((table)=>{
|
|
@@ -46346,6 +47008,11 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46346
47008
|
this.__toggleHeaderRow(table, cells);
|
|
46347
47009
|
break;
|
|
46348
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
|
+
}
|
|
46349
47016
|
if (/^bin(row|column)$/.test(command) && !this.__tableModule.getColumnsCount(table)) {
|
|
46350
47017
|
this.__removeTable(table);
|
|
46351
47018
|
}
|
|
@@ -46368,10 +47035,6 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46368
47035
|
module.addSelection(next);
|
|
46369
47036
|
}
|
|
46370
47037
|
});
|
|
46371
|
-
// As after the click that marked it, the command's own change keeps
|
|
46372
|
-
// the marks, so the popup can stay open for another toggle
|
|
46373
|
-
const anchor = this.__selectedCell ?? cells[0];
|
|
46374
|
-
this.__selectedCell = replaced.get(anchor) ?? anchor;
|
|
46375
47038
|
}
|
|
46376
47039
|
/**
|
|
46377
47040
|
* The cell that takes the caret when rows or columns are deleted: the next
|
|
@@ -46430,7 +47093,10 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46430
47093
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__movedTo", null), /**
|
|
46431
47094
|
* A drag let go outside the table ends in a click on the editor, which
|
|
46432
47095
|
* would unmark its cells
|
|
46433
|
-
*/ (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);
|
|
46434
47100
|
}
|
|
46435
47101
|
}
|
|
46436
47102
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(selectCells, "requires", [
|
|
@@ -46442,6 +47108,9 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46442
47108
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46443
47109
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':keyup')
|
|
46444
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);
|
|
46445
47114
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46446
47115
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46447
47116
|
], selectCells.prototype, "onStartSelection", null);
|
|
@@ -46457,6 +47126,16 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
46457
47126
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46458
47127
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46459
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);
|
|
46460
47139
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46461
47140
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':change')
|
|
46462
47141
|
], selectCells.prototype, "onChange", null);
|
|
@@ -46510,9 +47189,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46510
47189
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
46511
47190
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88475);
|
|
46512
47191
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57821);
|
|
46513
|
-
/* harmony import */ var
|
|
46514
|
-
/* harmony import */ var
|
|
46515
|
-
/* 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);
|
|
46516
47197
|
/*!
|
|
46517
47198
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
46518
47199
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -46532,6 +47213,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46532
47213
|
|
|
46533
47214
|
|
|
46534
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")`;
|
|
46535
47221
|
/**
|
|
46536
47222
|
* A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
|
|
46537
47223
|
*
|
|
@@ -46542,7 +47228,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46542
47228
|
* console.log(img.src);
|
|
46543
47229
|
* })
|
|
46544
47230
|
* ```
|
|
46545
|
-
*/ class select extends
|
|
47231
|
+
*/ class select extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_10__.Plugin {
|
|
46546
47232
|
afterInit(jodit) {
|
|
46547
47233
|
this.proxyEventsList.forEach((eventName)=>{
|
|
46548
47234
|
jodit.e.on(eventName + '.select', this.onStartSelection);
|
|
@@ -46550,6 +47236,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46550
47236
|
jodit.e.on('dblclick', this.__onDblClickBesideRow, {
|
|
46551
47237
|
top: true
|
|
46552
47238
|
});
|
|
47239
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.__markSelectedMedia);
|
|
46553
47240
|
}
|
|
46554
47241
|
beforeDestruct(jodit) {
|
|
46555
47242
|
this.proxyEventsList.forEach((eventName)=>{
|
|
@@ -46557,6 +47244,38 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46557
47244
|
});
|
|
46558
47245
|
this.__endPressBesideRow();
|
|
46559
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
|
+
}
|
|
46560
47279
|
}
|
|
46561
47280
|
onStartSelection(e) {
|
|
46562
47281
|
const { j } = this;
|
|
@@ -46582,10 +47301,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46582
47301
|
}
|
|
46583
47302
|
// Selecting the text of a popup input with the mouse and releasing
|
|
46584
47303
|
// the button past the popup's edge is not a click outside of it.
|
|
46585
|
-
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) {
|
|
46586
47309
|
return;
|
|
46587
47310
|
}
|
|
46588
|
-
const box =
|
|
47311
|
+
const box = jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIElement.closestElement(node, jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.Popup);
|
|
46589
47312
|
if (!box) {
|
|
46590
47313
|
this.j.e.fire('outsideClick', e);
|
|
46591
47314
|
}
|
|
@@ -46790,6 +47513,75 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46790
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);
|
|
46791
47514
|
}
|
|
46792
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
|
+
}
|
|
46793
47585
|
onCopyNormalizeSelectionBound(e) {
|
|
46794
47586
|
const { s, editor, o } = this.j;
|
|
46795
47587
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -46807,7 +47599,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46807
47599
|
'touchstart',
|
|
46808
47600
|
'mouseup',
|
|
46809
47601
|
'touchend'
|
|
46810
|
-
]), /**
|
|
47602
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__selectedMediaStyle", ''), /**
|
|
46811
47603
|
* Where the last press started. Chrome reports a drag that begins in one
|
|
46812
47604
|
* element and ends in another as a `click` on their common ancestor, so a
|
|
46813
47605
|
* press inside a popup is remembered to tell such a drag from a real click.
|
|
@@ -46818,6 +47610,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46818
47610
|
}
|
|
46819
47611
|
}
|
|
46820
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__._)([
|
|
46821
47621
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
46822
47622
|
], select.prototype, "onStartSelection", null);
|
|
46823
47623
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
@@ -46866,12 +47666,82 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
|
|
|
46866
47666
|
':click'
|
|
46867
47667
|
])
|
|
46868
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);
|
|
46869
47679
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46870
47680
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)([
|
|
46871
47681
|
':copy',
|
|
46872
47682
|
':cut'
|
|
46873
47683
|
])
|
|
46874
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
|
+
}
|
|
46875
47745
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('select', select);
|
|
46876
47746
|
|
|
46877
47747
|
|
|
@@ -50411,12 +51281,12 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50411
51281
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
|
|
50412
51282
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
50413
51283
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28077);
|
|
50414
|
-
/* harmony import */ var
|
|
50415
|
-
/* harmony import */ var
|
|
50416
|
-
/* harmony import */ var
|
|
50417
|
-
/* harmony import */ var
|
|
50418
|
-
/* harmony import */ var
|
|
50419
|
-
/* 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);
|
|
50420
51290
|
/* harmony import */ var jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18762);
|
|
50421
51291
|
/* harmony import */ var _ui_ui_video_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(83533);
|
|
50422
51292
|
/* harmony import */ var _readers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(39057);
|
|
@@ -50455,7 +51325,7 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50455
51325
|
* ```javascript
|
|
50456
51326
|
* editor.events.fire('openVideoProperties', video);
|
|
50457
51327
|
* ```
|
|
50458
|
-
*/ class videoProperties extends
|
|
51328
|
+
*/ class videoProperties extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
50459
51329
|
get __size() {
|
|
50460
51330
|
const { width, height } = this.state.values;
|
|
50461
51331
|
return `${width}x${height}`;
|
|
@@ -50494,15 +51364,15 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50494
51364
|
],
|
|
50495
51365
|
buttons.check
|
|
50496
51366
|
]);
|
|
50497
|
-
(0,
|
|
51367
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_6__.markOwner)(j, dialog.container);
|
|
50498
51368
|
return dialog;
|
|
50499
51369
|
}
|
|
50500
51370
|
get __buttons() {
|
|
50501
51371
|
const { j } = this;
|
|
50502
51372
|
return {
|
|
50503
|
-
check: (0,
|
|
50504
|
-
remove: (0,
|
|
50505
|
-
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')
|
|
50506
51376
|
};
|
|
50507
51377
|
}
|
|
50508
51378
|
/**
|
|
@@ -50527,25 +51397,27 @@ UIVideoPropertiesForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__
|
|
|
50527
51397
|
}
|
|
50528
51398
|
__openPosterPopup(button) {
|
|
50529
51399
|
const { j, state } = this;
|
|
50530
|
-
const popup = new
|
|
51400
|
+
const popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.dialog);
|
|
50531
51401
|
const close = ()=>{
|
|
50532
51402
|
popup.close();
|
|
50533
51403
|
popup.destruct();
|
|
50534
51404
|
};
|
|
50535
51405
|
popup.setContent((0,jodit_modules_widget_file_selector_file_selector__WEBPACK_IMPORTED_MODULE_11__.FileSelectorWidget)(j, {
|
|
50536
51406
|
upload: (data)=>{
|
|
50537
|
-
|
|
50538
|
-
|
|
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;
|
|
50539
51410
|
}
|
|
50540
51411
|
close();
|
|
50541
51412
|
},
|
|
50542
51413
|
filebrowser: (data)=>{
|
|
50543
|
-
|
|
50544
|
-
|
|
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;
|
|
50545
51417
|
close();
|
|
50546
51418
|
}
|
|
50547
51419
|
}
|
|
50548
|
-
}, null, close)).open(()=>(0,
|
|
51420
|
+
}, null, close)).open(()=>(0,jodit_core_helpers_size_position__WEBPACK_IMPORTED_MODULE_5__.position)(button));
|
|
50549
51421
|
}
|
|
50550
51422
|
/** @override */ afterInit() {}
|
|
50551
51423
|
/** @override */ beforeDestruct() {
|
|
@@ -50695,9 +51567,10 @@ function setFlag(media, name, on) {
|
|
|
50695
51567
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5658);
|
|
50696
51568
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29434);
|
|
50697
51569
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
|
|
50698
|
-
/* harmony import */ var
|
|
50699
|
-
/* harmony import */ var
|
|
50700
|
-
/* 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__);
|
|
50701
51574
|
/*!
|
|
50702
51575
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50703
51576
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -50711,11 +51584,13 @@ function setFlag(media, name, on) {
|
|
|
50711
51584
|
|
|
50712
51585
|
|
|
50713
51586
|
|
|
51587
|
+
|
|
50714
51588
|
function insertVideos(data) {
|
|
50715
|
-
data
|
|
51589
|
+
const { baseurl } = data;
|
|
51590
|
+
(0,jodit_modules_uploader_helpers_normalize_uploader_data__WEBPACK_IMPORTED_MODULE_5__.getItems)(data).forEach(({ file })=>{
|
|
50716
51591
|
this.s.insertNode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.prepareMedia)(this, this.createInside.element('video', {
|
|
50717
51592
|
controls: '',
|
|
50718
|
-
src:
|
|
51593
|
+
src: baseurl + file
|
|
50719
51594
|
})));
|
|
50720
51595
|
});
|
|
50721
51596
|
}
|
|
@@ -50725,7 +51600,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.video = {
|
|
|
50725
51600
|
defaultHeight: 345,
|
|
50726
51601
|
defaultHandlerSuccess: insertVideos
|
|
50727
51602
|
};
|
|
50728
|
-
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()));
|
|
50729
51604
|
/**
|
|
50730
51605
|
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
50731
51606
|
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
@@ -50771,7 +51646,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50771
51646
|
const { uploader } = jodit.o;
|
|
50772
51647
|
// Base64 alone would put whole video files into the content
|
|
50773
51648
|
if (uploader.showTabInFileSelector !== false && (uploader.url || uploader.customUploadFunction)) {
|
|
50774
|
-
tabs.push((0,
|
|
51649
|
+
tabs.push((0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.UploadTab)(jodit, (data)=>{
|
|
50775
51650
|
run(()=>(jodit.o.video?.defaultHandlerSuccess ?? insertVideos).call(jodit, data));
|
|
50776
51651
|
}, {
|
|
50777
51652
|
label: 'Drop file',
|
|
@@ -50796,7 +51671,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.set('video', (_video_svg__W
|
|
|
50796
51671
|
formCode.onSubmit((data)=>{
|
|
50797
51672
|
insertCode(data.code);
|
|
50798
51673
|
});
|
|
50799
|
-
const box = (0,
|
|
51674
|
+
const box = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_6__.TabsWidget)(jodit, tabs);
|
|
50800
51675
|
// Its tabs are sized to their labels, as the file selector's are, since
|
|
50801
51676
|
// "Upload" doesn't fit a third of the popup
|
|
50802
51677
|
box.classList.add('jodit-file-selector');
|
|
@@ -51193,94 +52068,97 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('xpath', xpath);
|
|
|
51193
52068
|
"use strict";
|
|
51194
52069
|
__webpack_require__.r(__webpack_exports__);
|
|
51195
52070
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51196
|
-
/* harmony export */
|
|
51197
|
-
/* harmony export */
|
|
51198
|
-
/* harmony export */
|
|
51199
|
-
/* harmony export */
|
|
51200
|
-
/* harmony export */
|
|
51201
|
-
/* harmony export */
|
|
51202
|
-
/* harmony export */
|
|
51203
|
-
/* harmony export */
|
|
51204
|
-
/* harmony export */
|
|
51205
|
-
/* harmony export */
|
|
51206
|
-
/* harmony export */
|
|
51207
|
-
/* harmony export */
|
|
51208
|
-
/* harmony export */
|
|
51209
|
-
/* harmony export */
|
|
51210
|
-
/* harmony export */
|
|
51211
|
-
/* harmony export */
|
|
51212
|
-
/* harmony export */
|
|
51213
|
-
/* harmony export */
|
|
51214
|
-
/* harmony export */
|
|
51215
|
-
/* harmony export */
|
|
51216
|
-
/* harmony export */
|
|
51217
|
-
/* harmony export */
|
|
51218
|
-
/* harmony export */
|
|
51219
|
-
/* harmony export */
|
|
51220
|
-
/* harmony export */
|
|
51221
|
-
/* harmony export */
|
|
51222
|
-
/* harmony export */
|
|
51223
|
-
/* harmony export */
|
|
51224
|
-
/* harmony export */
|
|
51225
|
-
/* harmony export */
|
|
51226
|
-
/* harmony
|
|
51227
|
-
/* harmony import */ var
|
|
51228
|
-
/* harmony import */ var
|
|
51229
|
-
/* harmony import */ var
|
|
51230
|
-
/* harmony import */ var
|
|
51231
|
-
/* harmony import */ var
|
|
51232
|
-
/* harmony import */ var
|
|
51233
|
-
/* harmony import */ var
|
|
51234
|
-
/* harmony import */ var
|
|
51235
|
-
/* harmony import */ var
|
|
51236
|
-
/* harmony import */ var
|
|
51237
|
-
/* harmony import */ var
|
|
51238
|
-
/* harmony import */ var
|
|
51239
|
-
/* harmony import */ var
|
|
51240
|
-
/* harmony import */ var
|
|
51241
|
-
/* harmony import */ var
|
|
51242
|
-
/* harmony import */ var
|
|
51243
|
-
/* harmony import */ var
|
|
51244
|
-
/* harmony import */ var
|
|
51245
|
-
/* harmony import */ var
|
|
51246
|
-
/* harmony import */ var
|
|
51247
|
-
/* harmony import */ var
|
|
51248
|
-
/* harmony import */ var
|
|
51249
|
-
/* harmony import */ var
|
|
51250
|
-
/* harmony import */ var
|
|
51251
|
-
/* harmony import */ var
|
|
51252
|
-
/* harmony import */ var
|
|
51253
|
-
/* harmony import */ var
|
|
51254
|
-
/* harmony import */ var
|
|
51255
|
-
/* harmony import */ var
|
|
51256
|
-
/* harmony import */ var
|
|
51257
|
-
/* harmony import */ var
|
|
51258
|
-
/* harmony import */ var
|
|
51259
|
-
/* harmony import */ var
|
|
51260
|
-
/* harmony import */ var
|
|
51261
|
-
/* harmony import */ var
|
|
51262
|
-
/* harmony import */ var
|
|
51263
|
-
/* harmony import */ var
|
|
51264
|
-
/* harmony import */ var
|
|
51265
|
-
/* harmony import */ var
|
|
51266
|
-
/* harmony import */ var
|
|
51267
|
-
/* harmony import */ var
|
|
51268
|
-
/* harmony import */ var
|
|
51269
|
-
/* harmony import */ var
|
|
51270
|
-
/* harmony import */ var
|
|
51271
|
-
/* harmony import */ var
|
|
51272
|
-
/* harmony import */ var
|
|
51273
|
-
/* harmony import */ var
|
|
51274
|
-
/* harmony import */ var
|
|
51275
|
-
/* harmony import */ var
|
|
51276
|
-
/* harmony import */ var
|
|
51277
|
-
/* harmony import */ var
|
|
51278
|
-
/* harmony import */ var
|
|
51279
|
-
/* harmony import */ var
|
|
51280
|
-
/* harmony import */ var
|
|
51281
|
-
/* harmony import */ var
|
|
51282
|
-
/* harmony import */ var
|
|
51283
|
-
/* 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__);
|
|
51284
52162
|
/*!
|
|
51285
52163
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
51286
52164
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -51319,6 +52197,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51319
52197
|
|
|
51320
52198
|
|
|
51321
52199
|
|
|
52200
|
+
|
|
51322
52201
|
|
|
51323
52202
|
|
|
51324
52203
|
/***/ }),
|
|
@@ -51333,7 +52212,7 @@ module.exports["default"] = {"Type something":"Start writing...","pencil":"Edit"
|
|
|
51333
52212
|
/***/ 53414:
|
|
51334
52213
|
/***/ (function(module) {
|
|
51335
52214
|
|
|
51336
|
-
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"]
|
|
51337
52216
|
|
|
51338
52217
|
/***/ }),
|
|
51339
52218
|
|
|
@@ -51708,6 +52587,13 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=
|
|
|
51708
52587
|
|
|
51709
52588
|
/***/ }),
|
|
51710
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
|
+
|
|
51711
52597
|
/***/ 88497:
|
|
51712
52598
|
/***/ (function(module) {
|
|
51713
52599
|
|