jodit 4.2.14 → 4.2.17
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 +64 -5
- package/es2015/jodit.css +115 -115
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +928 -823
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- 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 +11 -11
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +115 -115
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +928 -825
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +11 -11
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +115 -115
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +922 -819
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- 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 +11 -11
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +115 -115
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +922 -819
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- 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 +11 -11
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +129 -129
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +950 -844
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- 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 +11 -11
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/config-proto.js +1 -1
- package/esm/core/request/ajax.js +1 -1
- package/esm/core/selection/helpers/index.d.ts +9 -3
- package/esm/core/selection/helpers/index.js +48 -0
- package/esm/core/selection/selection.d.ts +6 -1
- package/esm/core/selection/selection.js +95 -117
- package/esm/core/ui/helpers/get-control-type.js +15 -9
- package/esm/core/ui/helpers/get-strong-control-types.js +1 -1
- package/esm/index.d.ts +6 -1
- package/esm/index.js +3 -2
- package/esm/jodit.d.ts +1 -1
- package/esm/jodit.js +1 -1
- package/esm/modules/file-browser/file-browser.js +1 -1
- package/esm/modules/history/history.js +1 -1
- package/esm/modules/image-editor/config.js +1 -1
- package/esm/modules/image-editor/image-editor.js +1 -1
- package/esm/modules/table/table.d.ts +3 -1
- package/esm/modules/table/table.js +38 -33
- package/esm/modules/toolbar/button/button.js +2 -1
- package/esm/modules/toolbar/button/select/select.js +2 -1
- package/esm/modules/uploader/helpers/send-files.js +33 -29
- package/esm/modules/uploader/uploader.js +1 -1
- package/esm/plugins/about/about.js +1 -1
- package/esm/plugins/add-new-line/config.js +1 -1
- package/esm/plugins/ai-assistant/config.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-char.js +68 -54
- package/esm/plugins/bold/bold.js +1 -1
- package/esm/plugins/class-span/class-span.js +1 -1
- package/esm/plugins/clean-html/config.js +1 -1
- package/esm/plugins/clipboard/config.js +1 -1
- package/esm/plugins/color/config.js +1 -1
- package/esm/plugins/copy-format/copy-format.js +1 -1
- package/esm/plugins/drag-and-drop/drag-and-drop.d.ts +2 -0
- package/esm/plugins/drag-and-drop/drag-and-drop.js +43 -36
- package/esm/plugins/file/file.js +1 -1
- package/esm/plugins/font/config.js +1 -1
- package/esm/plugins/format-block/config.js +6 -4
- package/esm/plugins/fullsize/config.js +1 -1
- package/esm/plugins/hr/hr.js +1 -1
- package/esm/plugins/image/image.js +1 -1
- package/esm/plugins/image-properties/config.d.ts +0 -3
- package/esm/plugins/image-properties/config.js +3 -0
- package/esm/plugins/image-properties/interface.d.ts +121 -0
- package/esm/plugins/indent/config.js +1 -1
- package/esm/plugins/inline-popup/config/config.js +1 -1
- package/esm/plugins/justify/justify.js +10 -6
- package/esm/plugins/line-height/config.js +1 -1
- package/esm/plugins/link/config.js +1 -1
- package/esm/plugins/link/link.js +71 -64
- package/esm/plugins/mobile/config.js +1 -1
- package/esm/plugins/ordered-list/config.js +1 -1
- package/esm/plugins/paste/config.js +1 -1
- package/esm/plugins/print/print.js +1 -1
- package/esm/plugins/redo-undo/redo-undo.js +1 -1
- package/esm/plugins/search/config.js +1 -1
- package/esm/plugins/search/helpers/highlight-text-ranges.d.ts +0 -4
- package/esm/plugins/search/helpers/highlight-text-ranges.js +58 -49
- package/esm/plugins/source/config.js +1 -1
- package/esm/plugins/speech-recognize/config.js +1 -1
- package/esm/plugins/spellcheck/config.js +1 -1
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/table/config.js +1 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +35 -29
- package/esm/plugins/video/config.js +1 -1
- package/esm/types/toolbar.d.ts +1 -2
- package/package.json +1 -1
- package/types/core/selection/helpers/index.d.ts +9 -3
- package/types/core/selection/selection.d.ts +6 -1
- package/types/index.d.ts +6 -1
- package/types/jodit.d.ts +1 -1
- package/types/modules/table/table.d.ts +3 -1
- package/types/plugins/drag-and-drop/drag-and-drop.d.ts +2 -0
- package/types/plugins/image-properties/config.d.ts +0 -3
- package/types/plugins/image-properties/interface.d.ts +121 -0
- package/types/plugins/search/helpers/highlight-text-ranges.d.ts +0 -4
- package/types/types/toolbar.d.ts +1 -2
package/es2018/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.2.
|
|
4
|
+
* Version: v4.2.17
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1736,7 +1736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1736
1736
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1737
1737
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1738
1738
|
*/
|
|
1739
|
-
const APP_VERSION = "4.2.
|
|
1739
|
+
const APP_VERSION = "4.2.17";
|
|
1740
1740
|
// prettier-ignore
|
|
1741
1741
|
const ES = "es2018";
|
|
1742
1742
|
const IS_ES_MODERN = true;
|
|
@@ -7538,9 +7538,9 @@ const completeUrl = (url) => {
|
|
|
7538
7538
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
|
|
7539
7539
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
|
|
7540
7540
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
|
|
7541
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36115);
|
|
7541
7542
|
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49429);
|
|
7542
|
-
/* harmony import */ var
|
|
7543
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
7543
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84976);
|
|
7544
7544
|
/*!
|
|
7545
7545
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7546
7546
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7588,7 +7588,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
7588
7588
|
if (Object.getPrototypeOf(options) !== Object.prototype) {
|
|
7589
7589
|
return options;
|
|
7590
7590
|
}
|
|
7591
|
-
const def =
|
|
7591
|
+
const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
|
|
7592
7592
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
|
|
7593
7593
|
if (def.presets[options.preset] !== undefined) {
|
|
7594
7594
|
const preset = def.presets[options.preset];
|
|
@@ -7618,7 +7618,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
7618
7618
|
return newOpt;
|
|
7619
7619
|
}
|
|
7620
7620
|
function ConfigFlatten(obj) {
|
|
7621
|
-
return (0,
|
|
7621
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
|
|
7622
7622
|
app[key] = obj[key];
|
|
7623
7623
|
return app;
|
|
7624
7624
|
}, {});
|
|
@@ -9582,9 +9582,9 @@ Plugin.requires = [];
|
|
|
9582
9582
|
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26318);
|
|
9583
9583
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
9584
9584
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50156);
|
|
9585
|
-
/* harmony import */ var
|
|
9585
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
9586
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27337);
|
|
9586
9587
|
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
|
|
9587
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
9588
9588
|
/*!
|
|
9589
9589
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9590
9590
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9602,7 +9602,7 @@ class Ajax {
|
|
|
9602
9602
|
className() {
|
|
9603
9603
|
return 'Ajax';
|
|
9604
9604
|
}
|
|
9605
|
-
constructor(options, defaultAjaxOptions =
|
|
9605
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
9606
9606
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
9607
9607
|
this.__isFulfilled = false;
|
|
9608
9608
|
this.__activated = false;
|
|
@@ -9848,10 +9848,14 @@ class Response {
|
|
|
9848
9848
|
|
|
9849
9849
|
"use strict";
|
|
9850
9850
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9851
|
-
/* harmony export */
|
|
9851
|
+
/* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
9852
|
+
/* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
|
|
9853
|
+
/* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
|
|
9852
9854
|
/* harmony export */ });
|
|
9853
|
-
/* harmony import */ var
|
|
9854
|
-
/* harmony import */ var
|
|
9855
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
9856
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
9857
|
+
/* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5298);
|
|
9858
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83541);
|
|
9855
9859
|
/*!
|
|
9856
9860
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9857
9861
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9864,6 +9868,55 @@ class Response {
|
|
|
9864
9868
|
|
|
9865
9869
|
|
|
9866
9870
|
|
|
9871
|
+
/**
|
|
9872
|
+
* Check if the cursor is at the edge of the string
|
|
9873
|
+
* @private
|
|
9874
|
+
*/
|
|
9875
|
+
function cursorInTheEdgeOfString(container, offset, start, end) {
|
|
9876
|
+
var _a;
|
|
9877
|
+
const text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
|
|
9878
|
+
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
9879
|
+
return true;
|
|
9880
|
+
}
|
|
9881
|
+
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
9882
|
+
return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
|
|
9883
|
+
}
|
|
9884
|
+
function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
|
|
9885
|
+
node = range.startContainer.childNodes[range.startOffset];
|
|
9886
|
+
if (!node) {
|
|
9887
|
+
node = range.startContainer.childNodes[range.startOffset - 1];
|
|
9888
|
+
rightMode = true;
|
|
9889
|
+
}
|
|
9890
|
+
if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
9891
|
+
// test Current method - Cursor in the left of some SPAN
|
|
9892
|
+
if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
|
|
9893
|
+
node = node.previousSibling;
|
|
9894
|
+
}
|
|
9895
|
+
else if (checkChild) {
|
|
9896
|
+
let current = child(node);
|
|
9897
|
+
while (current) {
|
|
9898
|
+
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
|
|
9899
|
+
node = current;
|
|
9900
|
+
break;
|
|
9901
|
+
}
|
|
9902
|
+
current = child(current);
|
|
9903
|
+
}
|
|
9904
|
+
}
|
|
9905
|
+
}
|
|
9906
|
+
if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
9907
|
+
let leftChild = node, rightChild = node;
|
|
9908
|
+
do {
|
|
9909
|
+
leftChild = leftChild.firstChild;
|
|
9910
|
+
rightChild = rightChild.lastChild;
|
|
9911
|
+
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
|
|
9912
|
+
if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
|
|
9913
|
+
node = leftChild;
|
|
9914
|
+
}
|
|
9915
|
+
}
|
|
9916
|
+
return { node, rightMode };
|
|
9917
|
+
}
|
|
9918
|
+
|
|
9919
|
+
|
|
9867
9920
|
/***/ }),
|
|
9868
9921
|
|
|
9869
9922
|
/***/ 5298:
|
|
@@ -9984,7 +10037,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
9984
10037
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9985
10038
|
/* harmony export */ L: function() { return /* binding */ Selection; }
|
|
9986
10039
|
/* harmony export */ });
|
|
9987
|
-
/* harmony import */ var
|
|
10040
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
|
|
9988
10041
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
9989
10042
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
9990
10043
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
@@ -9994,6 +10047,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
9994
10047
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__);
|
|
9995
10048
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83541);
|
|
9996
10049
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8757);
|
|
10050
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46602);
|
|
9997
10051
|
/*!
|
|
9998
10052
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9999
10053
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10010,6 +10064,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
10010
10064
|
|
|
10011
10065
|
|
|
10012
10066
|
|
|
10067
|
+
|
|
10013
10068
|
class Selection {
|
|
10014
10069
|
constructor(jodit) {
|
|
10015
10070
|
this.jodit = jodit;
|
|
@@ -10395,63 +10450,35 @@ class Selection {
|
|
|
10395
10450
|
* Returns the current element under the cursor inside editor
|
|
10396
10451
|
*/
|
|
10397
10452
|
current(checkChild = true) {
|
|
10398
|
-
if (this.j.getRealMode()
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
}
|
|
10421
|
-
else if (checkChild) {
|
|
10422
|
-
let current = child(node);
|
|
10423
|
-
while (current) {
|
|
10424
|
-
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
|
|
10425
|
-
node = current;
|
|
10426
|
-
break;
|
|
10427
|
-
}
|
|
10428
|
-
current = child(current);
|
|
10429
|
-
}
|
|
10430
|
-
}
|
|
10431
|
-
}
|
|
10432
|
-
if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
10433
|
-
let leftChild = node, rightChild = node;
|
|
10434
|
-
do {
|
|
10435
|
-
leftChild = leftChild.firstChild;
|
|
10436
|
-
rightChild = rightChild.lastChild;
|
|
10437
|
-
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
|
|
10438
|
-
if (leftChild === rightChild &&
|
|
10439
|
-
leftChild &&
|
|
10440
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
|
|
10441
|
-
node = leftChild;
|
|
10442
|
-
}
|
|
10443
|
-
}
|
|
10444
|
-
}
|
|
10445
|
-
// check - cursor inside editor
|
|
10446
|
-
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
10447
|
-
return node;
|
|
10448
|
-
}
|
|
10453
|
+
if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
10454
|
+
return null;
|
|
10455
|
+
}
|
|
10456
|
+
const sel = this.sel;
|
|
10457
|
+
if (!sel || sel.rangeCount === 0) {
|
|
10458
|
+
return null;
|
|
10459
|
+
}
|
|
10460
|
+
const range = sel.getRangeAt(0);
|
|
10461
|
+
let node = range.startContainer;
|
|
10462
|
+
let rightMode = false;
|
|
10463
|
+
const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
|
|
10464
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
|
|
10465
|
+
return node;
|
|
10466
|
+
}
|
|
10467
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
10468
|
+
const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
|
|
10469
|
+
node = ret.node;
|
|
10470
|
+
rightMode = ret.rightMode;
|
|
10471
|
+
}
|
|
10472
|
+
// check - cursor inside editor
|
|
10473
|
+
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
10474
|
+
return node;
|
|
10449
10475
|
}
|
|
10450
10476
|
return null;
|
|
10451
10477
|
}
|
|
10452
10478
|
/**
|
|
10453
10479
|
* Insert element in editor
|
|
10454
10480
|
*
|
|
10481
|
+
* @param node - Node for insert
|
|
10455
10482
|
* @param insertCursorAfter - After insert, cursor will move after element
|
|
10456
10483
|
* @param fireChange - After insert, editor fire change event. You can prevent this behavior
|
|
10457
10484
|
*/
|
|
@@ -10513,6 +10540,7 @@ class Selection {
|
|
|
10513
10540
|
* Inserts in the current cursor position some HTML snippet
|
|
10514
10541
|
*
|
|
10515
10542
|
* @param html - HTML The text to be inserted into the document
|
|
10543
|
+
* @param insertCursorAfter - After insert, cursor will move after element
|
|
10516
10544
|
* @example
|
|
10517
10545
|
* ```javascript
|
|
10518
10546
|
* parent.s.insertHTML('<img src="image.png"/>');
|
|
@@ -10556,6 +10584,7 @@ class Selection {
|
|
|
10556
10584
|
*
|
|
10557
10585
|
* @param url - URL for image, or HTMLImageElement
|
|
10558
10586
|
* @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
|
|
10587
|
+
* @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
|
|
10559
10588
|
*/
|
|
10560
10589
|
insertImage(url, styles = null, defaultWidth = null) {
|
|
10561
10590
|
const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
|
|
@@ -10611,74 +10640,81 @@ class Selection {
|
|
|
10611
10640
|
eachSelection(callback) {
|
|
10612
10641
|
var _a;
|
|
10613
10642
|
const sel = this.sel;
|
|
10614
|
-
if (sel
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10643
|
+
if (!sel || !sel.rangeCount) {
|
|
10644
|
+
return;
|
|
10645
|
+
}
|
|
10646
|
+
const range = sel.getRangeAt(0);
|
|
10647
|
+
let root = range.commonAncestorContainer;
|
|
10648
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
|
|
10649
|
+
root = root.parentElement;
|
|
10650
|
+
}
|
|
10651
|
+
const nodes = [];
|
|
10652
|
+
const startOffset = range.startOffset;
|
|
10653
|
+
const length = root.childNodes.length;
|
|
10654
|
+
const elementOffset = startOffset < length ? startOffset : length - 1;
|
|
10655
|
+
let start = range.startContainer === this.area
|
|
10656
|
+
? root.childNodes[elementOffset]
|
|
10657
|
+
: range.startContainer;
|
|
10658
|
+
let end = range.endContainer === this.area
|
|
10659
|
+
? root.childNodes[range.endOffset - 1]
|
|
10660
|
+
: range.endContainer;
|
|
10661
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
|
|
10662
|
+
start === range.startContainer &&
|
|
10663
|
+
range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
10664
|
+
start.nextSibling) {
|
|
10665
|
+
start = start.nextSibling;
|
|
10666
|
+
}
|
|
10667
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
|
|
10668
|
+
end === range.endContainer &&
|
|
10669
|
+
range.endOffset === 0 &&
|
|
10670
|
+
end.previousSibling) {
|
|
10671
|
+
end = end.previousSibling;
|
|
10672
|
+
}
|
|
10673
|
+
const checkElm = (node) => {
|
|
10674
|
+
if (node &&
|
|
10675
|
+
node !== root &&
|
|
10676
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
|
|
10677
|
+
!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
|
|
10678
|
+
nodes.push(node);
|
|
10679
|
+
}
|
|
10680
|
+
};
|
|
10681
|
+
checkElm(start);
|
|
10682
|
+
if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
|
|
10683
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
|
|
10684
|
+
checkElm(node);
|
|
10685
|
+
// checks parentElement as well because partial selections are not equal to entire element
|
|
10686
|
+
return (node === end ||
|
|
10687
|
+
(node && node.contains && node.contains(end)));
|
|
10688
|
+
}, root, true, false);
|
|
10689
|
+
}
|
|
10690
|
+
const forEvery = (current) => {
|
|
10691
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
|
|
10692
|
+
return;
|
|
10693
|
+
}
|
|
10694
|
+
if (current.nodeName.match(/^(UL|OL)$/)) {
|
|
10695
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
|
|
10696
|
+
}
|
|
10697
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
|
|
10698
|
+
if (current.firstChild) {
|
|
10699
|
+
current = current.firstChild;
|
|
10661
10700
|
}
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
else {
|
|
10667
|
-
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10668
|
-
current.appendChild(currentB);
|
|
10669
|
-
current = currentB;
|
|
10670
|
-
}
|
|
10701
|
+
else {
|
|
10702
|
+
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10703
|
+
current.appendChild(currentB);
|
|
10704
|
+
current = currentB;
|
|
10671
10705
|
}
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10706
|
+
}
|
|
10707
|
+
callback(current);
|
|
10708
|
+
};
|
|
10709
|
+
if (nodes.length === 0) {
|
|
10710
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
|
|
10675
10711
|
nodes.push(start);
|
|
10676
10712
|
}
|
|
10677
|
-
if (
|
|
10713
|
+
if (start.firstChild) {
|
|
10678
10714
|
nodes.push(start.firstChild);
|
|
10679
10715
|
}
|
|
10680
|
-
nodes.forEach(forEvery);
|
|
10681
10716
|
}
|
|
10717
|
+
nodes.forEach(forEvery);
|
|
10682
10718
|
}
|
|
10683
10719
|
/**
|
|
10684
10720
|
* Checks if the cursor is at the end(start) block
|
|
@@ -10690,7 +10726,7 @@ class Selection {
|
|
|
10690
10726
|
* @returns true - the cursor is at the end(start) block, null - cursor somewhere outside
|
|
10691
10727
|
*/
|
|
10692
10728
|
cursorInTheEdge(start, parentBlock, fake = null) {
|
|
10693
|
-
var _a
|
|
10729
|
+
var _a;
|
|
10694
10730
|
const end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
|
|
10695
10731
|
fake !== null && fake !== void 0 ? fake : (fake = this.current(false));
|
|
10696
10732
|
if (!range || !fake || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(parentBlock, fake, true)) {
|
|
@@ -10706,13 +10742,7 @@ class Selection {
|
|
|
10706
10742
|
this.j.e.fire('isInvisibleForCursor', elm) === true));
|
|
10707
10743
|
// check right offset
|
|
10708
10744
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
|
|
10709
|
-
|
|
10710
|
-
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
10711
|
-
return false;
|
|
10712
|
-
}
|
|
10713
|
-
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
10714
|
-
if (start &&
|
|
10715
|
-
((inv && inv[0].length < offset) || (!inv && offset > 0))) {
|
|
10745
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
|
|
10716
10746
|
return false;
|
|
10717
10747
|
}
|
|
10718
10748
|
}
|
|
@@ -10801,6 +10831,7 @@ class Selection {
|
|
|
10801
10831
|
}
|
|
10802
10832
|
/**
|
|
10803
10833
|
* Set cursor in the node
|
|
10834
|
+
* @param node - Node element
|
|
10804
10835
|
* @param inStart - set cursor in start of element
|
|
10805
10836
|
*/
|
|
10806
10837
|
setCursorIn(node, inStart = false) {
|
|
@@ -10861,6 +10892,7 @@ class Selection {
|
|
|
10861
10892
|
}
|
|
10862
10893
|
/**
|
|
10863
10894
|
* Select node
|
|
10895
|
+
* @param node - Node element
|
|
10864
10896
|
* @param inward - select all inside
|
|
10865
10897
|
*/
|
|
10866
10898
|
select(node, inward = false) {
|
|
@@ -11135,19 +11167,19 @@ class Selection {
|
|
|
11135
11167
|
return this;
|
|
11136
11168
|
}
|
|
11137
11169
|
}
|
|
11138
|
-
(0,
|
|
11170
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11139
11171
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11140
11172
|
], Selection.prototype, "createRange", null);
|
|
11141
|
-
(0,
|
|
11173
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11142
11174
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11143
11175
|
], Selection.prototype, "focus", null);
|
|
11144
|
-
(0,
|
|
11176
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11145
11177
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11146
11178
|
], Selection.prototype, "setCursorAfter", null);
|
|
11147
|
-
(0,
|
|
11179
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11148
11180
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11149
11181
|
], Selection.prototype, "setCursorBefore", null);
|
|
11150
|
-
(0,
|
|
11182
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11151
11183
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11152
11184
|
], Selection.prototype, "setCursorIn", null);
|
|
11153
11185
|
|
|
@@ -15035,7 +15067,6 @@ function getControlType(button, controls) {
|
|
|
15035
15067
|
* @private
|
|
15036
15068
|
*/
|
|
15037
15069
|
function findControlType(path, controls) {
|
|
15038
|
-
var _a;
|
|
15039
15070
|
// eslint-disable-next-line prefer-const
|
|
15040
15071
|
let [namespaceOrKey, key] = path.split(/\./);
|
|
15041
15072
|
let store = controls;
|
|
@@ -15047,17 +15078,23 @@ function findControlType(path, controls) {
|
|
|
15047
15078
|
else {
|
|
15048
15079
|
key = namespaceOrKey;
|
|
15049
15080
|
}
|
|
15050
|
-
const list =
|
|
15081
|
+
// const list = store[key]?.list;
|
|
15051
15082
|
return store[key]
|
|
15052
15083
|
? {
|
|
15053
15084
|
name: key,
|
|
15054
|
-
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15055
|
-
list:
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
|
|
15085
|
+
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15086
|
+
// list: isArray(list)
|
|
15087
|
+
// ? (<Array<string>>list).reduce(
|
|
15088
|
+
// (
|
|
15089
|
+
// acc: IDictionary<string | number>,
|
|
15090
|
+
// k: string | number
|
|
15091
|
+
// ) => {
|
|
15092
|
+
// acc[String(k)] = k;
|
|
15093
|
+
// return acc;
|
|
15094
|
+
// },
|
|
15095
|
+
// {}
|
|
15096
|
+
// )
|
|
15097
|
+
// : list
|
|
15061
15098
|
}
|
|
15062
15099
|
: undefined;
|
|
15063
15100
|
}
|
|
@@ -15074,8 +15111,8 @@ function findControlType(path, controls) {
|
|
|
15074
15111
|
/* harmony export */ });
|
|
15075
15112
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37923);
|
|
15076
15113
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97369);
|
|
15077
|
-
/* harmony import */ var
|
|
15078
|
-
/* harmony import */ var
|
|
15114
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
15115
|
+
/* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57023);
|
|
15079
15116
|
/*!
|
|
15080
15117
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15081
15118
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15095,7 +15132,7 @@ function getStrongControlTypes(items, controls) {
|
|
|
15095
15132
|
const value = items[key] || {};
|
|
15096
15133
|
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
|
|
15097
15134
|
});
|
|
15098
|
-
return elements.map(item => (0,
|
|
15135
|
+
return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_2__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions.controls));
|
|
15099
15136
|
}
|
|
15100
15137
|
|
|
15101
15138
|
|
|
@@ -16195,8 +16232,8 @@ View.defaultOptions = {
|
|
|
16195
16232
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
|
|
16196
16233
|
/* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53883);
|
|
16197
16234
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58597);
|
|
16198
|
-
/* harmony import */ var
|
|
16199
|
-
/* harmony import */ var
|
|
16235
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
|
|
16236
|
+
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37435);
|
|
16200
16237
|
/*!
|
|
16201
16238
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16202
16239
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16215,7 +16252,7 @@ var Jodit_1;
|
|
|
16215
16252
|
|
|
16216
16253
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
16217
16254
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
16218
|
-
let Jodit = Jodit_1 = class Jodit extends
|
|
16255
|
+
let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
|
|
16219
16256
|
/** @override */
|
|
16220
16257
|
className() {
|
|
16221
16258
|
return 'Jodit';
|
|
@@ -16262,7 +16299,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16262
16299
|
get defaultTimeout() {
|
|
16263
16300
|
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
|
|
16264
16301
|
? this.o.defaultTimeout
|
|
16265
|
-
:
|
|
16302
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
|
|
16266
16303
|
}
|
|
16267
16304
|
/**
|
|
16268
16305
|
* Method wrap usual Has Object in Object helper for prevent deep object merging in options*
|
|
@@ -16288,10 +16325,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16288
16325
|
* Default settings
|
|
16289
16326
|
*/
|
|
16290
16327
|
static get defaultOptions() {
|
|
16291
|
-
return
|
|
16328
|
+
return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
|
|
16292
16329
|
}
|
|
16293
16330
|
get createInside() {
|
|
16294
|
-
return new
|
|
16331
|
+
return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
|
|
16295
16332
|
}
|
|
16296
16333
|
__setPlaceField(field, value) {
|
|
16297
16334
|
if (!this.currentPlace) {
|
|
@@ -16839,8 +16876,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16839
16876
|
const active = this.od.activeElement;
|
|
16840
16877
|
if (active &&
|
|
16841
16878
|
(active === this.iframe ||
|
|
16842
|
-
|
|
16843
|
-
|
|
16879
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
|
|
16880
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
|
|
16844
16881
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
|
|
16845
16882
|
}
|
|
16846
16883
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
|
|
@@ -16992,7 +17029,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16992
17029
|
}
|
|
16993
17030
|
/** @override **/
|
|
16994
17031
|
initOptions(options) {
|
|
16995
|
-
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17032
|
+
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
|
|
16996
17033
|
}
|
|
16997
17034
|
/** @override **/
|
|
16998
17035
|
initOwners() {
|
|
@@ -17037,7 +17074,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17037
17074
|
this.destruct();
|
|
17038
17075
|
throw e;
|
|
17039
17076
|
}
|
|
17040
|
-
this.setStatus(
|
|
17077
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
|
|
17041
17078
|
this.id =
|
|
17042
17079
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, this.o.shadowRoot || this.od), 'id') ||
|
|
17043
17080
|
new Date().getTime().toString();
|
|
@@ -17049,7 +17086,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17049
17086
|
}
|
|
17050
17087
|
});
|
|
17051
17088
|
this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
|
|
17052
|
-
this.selection = new
|
|
17089
|
+
this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
|
|
17053
17090
|
const beforeInitHookResult = this.beforeInitHook();
|
|
17054
17091
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
|
|
17055
17092
|
if (this.isInDestruct) {
|
|
@@ -17073,7 +17110,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17073
17110
|
this.e.fire('afterInit', this);
|
|
17074
17111
|
}
|
|
17075
17112
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
|
|
17076
|
-
this.setStatus(
|
|
17113
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
|
|
17077
17114
|
this.e.fire('afterConstructor', this);
|
|
17078
17115
|
};
|
|
17079
17116
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
|
|
@@ -17089,7 +17126,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17089
17126
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
|
|
17090
17127
|
const name = attr.name;
|
|
17091
17128
|
let value = attr.value;
|
|
17092
|
-
if (
|
|
17129
|
+
if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
|
|
17093
17130
|
(!options || options[name] === undefined)) {
|
|
17094
17131
|
if (['readonly', 'disabled'].indexOf(name) !== -1) {
|
|
17095
17132
|
value = value === '' || value === 'true';
|
|
@@ -17157,11 +17194,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17157
17194
|
element,
|
|
17158
17195
|
container,
|
|
17159
17196
|
workplace,
|
|
17160
|
-
statusbar: new
|
|
17197
|
+
statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
|
|
17161
17198
|
options: this.isReady
|
|
17162
|
-
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17199
|
+
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
|
|
17163
17200
|
: this.options,
|
|
17164
|
-
history: new
|
|
17201
|
+
history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
|
|
17165
17202
|
editorWindow: this.ow
|
|
17166
17203
|
};
|
|
17167
17204
|
this.__elementToPlace.set(editor, currentPlace);
|
|
@@ -17252,7 +17289,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17252
17289
|
return;
|
|
17253
17290
|
}
|
|
17254
17291
|
if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
|
|
17255
|
-
|
|
17292
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
|
|
17256
17293
|
}
|
|
17257
17294
|
addClassNames(this.o.editorClassName, this.editor);
|
|
17258
17295
|
if (this.o.style) {
|
|
@@ -17342,7 +17379,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17342
17379
|
if (this.isInDestruct) {
|
|
17343
17380
|
return;
|
|
17344
17381
|
}
|
|
17345
|
-
this.setStatus(
|
|
17382
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
|
|
17346
17383
|
this.__elementToPlace.clear();
|
|
17347
17384
|
this.storage.clear();
|
|
17348
17385
|
this.buffer.clear();
|
|
@@ -17383,17 +17420,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17383
17420
|
this.e.off(container);
|
|
17384
17421
|
this.e.off(element);
|
|
17385
17422
|
this.e.off(editor);
|
|
17386
|
-
|
|
17387
|
-
|
|
17423
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
|
|
17424
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
|
|
17388
17425
|
if (container !== element) {
|
|
17389
|
-
|
|
17426
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
|
|
17390
17427
|
}
|
|
17391
17428
|
Object.defineProperty(element, 'component', {
|
|
17392
17429
|
enumerable: false,
|
|
17393
17430
|
configurable: true,
|
|
17394
17431
|
value: null
|
|
17395
17432
|
});
|
|
17396
|
-
|
|
17433
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
|
|
17397
17434
|
// inline mode
|
|
17398
17435
|
if (container === element) {
|
|
17399
17436
|
element.innerHTML = buffer;
|
|
@@ -17415,7 +17452,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
17415
17452
|
Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
|
|
17416
17453
|
Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
17417
17454
|
Jodit.core = {
|
|
17418
|
-
Plugin:
|
|
17455
|
+
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
17419
17456
|
};
|
|
17420
17457
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17421
17458
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
@@ -19694,16 +19731,16 @@ async function loadTree(fb) {
|
|
|
19694
19731
|
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
|
|
19695
19732
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
|
|
19696
19733
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
|
|
19697
|
-
/* harmony import */ var
|
|
19734
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(36115);
|
|
19735
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70265);
|
|
19698
19736
|
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(9979);
|
|
19699
|
-
/* harmony import */ var
|
|
19700
|
-
/* harmony import */ var
|
|
19701
|
-
/* harmony import */ var
|
|
19702
|
-
/* harmony import */ var
|
|
19703
|
-
/* harmony import */ var
|
|
19704
|
-
/* harmony import */ var
|
|
19705
|
-
/* harmony import */ var
|
|
19706
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
|
|
19737
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31859);
|
|
19738
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62994);
|
|
19739
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18043);
|
|
19740
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80004);
|
|
19741
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(75889);
|
|
19742
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(83797);
|
|
19743
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(10274);
|
|
19707
19744
|
/*!
|
|
19708
19745
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
19709
19746
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -19737,7 +19774,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19737
19774
|
return 'FileBrowser';
|
|
19738
19775
|
}
|
|
19739
19776
|
get dataProvider() {
|
|
19740
|
-
return (0,
|
|
19777
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
19741
19778
|
}
|
|
19742
19779
|
// eslint-disable-next-line no-unused-vars
|
|
19743
19780
|
onSelect(callback) {
|
|
@@ -19853,7 +19890,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19853
19890
|
this.__updateToolbarButtons();
|
|
19854
19891
|
this._dialog.open(this.browser, header);
|
|
19855
19892
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
19856
|
-
(0,
|
|
19893
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
|
|
19857
19894
|
.then(resolve, reject)
|
|
19858
19895
|
.finally(() => {
|
|
19859
19896
|
var _a;
|
|
@@ -19890,7 +19927,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19890
19927
|
}
|
|
19891
19928
|
initUploader(editor) {
|
|
19892
19929
|
var _a;
|
|
19893
|
-
const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
19930
|
+
const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
|
|
19894
19931
|
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
19895
19932
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
19896
19933
|
self.uploader
|
|
@@ -19910,11 +19947,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19910
19947
|
super(options);
|
|
19911
19948
|
this.browser = this.c.div(this.componentName);
|
|
19912
19949
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
19913
|
-
this.tree = new
|
|
19914
|
-
this.files = new
|
|
19950
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
|
|
19951
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
|
|
19915
19952
|
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
19916
19953
|
currentPath: '',
|
|
19917
|
-
currentSource:
|
|
19954
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
19918
19955
|
currentBaseUrl: '',
|
|
19919
19956
|
activeElements: [],
|
|
19920
19957
|
elements: [],
|
|
@@ -19944,7 +19981,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19944
19981
|
this.__prevButtons = [];
|
|
19945
19982
|
this.attachEvents(options);
|
|
19946
19983
|
const self = this;
|
|
19947
|
-
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
19984
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
|
|
19948
19985
|
self.browser.component = this;
|
|
19949
19986
|
self.container = self.browser;
|
|
19950
19987
|
if (self.o.showFoldersPanel) {
|
|
@@ -19952,9 +19989,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19952
19989
|
}
|
|
19953
19990
|
self.browser.appendChild(self.files.container);
|
|
19954
19991
|
self.browser.appendChild(self.status_line);
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19992
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
|
|
19993
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
|
|
19994
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
|
|
19958
19995
|
const keys = [
|
|
19959
19996
|
'getLocalFileByUrl',
|
|
19960
19997
|
'crop',
|
|
@@ -20626,10 +20663,10 @@ class Command {
|
|
|
20626
20663
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
20627
20664
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
|
|
20628
20665
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
20666
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
20629
20667
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84345);
|
|
20630
|
-
/* harmony import */ var
|
|
20668
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58770);
|
|
20631
20669
|
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66180);
|
|
20632
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
20633
20670
|
/*!
|
|
20634
20671
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20635
20672
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20642,7 +20679,7 @@ class Command {
|
|
|
20642
20679
|
|
|
20643
20680
|
|
|
20644
20681
|
|
|
20645
|
-
|
|
20682
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
|
|
20646
20683
|
enable: true,
|
|
20647
20684
|
maxHistoryLength: Infinity,
|
|
20648
20685
|
timeout: 1000
|
|
@@ -20693,7 +20730,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
20693
20730
|
set startValue(value) {
|
|
20694
20731
|
this.__startValue = value;
|
|
20695
20732
|
}
|
|
20696
|
-
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new
|
|
20733
|
+
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F(editor)) {
|
|
20697
20734
|
super(editor);
|
|
20698
20735
|
this.updateTick = 0;
|
|
20699
20736
|
this.__stack = stack;
|
|
@@ -20756,7 +20793,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
20756
20793
|
*/
|
|
20757
20794
|
updateStack(replace = false) {
|
|
20758
20795
|
const newValue = this.snapshot.make();
|
|
20759
|
-
if (!
|
|
20796
|
+
if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
|
|
20760
20797
|
const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
|
|
20761
20798
|
if (replace) {
|
|
20762
20799
|
const command = this.__stack.current();
|
|
@@ -21090,11 +21127,11 @@ class Stack {
|
|
|
21090
21127
|
|
|
21091
21128
|
"use strict";
|
|
21092
21129
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
21093
|
-
/* harmony import */ var
|
|
21094
|
-
/* harmony import */ var
|
|
21095
|
-
/* harmony import */ var
|
|
21096
|
-
/* harmony import */ var
|
|
21097
|
-
/* harmony import */ var
|
|
21130
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
21131
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
|
|
21132
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
21133
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31230);
|
|
21134
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
21098
21135
|
/*!
|
|
21099
21136
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21100
21137
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21104,7 +21141,7 @@ class Stack {
|
|
|
21104
21141
|
|
|
21105
21142
|
|
|
21106
21143
|
|
|
21107
|
-
|
|
21144
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
|
|
21108
21145
|
min_width: 20,
|
|
21109
21146
|
min_height: 20,
|
|
21110
21147
|
closeAfterSave: false,
|
|
@@ -21119,7 +21156,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
|
|
|
21119
21156
|
cropDefaultWidth: '70%',
|
|
21120
21157
|
cropDefaultHeight: '70%'
|
|
21121
21158
|
};
|
|
21122
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (
|
|
21159
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
21123
21160
|
|
|
21124
21161
|
|
|
21125
21162
|
/***/ }),
|
|
@@ -21138,9 +21175,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
|
|
|
21138
21175
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71842);
|
|
21139
21176
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
|
|
21140
21177
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35265);
|
|
21141
|
-
/* harmony import */ var
|
|
21142
|
-
/* harmony import */ var
|
|
21143
|
-
/* harmony import */ var
|
|
21178
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
21179
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93027);
|
|
21180
|
+
/* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24863);
|
|
21144
21181
|
/*!
|
|
21145
21182
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21146
21183
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21600,7 +21637,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
21600
21637
|
this.options =
|
|
21601
21638
|
editor && editor.o && editor.o.imageeditor
|
|
21602
21639
|
? editor.o.imageeditor
|
|
21603
|
-
:
|
|
21640
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
|
|
21604
21641
|
const o = this.options;
|
|
21605
21642
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
21606
21643
|
this.cropUseRatio = o.cropUseRatio;
|
|
@@ -21610,7 +21647,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
21610
21647
|
saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
|
|
21611
21648
|
};
|
|
21612
21649
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
21613
|
-
this.editor = (0,
|
|
21650
|
+
this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
|
|
21614
21651
|
const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
|
|
21615
21652
|
this.resize_box = resizeBox;
|
|
21616
21653
|
this.crop_box = cropBox;
|
|
@@ -22362,6 +22399,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22362
22399
|
}
|
|
22363
22400
|
/**
|
|
22364
22401
|
* Generate formal table martix columns*rows
|
|
22402
|
+
* @param table - Working table
|
|
22365
22403
|
* @param callback - if return false cycle break
|
|
22366
22404
|
*/
|
|
22367
22405
|
formalMatrix(table, callback) {
|
|
@@ -22431,7 +22469,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22431
22469
|
* @param line - Insert a new line after/before this
|
|
22432
22470
|
* line contains the selected cell
|
|
22433
22471
|
* @param after - Insert a new line after line contains the selected cell
|
|
22434
|
-
* @param create - Instance of Create class
|
|
22435
22472
|
*/
|
|
22436
22473
|
appendRow(table, line, after) {
|
|
22437
22474
|
return Table.__appendRow(table, line, after, this.j.createInside);
|
|
@@ -22600,13 +22637,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22600
22637
|
return Table.__getSelectedBound(table, selectedCells);
|
|
22601
22638
|
}
|
|
22602
22639
|
static __normalizeTable(table) {
|
|
22603
|
-
let i, j, min, not;
|
|
22604
22640
|
const __marked = [], box = Table.__formalMatrix(table);
|
|
22605
|
-
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
22609
|
-
for (
|
|
22641
|
+
Table.__removeExtraColspans(box, __marked);
|
|
22642
|
+
Table.__removeExtraRowspans(box, __marked);
|
|
22643
|
+
// remove rowspans and colspans equal 1 and empty class
|
|
22644
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22645
|
+
for (let j = 0; j < box[i].length; j += 1) {
|
|
22646
|
+
if (box[i][j] === undefined) {
|
|
22647
|
+
continue; // broken table
|
|
22648
|
+
}
|
|
22649
|
+
if (box[i][j].hasAttribute('rowspan') &&
|
|
22650
|
+
box[i][j].rowSpan === 1) {
|
|
22651
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
22652
|
+
}
|
|
22653
|
+
if (box[i][j].hasAttribute('colspan') &&
|
|
22654
|
+
box[i][j].colSpan === 1) {
|
|
22655
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
22656
|
+
}
|
|
22657
|
+
if (box[i][j].hasAttribute('class') &&
|
|
22658
|
+
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
22659
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
22660
|
+
}
|
|
22661
|
+
}
|
|
22662
|
+
}
|
|
22663
|
+
Table.__unmark(__marked);
|
|
22664
|
+
}
|
|
22665
|
+
static __removeExtraColspans(box, __marked) {
|
|
22666
|
+
for (let j = 0; j < box[0].length; j += 1) {
|
|
22667
|
+
let min = 1000000;
|
|
22668
|
+
let not = false;
|
|
22669
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22610
22670
|
if (box[i][j] === undefined) {
|
|
22611
22671
|
continue; // broken table
|
|
22612
22672
|
}
|
|
@@ -22617,7 +22677,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22617
22677
|
min = Math.min(min, box[i][j].colSpan);
|
|
22618
22678
|
}
|
|
22619
22679
|
if (!not) {
|
|
22620
|
-
for (i = 0; i < box.length; i += 1) {
|
|
22680
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22621
22681
|
if (box[i][j] === undefined) {
|
|
22622
22682
|
continue; // broken table
|
|
22623
22683
|
}
|
|
@@ -22625,10 +22685,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22625
22685
|
}
|
|
22626
22686
|
}
|
|
22627
22687
|
}
|
|
22628
|
-
|
|
22688
|
+
}
|
|
22689
|
+
static __removeExtraRowspans(box, marked) {
|
|
22690
|
+
let i = 0;
|
|
22691
|
+
let j = 0;
|
|
22629
22692
|
for (i = 0; i < box.length; i += 1) {
|
|
22630
|
-
min = 1000000;
|
|
22631
|
-
not = false;
|
|
22693
|
+
let min = 1000000;
|
|
22694
|
+
let not = false;
|
|
22632
22695
|
for (j = 0; j < box[i].length; j += 1) {
|
|
22633
22696
|
if (box[i][j] === undefined) {
|
|
22634
22697
|
continue; // broken table
|
|
@@ -22644,31 +22707,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22644
22707
|
if (box[i][j] === undefined) {
|
|
22645
22708
|
continue; // broken table
|
|
22646
22709
|
}
|
|
22647
|
-
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1,
|
|
22648
|
-
}
|
|
22649
|
-
}
|
|
22650
|
-
}
|
|
22651
|
-
// remove rowspans and colspans equal 1 and empty class
|
|
22652
|
-
for (i = 0; i < box.length; i += 1) {
|
|
22653
|
-
for (j = 0; j < box[i].length; j += 1) {
|
|
22654
|
-
if (box[i][j] === undefined) {
|
|
22655
|
-
continue; // broken table
|
|
22656
|
-
}
|
|
22657
|
-
if (box[i][j].hasAttribute('rowspan') &&
|
|
22658
|
-
box[i][j].rowSpan === 1) {
|
|
22659
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
22660
|
-
}
|
|
22661
|
-
if (box[i][j].hasAttribute('colspan') &&
|
|
22662
|
-
box[i][j].colSpan === 1) {
|
|
22663
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
22664
|
-
}
|
|
22665
|
-
if (box[i][j].hasAttribute('class') &&
|
|
22666
|
-
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
22667
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
22710
|
+
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
|
|
22668
22711
|
}
|
|
22669
22712
|
}
|
|
22670
22713
|
}
|
|
22671
|
-
Table.__unmark(__marked);
|
|
22672
22714
|
}
|
|
22673
22715
|
/**
|
|
22674
22716
|
* Try recalculate all coluns and rows after change
|
|
@@ -23028,7 +23070,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
23028
23070
|
}
|
|
23029
23071
|
createContainer() {
|
|
23030
23072
|
const cn = this.componentName;
|
|
23031
|
-
const container = this.j.c.span(cn)
|
|
23073
|
+
const container = this.j.c.span(cn);
|
|
23074
|
+
const button = super.createContainer();
|
|
23032
23075
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
|
|
23033
23076
|
button.classList.remove(cn);
|
|
23034
23077
|
button.classList.add(cn + '__button');
|
|
@@ -23425,8 +23468,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23425
23468
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23426
23469
|
/* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
|
|
23427
23470
|
/* harmony export */ });
|
|
23428
|
-
/* harmony import */ var
|
|
23471
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
23429
23472
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
|
|
23473
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25376);
|
|
23430
23474
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
|
|
23431
23475
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3258);
|
|
23432
23476
|
/*!
|
|
@@ -23439,6 +23483,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23439
23483
|
|
|
23440
23484
|
|
|
23441
23485
|
|
|
23486
|
+
|
|
23442
23487
|
let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
|
|
23443
23488
|
className() {
|
|
23444
23489
|
return 'ToolbarSelect';
|
|
@@ -23457,13 +23502,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
|
|
|
23457
23502
|
const keys = Object.keys(list);
|
|
23458
23503
|
key = keys[0];
|
|
23459
23504
|
}
|
|
23460
|
-
const text = (list[key.toString()] || key).toString();
|
|
23505
|
+
const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
|
|
23461
23506
|
this.state.text =
|
|
23462
23507
|
(_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
|
|
23463
23508
|
}
|
|
23464
23509
|
}
|
|
23465
23510
|
};
|
|
23466
|
-
ToolbarSelect = (0,
|
|
23511
|
+
ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
23467
23512
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
23468
23513
|
], ToolbarSelect);
|
|
23469
23514
|
|
|
@@ -24100,34 +24145,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24100
24145
|
}
|
|
24101
24146
|
const promises = [];
|
|
24102
24147
|
if (o.insertImageAsBase64URI) {
|
|
24103
|
-
|
|
24104
|
-
for (i = 0; i < fileList.length; i += 1) {
|
|
24105
|
-
file = fileList[i];
|
|
24106
|
-
if (file && file.type) {
|
|
24107
|
-
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24108
|
-
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24109
|
-
if (o.imagesExtensions.includes(extension)) {
|
|
24110
|
-
const reader = new FileReader();
|
|
24111
|
-
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24112
|
-
reader.onerror = reject;
|
|
24113
|
-
reader.onloadend = () => {
|
|
24114
|
-
const resp = {
|
|
24115
|
-
baseurl: '',
|
|
24116
|
-
files: [reader.result],
|
|
24117
|
-
isImages: [true]
|
|
24118
|
-
};
|
|
24119
|
-
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24120
|
-
? handlerSuccess
|
|
24121
|
-
: o.defaultHandlerSuccess;
|
|
24122
|
-
handler.call(uploader, resp);
|
|
24123
|
-
resolve(resp);
|
|
24124
|
-
};
|
|
24125
|
-
reader.readAsDataURL(file);
|
|
24126
|
-
}));
|
|
24127
|
-
fileList[i] = null;
|
|
24128
|
-
}
|
|
24129
|
-
}
|
|
24130
|
-
}
|
|
24148
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
24131
24149
|
}
|
|
24132
24150
|
fileList = fileList.filter(a => a);
|
|
24133
24151
|
if (fileList.length) {
|
|
@@ -24138,7 +24156,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24138
24156
|
for (let i = 0; i < fileList.length; i += 1) {
|
|
24139
24157
|
file = fileList[i];
|
|
24140
24158
|
if (file) {
|
|
24141
|
-
const hasRealExtension =
|
|
24159
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
24142
24160
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24143
24161
|
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
24144
24162
|
let newName = fileList[i].name ||
|
|
@@ -24187,6 +24205,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24187
24205
|
}
|
|
24188
24206
|
return Promise.all(promises);
|
|
24189
24207
|
}
|
|
24208
|
+
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
24209
|
+
let file, i;
|
|
24210
|
+
for (i = 0; i < fileList.length; i += 1) {
|
|
24211
|
+
file = fileList[i];
|
|
24212
|
+
if (file && file.type) {
|
|
24213
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24214
|
+
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24215
|
+
if (!imagesExtensions.includes(extension)) {
|
|
24216
|
+
continue;
|
|
24217
|
+
}
|
|
24218
|
+
const reader = new FileReader();
|
|
24219
|
+
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24220
|
+
reader.onerror = reject;
|
|
24221
|
+
reader.onloadend = () => {
|
|
24222
|
+
const resp = {
|
|
24223
|
+
baseurl: '',
|
|
24224
|
+
files: [reader.result],
|
|
24225
|
+
isImages: [true]
|
|
24226
|
+
};
|
|
24227
|
+
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24228
|
+
? handlerSuccess
|
|
24229
|
+
: defaultHandlerSuccess;
|
|
24230
|
+
handler.call(uploader, resp);
|
|
24231
|
+
resolve(resp);
|
|
24232
|
+
};
|
|
24233
|
+
reader.readAsDataURL(file);
|
|
24234
|
+
}));
|
|
24235
|
+
fileList[i] = null;
|
|
24236
|
+
}
|
|
24237
|
+
}
|
|
24238
|
+
}
|
|
24190
24239
|
|
|
24191
24240
|
|
|
24192
24241
|
/***/ }),
|
|
@@ -24292,9 +24341,9 @@ function send(uploader, data) {
|
|
|
24292
24341
|
/* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
|
|
24293
24342
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
|
|
24294
24343
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
24295
|
-
/* harmony import */ var
|
|
24296
|
-
/* harmony import */ var
|
|
24297
|
-
/* harmony import */ var
|
|
24344
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
24345
|
+
/* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74340);
|
|
24346
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77334);
|
|
24298
24347
|
/*!
|
|
24299
24348
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24300
24349
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24366,14 +24415,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24366
24415
|
}
|
|
24367
24416
|
};
|
|
24368
24417
|
// send data on server
|
|
24369
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
24370
|
-
(0,
|
|
24418
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
|
|
24419
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24371
24420
|
return false;
|
|
24372
24421
|
}
|
|
24373
24422
|
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
24374
|
-
return (0,
|
|
24423
|
+
return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
24375
24424
|
}
|
|
24376
|
-
if ((0,
|
|
24425
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
|
|
24377
24426
|
const { items } = cData;
|
|
24378
24427
|
for (i = 0; i < items.length; i += 1) {
|
|
24379
24428
|
if (items[i].kind === 'file' &&
|
|
@@ -24384,7 +24433,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24384
24433
|
extension = mime[1]
|
|
24385
24434
|
? mime[1].toLowerCase()
|
|
24386
24435
|
: '';
|
|
24387
|
-
(0,
|
|
24436
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
24388
24437
|
}
|
|
24389
24438
|
e.preventDefault();
|
|
24390
24439
|
break;
|
|
@@ -24407,30 +24456,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24407
24456
|
e.preventDefault();
|
|
24408
24457
|
})
|
|
24409
24458
|
.on(form, 'dragover', (event) => {
|
|
24410
|
-
if ((0,
|
|
24411
|
-
(0,
|
|
24459
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
|
|
24460
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
|
|
24412
24461
|
form.classList.add('jodit_drag_hover');
|
|
24413
24462
|
event.preventDefault();
|
|
24414
24463
|
}
|
|
24415
24464
|
})
|
|
24416
24465
|
.on(form, 'dragend dragleave', (event) => {
|
|
24417
24466
|
form.classList.remove('jodit_drag_hover');
|
|
24418
|
-
if ((0,
|
|
24467
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24419
24468
|
event.preventDefault();
|
|
24420
24469
|
}
|
|
24421
24470
|
})
|
|
24422
24471
|
.on(form, 'drop', (event) => {
|
|
24423
24472
|
form.classList.remove('jodit_drag_hover');
|
|
24424
|
-
if ((0,
|
|
24473
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24425
24474
|
event.preventDefault();
|
|
24426
24475
|
event.stopImmediatePropagation();
|
|
24427
|
-
(0,
|
|
24476
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24428
24477
|
}
|
|
24429
24478
|
});
|
|
24430
24479
|
const inputFile = form.querySelector('input[type=file]');
|
|
24431
24480
|
if (inputFile) {
|
|
24432
24481
|
self.j.e.on(inputFile, 'change', () => {
|
|
24433
|
-
(0,
|
|
24482
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
|
|
24434
24483
|
.then(() => {
|
|
24435
24484
|
inputFile.value = '';
|
|
24436
24485
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
@@ -24450,7 +24499,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24450
24499
|
const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
|
|
24451
24500
|
? handlerError
|
|
24452
24501
|
: o.defaultHandlerError;
|
|
24453
|
-
(0,
|
|
24502
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
|
|
24454
24503
|
action: 'fileUploadRemote',
|
|
24455
24504
|
url
|
|
24456
24505
|
})
|
|
@@ -24470,11 +24519,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24470
24519
|
super(editor);
|
|
24471
24520
|
this.path = '';
|
|
24472
24521
|
this.source = 'default';
|
|
24473
|
-
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(
|
|
24522
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
|
|
24474
24523
|
}
|
|
24475
24524
|
destruct() {
|
|
24476
24525
|
this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
24477
|
-
const instances =
|
|
24526
|
+
const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
|
|
24478
24527
|
if (instances) {
|
|
24479
24528
|
instances.forEach(ajax => {
|
|
24480
24529
|
try {
|
|
@@ -24903,9 +24952,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
24903
24952
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
24904
24953
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
24905
24954
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
24906
|
-
/* harmony import */ var
|
|
24907
|
-
/* harmony import */ var
|
|
24908
|
-
/* harmony import */ var
|
|
24955
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
24956
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17995);
|
|
24957
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
24909
24958
|
/*!
|
|
24910
24959
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24911
24960
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24919,7 +24968,7 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
24919
24968
|
|
|
24920
24969
|
|
|
24921
24970
|
|
|
24922
|
-
|
|
24971
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
|
|
24923
24972
|
exec: (editor) => {
|
|
24924
24973
|
const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
|
|
24925
24974
|
dialog
|
|
@@ -24955,7 +25004,7 @@ function about(editor) {
|
|
|
24955
25004
|
});
|
|
24956
25005
|
}
|
|
24957
25006
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
|
|
24958
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (
|
|
25007
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
24959
25008
|
|
|
24960
25009
|
|
|
24961
25010
|
/***/ }),
|
|
@@ -25198,9 +25247,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25198
25247
|
|
|
25199
25248
|
"use strict";
|
|
25200
25249
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
25201
|
-
/* harmony import */ var
|
|
25202
|
-
/* harmony import */ var
|
|
25203
|
-
/* harmony import */ var
|
|
25250
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
25251
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86634);
|
|
25252
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25204
25253
|
/*!
|
|
25205
25254
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25206
25255
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25209,9 +25258,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25209
25258
|
|
|
25210
25259
|
|
|
25211
25260
|
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25261
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
|
|
25262
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
|
|
25263
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
|
|
25215
25264
|
'table',
|
|
25216
25265
|
'iframe',
|
|
25217
25266
|
'img',
|
|
@@ -25219,8 +25268,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
|
|
|
25219
25268
|
'pre',
|
|
25220
25269
|
'jodit'
|
|
25221
25270
|
];
|
|
25222
|
-
|
|
25223
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (
|
|
25271
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
|
|
25272
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25224
25273
|
|
|
25225
25274
|
|
|
25226
25275
|
/***/ }),
|
|
@@ -25359,11 +25408,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
|
|
|
25359
25408
|
|
|
25360
25409
|
"use strict";
|
|
25361
25410
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
25362
|
-
/* harmony import */ var
|
|
25363
|
-
/* harmony import */ var
|
|
25364
|
-
/* harmony import */ var
|
|
25365
|
-
/* harmony import */ var
|
|
25366
|
-
/* harmony import */ var
|
|
25411
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
25412
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91115);
|
|
25413
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25414
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1916);
|
|
25415
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
25367
25416
|
/*!
|
|
25368
25417
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25369
25418
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25404,10 +25453,10 @@ const aiAssistantDefaults = {
|
|
|
25404
25453
|
aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
|
|
25405
25454
|
aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
|
|
25406
25455
|
};
|
|
25407
|
-
|
|
25408
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (
|
|
25409
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (
|
|
25410
|
-
|
|
25456
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
|
|
25457
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
25458
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25459
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
|
|
25411
25460
|
isDisabled(editor) {
|
|
25412
25461
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
25413
25462
|
},
|
|
@@ -25445,7 +25494,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
|
|
|
25445
25494
|
editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
|
|
25446
25495
|
}
|
|
25447
25496
|
};
|
|
25448
|
-
|
|
25497
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
|
|
25449
25498
|
isDisabled(editor) {
|
|
25450
25499
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
25451
25500
|
},
|
|
@@ -25806,7 +25855,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
25806
25855
|
if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
|
|
25807
25856
|
return false;
|
|
25808
25857
|
}
|
|
25809
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .
|
|
25858
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
25810
25859
|
if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
|
|
25811
25860
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
|
|
25812
25861
|
func(jodit, fakeNode, backspace, mode)) {
|
|
@@ -26065,22 +26114,15 @@ function checkNotCollapsed(jodit) {
|
|
|
26065
26114
|
* @private
|
|
26066
26115
|
*/
|
|
26067
26116
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26068
|
-
var _a, _b
|
|
26117
|
+
var _a, _b;
|
|
26069
26118
|
const step = backspace ? -1 : 1;
|
|
26070
26119
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
26071
|
-
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace)
|
|
26072
|
-
let
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
if (!nextSibling &&
|
|
26076
|
-
sibling.parentNode &&
|
|
26077
|
-
sibling.parentNode !== jodit.editor) {
|
|
26078
|
-
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
|
|
26079
|
-
}
|
|
26080
|
-
return nextSibling;
|
|
26081
|
-
};
|
|
26120
|
+
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
|
|
26121
|
+
let removeNeighbor = null;
|
|
26122
|
+
let charRemoved = false;
|
|
26123
|
+
let removed;
|
|
26082
26124
|
if (!sibling) {
|
|
26083
|
-
sibling = getNextInlineSibling(fakeNode);
|
|
26125
|
+
sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
|
|
26084
26126
|
}
|
|
26085
26127
|
while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
|
|
26086
26128
|
while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
|
|
@@ -26090,57 +26132,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26090
26132
|
break;
|
|
26091
26133
|
}
|
|
26092
26134
|
if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
|
|
26093
|
-
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26098
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26099
|
-
index += step;
|
|
26100
|
-
}
|
|
26101
|
-
}
|
|
26102
|
-
removed = value[index];
|
|
26103
|
-
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26104
|
-
index += step;
|
|
26105
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26106
|
-
index += step;
|
|
26107
|
-
}
|
|
26108
|
-
index += backspace ? 1 : -1;
|
|
26135
|
+
removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
|
|
26136
|
+
if (!sibling.nodeValue.length &&
|
|
26137
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
|
|
26138
|
+
sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
|
|
26109
26139
|
}
|
|
26110
|
-
if (backspace && index < 0) {
|
|
26111
|
-
value = [];
|
|
26112
|
-
}
|
|
26113
|
-
else {
|
|
26114
|
-
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26115
|
-
}
|
|
26116
|
-
if (!anotherSibling ||
|
|
26117
|
-
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26118
|
-
(!backspace ? / $/ : /^ /).test((_b = anotherSibling.nodeValue) !== null && _b !== void 0 ? _b : '') ||
|
|
26119
|
-
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26120
|
-
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26121
|
-
if (value[i] === ' ') {
|
|
26122
|
-
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26123
|
-
}
|
|
26124
|
-
else {
|
|
26125
|
-
break;
|
|
26126
|
-
}
|
|
26127
|
-
}
|
|
26128
|
-
}
|
|
26129
|
-
sibling.nodeValue = value.join('');
|
|
26130
26140
|
}
|
|
26131
|
-
if (!((
|
|
26141
|
+
if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
26132
26142
|
removeNeighbor = sibling;
|
|
26133
26143
|
}
|
|
26134
26144
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26145
|
+
checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
|
|
26135
26146
|
charRemoved = true;
|
|
26136
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
|
|
26137
|
-
if (mode === 'sentence' ||
|
|
26138
|
-
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26139
|
-
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26140
|
-
}
|
|
26141
26147
|
break;
|
|
26142
26148
|
}
|
|
26143
|
-
const nextSibling = getNextInlineSibling(sibling);
|
|
26149
|
+
const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
|
|
26144
26150
|
if (removeNeighbor) {
|
|
26145
26151
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
|
|
26146
26152
|
removeNeighbor = null;
|
|
@@ -26162,6 +26168,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26162
26168
|
}
|
|
26163
26169
|
return charRemoved;
|
|
26164
26170
|
}
|
|
26171
|
+
function getNextInlineSibling(sibling, backspace, root) {
|
|
26172
|
+
let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
|
|
26173
|
+
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
26174
|
+
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
|
|
26175
|
+
}
|
|
26176
|
+
return nextSibling;
|
|
26177
|
+
}
|
|
26165
26178
|
/**
|
|
26166
26179
|
* Helper removes all empty inline parents
|
|
26167
26180
|
*/
|
|
@@ -26186,6 +26199,57 @@ function addBRInsideEmptyBlock(jodit, node) {
|
|
|
26186
26199
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
|
|
26187
26200
|
}
|
|
26188
26201
|
}
|
|
26202
|
+
function tryRemoveChar(sibling, backspace, step, anotherSibling) {
|
|
26203
|
+
// For Unicode escapes
|
|
26204
|
+
let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
|
|
26205
|
+
const length = value.length;
|
|
26206
|
+
let index = backspace ? length - 1 : 0;
|
|
26207
|
+
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26208
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26209
|
+
index += step;
|
|
26210
|
+
}
|
|
26211
|
+
}
|
|
26212
|
+
const removed = value[index];
|
|
26213
|
+
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26214
|
+
index += step;
|
|
26215
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26216
|
+
index += step;
|
|
26217
|
+
}
|
|
26218
|
+
index += backspace ? 1 : -1;
|
|
26219
|
+
}
|
|
26220
|
+
if (backspace && index < 0) {
|
|
26221
|
+
value = [];
|
|
26222
|
+
}
|
|
26223
|
+
else {
|
|
26224
|
+
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26225
|
+
}
|
|
26226
|
+
replaceSpaceOnNBSP(anotherSibling, backspace, value);
|
|
26227
|
+
sibling.nodeValue = value.join('');
|
|
26228
|
+
return removed;
|
|
26229
|
+
}
|
|
26230
|
+
function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
|
|
26231
|
+
var _a;
|
|
26232
|
+
if (!anotherSibling ||
|
|
26233
|
+
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26234
|
+
(!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') ||
|
|
26235
|
+
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26236
|
+
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26237
|
+
if (value[i] === ' ') {
|
|
26238
|
+
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26239
|
+
}
|
|
26240
|
+
else {
|
|
26241
|
+
break;
|
|
26242
|
+
}
|
|
26243
|
+
}
|
|
26244
|
+
}
|
|
26245
|
+
}
|
|
26246
|
+
function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
|
|
26247
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
|
|
26248
|
+
if (mode === 'sentence' ||
|
|
26249
|
+
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26250
|
+
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26251
|
+
}
|
|
26252
|
+
}
|
|
26189
26253
|
|
|
26190
26254
|
|
|
26191
26255
|
/***/ }),
|
|
@@ -26223,7 +26287,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
|
|
|
26223
26287
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
|
|
26224
26288
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before : jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after, neighbor, fakeNode);
|
|
26225
26289
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
|
|
26226
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .
|
|
26290
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26227
26291
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
|
|
26228
26292
|
return true;
|
|
26229
26293
|
}
|
|
@@ -26627,20 +26691,20 @@ function getMoveFilter(jodit) {
|
|
|
26627
26691
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56298);
|
|
26628
26692
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
26629
26693
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
26630
|
-
/* harmony import */ var
|
|
26631
|
-
/* harmony import */ var
|
|
26632
|
-
/* harmony import */ var
|
|
26633
|
-
/* harmony import */ var
|
|
26634
|
-
/* harmony import */ var
|
|
26635
|
-
/* harmony import */ var
|
|
26636
|
-
/* harmony import */ var
|
|
26637
|
-
/* harmony import */ var
|
|
26638
|
-
/* harmony import */ var
|
|
26639
|
-
/* harmony import */ var
|
|
26640
|
-
/* harmony import */ var
|
|
26641
|
-
/* harmony import */ var
|
|
26642
|
-
/* harmony import */ var
|
|
26643
|
-
/* harmony import */ var
|
|
26694
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
26695
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73124);
|
|
26696
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52450);
|
|
26697
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
26698
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41111);
|
|
26699
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
26700
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49972);
|
|
26701
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
26702
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45062);
|
|
26703
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
26704
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18605);
|
|
26705
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
26706
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83389);
|
|
26707
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
26644
26708
|
/*!
|
|
26645
26709
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26646
26710
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26663,7 +26727,7 @@ function getMoveFilter(jodit) {
|
|
|
26663
26727
|
*/
|
|
26664
26728
|
function bold(editor) {
|
|
26665
26729
|
const callBack = (command) => {
|
|
26666
|
-
const control =
|
|
26730
|
+
const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
|
|
26667
26731
|
...control.css
|
|
26668
26732
|
};
|
|
26669
26733
|
let cssRules;
|
|
@@ -26717,12 +26781,12 @@ function bold(editor) {
|
|
|
26717
26781
|
});
|
|
26718
26782
|
}
|
|
26719
26783
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
|
|
26720
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (
|
|
26721
|
-
.set('italic', (
|
|
26722
|
-
.set('strikethrough', (
|
|
26723
|
-
.set('subscript', (
|
|
26724
|
-
.set('superscript', (
|
|
26725
|
-
.set('underline', (
|
|
26784
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
|
|
26785
|
+
.set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
26786
|
+
.set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
26787
|
+
.set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
26788
|
+
.set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
26789
|
+
.set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
|
|
26726
26790
|
|
|
26727
26791
|
|
|
26728
26792
|
/***/ }),
|
|
@@ -26792,9 +26856,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
26792
26856
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84976);
|
|
26793
26857
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71005);
|
|
26794
26858
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
26795
|
-
/* harmony import */ var
|
|
26796
|
-
/* harmony import */ var
|
|
26797
|
-
/* harmony import */ var
|
|
26859
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
26860
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93267);
|
|
26861
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
26798
26862
|
/*!
|
|
26799
26863
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26800
26864
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26807,7 +26871,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
26807
26871
|
|
|
26808
26872
|
|
|
26809
26873
|
|
|
26810
|
-
|
|
26874
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
|
|
26811
26875
|
command: 'applyClassName',
|
|
26812
26876
|
exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
|
|
26813
26877
|
list: [
|
|
@@ -26895,7 +26959,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
26895
26959
|
beforeDestruct() { }
|
|
26896
26960
|
}
|
|
26897
26961
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
|
|
26898
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (
|
|
26962
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
26899
26963
|
|
|
26900
26964
|
|
|
26901
26965
|
/***/ }),
|
|
@@ -27034,9 +27098,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27034
27098
|
|
|
27035
27099
|
"use strict";
|
|
27036
27100
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
27037
|
-
/* harmony import */ var
|
|
27038
|
-
/* harmony import */ var
|
|
27039
|
-
/* harmony import */ var
|
|
27101
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
27102
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71948);
|
|
27103
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
27040
27104
|
/*!
|
|
27041
27105
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27042
27106
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27045,7 +27109,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
27045
27109
|
|
|
27046
27110
|
|
|
27047
27111
|
|
|
27048
|
-
|
|
27112
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
|
|
27049
27113
|
timeout: 300,
|
|
27050
27114
|
removeEmptyElements: true,
|
|
27051
27115
|
fillEmptyParagraph: true,
|
|
@@ -27061,11 +27125,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
|
|
|
27061
27125
|
safeJavaScriptLink: true,
|
|
27062
27126
|
disableCleanFilter: null
|
|
27063
27127
|
};
|
|
27064
|
-
|
|
27128
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
|
|
27065
27129
|
command: 'removeFormat',
|
|
27066
27130
|
tooltip: 'Clear Formatting'
|
|
27067
27131
|
};
|
|
27068
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (
|
|
27132
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
27069
27133
|
|
|
27070
27134
|
|
|
27071
27135
|
/***/ }),
|
|
@@ -27734,15 +27798,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
27734
27798
|
|
|
27735
27799
|
"use strict";
|
|
27736
27800
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
27737
|
-
/* harmony import */ var
|
|
27738
|
-
/* harmony import */ var
|
|
27739
|
-
/* harmony import */ var
|
|
27740
|
-
/* harmony import */ var
|
|
27741
|
-
/* harmony import */ var
|
|
27742
|
-
/* harmony import */ var
|
|
27743
|
-
/* harmony import */ var
|
|
27744
|
-
/* harmony import */ var
|
|
27745
|
-
/* harmony import */ var
|
|
27801
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
27802
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51457);
|
|
27803
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
27804
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23602);
|
|
27805
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
27806
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86899);
|
|
27807
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
27808
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95320);
|
|
27809
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27746
27810
|
/*!
|
|
27747
27811
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27748
27812
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27754,25 +27818,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
27754
27818
|
|
|
27755
27819
|
|
|
27756
27820
|
|
|
27757
|
-
|
|
27821
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
|
|
27758
27822
|
command: 'cut',
|
|
27759
27823
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
27760
27824
|
tooltip: 'Cut selection'
|
|
27761
27825
|
};
|
|
27762
|
-
|
|
27826
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
|
|
27763
27827
|
command: 'copy',
|
|
27764
27828
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
27765
27829
|
tooltip: 'Copy selection'
|
|
27766
27830
|
};
|
|
27767
|
-
|
|
27831
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
|
|
27768
27832
|
icon: 'select-all',
|
|
27769
27833
|
command: 'selectall',
|
|
27770
27834
|
tooltip: 'Select all'
|
|
27771
27835
|
};
|
|
27772
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (
|
|
27773
|
-
.set('cut', (
|
|
27774
|
-
.set('paste', (
|
|
27775
|
-
.set('select-all', (
|
|
27836
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
|
|
27837
|
+
.set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
|
|
27838
|
+
.set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
|
|
27839
|
+
.set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
27776
27840
|
|
|
27777
27841
|
|
|
27778
27842
|
/***/ }),
|
|
@@ -27844,10 +27908,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
27844
27908
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
27845
27909
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
27846
27910
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
27847
|
-
/* harmony import */ var
|
|
27848
|
-
/* harmony import */ var
|
|
27849
|
-
/* harmony import */ var
|
|
27850
|
-
/* harmony import */ var
|
|
27911
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
27912
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
|
|
27913
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45674);
|
|
27914
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27851
27915
|
/*!
|
|
27852
27916
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27853
27917
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27859,8 +27923,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
27859
27923
|
|
|
27860
27924
|
|
|
27861
27925
|
|
|
27862
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (
|
|
27863
|
-
|
|
27926
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
27927
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
|
|
27864
27928
|
isVisible: (editor) => {
|
|
27865
27929
|
return !editor.o.disablePlugins.includes('color');
|
|
27866
27930
|
},
|
|
@@ -27873,7 +27937,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27873
27937
|
if (!selected.length) {
|
|
27874
27938
|
return false;
|
|
27875
27939
|
}
|
|
27876
|
-
const makeColorPicker = (key) => (0,
|
|
27940
|
+
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27877
27941
|
selected.forEach(cell => {
|
|
27878
27942
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
27879
27943
|
});
|
|
@@ -27882,7 +27946,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27882
27946
|
close();
|
|
27883
27947
|
editor.unlock();
|
|
27884
27948
|
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
27885
|
-
return (0,
|
|
27949
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
|
|
27886
27950
|
{
|
|
27887
27951
|
name: 'Background',
|
|
27888
27952
|
content: makeColorPicker('background-color')
|
|
@@ -27893,7 +27957,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27893
27957
|
},
|
|
27894
27958
|
tooltip: 'Background'
|
|
27895
27959
|
};
|
|
27896
|
-
|
|
27960
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
|
|
27897
27961
|
isVisible: (editor) => {
|
|
27898
27962
|
return !editor.o.disablePlugins.includes('color');
|
|
27899
27963
|
},
|
|
@@ -27941,7 +28005,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27941
28005
|
}
|
|
27942
28006
|
}, editor.editor);
|
|
27943
28007
|
}
|
|
27944
|
-
const backgroundTag = (0,
|
|
28008
|
+
const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27945
28009
|
if (!currentElement) {
|
|
27946
28010
|
editor.execCommand('background', false, value);
|
|
27947
28011
|
}
|
|
@@ -27952,7 +28016,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27952
28016
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
|
|
27953
28017
|
close();
|
|
27954
28018
|
}, bg_color);
|
|
27955
|
-
const colorTab = (0,
|
|
28019
|
+
const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27956
28020
|
if (!currentElement) {
|
|
27957
28021
|
editor.execCommand('forecolor', false, value);
|
|
27958
28022
|
}
|
|
@@ -27976,7 +28040,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27976
28040
|
if (editor.o.colorPickerDefaultTab !== 'background') {
|
|
27977
28041
|
tabs = tabs.reverse();
|
|
27978
28042
|
}
|
|
27979
|
-
return (0,
|
|
28043
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
|
|
27980
28044
|
},
|
|
27981
28045
|
exec(jodit, current, { button }) {
|
|
27982
28046
|
const mode = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode'), color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
|
|
@@ -28015,10 +28079,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
28015
28079
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
28016
28080
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
|
|
28017
28081
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
28018
|
-
/* harmony import */ var
|
|
28019
|
-
/* harmony import */ var
|
|
28020
|
-
/* harmony import */ var
|
|
28021
|
-
/* harmony import */ var
|
|
28082
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
28083
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3843);
|
|
28084
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
28085
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94628);
|
|
28022
28086
|
/*!
|
|
28023
28087
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28024
28088
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28076,7 +28140,7 @@ const getStyles = (editor, box, defaultStyles) => {
|
|
|
28076
28140
|
}
|
|
28077
28141
|
return result;
|
|
28078
28142
|
};
|
|
28079
|
-
|
|
28143
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
|
|
28080
28144
|
exec: (editor, current, { button }) => {
|
|
28081
28145
|
if (!current) {
|
|
28082
28146
|
return;
|
|
@@ -28126,10 +28190,10 @@ function copyFormat(editor) {
|
|
|
28126
28190
|
name: 'copyformat',
|
|
28127
28191
|
group: 'clipboard'
|
|
28128
28192
|
});
|
|
28129
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(
|
|
28193
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
28130
28194
|
}
|
|
28131
28195
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
|
|
28132
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (
|
|
28196
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
28133
28197
|
|
|
28134
28198
|
|
|
28135
28199
|
/***/ }),
|
|
@@ -29085,45 +29149,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29085
29149
|
const sel = this.j.s.sel;
|
|
29086
29150
|
const range = this.bufferRange ||
|
|
29087
29151
|
(sel && sel.rangeCount ? sel.getRangeAt(0) : null);
|
|
29088
|
-
|
|
29089
|
-
if (!this.draggable && range) {
|
|
29090
|
-
fragment = this.isCopyMode
|
|
29091
|
-
? range.cloneContents()
|
|
29092
|
-
: range.extractContents();
|
|
29093
|
-
}
|
|
29094
|
-
else if (this.draggable) {
|
|
29095
|
-
if (this.isCopyMode) {
|
|
29096
|
-
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29097
|
-
? ['a', 'href']
|
|
29098
|
-
: ['img', 'src'];
|
|
29099
|
-
fragment = this.j.createInside.element(tagName);
|
|
29100
|
-
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29101
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29102
|
-
'');
|
|
29103
|
-
if (tagName === 'a') {
|
|
29104
|
-
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29105
|
-
}
|
|
29106
|
-
}
|
|
29107
|
-
else {
|
|
29108
|
-
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29109
|
-
}
|
|
29110
|
-
}
|
|
29111
|
-
else if (this.getText(event)) {
|
|
29112
|
-
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29113
|
-
}
|
|
29152
|
+
const fragment = this.__getWorkFragment(range, event);
|
|
29114
29153
|
sel && sel.removeAllRanges();
|
|
29115
29154
|
this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
|
|
29116
29155
|
if (fragment) {
|
|
29117
|
-
this.
|
|
29118
|
-
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29119
|
-
range.setStartBefore(fragment.firstChild);
|
|
29120
|
-
range.setEndAfter(fragment.lastChild);
|
|
29121
|
-
this.j.s.selectRange(range);
|
|
29122
|
-
this.j.e.fire('synchro');
|
|
29123
|
-
}
|
|
29124
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29125
|
-
this.j.e.fire('afterInsertImage', fragment);
|
|
29126
|
-
}
|
|
29156
|
+
this.__insertFragment.call(this, fragment, range);
|
|
29127
29157
|
}
|
|
29128
29158
|
event.preventDefault();
|
|
29129
29159
|
event.stopPropagation();
|
|
@@ -29131,6 +29161,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
29131
29161
|
this.isFragmentFromEditor = false;
|
|
29132
29162
|
this.removeDragListeners();
|
|
29133
29163
|
}
|
|
29164
|
+
__getWorkFragment(range, event) {
|
|
29165
|
+
let fragment = null;
|
|
29166
|
+
if (!this.draggable && range) {
|
|
29167
|
+
fragment = this.isCopyMode
|
|
29168
|
+
? range.cloneContents()
|
|
29169
|
+
: range.extractContents();
|
|
29170
|
+
}
|
|
29171
|
+
else if (this.draggable) {
|
|
29172
|
+
if (this.isCopyMode) {
|
|
29173
|
+
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
29174
|
+
? ['a', 'href']
|
|
29175
|
+
: ['img', 'src'];
|
|
29176
|
+
fragment = this.j.createInside.element(tagName);
|
|
29177
|
+
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
29178
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
29179
|
+
'');
|
|
29180
|
+
if (tagName === 'a') {
|
|
29181
|
+
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
29182
|
+
}
|
|
29183
|
+
}
|
|
29184
|
+
else {
|
|
29185
|
+
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
29186
|
+
}
|
|
29187
|
+
}
|
|
29188
|
+
else if (this.getText(event)) {
|
|
29189
|
+
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
29190
|
+
}
|
|
29191
|
+
return fragment;
|
|
29192
|
+
}
|
|
29193
|
+
__insertFragment(fragment, range) {
|
|
29194
|
+
this.j.s.insertNode(fragment, false, false);
|
|
29195
|
+
if (range && fragment.firstChild && fragment.lastChild) {
|
|
29196
|
+
range.setStartBefore(fragment.firstChild);
|
|
29197
|
+
range.setEndAfter(fragment.lastChild);
|
|
29198
|
+
this.j.s.selectRange(range);
|
|
29199
|
+
this.j.e.fire('synchro');
|
|
29200
|
+
}
|
|
29201
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
29202
|
+
this.j.e.fire('afterInsertImage', fragment);
|
|
29203
|
+
}
|
|
29204
|
+
}
|
|
29134
29205
|
/** @override */
|
|
29135
29206
|
beforeDestruct() {
|
|
29136
29207
|
this.onDragEnd();
|
|
@@ -29932,8 +30003,8 @@ function wrapText(fake, jodit) {
|
|
|
29932
30003
|
/* unused harmony export file */
|
|
29933
30004
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
29934
30005
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
29935
|
-
/* harmony import */ var
|
|
29936
|
-
/* harmony import */ var
|
|
30006
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
30007
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
|
|
29937
30008
|
/*!
|
|
29938
30009
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29939
30010
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29943,7 +30014,7 @@ function wrapText(fake, jodit) {
|
|
|
29943
30014
|
|
|
29944
30015
|
|
|
29945
30016
|
|
|
29946
|
-
|
|
30017
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
|
|
29947
30018
|
popup: (editor, current, close) => {
|
|
29948
30019
|
const insert = (url, title = '') => {
|
|
29949
30020
|
editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
|
|
@@ -29956,7 +30027,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
29956
30027
|
? current
|
|
29957
30028
|
: jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
29958
30029
|
}
|
|
29959
|
-
return (0,
|
|
30030
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
|
|
29960
30031
|
filebrowser: (data) => {
|
|
29961
30032
|
data.files &&
|
|
29962
30033
|
data.files.forEach(file => insert(data.baseurl + file));
|
|
@@ -30079,11 +30150,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30079
30150
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
|
|
30080
30151
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
|
|
30081
30152
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
30082
|
-
/* harmony import */ var
|
|
30083
|
-
/* harmony import */ var
|
|
30084
|
-
/* harmony import */ var
|
|
30085
|
-
/* harmony import */ var
|
|
30086
|
-
/* harmony import */ var
|
|
30153
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
30154
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48842);
|
|
30155
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30156
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25501);
|
|
30157
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
30087
30158
|
/*!
|
|
30088
30159
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30089
30160
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30099,9 +30170,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
30099
30170
|
/**
|
|
30100
30171
|
* Default font-size points
|
|
30101
30172
|
*/
|
|
30102
|
-
|
|
30103
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (
|
|
30104
|
-
|
|
30173
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
|
|
30174
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
30175
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
|
|
30105
30176
|
command: 'fontsize',
|
|
30106
30177
|
data: {
|
|
30107
30178
|
cssRule: 'font-size',
|
|
@@ -30160,8 +30231,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
|
|
|
30160
30231
|
return keySet.has(normalize(value.toString()));
|
|
30161
30232
|
}
|
|
30162
30233
|
};
|
|
30163
|
-
|
|
30164
|
-
...
|
|
30234
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
|
|
30235
|
+
...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
|
|
30165
30236
|
command: 'fontname',
|
|
30166
30237
|
textTemplate: (j, value) => {
|
|
30167
30238
|
const [first] = value.split(',');
|
|
@@ -30271,11 +30342,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30271
30342
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
30272
30343
|
|
|
30273
30344
|
"use strict";
|
|
30274
|
-
/* harmony import */ var
|
|
30345
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
30346
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
|
|
30275
30347
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
30276
|
-
/* harmony import */ var
|
|
30277
|
-
/* harmony import */ var
|
|
30278
|
-
/* harmony import */ var
|
|
30348
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
30349
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29348);
|
|
30350
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30279
30351
|
/*!
|
|
30280
30352
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30281
30353
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30285,13 +30357,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
30285
30357
|
|
|
30286
30358
|
|
|
30287
30359
|
|
|
30288
|
-
|
|
30289
|
-
|
|
30360
|
+
|
|
30361
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
30362
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
|
|
30290
30363
|
command: 'formatBlock',
|
|
30291
30364
|
value(editor, button) {
|
|
30292
30365
|
var _a, _b;
|
|
30293
30366
|
const control = button.control, current = editor.s.current();
|
|
30294
|
-
const currentBox =
|
|
30367
|
+
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
30295
30368
|
return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
|
|
30296
30369
|
},
|
|
30297
30370
|
update(editor, button) {
|
|
@@ -30300,7 +30373,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
30300
30373
|
return false;
|
|
30301
30374
|
}
|
|
30302
30375
|
const currentValue = button.state.value, list = control.list;
|
|
30303
|
-
if (list && list[currentValue.toString()]) {
|
|
30376
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
|
|
30304
30377
|
if (editor.o.textIcons) {
|
|
30305
30378
|
button.state.text = list[currentValue.toString()].toString();
|
|
30306
30379
|
}
|
|
@@ -30324,9 +30397,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
30324
30397
|
return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
|
|
30325
30398
|
},
|
|
30326
30399
|
isActive: (editor, button) => {
|
|
30327
|
-
var _a;
|
|
30328
30400
|
return (button.state.value !== editor.o.enter &&
|
|
30329
|
-
|
|
30401
|
+
(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
|
|
30402
|
+
Boolean(button.control.list[button.state.value]));
|
|
30330
30403
|
},
|
|
30331
30404
|
childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
|
|
30332
30405
|
tooltip: 'Insert format block'
|
|
@@ -30376,11 +30449,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
30376
30449
|
"use strict";
|
|
30377
30450
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
30378
30451
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
30379
|
-
/* harmony import */ var
|
|
30380
|
-
/* harmony import */ var
|
|
30381
|
-
/* harmony import */ var
|
|
30382
|
-
/* harmony import */ var
|
|
30383
|
-
/* harmony import */ var
|
|
30452
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
30453
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24772);
|
|
30454
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
30455
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66547);
|
|
30456
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30384
30457
|
/*!
|
|
30385
30458
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30386
30459
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30392,10 +30465,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
30392
30465
|
|
|
30393
30466
|
|
|
30394
30467
|
|
|
30395
|
-
|
|
30396
|
-
|
|
30397
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (
|
|
30398
|
-
|
|
30468
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
|
|
30469
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
|
|
30470
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30471
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
|
|
30399
30472
|
exec: (editor) => {
|
|
30400
30473
|
editor.toggleFullSize();
|
|
30401
30474
|
},
|
|
@@ -30723,9 +30796,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30723
30796
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
|
|
30724
30797
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
30725
30798
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
30726
|
-
/* harmony import */ var
|
|
30727
|
-
/* harmony import */ var
|
|
30728
|
-
/* harmony import */ var
|
|
30799
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
30800
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
|
|
30801
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30729
30802
|
/*!
|
|
30730
30803
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30731
30804
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30736,8 +30809,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30736
30809
|
|
|
30737
30810
|
|
|
30738
30811
|
|
|
30739
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (
|
|
30740
|
-
|
|
30812
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30813
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
|
|
30741
30814
|
command: 'insertHorizontalRule',
|
|
30742
30815
|
tags: ['hr'],
|
|
30743
30816
|
tooltip: 'Insert Horizontal Line'
|
|
@@ -31216,6 +31289,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
|
|
|
31216
31289
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
31217
31290
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
31218
31291
|
*/
|
|
31292
|
+
/**
|
|
31293
|
+
* @module plugins/image-properties
|
|
31294
|
+
*/
|
|
31219
31295
|
|
|
31220
31296
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
|
|
31221
31297
|
dialogWidth: 600,
|
|
@@ -32717,10 +32793,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32717
32793
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
32718
32794
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
32719
32795
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
32720
|
-
/* harmony import */ var
|
|
32721
|
-
/* harmony import */ var
|
|
32722
|
-
/* harmony import */ var
|
|
32723
|
-
/* harmony import */ var
|
|
32796
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
32797
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
|
|
32798
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64831);
|
|
32799
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
32724
32800
|
/*!
|
|
32725
32801
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32726
32802
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32733,8 +32809,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32733
32809
|
|
|
32734
32810
|
|
|
32735
32811
|
|
|
32736
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (
|
|
32737
|
-
|
|
32812
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
32813
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
|
|
32738
32814
|
popup: (editor, current, close) => {
|
|
32739
32815
|
let sourceImage = null;
|
|
32740
32816
|
if (current &&
|
|
@@ -32746,7 +32822,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
|
|
|
32746
32822
|
: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
32747
32823
|
}
|
|
32748
32824
|
editor.s.save();
|
|
32749
|
-
return (0,
|
|
32825
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
|
|
32750
32826
|
filebrowser: (data) => {
|
|
32751
32827
|
editor.s.restore();
|
|
32752
32828
|
data.files &&
|
|
@@ -32789,12 +32865,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32789
32865
|
"use strict";
|
|
32790
32866
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
|
|
32791
32867
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
32792
|
-
/* harmony import */ var
|
|
32793
|
-
/* harmony import */ var
|
|
32794
|
-
/* harmony import */ var
|
|
32795
|
-
/* harmony import */ var
|
|
32796
|
-
/* harmony import */ var
|
|
32797
|
-
/* harmony import */ var
|
|
32868
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
32869
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67176);
|
|
32870
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
32871
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14017);
|
|
32872
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
32873
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3392);
|
|
32798
32874
|
/*!
|
|
32799
32875
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32800
32876
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32806,17 +32882,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32806
32882
|
|
|
32807
32883
|
|
|
32808
32884
|
|
|
32809
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (
|
|
32810
|
-
|
|
32885
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
32886
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
|
|
32811
32887
|
tooltip: 'Increase Indent'
|
|
32812
32888
|
};
|
|
32813
|
-
|
|
32889
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
|
|
32814
32890
|
isDisabled: (editor) => {
|
|
32815
32891
|
const current = editor.s.current();
|
|
32816
32892
|
if (current) {
|
|
32817
32893
|
const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
32818
32894
|
if (currentBox) {
|
|
32819
|
-
const arrow = (0,
|
|
32895
|
+
const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
|
|
32820
32896
|
return (!currentBox.style[arrow] ||
|
|
32821
32897
|
parseInt(currentBox.style[arrow], 10) <= 0);
|
|
32822
32898
|
}
|
|
@@ -32825,7 +32901,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
|
|
|
32825
32901
|
},
|
|
32826
32902
|
tooltip: 'Decrease Indent'
|
|
32827
32903
|
};
|
|
32828
|
-
|
|
32904
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
|
|
32829
32905
|
|
|
32830
32906
|
|
|
32831
32907
|
/***/ }),
|
|
@@ -33086,12 +33162,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33086
33162
|
|
|
33087
33163
|
"use strict";
|
|
33088
33164
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
33089
|
-
/* harmony import */ var
|
|
33090
|
-
/* harmony import */ var
|
|
33091
|
-
/* harmony import */ var
|
|
33092
|
-
/* harmony import */ var
|
|
33165
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
33166
|
+
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97836);
|
|
33167
|
+
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82558);
|
|
33168
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6295);
|
|
33169
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26396);
|
|
33093
33170
|
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58540);
|
|
33094
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
33095
33171
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38681);
|
|
33096
33172
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33097
33173
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64637);
|
|
@@ -33125,10 +33201,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
33125
33201
|
|
|
33126
33202
|
|
|
33127
33203
|
|
|
33128
|
-
|
|
33129
|
-
|
|
33130
|
-
|
|
33131
|
-
|
|
33204
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
|
|
33205
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
|
|
33206
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
|
|
33207
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
|
|
33132
33208
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
33133
33209
|
.set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
33134
33210
|
.set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
@@ -33136,14 +33212,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
|
|
|
33136
33212
|
.set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
33137
33213
|
.set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
|
|
33138
33214
|
.set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
|
|
33139
|
-
|
|
33140
|
-
a:
|
|
33141
|
-
img:
|
|
33142
|
-
cells:
|
|
33215
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
|
|
33216
|
+
a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
33217
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
|
|
33218
|
+
cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
|
|
33143
33219
|
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
|
|
33144
|
-
jodit:
|
|
33145
|
-
iframe:
|
|
33146
|
-
'jodit-media':
|
|
33220
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33221
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33222
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
33147
33223
|
selection: [
|
|
33148
33224
|
'bold',
|
|
33149
33225
|
'underline',
|
|
@@ -33755,12 +33831,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33755
33831
|
/* unused harmony export justify */
|
|
33756
33832
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
33757
33833
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
33758
|
-
/* harmony import */ var
|
|
33759
|
-
/* harmony import */ var
|
|
33760
|
-
/* harmony import */ var
|
|
33761
|
-
/* harmony import */ var
|
|
33762
|
-
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
33834
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
33835
|
+
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40080);
|
|
33836
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38322);
|
|
33837
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
33763
33838
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
33839
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80515);
|
|
33840
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33764
33841
|
/*!
|
|
33765
33842
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33766
33843
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33773,7 +33850,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33773
33850
|
|
|
33774
33851
|
|
|
33775
33852
|
|
|
33776
|
-
|
|
33853
|
+
|
|
33854
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
33777
33855
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
|
|
33778
33856
|
name: 'left',
|
|
33779
33857
|
tooltip: 'Align',
|
|
@@ -33782,22 +33860,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33782
33860
|
if (current) {
|
|
33783
33861
|
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
|
|
33784
33862
|
editor.editor;
|
|
33785
|
-
let currentValue = (0,
|
|
33863
|
+
let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
|
|
33786
33864
|
if (control.defaultValue &&
|
|
33787
33865
|
control.defaultValue.indexOf(currentValue) !== -1) {
|
|
33788
33866
|
currentValue = 'left';
|
|
33789
33867
|
}
|
|
33790
|
-
|
|
33791
|
-
|
|
33792
|
-
|
|
33793
|
-
|
|
33868
|
+
const { list, data } = control;
|
|
33869
|
+
if (data &&
|
|
33870
|
+
data.currentValue !== currentValue &&
|
|
33871
|
+
list &&
|
|
33872
|
+
((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
|
|
33873
|
+
? list[currentValue]
|
|
33874
|
+
: list.includes(currentValue))) {
|
|
33794
33875
|
if (editor.o.textIcons || control.component === 'select') {
|
|
33795
33876
|
button.state.text = currentValue;
|
|
33796
33877
|
}
|
|
33797
33878
|
else {
|
|
33798
33879
|
button.state.icon.name = currentValue;
|
|
33799
33880
|
}
|
|
33800
|
-
|
|
33881
|
+
data.currentValue = currentValue;
|
|
33801
33882
|
}
|
|
33802
33883
|
}
|
|
33803
33884
|
},
|
|
@@ -33808,7 +33889,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33808
33889
|
}
|
|
33809
33890
|
const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
|
|
33810
33891
|
editor.editor;
|
|
33811
|
-
return (btn.control.defaultValue.indexOf((0,
|
|
33892
|
+
return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
|
|
33812
33893
|
},
|
|
33813
33894
|
defaultValue: ['left', 'start', 'inherit'],
|
|
33814
33895
|
data: {
|
|
@@ -33862,7 +33943,7 @@ function justify(editor) {
|
|
|
33862
33943
|
if (!currentBox) {
|
|
33863
33944
|
currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
|
|
33864
33945
|
}
|
|
33865
|
-
(0,
|
|
33946
|
+
(0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
|
|
33866
33947
|
});
|
|
33867
33948
|
return false;
|
|
33868
33949
|
};
|
|
@@ -34074,9 +34155,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34074
34155
|
"use strict";
|
|
34075
34156
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65147);
|
|
34076
34157
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
34077
|
-
/* harmony import */ var
|
|
34078
|
-
/* harmony import */ var
|
|
34079
|
-
/* harmony import */ var
|
|
34158
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
34159
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
|
|
34160
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34080
34161
|
/*!
|
|
34081
34162
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34082
34163
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34086,9 +34167,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
34086
34167
|
|
|
34087
34168
|
|
|
34088
34169
|
|
|
34089
|
-
|
|
34090
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (
|
|
34091
|
-
|
|
34170
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
|
|
34171
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
34172
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
|
|
34092
34173
|
command: 'applyLineHeight',
|
|
34093
34174
|
tags: ['ol'],
|
|
34094
34175
|
tooltip: 'Line height',
|
|
@@ -34653,12 +34734,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
34653
34734
|
"use strict";
|
|
34654
34735
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
34655
34736
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
34656
|
-
/* harmony import */ var
|
|
34657
|
-
/* harmony import */ var
|
|
34658
|
-
/* harmony import */ var
|
|
34659
|
-
/* harmony import */ var
|
|
34660
|
-
/* harmony import */ var
|
|
34661
|
-
/* harmony import */ var
|
|
34737
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
34738
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95032);
|
|
34739
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34740
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73533);
|
|
34741
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
34742
|
+
/* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21329);
|
|
34662
34743
|
/*!
|
|
34663
34744
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34664
34745
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34670,8 +34751,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
34670
34751
|
|
|
34671
34752
|
|
|
34672
34753
|
|
|
34673
|
-
|
|
34674
|
-
formTemplate:
|
|
34754
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
|
|
34755
|
+
formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
|
|
34675
34756
|
followOnDblClick: false,
|
|
34676
34757
|
processVideoLink: true,
|
|
34677
34758
|
processPastedLink: true,
|
|
@@ -34683,8 +34764,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
|
|
|
34683
34764
|
selectOptionsClassName: [],
|
|
34684
34765
|
hotkeys: ['ctrl+k', 'cmd+k']
|
|
34685
34766
|
};
|
|
34686
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (
|
|
34687
|
-
|
|
34767
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
34768
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
|
|
34688
34769
|
exec: (editor, current) => {
|
|
34689
34770
|
const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
34690
34771
|
if (anchor) {
|
|
@@ -34695,7 +34776,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
|
|
|
34695
34776
|
},
|
|
34696
34777
|
tooltip: 'Unlink'
|
|
34697
34778
|
};
|
|
34698
|
-
|
|
34779
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
|
|
34699
34780
|
isActive: (editor) => {
|
|
34700
34781
|
const current = editor.s.current();
|
|
34701
34782
|
return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
|
|
@@ -34853,35 +34934,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34853
34934
|
if (link) {
|
|
34854
34935
|
url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
|
|
34855
34936
|
if (modeClassName) {
|
|
34856
|
-
|
|
34857
|
-
case 'input':
|
|
34858
|
-
if (className_input) {
|
|
34859
|
-
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34860
|
-
}
|
|
34861
|
-
break;
|
|
34862
|
-
case 'select':
|
|
34863
|
-
if (className_select) {
|
|
34864
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34865
|
-
const option = className_select.options.item(i);
|
|
34866
|
-
if (option) {
|
|
34867
|
-
option.selected = false;
|
|
34868
|
-
}
|
|
34869
|
-
}
|
|
34870
|
-
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34871
|
-
classNames.split(' ').forEach(className => {
|
|
34872
|
-
if (className) {
|
|
34873
|
-
for (let i = 0; i < className_select.options.length; i++) {
|
|
34874
|
-
const option = className_select.options.item(i);
|
|
34875
|
-
if ((option === null || option === void 0 ? void 0 : option.value) &&
|
|
34876
|
-
option.value === className) {
|
|
34877
|
-
option.selected = true;
|
|
34878
|
-
}
|
|
34879
|
-
}
|
|
34880
|
-
}
|
|
34881
|
-
});
|
|
34882
|
-
}
|
|
34883
|
-
break;
|
|
34884
|
-
}
|
|
34937
|
+
readClassnames(modeClassName, className_input, link, className_select);
|
|
34885
34938
|
}
|
|
34886
34939
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
34887
34940
|
target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
|
|
@@ -34942,44 +34995,10 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34942
34995
|
links = [link];
|
|
34943
34996
|
}
|
|
34944
34997
|
links.forEach(a => {
|
|
34945
|
-
var _a;
|
|
34946
34998
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
|
|
34947
|
-
|
|
34948
|
-
if (modeClassName === 'input') {
|
|
34949
|
-
if (className_input.value === '' &&
|
|
34950
|
-
a.hasAttribute('class')) {
|
|
34951
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34952
|
-
}
|
|
34953
|
-
if (className_input.value !== '') {
|
|
34954
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
34955
|
-
}
|
|
34956
|
-
}
|
|
34957
|
-
else if (modeClassName === 'select') {
|
|
34958
|
-
if (a.hasAttribute('class')) {
|
|
34959
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34960
|
-
}
|
|
34961
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34962
|
-
const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
|
|
34963
|
-
if (className) {
|
|
34964
|
-
a.classList.add(className);
|
|
34965
|
-
}
|
|
34966
|
-
}
|
|
34967
|
-
}
|
|
34968
|
-
}
|
|
34999
|
+
writeClasses(modeClassName, className_input, className_select, a);
|
|
34969
35000
|
if (!isImageContent) {
|
|
34970
|
-
|
|
34971
|
-
if (content_input.value.trim().length) {
|
|
34972
|
-
if (textWasChanged) {
|
|
34973
|
-
newContent = content_input.value;
|
|
34974
|
-
}
|
|
34975
|
-
}
|
|
34976
|
-
else {
|
|
34977
|
-
newContent = url_input.value;
|
|
34978
|
-
}
|
|
34979
|
-
const content = a.textContent;
|
|
34980
|
-
if (newContent !== content) {
|
|
34981
|
-
a.textContent = newContent;
|
|
34982
|
-
}
|
|
35001
|
+
writeImage(a, content_input, textWasChanged, url_input);
|
|
34983
35002
|
}
|
|
34984
35003
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
34985
35004
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
|
|
@@ -35024,6 +35043,75 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
35024
35043
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
35025
35044
|
], link.prototype, "__generateForm", null);
|
|
35026
35045
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
|
|
35046
|
+
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
35047
|
+
var _a;
|
|
35048
|
+
if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
|
|
35049
|
+
if (modeClassName === 'input') {
|
|
35050
|
+
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
35051
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35052
|
+
}
|
|
35053
|
+
if (className_input.value !== '') {
|
|
35054
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
35055
|
+
}
|
|
35056
|
+
}
|
|
35057
|
+
else if (modeClassName === 'select') {
|
|
35058
|
+
if (a.hasAttribute('class')) {
|
|
35059
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
35060
|
+
}
|
|
35061
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35062
|
+
const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
|
|
35063
|
+
if (className) {
|
|
35064
|
+
a.classList.add(className);
|
|
35065
|
+
}
|
|
35066
|
+
}
|
|
35067
|
+
}
|
|
35068
|
+
}
|
|
35069
|
+
}
|
|
35070
|
+
function readClassnames(modeClassName, className_input, link, className_select) {
|
|
35071
|
+
switch (modeClassName) {
|
|
35072
|
+
case 'input':
|
|
35073
|
+
if (className_input) {
|
|
35074
|
+
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35075
|
+
}
|
|
35076
|
+
break;
|
|
35077
|
+
case 'select':
|
|
35078
|
+
if (className_select) {
|
|
35079
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
35080
|
+
const option = className_select.options.item(i);
|
|
35081
|
+
if (option) {
|
|
35082
|
+
option.selected = false;
|
|
35083
|
+
}
|
|
35084
|
+
}
|
|
35085
|
+
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
35086
|
+
classNames.split(' ').forEach(className => {
|
|
35087
|
+
if (className) {
|
|
35088
|
+
for (let i = 0; i < className_select.options.length; i++) {
|
|
35089
|
+
const option = className_select.options.item(i);
|
|
35090
|
+
if ((option === null || option === void 0 ? void 0 : option.value) && option.value === className) {
|
|
35091
|
+
option.selected = true;
|
|
35092
|
+
}
|
|
35093
|
+
}
|
|
35094
|
+
}
|
|
35095
|
+
});
|
|
35096
|
+
}
|
|
35097
|
+
break;
|
|
35098
|
+
}
|
|
35099
|
+
}
|
|
35100
|
+
function writeImage(a, content_input, textWasChanged, url_input) {
|
|
35101
|
+
let newContent = a.textContent;
|
|
35102
|
+
if (content_input.value.trim().length) {
|
|
35103
|
+
if (textWasChanged) {
|
|
35104
|
+
newContent = content_input.value;
|
|
35105
|
+
}
|
|
35106
|
+
}
|
|
35107
|
+
else {
|
|
35108
|
+
newContent = url_input.value;
|
|
35109
|
+
}
|
|
35110
|
+
const content = a.textContent;
|
|
35111
|
+
if (newContent !== content) {
|
|
35112
|
+
a.textContent = newContent;
|
|
35113
|
+
}
|
|
35114
|
+
}
|
|
35027
35115
|
|
|
35028
35116
|
|
|
35029
35117
|
/***/ }),
|
|
@@ -35233,9 +35321,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
35233
35321
|
"use strict";
|
|
35234
35322
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
35235
35323
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
35236
|
-
/* harmony import */ var
|
|
35237
|
-
/* harmony import */ var
|
|
35238
|
-
/* harmony import */ var
|
|
35324
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
35325
|
+
/* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97394);
|
|
35326
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8809);
|
|
35239
35327
|
/*!
|
|
35240
35328
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35241
35329
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35246,9 +35334,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
35246
35334
|
|
|
35247
35335
|
|
|
35248
35336
|
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35337
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
|
|
35338
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
|
|
35339
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
|
|
35252
35340
|
{
|
|
35253
35341
|
group: 'font-style',
|
|
35254
35342
|
buttons: []
|
|
@@ -35295,7 +35383,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
|
|
|
35295
35383
|
'|',
|
|
35296
35384
|
'dots'
|
|
35297
35385
|
];
|
|
35298
|
-
|
|
35386
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
|
|
35299
35387
|
{
|
|
35300
35388
|
group: 'font-style',
|
|
35301
35389
|
buttons: []
|
|
@@ -35330,7 +35418,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
|
|
|
35330
35418
|
'|',
|
|
35331
35419
|
'dots'
|
|
35332
35420
|
];
|
|
35333
|
-
|
|
35421
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
|
|
35334
35422
|
{
|
|
35335
35423
|
group: 'font-style',
|
|
35336
35424
|
buttons: []
|
|
@@ -35351,17 +35439,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
|
|
|
35351
35439
|
'---',
|
|
35352
35440
|
'dots'
|
|
35353
35441
|
];
|
|
35354
|
-
|
|
35442
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
|
|
35355
35443
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
|
|
35356
35444
|
popup: (editor, current, close, button) => {
|
|
35357
35445
|
let store = button.control.data;
|
|
35358
35446
|
if (store === undefined) {
|
|
35359
35447
|
store = {
|
|
35360
|
-
toolbar: (0,
|
|
35448
|
+
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
|
|
35361
35449
|
rebuild: () => {
|
|
35362
35450
|
var _a, _b;
|
|
35363
35451
|
if (button) {
|
|
35364
|
-
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(
|
|
35452
|
+
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
|
|
35365
35453
|
if (buttons && store) {
|
|
35366
35454
|
store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
|
|
35367
35455
|
const w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
|
|
@@ -35470,11 +35558,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
|
|
|
35470
35558
|
"use strict";
|
|
35471
35559
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
|
|
35472
35560
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
35473
|
-
/* harmony import */ var
|
|
35474
|
-
/* harmony import */ var
|
|
35475
|
-
/* harmony import */ var
|
|
35476
|
-
/* harmony import */ var
|
|
35477
|
-
/* harmony import */ var
|
|
35561
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
35562
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40037);
|
|
35563
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
35564
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
|
|
35565
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
35478
35566
|
/*!
|
|
35479
35567
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35480
35568
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35492,8 +35580,8 @@ const memoExec = (jodit, _, { control }) => {
|
|
|
35492
35580
|
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
|
|
35493
35581
|
jodit.execCommand(control.command, false, value === 'default' ? null : value);
|
|
35494
35582
|
};
|
|
35495
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (
|
|
35496
|
-
|
|
35583
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
35584
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
|
|
35497
35585
|
command: 'insertUnorderedList',
|
|
35498
35586
|
tags: ['ul'],
|
|
35499
35587
|
tooltip: 'Insert Unordered List',
|
|
@@ -35505,7 +35593,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
|
|
|
35505
35593
|
},
|
|
35506
35594
|
exec: memoExec
|
|
35507
35595
|
};
|
|
35508
|
-
|
|
35596
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
|
|
35509
35597
|
command: 'insertOrderedList',
|
|
35510
35598
|
tags: ['ol'],
|
|
35511
35599
|
tooltip: 'Insert Ordered List',
|
|
@@ -35880,8 +35968,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
35880
35968
|
|
|
35881
35969
|
"use strict";
|
|
35882
35970
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
35883
|
-
/* harmony import */ var
|
|
35884
|
-
/* harmony import */ var
|
|
35971
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
35972
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90823);
|
|
35885
35973
|
/*!
|
|
35886
35974
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35887
35975
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35890,19 +35978,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
35890
35978
|
|
|
35891
35979
|
|
|
35892
35980
|
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35981
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
|
|
35982
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
|
|
35983
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
|
|
35984
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
|
|
35985
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
|
|
35898
35986
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
35899
35987
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
35900
35988
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
|
|
35901
35989
|
];
|
|
35902
|
-
|
|
35903
|
-
|
|
35990
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
|
|
35991
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
|
|
35904
35992
|
const psKey = 'pasteStorage';
|
|
35905
|
-
|
|
35993
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
|
|
35906
35994
|
tooltip: 'Paste from clipboard',
|
|
35907
35995
|
async exec(editor, _, { control }) {
|
|
35908
35996
|
if (control.name === psKey) {
|
|
@@ -35950,7 +36038,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
|
|
|
35950
36038
|
!error && editor.e.fire('afterPaste');
|
|
35951
36039
|
}
|
|
35952
36040
|
else if (text.length) {
|
|
35953
|
-
(0,
|
|
36041
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
|
|
35954
36042
|
editor.e.fire('afterPaste');
|
|
35955
36043
|
}
|
|
35956
36044
|
else {
|
|
@@ -36675,10 +36763,10 @@ function generateCriticalCSS(jodit) {
|
|
|
36675
36763
|
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17527);
|
|
36676
36764
|
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98434);
|
|
36677
36765
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
36678
|
-
/* harmony import */ var
|
|
36679
|
-
/* harmony import */ var
|
|
36680
|
-
/* harmony import */ var
|
|
36681
|
-
/* harmony import */ var
|
|
36766
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
36767
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11131);
|
|
36768
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59827);
|
|
36769
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
36682
36770
|
/*!
|
|
36683
36771
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36684
36772
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36693,8 +36781,8 @@ function generateCriticalCSS(jodit) {
|
|
|
36693
36781
|
|
|
36694
36782
|
|
|
36695
36783
|
|
|
36696
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (
|
|
36697
|
-
|
|
36784
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
36785
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
|
|
36698
36786
|
exec: (editor) => {
|
|
36699
36787
|
const iframe = editor.create.element('iframe');
|
|
36700
36788
|
Object.assign(iframe.style, {
|
|
@@ -36705,7 +36793,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
36705
36793
|
height: 0,
|
|
36706
36794
|
border: 0
|
|
36707
36795
|
});
|
|
36708
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
36796
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
|
|
36709
36797
|
const afterFinishPrint = () => {
|
|
36710
36798
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
36711
36799
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -36723,7 +36811,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
36723
36811
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
36724
36812
|
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
36725
36813
|
'"><head><title></title></head><style>' +
|
|
36726
|
-
(0,
|
|
36814
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
|
|
36727
36815
|
'</style><body></body></html>');
|
|
36728
36816
|
myWindow.document.close();
|
|
36729
36817
|
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
@@ -36761,11 +36849,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
36761
36849
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
36762
36850
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
|
|
36763
36851
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
36764
|
-
/* harmony import */ var
|
|
36765
|
-
/* harmony import */ var
|
|
36766
|
-
/* harmony import */ var
|
|
36767
|
-
/* harmony import */ var
|
|
36768
|
-
/* harmony import */ var
|
|
36852
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
36853
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34045);
|
|
36854
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
36855
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39199);
|
|
36856
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
36769
36857
|
/*!
|
|
36770
36858
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36771
36859
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36778,13 +36866,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
36778
36866
|
|
|
36779
36867
|
|
|
36780
36868
|
|
|
36781
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (
|
|
36782
|
-
|
|
36869
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
36870
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
|
|
36783
36871
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
36784
36872
|
isDisabled: (editor) => !editor.history.canRedo(),
|
|
36785
36873
|
tooltip: 'Redo'
|
|
36786
36874
|
};
|
|
36787
|
-
|
|
36875
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
|
|
36788
36876
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
36789
36877
|
isDisabled: (editor) => !editor.history.canUndo(),
|
|
36790
36878
|
tooltip: 'Undo'
|
|
@@ -37803,9 +37891,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37803
37891
|
|
|
37804
37892
|
"use strict";
|
|
37805
37893
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
37806
|
-
/* harmony import */ var
|
|
37807
|
-
/* harmony import */ var
|
|
37808
|
-
/* harmony import */ var
|
|
37894
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
37895
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21917);
|
|
37896
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
37809
37897
|
/*!
|
|
37810
37898
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37811
37899
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37815,14 +37903,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37815
37903
|
|
|
37816
37904
|
|
|
37817
37905
|
|
|
37818
|
-
|
|
37819
|
-
|
|
37906
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
|
|
37907
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
|
|
37820
37908
|
lazyIdleTimeout: 0,
|
|
37821
37909
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37822
37910
|
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
37823
37911
|
};
|
|
37824
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (
|
|
37825
|
-
|
|
37912
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
37913
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
|
|
37826
37914
|
tooltip: 'Find',
|
|
37827
37915
|
icon: 'search',
|
|
37828
37916
|
exec(jodit, _, { control }) {
|
|
@@ -37863,7 +37951,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
|
|
|
37863
37951
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
37864
37952
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
37865
37953
|
/* harmony export */ });
|
|
37866
|
-
/* unused harmony export isSelectionWrapper */
|
|
37867
37954
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
37868
37955
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58720);
|
|
37869
37956
|
/*!
|
|
@@ -37885,60 +37972,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
37885
37972
|
rng.endContainer.nodeValue == null) {
|
|
37886
37973
|
return;
|
|
37887
37974
|
}
|
|
37888
|
-
if (jodit
|
|
37889
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37890
|
-
typeof window.Highlight !== 'undefined') {
|
|
37891
|
-
const ranges = [rng, ...restRanges].map(rng => {
|
|
37892
|
-
const range = jodit.selection.createRange();
|
|
37893
|
-
range.setStart(rng.startContainer, rng.startOffset);
|
|
37894
|
-
range.setEnd(rng.endContainer, rng.endOffset);
|
|
37895
|
-
return range;
|
|
37896
|
-
});
|
|
37897
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37898
|
-
const searchHighlight = new Highlight(...ranges);
|
|
37899
|
-
// @ts-ignore
|
|
37900
|
-
CSS.highlights.clear();
|
|
37901
|
-
// @ts-ignore
|
|
37902
|
-
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
37903
|
-
restRanges.length = 0;
|
|
37975
|
+
if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
|
|
37904
37976
|
return;
|
|
37905
37977
|
}
|
|
37906
37978
|
const span = ci.element('span', {
|
|
37907
37979
|
[TMP_ATTR]: true
|
|
37908
37980
|
});
|
|
37909
37981
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
|
|
37910
|
-
|
|
37911
|
-
let diff = 0;
|
|
37912
|
-
if (rng.startOffset !== 0) {
|
|
37913
|
-
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
37914
|
-
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
37915
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
37916
|
-
if (rng.startContainer === rng.endContainer) {
|
|
37917
|
-
diff = rng.startOffset;
|
|
37918
|
-
rng.endOffset -= diff;
|
|
37919
|
-
}
|
|
37920
|
-
rng.startOffset = 0;
|
|
37921
|
-
}
|
|
37922
|
-
const endText = rng.endContainer.nodeValue;
|
|
37923
|
-
if (rng.endOffset !== endText.length) {
|
|
37924
|
-
const text = ci.text(endText.substring(rng.endOffset));
|
|
37925
|
-
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
37926
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
37927
|
-
for (const range of restRanges) {
|
|
37928
|
-
if (range.startContainer === rng.endContainer) {
|
|
37929
|
-
range.startContainer = text;
|
|
37930
|
-
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
37931
|
-
if (range.endContainer === rng.endContainer) {
|
|
37932
|
-
range.endContainer = text;
|
|
37933
|
-
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
37934
|
-
}
|
|
37935
|
-
}
|
|
37936
|
-
else {
|
|
37937
|
-
break;
|
|
37938
|
-
}
|
|
37939
|
-
}
|
|
37940
|
-
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
37941
|
-
}
|
|
37982
|
+
normalizeRanges(rng, restRanges, ci);
|
|
37942
37983
|
let next = rng.startContainer;
|
|
37943
37984
|
do {
|
|
37944
37985
|
if (!next) {
|
|
@@ -37984,6 +38025,61 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
37984
38025
|
function isSelectionWrapper(node) {
|
|
37985
38026
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
37986
38027
|
}
|
|
38028
|
+
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38029
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38030
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38031
|
+
typeof window.Highlight !== 'undefined') {
|
|
38032
|
+
const ranges = [rng, ...restRanges].map(rng => {
|
|
38033
|
+
const range = jodit.selection.createRange();
|
|
38034
|
+
range.setStart(rng.startContainer, rng.startOffset);
|
|
38035
|
+
range.setEnd(rng.endContainer, rng.endOffset);
|
|
38036
|
+
return range;
|
|
38037
|
+
});
|
|
38038
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38039
|
+
const searchHighlight = new Highlight(...ranges);
|
|
38040
|
+
// @ts-ignore
|
|
38041
|
+
CSS.highlights.clear();
|
|
38042
|
+
// @ts-ignore
|
|
38043
|
+
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
38044
|
+
restRanges.length = 0;
|
|
38045
|
+
return true;
|
|
38046
|
+
}
|
|
38047
|
+
return false;
|
|
38048
|
+
}
|
|
38049
|
+
function normalizeRanges(rng, restRanges, ci) {
|
|
38050
|
+
const startText = rng.startContainer.nodeValue;
|
|
38051
|
+
let diff = 0;
|
|
38052
|
+
if (rng.startOffset !== 0) {
|
|
38053
|
+
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38054
|
+
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38055
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38056
|
+
if (rng.startContainer === rng.endContainer) {
|
|
38057
|
+
diff = rng.startOffset;
|
|
38058
|
+
rng.endOffset -= diff;
|
|
38059
|
+
}
|
|
38060
|
+
rng.startOffset = 0;
|
|
38061
|
+
}
|
|
38062
|
+
const endText = rng.endContainer.nodeValue;
|
|
38063
|
+
if (rng.endOffset !== endText.length) {
|
|
38064
|
+
const text = ci.text(endText.substring(rng.endOffset));
|
|
38065
|
+
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38066
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38067
|
+
for (const range of restRanges) {
|
|
38068
|
+
if (range.startContainer === rng.endContainer) {
|
|
38069
|
+
range.startContainer = text;
|
|
38070
|
+
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
38071
|
+
if (range.endContainer === rng.endContainer) {
|
|
38072
|
+
range.endContainer = text;
|
|
38073
|
+
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
38074
|
+
}
|
|
38075
|
+
}
|
|
38076
|
+
else {
|
|
38077
|
+
break;
|
|
38078
|
+
}
|
|
38079
|
+
}
|
|
38080
|
+
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
38081
|
+
}
|
|
38082
|
+
}
|
|
37987
38083
|
|
|
37988
38084
|
|
|
37989
38085
|
/***/ }),
|
|
@@ -39432,9 +39528,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
39432
39528
|
"use strict";
|
|
39433
39529
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
39434
39530
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
39435
|
-
/* harmony import */ var
|
|
39436
|
-
/* harmony import */ var
|
|
39437
|
-
/* harmony import */ var
|
|
39531
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
39532
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9103);
|
|
39533
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
39438
39534
|
/*!
|
|
39439
39535
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39440
39536
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39444,9 +39540,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
39444
39540
|
|
|
39445
39541
|
|
|
39446
39542
|
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39543
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
|
|
39544
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
|
|
39545
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
|
|
39450
39546
|
/**
|
|
39451
39547
|
* Show gutter
|
|
39452
39548
|
*/
|
|
@@ -39468,15 +39564,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
|
|
|
39468
39564
|
*/
|
|
39469
39565
|
highlightActiveLine: true
|
|
39470
39566
|
};
|
|
39471
|
-
|
|
39567
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
|
|
39472
39568
|
'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
|
|
39473
39569
|
];
|
|
39474
|
-
|
|
39570
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
|
|
39475
39571
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
|
|
39476
39572
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
|
|
39477
39573
|
];
|
|
39478
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (
|
|
39479
|
-
|
|
39574
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
39575
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
|
|
39480
39576
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
39481
39577
|
exec: (editor) => {
|
|
39482
39578
|
editor.toggleMode();
|
|
@@ -40286,9 +40382,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
40286
40382
|
|
|
40287
40383
|
"use strict";
|
|
40288
40384
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
40289
|
-
/* harmony import */ var
|
|
40290
|
-
/* harmony import */ var
|
|
40291
|
-
/* harmony import */ var
|
|
40385
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
40386
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49989);
|
|
40387
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
40292
40388
|
/*!
|
|
40293
40389
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40294
40390
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40297,13 +40393,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
40297
40393
|
|
|
40298
40394
|
|
|
40299
40395
|
|
|
40300
|
-
|
|
40301
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (
|
|
40302
|
-
|
|
40396
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
|
|
40397
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
40398
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
|
|
40303
40399
|
isActive(e) {
|
|
40304
40400
|
return e.o.spellcheck;
|
|
40305
40401
|
},
|
|
40306
|
-
icon: (
|
|
40402
|
+
icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
40307
40403
|
name: 'spellcheck',
|
|
40308
40404
|
command: 'toggleSpellcheck',
|
|
40309
40405
|
tooltip: 'Spellcheck'
|
|
@@ -41078,9 +41174,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
41078
41174
|
|
|
41079
41175
|
"use strict";
|
|
41080
41176
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
41081
|
-
/* harmony import */ var
|
|
41082
|
-
/* harmony import */ var
|
|
41083
|
-
/* harmony import */ var
|
|
41177
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
41178
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81875);
|
|
41179
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
41084
41180
|
/*!
|
|
41085
41181
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41086
41182
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41089,8 +41185,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
41089
41185
|
|
|
41090
41186
|
|
|
41091
41187
|
|
|
41092
|
-
|
|
41093
|
-
|
|
41188
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
|
|
41189
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
|
|
41094
41190
|
'!',
|
|
41095
41191
|
'"',
|
|
41096
41192
|
'#',
|
|
@@ -41302,8 +41398,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
|
|
|
41302
41398
|
'♦',
|
|
41303
41399
|
'≈'
|
|
41304
41400
|
];
|
|
41305
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (
|
|
41306
|
-
|
|
41401
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
41402
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
|
|
41307
41403
|
hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
|
|
41308
41404
|
tooltip: 'Insert Special Character',
|
|
41309
41405
|
popup: (editor, current, close) => {
|
|
@@ -42185,38 +42281,10 @@ function tableKeyboardNavigation(editor) {
|
|
|
42185
42281
|
.off('.tableKeyboardNavigation')
|
|
42186
42282
|
.on('keydown.tableKeyboardNavigation', (event) => {
|
|
42187
42283
|
const { key } = event;
|
|
42188
|
-
|
|
42189
|
-
return;
|
|
42190
|
-
}
|
|
42191
|
-
const current = editor.s.current();
|
|
42192
|
-
if (!current) {
|
|
42193
|
-
return;
|
|
42194
|
-
}
|
|
42195
|
-
const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
|
|
42284
|
+
const cell = findCell(editor, key);
|
|
42196
42285
|
if (!cell) {
|
|
42197
42286
|
return;
|
|
42198
42287
|
}
|
|
42199
|
-
const { range } = editor.s;
|
|
42200
|
-
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
42201
|
-
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
42202
|
-
const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
42203
|
-
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
42204
|
-
: Boolean(elm), cell);
|
|
42205
|
-
if ((!isNextDirection &&
|
|
42206
|
-
(hasNext ||
|
|
42207
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
42208
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42209
|
-
range.startOffset !== 0))) ||
|
|
42210
|
-
(isNextDirection &&
|
|
42211
|
-
(hasNext ||
|
|
42212
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
42213
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42214
|
-
current.nodeValue &&
|
|
42215
|
-
range.startOffset !==
|
|
42216
|
-
current.nodeValue.length)))) {
|
|
42217
|
-
return;
|
|
42218
|
-
}
|
|
42219
|
-
}
|
|
42220
42288
|
const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
|
|
42221
42289
|
const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
|
|
42222
42290
|
let next = null;
|
|
@@ -42274,6 +42342,40 @@ function tableKeyboardNavigation(editor) {
|
|
|
42274
42342
|
});
|
|
42275
42343
|
}
|
|
42276
42344
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
|
|
42345
|
+
function findCell(editor, key) {
|
|
42346
|
+
if (!WORK_KEYS.has(key)) {
|
|
42347
|
+
return;
|
|
42348
|
+
}
|
|
42349
|
+
const current = editor.s.current();
|
|
42350
|
+
if (!current) {
|
|
42351
|
+
return;
|
|
42352
|
+
}
|
|
42353
|
+
const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
|
|
42354
|
+
if (!cell) {
|
|
42355
|
+
return;
|
|
42356
|
+
}
|
|
42357
|
+
const { range } = editor.s;
|
|
42358
|
+
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
42359
|
+
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
42360
|
+
const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
|
|
42361
|
+
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
42362
|
+
: Boolean(elm), cell);
|
|
42363
|
+
if ((!isNextDirection &&
|
|
42364
|
+
(hasNext ||
|
|
42365
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
42366
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42367
|
+
range.startOffset !== 0))) ||
|
|
42368
|
+
(isNextDirection &&
|
|
42369
|
+
(hasNext ||
|
|
42370
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
42371
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
42372
|
+
current.nodeValue &&
|
|
42373
|
+
range.startOffset !== current.nodeValue.length)))) {
|
|
42374
|
+
return;
|
|
42375
|
+
}
|
|
42376
|
+
}
|
|
42377
|
+
return cell;
|
|
42378
|
+
}
|
|
42277
42379
|
|
|
42278
42380
|
|
|
42279
42381
|
/***/ }),
|
|
@@ -42286,9 +42388,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
42286
42388
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
42287
42389
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
|
|
42288
42390
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
42289
|
-
/* harmony import */ var
|
|
42290
|
-
/* harmony import */ var
|
|
42291
|
-
/* harmony import */ var
|
|
42391
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
42392
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67447);
|
|
42393
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
42292
42394
|
/*!
|
|
42293
42395
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42294
42396
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42300,12 +42402,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
42300
42402
|
|
|
42301
42403
|
|
|
42302
42404
|
|
|
42303
|
-
|
|
42405
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
42304
42406
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
42305
42407
|
useExtraClassesOptions: false
|
|
42306
42408
|
};
|
|
42307
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (
|
|
42308
|
-
|
|
42409
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
42410
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
|
|
42309
42411
|
data: {
|
|
42310
42412
|
cols: 10,
|
|
42311
42413
|
rows: 10,
|
|
@@ -42472,10 +42574,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
42472
42574
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35265);
|
|
42473
42575
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20703);
|
|
42474
42576
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
42475
|
-
/* harmony import */ var
|
|
42476
|
-
/* harmony import */ var
|
|
42477
|
-
/* harmony import */ var
|
|
42478
|
-
/* harmony import */ var
|
|
42577
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
42578
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
|
|
42579
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36339);
|
|
42580
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
42479
42581
|
/*!
|
|
42480
42582
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42481
42583
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42488,8 +42590,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
42488
42590
|
|
|
42489
42591
|
|
|
42490
42592
|
|
|
42491
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (
|
|
42492
|
-
|
|
42593
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
42594
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
42493
42595
|
popup: (editor, current, close) => {
|
|
42494
42596
|
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
|
|
42495
42597
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
|
|
@@ -42536,7 +42638,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
|
|
|
42536
42638
|
formCode.onSubmit(data => {
|
|
42537
42639
|
insertCode(data.code);
|
|
42538
42640
|
});
|
|
42539
|
-
return (0,
|
|
42641
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
|
|
42540
42642
|
},
|
|
42541
42643
|
tags: ['iframe'],
|
|
42542
42644
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -44324,16 +44426,16 @@ var __webpack_exports__ = {};
|
|
|
44324
44426
|
__webpack_require__.r(__webpack_exports__);
|
|
44325
44427
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44326
44428
|
/* harmony export */ CommitMode: function() { return /* binding */ CommitMode; },
|
|
44327
|
-
/* harmony export */ Jodit: function() { return /* reexport safe */
|
|
44429
|
+
/* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
|
|
44328
44430
|
/* harmony export */ });
|
|
44329
|
-
/* harmony import */ var
|
|
44330
|
-
/* harmony import */ var
|
|
44431
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46173);
|
|
44432
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
|
|
44331
44433
|
/* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17352);
|
|
44332
44434
|
/* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22664);
|
|
44333
44435
|
/* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37435);
|
|
44334
44436
|
/* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79721);
|
|
44335
|
-
/* harmony import */ var
|
|
44336
|
-
/* harmony import */ var
|
|
44437
|
+
/* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74470);
|
|
44438
|
+
/* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88222);
|
|
44337
44439
|
/*!
|
|
44338
44440
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
44339
44441
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -44344,6 +44446,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44344
44446
|
* @packageDocumentation
|
|
44345
44447
|
* @module jodit
|
|
44346
44448
|
*/
|
|
44449
|
+
// eslint-disable-next-line simple-import-sort/imports
|
|
44347
44450
|
|
|
44348
44451
|
|
|
44349
44452
|
|
|
@@ -44356,7 +44459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44356
44459
|
|
|
44357
44460
|
// copy constants in Jodit
|
|
44358
44461
|
Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
|
|
44359
|
-
|
|
44462
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
44360
44463
|
});
|
|
44361
44464
|
const esFilter = (key) => key !== '__esModule';
|
|
44362
44465
|
// Icons
|
|
@@ -44372,32 +44475,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
|
|
|
44372
44475
|
var _a;
|
|
44373
44476
|
// @ts-ignore
|
|
44374
44477
|
const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
44375
|
-
const name = (0,
|
|
44478
|
+
const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
|
|
44376
44479
|
? module.prototype.className()
|
|
44377
44480
|
: key;
|
|
44378
|
-
if (!(0,
|
|
44481
|
+
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
|
|
44379
44482
|
console.warn('Module name must be a string', key);
|
|
44380
44483
|
return;
|
|
44381
44484
|
}
|
|
44382
44485
|
// @ts-ignore
|
|
44383
|
-
|
|
44486
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
|
|
44384
44487
|
});
|
|
44385
44488
|
// Decorators
|
|
44386
44489
|
Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
|
|
44387
44490
|
.filter(esFilter)
|
|
44388
44491
|
.forEach((key) => {
|
|
44389
44492
|
// @ts-ignore
|
|
44390
|
-
|
|
44493
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
44391
44494
|
});
|
|
44392
44495
|
['Confirm', 'Alert', 'Prompt'].forEach((key) => {
|
|
44393
44496
|
// @ts-ignore
|
|
44394
|
-
|
|
44497
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
44395
44498
|
});
|
|
44396
44499
|
// Languages
|
|
44397
|
-
Object.keys(
|
|
44500
|
+
Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
|
|
44398
44501
|
.filter(esFilter)
|
|
44399
44502
|
.forEach((key) => {
|
|
44400
|
-
|
|
44503
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
|
|
44401
44504
|
});
|
|
44402
44505
|
|
|
44403
44506
|
class CommitMode {
|