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/es2021.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.17
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1737,7 +1737,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1737
1737
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1738
1738
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1739
1739
|
*/
|
|
1740
|
-
const APP_VERSION = "4.2.
|
|
1740
|
+
const APP_VERSION = "4.2.17";
|
|
1741
1741
|
// prettier-ignore
|
|
1742
1742
|
const ES = "es2021";
|
|
1743
1743
|
const IS_ES_MODERN = true;
|
|
@@ -7521,9 +7521,9 @@ const completeUrl = (url) => {
|
|
|
7521
7521
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
|
|
7522
7522
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
|
|
7523
7523
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
|
|
7524
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36115);
|
|
7524
7525
|
/* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49429);
|
|
7525
|
-
/* harmony import */ var
|
|
7526
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
7526
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84976);
|
|
7527
7527
|
/*!
|
|
7528
7528
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7529
7529
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7571,7 +7571,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
7571
7571
|
if (Object.getPrototypeOf(options) !== Object.prototype) {
|
|
7572
7572
|
return options;
|
|
7573
7573
|
}
|
|
7574
|
-
const def =
|
|
7574
|
+
const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
|
|
7575
7575
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
|
|
7576
7576
|
if (def.presets[options.preset] !== undefined) {
|
|
7577
7577
|
const preset = def.presets[options.preset];
|
|
@@ -7601,7 +7601,7 @@ function ConfigProto(options, proto, deep = 0) {
|
|
|
7601
7601
|
return newOpt;
|
|
7602
7602
|
}
|
|
7603
7603
|
function ConfigFlatten(obj) {
|
|
7604
|
-
return (0,
|
|
7604
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
|
|
7605
7605
|
app[key] = obj[key];
|
|
7606
7606
|
return app;
|
|
7607
7607
|
}, {});
|
|
@@ -9560,9 +9560,9 @@ Plugin.requires = [];
|
|
|
9560
9560
|
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26318);
|
|
9561
9561
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
9562
9562
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50156);
|
|
9563
|
-
/* harmony import */ var
|
|
9563
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
9564
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27337);
|
|
9564
9565
|
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
|
|
9565
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
9566
9566
|
/*!
|
|
9567
9567
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9568
9568
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9580,7 +9580,7 @@ class Ajax {
|
|
|
9580
9580
|
className() {
|
|
9581
9581
|
return 'Ajax';
|
|
9582
9582
|
}
|
|
9583
|
-
constructor(options, defaultAjaxOptions =
|
|
9583
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
9584
9584
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
9585
9585
|
this.__isFulfilled = false;
|
|
9586
9586
|
this.__activated = false;
|
|
@@ -9823,10 +9823,14 @@ class Response {
|
|
|
9823
9823
|
|
|
9824
9824
|
"use strict";
|
|
9825
9825
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9826
|
-
/* harmony export */
|
|
9826
|
+
/* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
9827
|
+
/* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
|
|
9828
|
+
/* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
|
|
9827
9829
|
/* harmony export */ });
|
|
9828
|
-
/* harmony import */ var
|
|
9829
|
-
/* harmony import */ var
|
|
9830
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
9831
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
9832
|
+
/* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5298);
|
|
9833
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83541);
|
|
9830
9834
|
/*!
|
|
9831
9835
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9832
9836
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9839,6 +9843,54 @@ class Response {
|
|
|
9839
9843
|
|
|
9840
9844
|
|
|
9841
9845
|
|
|
9846
|
+
/**
|
|
9847
|
+
* Check if the cursor is at the edge of the string
|
|
9848
|
+
* @private
|
|
9849
|
+
*/
|
|
9850
|
+
function cursorInTheEdgeOfString(container, offset, start, end) {
|
|
9851
|
+
const text = container.nodeValue?.length ? container.nodeValue : '';
|
|
9852
|
+
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
9853
|
+
return true;
|
|
9854
|
+
}
|
|
9855
|
+
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
9856
|
+
return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
|
|
9857
|
+
}
|
|
9858
|
+
function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
|
|
9859
|
+
node = range.startContainer.childNodes[range.startOffset];
|
|
9860
|
+
if (!node) {
|
|
9861
|
+
node = range.startContainer.childNodes[range.startOffset - 1];
|
|
9862
|
+
rightMode = true;
|
|
9863
|
+
}
|
|
9864
|
+
if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
9865
|
+
// test Current method - Cursor in the left of some SPAN
|
|
9866
|
+
if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
|
|
9867
|
+
node = node.previousSibling;
|
|
9868
|
+
}
|
|
9869
|
+
else if (checkChild) {
|
|
9870
|
+
let current = child(node);
|
|
9871
|
+
while (current) {
|
|
9872
|
+
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
|
|
9873
|
+
node = current;
|
|
9874
|
+
break;
|
|
9875
|
+
}
|
|
9876
|
+
current = child(current);
|
|
9877
|
+
}
|
|
9878
|
+
}
|
|
9879
|
+
}
|
|
9880
|
+
if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
|
|
9881
|
+
let leftChild = node, rightChild = node;
|
|
9882
|
+
do {
|
|
9883
|
+
leftChild = leftChild.firstChild;
|
|
9884
|
+
rightChild = rightChild.lastChild;
|
|
9885
|
+
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
|
|
9886
|
+
if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
|
|
9887
|
+
node = leftChild;
|
|
9888
|
+
}
|
|
9889
|
+
}
|
|
9890
|
+
return { node, rightMode };
|
|
9891
|
+
}
|
|
9892
|
+
|
|
9893
|
+
|
|
9842
9894
|
/***/ }),
|
|
9843
9895
|
|
|
9844
9896
|
/***/ 5298:
|
|
@@ -9959,7 +10011,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
9959
10011
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9960
10012
|
/* harmony export */ L: function() { return /* binding */ Selection; }
|
|
9961
10013
|
/* harmony export */ });
|
|
9962
|
-
/* harmony import */ var
|
|
10014
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
|
|
9963
10015
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
9964
10016
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
9965
10017
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
@@ -9969,6 +10021,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
9969
10021
|
/* 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__);
|
|
9970
10022
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83541);
|
|
9971
10023
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8757);
|
|
10024
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46602);
|
|
9972
10025
|
/*!
|
|
9973
10026
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9974
10027
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9985,6 +10038,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
|
|
|
9985
10038
|
|
|
9986
10039
|
|
|
9987
10040
|
|
|
10041
|
+
|
|
9988
10042
|
class Selection {
|
|
9989
10043
|
constructor(jodit) {
|
|
9990
10044
|
this.jodit = jodit;
|
|
@@ -10367,63 +10421,35 @@ class Selection {
|
|
|
10367
10421
|
* Returns the current element under the cursor inside editor
|
|
10368
10422
|
*/
|
|
10369
10423
|
current(checkChild = true) {
|
|
10370
|
-
if (this.j.getRealMode()
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
}
|
|
10393
|
-
else if (checkChild) {
|
|
10394
|
-
let current = child(node);
|
|
10395
|
-
while (current) {
|
|
10396
|
-
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
|
|
10397
|
-
node = current;
|
|
10398
|
-
break;
|
|
10399
|
-
}
|
|
10400
|
-
current = child(current);
|
|
10401
|
-
}
|
|
10402
|
-
}
|
|
10403
|
-
}
|
|
10404
|
-
if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
10405
|
-
let leftChild = node, rightChild = node;
|
|
10406
|
-
do {
|
|
10407
|
-
leftChild = leftChild.firstChild;
|
|
10408
|
-
rightChild = rightChild.lastChild;
|
|
10409
|
-
} while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
|
|
10410
|
-
if (leftChild === rightChild &&
|
|
10411
|
-
leftChild &&
|
|
10412
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
|
|
10413
|
-
node = leftChild;
|
|
10414
|
-
}
|
|
10415
|
-
}
|
|
10416
|
-
}
|
|
10417
|
-
// check - cursor inside editor
|
|
10418
|
-
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
10419
|
-
return node;
|
|
10420
|
-
}
|
|
10424
|
+
if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
|
|
10425
|
+
return null;
|
|
10426
|
+
}
|
|
10427
|
+
const sel = this.sel;
|
|
10428
|
+
if (!sel || sel.rangeCount === 0) {
|
|
10429
|
+
return null;
|
|
10430
|
+
}
|
|
10431
|
+
const range = sel.getRangeAt(0);
|
|
10432
|
+
let node = range.startContainer;
|
|
10433
|
+
let rightMode = false;
|
|
10434
|
+
const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
|
|
10435
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
|
|
10436
|
+
return node;
|
|
10437
|
+
}
|
|
10438
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
|
|
10439
|
+
const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
|
|
10440
|
+
node = ret.node;
|
|
10441
|
+
rightMode = ret.rightMode;
|
|
10442
|
+
}
|
|
10443
|
+
// check - cursor inside editor
|
|
10444
|
+
if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
|
|
10445
|
+
return node;
|
|
10421
10446
|
}
|
|
10422
10447
|
return null;
|
|
10423
10448
|
}
|
|
10424
10449
|
/**
|
|
10425
10450
|
* Insert element in editor
|
|
10426
10451
|
*
|
|
10452
|
+
* @param node - Node for insert
|
|
10427
10453
|
* @param insertCursorAfter - After insert, cursor will move after element
|
|
10428
10454
|
* @param fireChange - After insert, editor fire change event. You can prevent this behavior
|
|
10429
10455
|
*/
|
|
@@ -10485,6 +10511,7 @@ class Selection {
|
|
|
10485
10511
|
* Inserts in the current cursor position some HTML snippet
|
|
10486
10512
|
*
|
|
10487
10513
|
* @param html - HTML The text to be inserted into the document
|
|
10514
|
+
* @param insertCursorAfter - After insert, cursor will move after element
|
|
10488
10515
|
* @example
|
|
10489
10516
|
* ```javascript
|
|
10490
10517
|
* parent.s.insertHTML('<img src="image.png"/>');
|
|
@@ -10528,6 +10555,7 @@ class Selection {
|
|
|
10528
10555
|
*
|
|
10529
10556
|
* @param url - URL for image, or HTMLImageElement
|
|
10530
10557
|
* @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
|
|
10558
|
+
* @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
|
|
10531
10559
|
*/
|
|
10532
10560
|
insertImage(url, styles = null, defaultWidth = null) {
|
|
10533
10561
|
const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
|
|
@@ -10582,74 +10610,81 @@ class Selection {
|
|
|
10582
10610
|
*/
|
|
10583
10611
|
eachSelection(callback) {
|
|
10584
10612
|
const sel = this.sel;
|
|
10585
|
-
if (sel
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10613
|
+
if (!sel || !sel.rangeCount) {
|
|
10614
|
+
return;
|
|
10615
|
+
}
|
|
10616
|
+
const range = sel.getRangeAt(0);
|
|
10617
|
+
let root = range.commonAncestorContainer;
|
|
10618
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
|
|
10619
|
+
root = root.parentElement;
|
|
10620
|
+
}
|
|
10621
|
+
const nodes = [];
|
|
10622
|
+
const startOffset = range.startOffset;
|
|
10623
|
+
const length = root.childNodes.length;
|
|
10624
|
+
const elementOffset = startOffset < length ? startOffset : length - 1;
|
|
10625
|
+
let start = range.startContainer === this.area
|
|
10626
|
+
? root.childNodes[elementOffset]
|
|
10627
|
+
: range.startContainer;
|
|
10628
|
+
let end = range.endContainer === this.area
|
|
10629
|
+
? root.childNodes[range.endOffset - 1]
|
|
10630
|
+
: range.endContainer;
|
|
10631
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
|
|
10632
|
+
start === range.startContainer &&
|
|
10633
|
+
range.startOffset === start.nodeValue?.length &&
|
|
10634
|
+
start.nextSibling) {
|
|
10635
|
+
start = start.nextSibling;
|
|
10636
|
+
}
|
|
10637
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
|
|
10638
|
+
end === range.endContainer &&
|
|
10639
|
+
range.endOffset === 0 &&
|
|
10640
|
+
end.previousSibling) {
|
|
10641
|
+
end = end.previousSibling;
|
|
10642
|
+
}
|
|
10643
|
+
const checkElm = (node) => {
|
|
10644
|
+
if (node &&
|
|
10645
|
+
node !== root &&
|
|
10646
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
|
|
10647
|
+
!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
|
|
10648
|
+
nodes.push(node);
|
|
10649
|
+
}
|
|
10650
|
+
};
|
|
10651
|
+
checkElm(start);
|
|
10652
|
+
if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
|
|
10653
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
|
|
10654
|
+
checkElm(node);
|
|
10655
|
+
// checks parentElement as well because partial selections are not equal to entire element
|
|
10656
|
+
return (node === end ||
|
|
10657
|
+
(node && node.contains && node.contains(end)));
|
|
10658
|
+
}, root, true, false);
|
|
10659
|
+
}
|
|
10660
|
+
const forEvery = (current) => {
|
|
10661
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
|
|
10662
|
+
return;
|
|
10663
|
+
}
|
|
10664
|
+
if (current.nodeName.match(/^(UL|OL)$/)) {
|
|
10665
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
|
|
10666
|
+
}
|
|
10667
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
|
|
10668
|
+
if (current.firstChild) {
|
|
10669
|
+
current = current.firstChild;
|
|
10632
10670
|
}
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
else {
|
|
10638
|
-
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10639
|
-
current.appendChild(currentB);
|
|
10640
|
-
current = currentB;
|
|
10641
|
-
}
|
|
10671
|
+
else {
|
|
10672
|
+
const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10673
|
+
current.appendChild(currentB);
|
|
10674
|
+
current = currentB;
|
|
10642
10675
|
}
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10676
|
+
}
|
|
10677
|
+
callback(current);
|
|
10678
|
+
};
|
|
10679
|
+
if (nodes.length === 0) {
|
|
10680
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
|
|
10646
10681
|
nodes.push(start);
|
|
10647
10682
|
}
|
|
10648
|
-
if (
|
|
10683
|
+
if (start.firstChild) {
|
|
10649
10684
|
nodes.push(start.firstChild);
|
|
10650
10685
|
}
|
|
10651
|
-
nodes.forEach(forEvery);
|
|
10652
10686
|
}
|
|
10687
|
+
nodes.forEach(forEvery);
|
|
10653
10688
|
}
|
|
10654
10689
|
/**
|
|
10655
10690
|
* Checks if the cursor is at the end(start) block
|
|
@@ -10676,13 +10711,7 @@ class Selection {
|
|
|
10676
10711
|
this.j.e.fire('isInvisibleForCursor', elm) === true));
|
|
10677
10712
|
// check right offset
|
|
10678
10713
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
|
|
10679
|
-
|
|
10680
|
-
if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
|
|
10681
|
-
return false;
|
|
10682
|
-
}
|
|
10683
|
-
const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
10684
|
-
if (start &&
|
|
10685
|
-
((inv && inv[0].length < offset) || (!inv && offset > 0))) {
|
|
10714
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
|
|
10686
10715
|
return false;
|
|
10687
10716
|
}
|
|
10688
10717
|
}
|
|
@@ -10770,6 +10799,7 @@ class Selection {
|
|
|
10770
10799
|
}
|
|
10771
10800
|
/**
|
|
10772
10801
|
* Set cursor in the node
|
|
10802
|
+
* @param node - Node element
|
|
10773
10803
|
* @param inStart - set cursor in start of element
|
|
10774
10804
|
*/
|
|
10775
10805
|
setCursorIn(node, inStart = false) {
|
|
@@ -10830,6 +10860,7 @@ class Selection {
|
|
|
10830
10860
|
}
|
|
10831
10861
|
/**
|
|
10832
10862
|
* Select node
|
|
10863
|
+
* @param node - Node element
|
|
10833
10864
|
* @param inward - select all inside
|
|
10834
10865
|
*/
|
|
10835
10866
|
select(node, inward = false) {
|
|
@@ -11103,19 +11134,19 @@ class Selection {
|
|
|
11103
11134
|
return this;
|
|
11104
11135
|
}
|
|
11105
11136
|
}
|
|
11106
|
-
(0,
|
|
11137
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11107
11138
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11108
11139
|
], Selection.prototype, "createRange", null);
|
|
11109
|
-
(0,
|
|
11140
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11110
11141
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11111
11142
|
], Selection.prototype, "focus", null);
|
|
11112
|
-
(0,
|
|
11143
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11113
11144
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11114
11145
|
], Selection.prototype, "setCursorAfter", null);
|
|
11115
|
-
(0,
|
|
11146
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11116
11147
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11117
11148
|
], Selection.prototype, "setCursorBefore", null);
|
|
11118
|
-
(0,
|
|
11149
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
|
|
11119
11150
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11120
11151
|
], Selection.prototype, "setCursorIn", null);
|
|
11121
11152
|
|
|
@@ -14996,17 +15027,23 @@ function findControlType(path, controls) {
|
|
|
14996
15027
|
else {
|
|
14997
15028
|
key = namespaceOrKey;
|
|
14998
15029
|
}
|
|
14999
|
-
const list = store[key]?.list;
|
|
15030
|
+
// const list = store[key]?.list;
|
|
15000
15031
|
return store[key]
|
|
15001
15032
|
? {
|
|
15002
15033
|
name: key,
|
|
15003
|
-
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15004
|
-
list:
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
|
|
15009
|
-
|
|
15034
|
+
...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
|
|
15035
|
+
// list: isArray(list)
|
|
15036
|
+
// ? (<Array<string>>list).reduce(
|
|
15037
|
+
// (
|
|
15038
|
+
// acc: IDictionary<string | number>,
|
|
15039
|
+
// k: string | number
|
|
15040
|
+
// ) => {
|
|
15041
|
+
// acc[String(k)] = k;
|
|
15042
|
+
// return acc;
|
|
15043
|
+
// },
|
|
15044
|
+
// {}
|
|
15045
|
+
// )
|
|
15046
|
+
// : list
|
|
15010
15047
|
}
|
|
15011
15048
|
: undefined;
|
|
15012
15049
|
}
|
|
@@ -15023,8 +15060,8 @@ function findControlType(path, controls) {
|
|
|
15023
15060
|
/* harmony export */ });
|
|
15024
15061
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37923);
|
|
15025
15062
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97369);
|
|
15026
|
-
/* harmony import */ var
|
|
15027
|
-
/* harmony import */ var
|
|
15063
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
15064
|
+
/* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57023);
|
|
15028
15065
|
/*!
|
|
15029
15066
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15030
15067
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15044,7 +15081,7 @@ function getStrongControlTypes(items, controls) {
|
|
|
15044
15081
|
const value = items[key] || {};
|
|
15045
15082
|
return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
|
|
15046
15083
|
});
|
|
15047
|
-
return elements.map(item => (0,
|
|
15084
|
+
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));
|
|
15048
15085
|
}
|
|
15049
15086
|
|
|
15050
15087
|
|
|
@@ -16142,8 +16179,8 @@ View.defaultOptions = {
|
|
|
16142
16179
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
|
|
16143
16180
|
/* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53883);
|
|
16144
16181
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58597);
|
|
16145
|
-
/* harmony import */ var
|
|
16146
|
-
/* harmony import */ var
|
|
16182
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
|
|
16183
|
+
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37435);
|
|
16147
16184
|
/*!
|
|
16148
16185
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
16149
16186
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -16162,7 +16199,7 @@ var Jodit_1;
|
|
|
16162
16199
|
|
|
16163
16200
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
16164
16201
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
16165
|
-
let Jodit = Jodit_1 = class Jodit extends
|
|
16202
|
+
let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
|
|
16166
16203
|
/** @override */
|
|
16167
16204
|
className() {
|
|
16168
16205
|
return 'Jodit';
|
|
@@ -16209,7 +16246,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16209
16246
|
get defaultTimeout() {
|
|
16210
16247
|
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
|
|
16211
16248
|
? this.o.defaultTimeout
|
|
16212
|
-
:
|
|
16249
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
|
|
16213
16250
|
}
|
|
16214
16251
|
/**
|
|
16215
16252
|
* Method wrap usual Has Object in Object helper for prevent deep object merging in options*
|
|
@@ -16235,10 +16272,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16235
16272
|
* Default settings
|
|
16236
16273
|
*/
|
|
16237
16274
|
static get defaultOptions() {
|
|
16238
|
-
return
|
|
16275
|
+
return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
|
|
16239
16276
|
}
|
|
16240
16277
|
get createInside() {
|
|
16241
|
-
return new
|
|
16278
|
+
return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
|
|
16242
16279
|
}
|
|
16243
16280
|
__setPlaceField(field, value) {
|
|
16244
16281
|
if (!this.currentPlace) {
|
|
@@ -16786,8 +16823,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16786
16823
|
const active = this.od.activeElement;
|
|
16787
16824
|
if (active &&
|
|
16788
16825
|
(active === this.iframe ||
|
|
16789
|
-
|
|
16790
|
-
|
|
16826
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
|
|
16827
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
|
|
16791
16828
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
|
|
16792
16829
|
}
|
|
16793
16830
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
|
|
@@ -16939,7 +16976,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16939
16976
|
}
|
|
16940
16977
|
/** @override **/
|
|
16941
16978
|
initOptions(options) {
|
|
16942
|
-
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
16979
|
+
this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
|
|
16943
16980
|
}
|
|
16944
16981
|
/** @override **/
|
|
16945
16982
|
initOwners() {
|
|
@@ -16984,7 +17021,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16984
17021
|
this.destruct();
|
|
16985
17022
|
throw e;
|
|
16986
17023
|
}
|
|
16987
|
-
this.setStatus(
|
|
17024
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
|
|
16988
17025
|
this.id =
|
|
16989
17026
|
(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') ||
|
|
16990
17027
|
new Date().getTime().toString();
|
|
@@ -16996,7 +17033,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16996
17033
|
}
|
|
16997
17034
|
});
|
|
16998
17035
|
this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
|
|
16999
|
-
this.selection = new
|
|
17036
|
+
this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
|
|
17000
17037
|
const beforeInitHookResult = this.beforeInitHook();
|
|
17001
17038
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
|
|
17002
17039
|
if (this.isInDestruct) {
|
|
@@ -17020,7 +17057,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17020
17057
|
this.e.fire('afterInit', this);
|
|
17021
17058
|
}
|
|
17022
17059
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
|
|
17023
|
-
this.setStatus(
|
|
17060
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
|
|
17024
17061
|
this.e.fire('afterConstructor', this);
|
|
17025
17062
|
};
|
|
17026
17063
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
|
|
@@ -17036,7 +17073,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17036
17073
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
|
|
17037
17074
|
const name = attr.name;
|
|
17038
17075
|
let value = attr.value;
|
|
17039
|
-
if (
|
|
17076
|
+
if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
|
|
17040
17077
|
(!options || options[name] === undefined)) {
|
|
17041
17078
|
if (['readonly', 'disabled'].indexOf(name) !== -1) {
|
|
17042
17079
|
value = value === '' || value === 'true';
|
|
@@ -17104,11 +17141,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17104
17141
|
element,
|
|
17105
17142
|
container,
|
|
17106
17143
|
workplace,
|
|
17107
|
-
statusbar: new
|
|
17144
|
+
statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
|
|
17108
17145
|
options: this.isReady
|
|
17109
|
-
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
17146
|
+
? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
|
|
17110
17147
|
: this.options,
|
|
17111
|
-
history: new
|
|
17148
|
+
history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
|
|
17112
17149
|
editorWindow: this.ow
|
|
17113
17150
|
};
|
|
17114
17151
|
this.__elementToPlace.set(editor, currentPlace);
|
|
@@ -17199,7 +17236,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17199
17236
|
return;
|
|
17200
17237
|
}
|
|
17201
17238
|
if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
|
|
17202
|
-
|
|
17239
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
|
|
17203
17240
|
}
|
|
17204
17241
|
addClassNames(this.o.editorClassName, this.editor);
|
|
17205
17242
|
if (this.o.style) {
|
|
@@ -17289,7 +17326,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17289
17326
|
if (this.isInDestruct) {
|
|
17290
17327
|
return;
|
|
17291
17328
|
}
|
|
17292
|
-
this.setStatus(
|
|
17329
|
+
this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
|
|
17293
17330
|
this.__elementToPlace.clear();
|
|
17294
17331
|
this.storage.clear();
|
|
17295
17332
|
this.buffer.clear();
|
|
@@ -17330,17 +17367,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17330
17367
|
this.e.off(container);
|
|
17331
17368
|
this.e.off(element);
|
|
17332
17369
|
this.e.off(editor);
|
|
17333
|
-
|
|
17334
|
-
|
|
17370
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
|
|
17371
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
|
|
17335
17372
|
if (container !== element) {
|
|
17336
|
-
|
|
17373
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
|
|
17337
17374
|
}
|
|
17338
17375
|
Object.defineProperty(element, 'component', {
|
|
17339
17376
|
enumerable: false,
|
|
17340
17377
|
configurable: true,
|
|
17341
17378
|
value: null
|
|
17342
17379
|
});
|
|
17343
|
-
|
|
17380
|
+
jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
|
|
17344
17381
|
// inline mode
|
|
17345
17382
|
if (container === element) {
|
|
17346
17383
|
element.innerHTML = buffer;
|
|
@@ -17362,7 +17399,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
17362
17399
|
Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
|
|
17363
17400
|
Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
17364
17401
|
Jodit.core = {
|
|
17365
|
-
Plugin:
|
|
17402
|
+
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
17366
17403
|
};
|
|
17367
17404
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
|
|
17368
17405
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
@@ -19617,16 +19654,16 @@ async function loadTree(fb) {
|
|
|
19617
19654
|
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
|
|
19618
19655
|
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
|
|
19619
19656
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
|
|
19620
|
-
/* harmony import */ var
|
|
19657
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(36115);
|
|
19658
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70265);
|
|
19621
19659
|
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(9979);
|
|
19622
|
-
/* harmony import */ var
|
|
19623
|
-
/* harmony import */ var
|
|
19624
|
-
/* harmony import */ var
|
|
19625
|
-
/* harmony import */ var
|
|
19626
|
-
/* harmony import */ var
|
|
19627
|
-
/* harmony import */ var
|
|
19628
|
-
/* harmony import */ var
|
|
19629
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
|
|
19660
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31859);
|
|
19661
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62994);
|
|
19662
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18043);
|
|
19663
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80004);
|
|
19664
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(75889);
|
|
19665
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(83797);
|
|
19666
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(10274);
|
|
19630
19667
|
/*!
|
|
19631
19668
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
19632
19669
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -19660,7 +19697,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19660
19697
|
return 'FileBrowser';
|
|
19661
19698
|
}
|
|
19662
19699
|
get dataProvider() {
|
|
19663
|
-
return (0,
|
|
19700
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
19664
19701
|
}
|
|
19665
19702
|
// eslint-disable-next-line no-unused-vars
|
|
19666
19703
|
onSelect(callback) {
|
|
@@ -19774,7 +19811,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19774
19811
|
this.__updateToolbarButtons();
|
|
19775
19812
|
this._dialog.open(this.browser, header);
|
|
19776
19813
|
this.e.fire('sort.filebrowser', this.state.sortBy);
|
|
19777
|
-
(0,
|
|
19814
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
|
|
19778
19815
|
.then(resolve, reject)
|
|
19779
19816
|
.finally(() => {
|
|
19780
19817
|
if (this.isInDestruct) {
|
|
@@ -19808,7 +19845,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19808
19845
|
});
|
|
19809
19846
|
}
|
|
19810
19847
|
initUploader(editor) {
|
|
19811
|
-
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
19848
|
+
const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
|
|
19812
19849
|
const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
|
|
19813
19850
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
19814
19851
|
self.uploader
|
|
@@ -19828,11 +19865,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19828
19865
|
super(options);
|
|
19829
19866
|
this.browser = this.c.div(this.componentName);
|
|
19830
19867
|
this.status_line = this.c.div(this.getFullElName('status'));
|
|
19831
|
-
this.tree = new
|
|
19832
|
-
this.files = new
|
|
19868
|
+
this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
|
|
19869
|
+
this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
|
|
19833
19870
|
this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
19834
19871
|
currentPath: '',
|
|
19835
|
-
currentSource:
|
|
19872
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
19836
19873
|
currentBaseUrl: '',
|
|
19837
19874
|
activeElements: [],
|
|
19838
19875
|
elements: [],
|
|
@@ -19862,7 +19899,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19862
19899
|
this.__prevButtons = [];
|
|
19863
19900
|
this.attachEvents(options);
|
|
19864
19901
|
const self = this;
|
|
19865
|
-
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {},
|
|
19902
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
|
|
19866
19903
|
self.browser.component = this;
|
|
19867
19904
|
self.container = self.browser;
|
|
19868
19905
|
if (self.o.showFoldersPanel) {
|
|
@@ -19870,9 +19907,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19870
19907
|
}
|
|
19871
19908
|
self.browser.appendChild(self.files.container);
|
|
19872
19909
|
self.browser.appendChild(self.status_line);
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19910
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
|
|
19911
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
|
|
19912
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
|
|
19876
19913
|
const keys = [
|
|
19877
19914
|
'getLocalFileByUrl',
|
|
19878
19915
|
'crop',
|
|
@@ -20543,10 +20580,10 @@ class Command {
|
|
|
20543
20580
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
20544
20581
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
|
|
20545
20582
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
20583
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
20546
20584
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84345);
|
|
20547
|
-
/* harmony import */ var
|
|
20585
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58770);
|
|
20548
20586
|
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66180);
|
|
20549
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
20550
20587
|
/*!
|
|
20551
20588
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20552
20589
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20559,7 +20596,7 @@ class Command {
|
|
|
20559
20596
|
|
|
20560
20597
|
|
|
20561
20598
|
|
|
20562
|
-
|
|
20599
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
|
|
20563
20600
|
enable: true,
|
|
20564
20601
|
maxHistoryLength: Infinity,
|
|
20565
20602
|
timeout: 1000
|
|
@@ -20610,7 +20647,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
20610
20647
|
set startValue(value) {
|
|
20611
20648
|
this.__startValue = value;
|
|
20612
20649
|
}
|
|
20613
|
-
constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new
|
|
20650
|
+
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)) {
|
|
20614
20651
|
super(editor);
|
|
20615
20652
|
this.updateTick = 0;
|
|
20616
20653
|
this.__stack = stack;
|
|
@@ -20673,7 +20710,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
|
|
|
20673
20710
|
*/
|
|
20674
20711
|
updateStack(replace = false) {
|
|
20675
20712
|
const newValue = this.snapshot.make();
|
|
20676
|
-
if (!
|
|
20713
|
+
if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
|
|
20677
20714
|
const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
|
|
20678
20715
|
if (replace) {
|
|
20679
20716
|
const command = this.__stack.current();
|
|
@@ -21006,11 +21043,11 @@ class Stack {
|
|
|
21006
21043
|
|
|
21007
21044
|
"use strict";
|
|
21008
21045
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
21009
|
-
/* harmony import */ var
|
|
21010
|
-
/* harmony import */ var
|
|
21011
|
-
/* harmony import */ var
|
|
21012
|
-
/* harmony import */ var
|
|
21013
|
-
/* harmony import */ var
|
|
21046
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
21047
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
|
|
21048
|
+
/* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
21049
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31230);
|
|
21050
|
+
/* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
21014
21051
|
/*!
|
|
21015
21052
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21016
21053
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21020,7 +21057,7 @@ class Stack {
|
|
|
21020
21057
|
|
|
21021
21058
|
|
|
21022
21059
|
|
|
21023
|
-
|
|
21060
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
|
|
21024
21061
|
min_width: 20,
|
|
21025
21062
|
min_height: 20,
|
|
21026
21063
|
closeAfterSave: false,
|
|
@@ -21035,7 +21072,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
|
|
|
21035
21072
|
cropDefaultWidth: '70%',
|
|
21036
21073
|
cropDefaultHeight: '70%'
|
|
21037
21074
|
};
|
|
21038
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (
|
|
21075
|
+
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()));
|
|
21039
21076
|
|
|
21040
21077
|
|
|
21041
21078
|
/***/ }),
|
|
@@ -21054,9 +21091,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
|
|
|
21054
21091
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71842);
|
|
21055
21092
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
|
|
21056
21093
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35265);
|
|
21057
|
-
/* harmony import */ var
|
|
21058
|
-
/* harmony import */ var
|
|
21059
|
-
/* harmony import */ var
|
|
21094
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
21095
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93027);
|
|
21096
|
+
/* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24863);
|
|
21060
21097
|
/*!
|
|
21061
21098
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21062
21099
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21516,7 +21553,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
21516
21553
|
this.options =
|
|
21517
21554
|
editor && editor.o && editor.o.imageeditor
|
|
21518
21555
|
? editor.o.imageeditor
|
|
21519
|
-
:
|
|
21556
|
+
: jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
|
|
21520
21557
|
const o = this.options;
|
|
21521
21558
|
this.resizeUseRatio = o.resizeUseRatio;
|
|
21522
21559
|
this.cropUseRatio = o.cropUseRatio;
|
|
@@ -21526,7 +21563,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
|
|
|
21526
21563
|
saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
|
|
21527
21564
|
};
|
|
21528
21565
|
this.activeTab = o.resize ? TABS.resize : TABS.crop;
|
|
21529
|
-
this.editor = (0,
|
|
21566
|
+
this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
|
|
21530
21567
|
const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
|
|
21531
21568
|
this.resize_box = resizeBox;
|
|
21532
21569
|
this.crop_box = cropBox;
|
|
@@ -22276,6 +22313,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22276
22313
|
}
|
|
22277
22314
|
/**
|
|
22278
22315
|
* Generate formal table martix columns*rows
|
|
22316
|
+
* @param table - Working table
|
|
22279
22317
|
* @param callback - if return false cycle break
|
|
22280
22318
|
*/
|
|
22281
22319
|
formalMatrix(table, callback) {
|
|
@@ -22344,7 +22382,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22344
22382
|
* @param line - Insert a new line after/before this
|
|
22345
22383
|
* line contains the selected cell
|
|
22346
22384
|
* @param after - Insert a new line after line contains the selected cell
|
|
22347
|
-
* @param create - Instance of Create class
|
|
22348
22385
|
*/
|
|
22349
22386
|
appendRow(table, line, after) {
|
|
22350
22387
|
return Table.__appendRow(table, line, after, this.j.createInside);
|
|
@@ -22513,13 +22550,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22513
22550
|
return Table.__getSelectedBound(table, selectedCells);
|
|
22514
22551
|
}
|
|
22515
22552
|
static __normalizeTable(table) {
|
|
22516
|
-
let i, j, min, not;
|
|
22517
22553
|
const __marked = [], box = Table.__formalMatrix(table);
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
|
|
22521
|
-
|
|
22522
|
-
for (
|
|
22554
|
+
Table.__removeExtraColspans(box, __marked);
|
|
22555
|
+
Table.__removeExtraRowspans(box, __marked);
|
|
22556
|
+
// remove rowspans and colspans equal 1 and empty class
|
|
22557
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22558
|
+
for (let j = 0; j < box[i].length; j += 1) {
|
|
22559
|
+
if (box[i][j] === undefined) {
|
|
22560
|
+
continue; // broken table
|
|
22561
|
+
}
|
|
22562
|
+
if (box[i][j].hasAttribute('rowspan') &&
|
|
22563
|
+
box[i][j].rowSpan === 1) {
|
|
22564
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
22565
|
+
}
|
|
22566
|
+
if (box[i][j].hasAttribute('colspan') &&
|
|
22567
|
+
box[i][j].colSpan === 1) {
|
|
22568
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
22569
|
+
}
|
|
22570
|
+
if (box[i][j].hasAttribute('class') &&
|
|
22571
|
+
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
22572
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
22573
|
+
}
|
|
22574
|
+
}
|
|
22575
|
+
}
|
|
22576
|
+
Table.__unmark(__marked);
|
|
22577
|
+
}
|
|
22578
|
+
static __removeExtraColspans(box, __marked) {
|
|
22579
|
+
for (let j = 0; j < box[0].length; j += 1) {
|
|
22580
|
+
let min = 1000000;
|
|
22581
|
+
let not = false;
|
|
22582
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22523
22583
|
if (box[i][j] === undefined) {
|
|
22524
22584
|
continue; // broken table
|
|
22525
22585
|
}
|
|
@@ -22530,7 +22590,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22530
22590
|
min = Math.min(min, box[i][j].colSpan);
|
|
22531
22591
|
}
|
|
22532
22592
|
if (!not) {
|
|
22533
|
-
for (i = 0; i < box.length; i += 1) {
|
|
22593
|
+
for (let i = 0; i < box.length; i += 1) {
|
|
22534
22594
|
if (box[i][j] === undefined) {
|
|
22535
22595
|
continue; // broken table
|
|
22536
22596
|
}
|
|
@@ -22538,10 +22598,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22538
22598
|
}
|
|
22539
22599
|
}
|
|
22540
22600
|
}
|
|
22541
|
-
|
|
22601
|
+
}
|
|
22602
|
+
static __removeExtraRowspans(box, marked) {
|
|
22603
|
+
let i = 0;
|
|
22604
|
+
let j = 0;
|
|
22542
22605
|
for (i = 0; i < box.length; i += 1) {
|
|
22543
|
-
min = 1000000;
|
|
22544
|
-
not = false;
|
|
22606
|
+
let min = 1000000;
|
|
22607
|
+
let not = false;
|
|
22545
22608
|
for (j = 0; j < box[i].length; j += 1) {
|
|
22546
22609
|
if (box[i][j] === undefined) {
|
|
22547
22610
|
continue; // broken table
|
|
@@ -22557,31 +22620,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22557
22620
|
if (box[i][j] === undefined) {
|
|
22558
22621
|
continue; // broken table
|
|
22559
22622
|
}
|
|
22560
|
-
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1,
|
|
22561
|
-
}
|
|
22562
|
-
}
|
|
22563
|
-
}
|
|
22564
|
-
// remove rowspans and colspans equal 1 and empty class
|
|
22565
|
-
for (i = 0; i < box.length; i += 1) {
|
|
22566
|
-
for (j = 0; j < box[i].length; j += 1) {
|
|
22567
|
-
if (box[i][j] === undefined) {
|
|
22568
|
-
continue; // broken table
|
|
22569
|
-
}
|
|
22570
|
-
if (box[i][j].hasAttribute('rowspan') &&
|
|
22571
|
-
box[i][j].rowSpan === 1) {
|
|
22572
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
|
|
22573
|
-
}
|
|
22574
|
-
if (box[i][j].hasAttribute('colspan') &&
|
|
22575
|
-
box[i][j].colSpan === 1) {
|
|
22576
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
|
|
22577
|
-
}
|
|
22578
|
-
if (box[i][j].hasAttribute('class') &&
|
|
22579
|
-
!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
|
|
22580
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
|
|
22623
|
+
Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
|
|
22581
22624
|
}
|
|
22582
22625
|
}
|
|
22583
22626
|
}
|
|
22584
|
-
Table.__unmark(__marked);
|
|
22585
22627
|
}
|
|
22586
22628
|
/**
|
|
22587
22629
|
* Try recalculate all coluns and rows after change
|
|
@@ -22937,7 +22979,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
|
|
|
22937
22979
|
}
|
|
22938
22980
|
createContainer() {
|
|
22939
22981
|
const cn = this.componentName;
|
|
22940
|
-
const container = this.j.c.span(cn)
|
|
22982
|
+
const container = this.j.c.span(cn);
|
|
22983
|
+
const button = super.createContainer();
|
|
22941
22984
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
|
|
22942
22985
|
button.classList.remove(cn);
|
|
22943
22986
|
button.classList.add(cn + '__button');
|
|
@@ -23326,8 +23369,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23326
23369
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23327
23370
|
/* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
|
|
23328
23371
|
/* harmony export */ });
|
|
23329
|
-
/* harmony import */ var
|
|
23372
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
23330
23373
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
|
|
23374
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25376);
|
|
23331
23375
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
|
|
23332
23376
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3258);
|
|
23333
23377
|
/*!
|
|
@@ -23340,6 +23384,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
|
23340
23384
|
|
|
23341
23385
|
|
|
23342
23386
|
|
|
23387
|
+
|
|
23343
23388
|
let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
|
|
23344
23389
|
className() {
|
|
23345
23390
|
return 'ToolbarSelect';
|
|
@@ -23357,13 +23402,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
|
|
|
23357
23402
|
const keys = Object.keys(list);
|
|
23358
23403
|
key = keys[0];
|
|
23359
23404
|
}
|
|
23360
|
-
const text = (list[key.toString()] || key).toString();
|
|
23405
|
+
const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
|
|
23361
23406
|
this.state.text =
|
|
23362
23407
|
this.control.textTemplate?.(this.jodit, text) ?? text;
|
|
23363
23408
|
}
|
|
23364
23409
|
}
|
|
23365
23410
|
};
|
|
23366
|
-
ToolbarSelect = (0,
|
|
23411
|
+
ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
23367
23412
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
23368
23413
|
], ToolbarSelect);
|
|
23369
23414
|
|
|
@@ -23999,34 +24044,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
23999
24044
|
}
|
|
24000
24045
|
const promises = [];
|
|
24001
24046
|
if (o.insertImageAsBase64URI) {
|
|
24002
|
-
|
|
24003
|
-
for (i = 0; i < fileList.length; i += 1) {
|
|
24004
|
-
file = fileList[i];
|
|
24005
|
-
if (file && file.type) {
|
|
24006
|
-
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24007
|
-
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24008
|
-
if (o.imagesExtensions.includes(extension)) {
|
|
24009
|
-
const reader = new FileReader();
|
|
24010
|
-
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24011
|
-
reader.onerror = reject;
|
|
24012
|
-
reader.onloadend = () => {
|
|
24013
|
-
const resp = {
|
|
24014
|
-
baseurl: '',
|
|
24015
|
-
files: [reader.result],
|
|
24016
|
-
isImages: [true]
|
|
24017
|
-
};
|
|
24018
|
-
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24019
|
-
? handlerSuccess
|
|
24020
|
-
: o.defaultHandlerSuccess;
|
|
24021
|
-
handler.call(uploader, resp);
|
|
24022
|
-
resolve(resp);
|
|
24023
|
-
};
|
|
24024
|
-
reader.readAsDataURL(file);
|
|
24025
|
-
}));
|
|
24026
|
-
fileList[i] = null;
|
|
24027
|
-
}
|
|
24028
|
-
}
|
|
24029
|
-
}
|
|
24047
|
+
readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
|
|
24030
24048
|
}
|
|
24031
24049
|
fileList = fileList.filter(a => a);
|
|
24032
24050
|
if (fileList.length) {
|
|
@@ -24037,7 +24055,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24037
24055
|
for (let i = 0; i < fileList.length; i += 1) {
|
|
24038
24056
|
file = fileList[i];
|
|
24039
24057
|
if (file) {
|
|
24040
|
-
const hasRealExtension =
|
|
24058
|
+
const hasRealExtension = /\.\w+$/.test(file.name);
|
|
24041
24059
|
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24042
24060
|
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
|
|
24043
24061
|
let newName = fileList[i].name ||
|
|
@@ -24086,6 +24104,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
|
|
|
24086
24104
|
}
|
|
24087
24105
|
return Promise.all(promises);
|
|
24088
24106
|
}
|
|
24107
|
+
function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
|
|
24108
|
+
let file, i;
|
|
24109
|
+
for (i = 0; i < fileList.length; i += 1) {
|
|
24110
|
+
file = fileList[i];
|
|
24111
|
+
if (file && file.type) {
|
|
24112
|
+
const mime = file.type.match(/\/([a-z0-9]+)/i);
|
|
24113
|
+
const extension = mime[1] ? mime[1].toLowerCase() : '';
|
|
24114
|
+
if (!imagesExtensions.includes(extension)) {
|
|
24115
|
+
continue;
|
|
24116
|
+
}
|
|
24117
|
+
const reader = new FileReader();
|
|
24118
|
+
promises.push(uploader.j.async.promise((resolve, reject) => {
|
|
24119
|
+
reader.onerror = reject;
|
|
24120
|
+
reader.onloadend = () => {
|
|
24121
|
+
const resp = {
|
|
24122
|
+
baseurl: '',
|
|
24123
|
+
files: [reader.result],
|
|
24124
|
+
isImages: [true]
|
|
24125
|
+
};
|
|
24126
|
+
const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
|
|
24127
|
+
? handlerSuccess
|
|
24128
|
+
: defaultHandlerSuccess;
|
|
24129
|
+
handler.call(uploader, resp);
|
|
24130
|
+
resolve(resp);
|
|
24131
|
+
};
|
|
24132
|
+
reader.readAsDataURL(file);
|
|
24133
|
+
}));
|
|
24134
|
+
fileList[i] = null;
|
|
24135
|
+
}
|
|
24136
|
+
}
|
|
24137
|
+
}
|
|
24089
24138
|
|
|
24090
24139
|
|
|
24091
24140
|
/***/ }),
|
|
@@ -24191,9 +24240,9 @@ function send(uploader, data) {
|
|
|
24191
24240
|
/* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
|
|
24192
24241
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
|
|
24193
24242
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
24194
|
-
/* harmony import */ var
|
|
24195
|
-
/* harmony import */ var
|
|
24196
|
-
/* harmony import */ var
|
|
24243
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
24244
|
+
/* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74340);
|
|
24245
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77334);
|
|
24197
24246
|
/*!
|
|
24198
24247
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24199
24248
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24265,14 +24314,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24265
24314
|
}
|
|
24266
24315
|
};
|
|
24267
24316
|
// send data on server
|
|
24268
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,
|
|
24269
|
-
(0,
|
|
24317
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
|
|
24318
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24270
24319
|
return false;
|
|
24271
24320
|
}
|
|
24272
24321
|
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
|
|
24273
|
-
return (0,
|
|
24322
|
+
return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
|
|
24274
24323
|
}
|
|
24275
|
-
if ((0,
|
|
24324
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
|
|
24276
24325
|
const { items } = cData;
|
|
24277
24326
|
for (i = 0; i < items.length; i += 1) {
|
|
24278
24327
|
if (items[i].kind === 'file' &&
|
|
@@ -24283,7 +24332,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24283
24332
|
extension = mime[1]
|
|
24284
24333
|
? mime[1].toLowerCase()
|
|
24285
24334
|
: '';
|
|
24286
|
-
(0,
|
|
24335
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
|
|
24287
24336
|
}
|
|
24288
24337
|
e.preventDefault();
|
|
24289
24338
|
break;
|
|
@@ -24306,30 +24355,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24306
24355
|
e.preventDefault();
|
|
24307
24356
|
})
|
|
24308
24357
|
.on(form, 'dragover', (event) => {
|
|
24309
|
-
if ((0,
|
|
24310
|
-
(0,
|
|
24358
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
|
|
24359
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
|
|
24311
24360
|
form.classList.add('jodit_drag_hover');
|
|
24312
24361
|
event.preventDefault();
|
|
24313
24362
|
}
|
|
24314
24363
|
})
|
|
24315
24364
|
.on(form, 'dragend dragleave', (event) => {
|
|
24316
24365
|
form.classList.remove('jodit_drag_hover');
|
|
24317
|
-
if ((0,
|
|
24366
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24318
24367
|
event.preventDefault();
|
|
24319
24368
|
}
|
|
24320
24369
|
})
|
|
24321
24370
|
.on(form, 'drop', (event) => {
|
|
24322
24371
|
form.classList.remove('jodit_drag_hover');
|
|
24323
|
-
if ((0,
|
|
24372
|
+
if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
|
|
24324
24373
|
event.preventDefault();
|
|
24325
24374
|
event.stopImmediatePropagation();
|
|
24326
|
-
(0,
|
|
24375
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
|
|
24327
24376
|
}
|
|
24328
24377
|
});
|
|
24329
24378
|
const inputFile = form.querySelector('input[type=file]');
|
|
24330
24379
|
if (inputFile) {
|
|
24331
24380
|
self.j.e.on(inputFile, 'change', () => {
|
|
24332
|
-
(0,
|
|
24381
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
|
|
24333
24382
|
.then(() => {
|
|
24334
24383
|
inputFile.value = '';
|
|
24335
24384
|
if (!/safari/i.test(navigator.userAgent)) {
|
|
@@ -24349,7 +24398,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24349
24398
|
const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
|
|
24350
24399
|
? handlerError
|
|
24351
24400
|
: o.defaultHandlerError;
|
|
24352
|
-
(0,
|
|
24401
|
+
(0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
|
|
24353
24402
|
action: 'fileUploadRemote',
|
|
24354
24403
|
url
|
|
24355
24404
|
})
|
|
@@ -24369,11 +24418,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
|
|
|
24369
24418
|
super(editor);
|
|
24370
24419
|
this.path = '';
|
|
24371
24420
|
this.source = 'default';
|
|
24372
|
-
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(
|
|
24421
|
+
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 : {}));
|
|
24373
24422
|
}
|
|
24374
24423
|
destruct() {
|
|
24375
24424
|
this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
|
|
24376
|
-
const instances =
|
|
24425
|
+
const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
|
|
24377
24426
|
if (instances) {
|
|
24378
24427
|
instances.forEach(ajax => {
|
|
24379
24428
|
try {
|
|
@@ -24802,9 +24851,9 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
24802
24851
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
24803
24852
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
24804
24853
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
24805
|
-
/* harmony import */ var
|
|
24806
|
-
/* harmony import */ var
|
|
24807
|
-
/* harmony import */ var
|
|
24854
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
24855
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17995);
|
|
24856
|
+
/* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
24808
24857
|
/*!
|
|
24809
24858
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24810
24859
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24818,7 +24867,7 @@ const TabsWidget = (jodit, tabs, state) => {
|
|
|
24818
24867
|
|
|
24819
24868
|
|
|
24820
24869
|
|
|
24821
|
-
|
|
24870
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
|
|
24822
24871
|
exec: (editor) => {
|
|
24823
24872
|
const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
|
|
24824
24873
|
dialog
|
|
@@ -24854,7 +24903,7 @@ function about(editor) {
|
|
|
24854
24903
|
});
|
|
24855
24904
|
}
|
|
24856
24905
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
|
|
24857
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (
|
|
24906
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
24858
24907
|
|
|
24859
24908
|
|
|
24860
24909
|
/***/ }),
|
|
@@ -25097,9 +25146,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25097
25146
|
|
|
25098
25147
|
"use strict";
|
|
25099
25148
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
25100
|
-
/* harmony import */ var
|
|
25101
|
-
/* harmony import */ var
|
|
25102
|
-
/* harmony import */ var
|
|
25149
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
25150
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86634);
|
|
25151
|
+
/* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25103
25152
|
/*!
|
|
25104
25153
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25105
25154
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25108,9 +25157,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
|
|
|
25108
25157
|
|
|
25109
25158
|
|
|
25110
25159
|
|
|
25111
|
-
|
|
25112
|
-
|
|
25113
|
-
|
|
25160
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
|
|
25161
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
|
|
25162
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
|
|
25114
25163
|
'table',
|
|
25115
25164
|
'iframe',
|
|
25116
25165
|
'img',
|
|
@@ -25118,8 +25167,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
|
|
|
25118
25167
|
'pre',
|
|
25119
25168
|
'jodit'
|
|
25120
25169
|
];
|
|
25121
|
-
|
|
25122
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (
|
|
25170
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
|
|
25171
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25123
25172
|
|
|
25124
25173
|
|
|
25125
25174
|
/***/ }),
|
|
@@ -25257,11 +25306,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
|
|
|
25257
25306
|
|
|
25258
25307
|
"use strict";
|
|
25259
25308
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
25260
|
-
/* harmony import */ var
|
|
25261
|
-
/* harmony import */ var
|
|
25262
|
-
/* harmony import */ var
|
|
25263
|
-
/* harmony import */ var
|
|
25264
|
-
/* harmony import */ var
|
|
25309
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
25310
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91115);
|
|
25311
|
+
/* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
25312
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1916);
|
|
25313
|
+
/* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
25265
25314
|
/*!
|
|
25266
25315
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25267
25316
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25302,10 +25351,10 @@ const aiAssistantDefaults = {
|
|
|
25302
25351
|
aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
|
|
25303
25352
|
aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
|
|
25304
25353
|
};
|
|
25305
|
-
|
|
25306
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (
|
|
25307
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (
|
|
25308
|
-
|
|
25354
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
|
|
25355
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
25356
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
25357
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
|
|
25309
25358
|
isDisabled(editor) {
|
|
25310
25359
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
25311
25360
|
},
|
|
@@ -25343,7 +25392,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
|
|
|
25343
25392
|
editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
|
|
25344
25393
|
}
|
|
25345
25394
|
};
|
|
25346
|
-
|
|
25395
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
|
|
25347
25396
|
isDisabled(editor) {
|
|
25348
25397
|
return !editor.o.aiAssistant.aiAssistantCallback;
|
|
25349
25398
|
},
|
|
@@ -25651,7 +25700,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
25651
25700
|
if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
|
|
25652
25701
|
return false;
|
|
25653
25702
|
}
|
|
25654
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .
|
|
25703
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
25655
25704
|
if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
|
|
25656
25705
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
|
|
25657
25706
|
func(jodit, fakeNode, backspace, mode)) {
|
|
@@ -25911,19 +25960,12 @@ function checkNotCollapsed(jodit) {
|
|
|
25911
25960
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
25912
25961
|
const step = backspace ? -1 : 1;
|
|
25913
25962
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
25914
|
-
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace)
|
|
25915
|
-
let
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
if (!nextSibling &&
|
|
25919
|
-
sibling.parentNode &&
|
|
25920
|
-
sibling.parentNode !== jodit.editor) {
|
|
25921
|
-
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
|
|
25922
|
-
}
|
|
25923
|
-
return nextSibling;
|
|
25924
|
-
};
|
|
25963
|
+
let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
|
|
25964
|
+
let removeNeighbor = null;
|
|
25965
|
+
let charRemoved = false;
|
|
25966
|
+
let removed;
|
|
25925
25967
|
if (!sibling) {
|
|
25926
|
-
sibling = getNextInlineSibling(fakeNode);
|
|
25968
|
+
sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
|
|
25927
25969
|
}
|
|
25928
25970
|
while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
|
|
25929
25971
|
while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
|
|
@@ -25933,57 +25975,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
25933
25975
|
break;
|
|
25934
25976
|
}
|
|
25935
25977
|
if (sibling.nodeValue?.length) {
|
|
25936
|
-
|
|
25937
|
-
|
|
25938
|
-
|
|
25939
|
-
|
|
25940
|
-
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
25941
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
25942
|
-
index += step;
|
|
25943
|
-
}
|
|
25978
|
+
removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
|
|
25979
|
+
if (!sibling.nodeValue.length &&
|
|
25980
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
|
|
25981
|
+
sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
|
|
25944
25982
|
}
|
|
25945
|
-
removed = value[index];
|
|
25946
|
-
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
25947
|
-
index += step;
|
|
25948
|
-
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
25949
|
-
index += step;
|
|
25950
|
-
}
|
|
25951
|
-
index += backspace ? 1 : -1;
|
|
25952
|
-
}
|
|
25953
|
-
if (backspace && index < 0) {
|
|
25954
|
-
value = [];
|
|
25955
|
-
}
|
|
25956
|
-
else {
|
|
25957
|
-
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
25958
|
-
}
|
|
25959
|
-
if (!anotherSibling ||
|
|
25960
|
-
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
25961
|
-
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
25962
|
-
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
25963
|
-
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
25964
|
-
if (value[i] === ' ') {
|
|
25965
|
-
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
25966
|
-
}
|
|
25967
|
-
else {
|
|
25968
|
-
break;
|
|
25969
|
-
}
|
|
25970
|
-
}
|
|
25971
|
-
}
|
|
25972
|
-
sibling.nodeValue = value.join('');
|
|
25973
25983
|
}
|
|
25974
25984
|
if (!sibling.nodeValue?.length) {
|
|
25975
25985
|
removeNeighbor = sibling;
|
|
25976
25986
|
}
|
|
25977
25987
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
25988
|
+
checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
|
|
25978
25989
|
charRemoved = true;
|
|
25979
|
-
(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);
|
|
25980
|
-
if (mode === 'sentence' ||
|
|
25981
|
-
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
25982
|
-
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
25983
|
-
}
|
|
25984
25990
|
break;
|
|
25985
25991
|
}
|
|
25986
|
-
const nextSibling = getNextInlineSibling(sibling);
|
|
25992
|
+
const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
|
|
25987
25993
|
if (removeNeighbor) {
|
|
25988
25994
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
|
|
25989
25995
|
removeNeighbor = null;
|
|
@@ -26005,6 +26011,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
26005
26011
|
}
|
|
26006
26012
|
return charRemoved;
|
|
26007
26013
|
}
|
|
26014
|
+
function getNextInlineSibling(sibling, backspace, root) {
|
|
26015
|
+
let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
|
|
26016
|
+
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
26017
|
+
nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
|
|
26018
|
+
}
|
|
26019
|
+
return nextSibling;
|
|
26020
|
+
}
|
|
26008
26021
|
/**
|
|
26009
26022
|
* Helper removes all empty inline parents
|
|
26010
26023
|
*/
|
|
@@ -26029,6 +26042,56 @@ function addBRInsideEmptyBlock(jodit, node) {
|
|
|
26029
26042
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
|
|
26030
26043
|
}
|
|
26031
26044
|
}
|
|
26045
|
+
function tryRemoveChar(sibling, backspace, step, anotherSibling) {
|
|
26046
|
+
// For Unicode escapes
|
|
26047
|
+
let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
|
|
26048
|
+
const length = value.length;
|
|
26049
|
+
let index = backspace ? length - 1 : 0;
|
|
26050
|
+
if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26051
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26052
|
+
index += step;
|
|
26053
|
+
}
|
|
26054
|
+
}
|
|
26055
|
+
const removed = value[index];
|
|
26056
|
+
if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26057
|
+
index += step;
|
|
26058
|
+
while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
|
|
26059
|
+
index += step;
|
|
26060
|
+
}
|
|
26061
|
+
index += backspace ? 1 : -1;
|
|
26062
|
+
}
|
|
26063
|
+
if (backspace && index < 0) {
|
|
26064
|
+
value = [];
|
|
26065
|
+
}
|
|
26066
|
+
else {
|
|
26067
|
+
value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
|
|
26068
|
+
}
|
|
26069
|
+
replaceSpaceOnNBSP(anotherSibling, backspace, value);
|
|
26070
|
+
sibling.nodeValue = value.join('');
|
|
26071
|
+
return removed;
|
|
26072
|
+
}
|
|
26073
|
+
function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
|
|
26074
|
+
if (!anotherSibling ||
|
|
26075
|
+
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
|
|
26076
|
+
(!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
|
|
26077
|
+
!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
|
|
26078
|
+
for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
|
|
26079
|
+
if (value[i] === ' ') {
|
|
26080
|
+
value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
|
|
26081
|
+
}
|
|
26082
|
+
else {
|
|
26083
|
+
break;
|
|
26084
|
+
}
|
|
26085
|
+
}
|
|
26086
|
+
}
|
|
26087
|
+
}
|
|
26088
|
+
function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
|
|
26089
|
+
(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);
|
|
26090
|
+
if (mode === 'sentence' ||
|
|
26091
|
+
(mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
|
|
26092
|
+
checkRemoveChar(jodit, fakeNode, backspace, mode);
|
|
26093
|
+
}
|
|
26094
|
+
}
|
|
26032
26095
|
|
|
26033
26096
|
|
|
26034
26097
|
/***/ }),
|
|
@@ -26066,7 +26129,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
|
|
|
26066
26129
|
!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
|
|
26067
26130
|
(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);
|
|
26068
26131
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
|
|
26069
|
-
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .
|
|
26132
|
+
(0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
|
|
26070
26133
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
|
|
26071
26134
|
return true;
|
|
26072
26135
|
}
|
|
@@ -26469,20 +26532,20 @@ function getMoveFilter(jodit) {
|
|
|
26469
26532
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56298);
|
|
26470
26533
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
26471
26534
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
26472
|
-
/* harmony import */ var
|
|
26473
|
-
/* harmony import */ var
|
|
26474
|
-
/* harmony import */ var
|
|
26475
|
-
/* harmony import */ var
|
|
26476
|
-
/* harmony import */ var
|
|
26477
|
-
/* harmony import */ var
|
|
26478
|
-
/* harmony import */ var
|
|
26479
|
-
/* harmony import */ var
|
|
26480
|
-
/* harmony import */ var
|
|
26481
|
-
/* harmony import */ var
|
|
26482
|
-
/* harmony import */ var
|
|
26483
|
-
/* harmony import */ var
|
|
26484
|
-
/* harmony import */ var
|
|
26485
|
-
/* harmony import */ var
|
|
26535
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
26536
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73124);
|
|
26537
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52450);
|
|
26538
|
+
/* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
26539
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41111);
|
|
26540
|
+
/* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
26541
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49972);
|
|
26542
|
+
/* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
26543
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45062);
|
|
26544
|
+
/* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
26545
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18605);
|
|
26546
|
+
/* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
26547
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83389);
|
|
26548
|
+
/* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
26486
26549
|
/*!
|
|
26487
26550
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26488
26551
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26505,7 +26568,7 @@ function getMoveFilter(jodit) {
|
|
|
26505
26568
|
*/
|
|
26506
26569
|
function bold(editor) {
|
|
26507
26570
|
const callBack = (command) => {
|
|
26508
|
-
const control =
|
|
26571
|
+
const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
|
|
26509
26572
|
...control.css
|
|
26510
26573
|
};
|
|
26511
26574
|
let cssRules;
|
|
@@ -26559,12 +26622,12 @@ function bold(editor) {
|
|
|
26559
26622
|
});
|
|
26560
26623
|
}
|
|
26561
26624
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
|
|
26562
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (
|
|
26563
|
-
.set('italic', (
|
|
26564
|
-
.set('strikethrough', (
|
|
26565
|
-
.set('subscript', (
|
|
26566
|
-
.set('superscript', (
|
|
26567
|
-
.set('underline', (
|
|
26625
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
|
|
26626
|
+
.set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
26627
|
+
.set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
26628
|
+
.set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
26629
|
+
.set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
26630
|
+
.set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
|
|
26568
26631
|
|
|
26569
26632
|
|
|
26570
26633
|
/***/ }),
|
|
@@ -26634,9 +26697,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
26634
26697
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84976);
|
|
26635
26698
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71005);
|
|
26636
26699
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
26637
|
-
/* harmony import */ var
|
|
26638
|
-
/* harmony import */ var
|
|
26639
|
-
/* harmony import */ var
|
|
26700
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
26701
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93267);
|
|
26702
|
+
/* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
26640
26703
|
/*!
|
|
26641
26704
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26642
26705
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26649,7 +26712,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
|
|
|
26649
26712
|
|
|
26650
26713
|
|
|
26651
26714
|
|
|
26652
|
-
|
|
26715
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
|
|
26653
26716
|
command: 'applyClassName',
|
|
26654
26717
|
exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
|
|
26655
26718
|
list: [
|
|
@@ -26737,7 +26800,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
|
|
|
26737
26800
|
beforeDestruct() { }
|
|
26738
26801
|
}
|
|
26739
26802
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
|
|
26740
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (
|
|
26803
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
26741
26804
|
|
|
26742
26805
|
|
|
26743
26806
|
/***/ }),
|
|
@@ -26876,9 +26939,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
26876
26939
|
|
|
26877
26940
|
"use strict";
|
|
26878
26941
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
26879
|
-
/* harmony import */ var
|
|
26880
|
-
/* harmony import */ var
|
|
26881
|
-
/* harmony import */ var
|
|
26942
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
26943
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71948);
|
|
26944
|
+
/* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
26882
26945
|
/*!
|
|
26883
26946
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26884
26947
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26887,7 +26950,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
|
|
|
26887
26950
|
|
|
26888
26951
|
|
|
26889
26952
|
|
|
26890
|
-
|
|
26953
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
|
|
26891
26954
|
timeout: 300,
|
|
26892
26955
|
removeEmptyElements: true,
|
|
26893
26956
|
fillEmptyParagraph: true,
|
|
@@ -26903,11 +26966,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
|
|
|
26903
26966
|
safeJavaScriptLink: true,
|
|
26904
26967
|
disableCleanFilter: null
|
|
26905
26968
|
};
|
|
26906
|
-
|
|
26969
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
|
|
26907
26970
|
command: 'removeFormat',
|
|
26908
26971
|
tooltip: 'Clear Formatting'
|
|
26909
26972
|
};
|
|
26910
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (
|
|
26973
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
26911
26974
|
|
|
26912
26975
|
|
|
26913
26976
|
/***/ }),
|
|
@@ -27573,15 +27636,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
27573
27636
|
|
|
27574
27637
|
"use strict";
|
|
27575
27638
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
27576
|
-
/* harmony import */ var
|
|
27577
|
-
/* harmony import */ var
|
|
27578
|
-
/* harmony import */ var
|
|
27579
|
-
/* harmony import */ var
|
|
27580
|
-
/* harmony import */ var
|
|
27581
|
-
/* harmony import */ var
|
|
27582
|
-
/* harmony import */ var
|
|
27583
|
-
/* harmony import */ var
|
|
27584
|
-
/* harmony import */ var
|
|
27639
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
27640
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51457);
|
|
27641
|
+
/* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
27642
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23602);
|
|
27643
|
+
/* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
27644
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86899);
|
|
27645
|
+
/* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
27646
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95320);
|
|
27647
|
+
/* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27585
27648
|
/*!
|
|
27586
27649
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27587
27650
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27593,25 +27656,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
|
|
|
27593
27656
|
|
|
27594
27657
|
|
|
27595
27658
|
|
|
27596
|
-
|
|
27659
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
|
|
27597
27660
|
command: 'cut',
|
|
27598
27661
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
27599
27662
|
tooltip: 'Cut selection'
|
|
27600
27663
|
};
|
|
27601
|
-
|
|
27664
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
|
|
27602
27665
|
command: 'copy',
|
|
27603
27666
|
isDisabled: (editor) => editor.s.isCollapsed(),
|
|
27604
27667
|
tooltip: 'Copy selection'
|
|
27605
27668
|
};
|
|
27606
|
-
|
|
27669
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
|
|
27607
27670
|
icon: 'select-all',
|
|
27608
27671
|
command: 'selectall',
|
|
27609
27672
|
tooltip: 'Select all'
|
|
27610
27673
|
};
|
|
27611
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (
|
|
27612
|
-
.set('cut', (
|
|
27613
|
-
.set('paste', (
|
|
27614
|
-
.set('select-all', (
|
|
27674
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
|
|
27675
|
+
.set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
|
|
27676
|
+
.set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
|
|
27677
|
+
.set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
27615
27678
|
|
|
27616
27679
|
|
|
27617
27680
|
/***/ }),
|
|
@@ -27683,10 +27746,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
27683
27746
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
27684
27747
|
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
27685
27748
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
27686
|
-
/* harmony import */ var
|
|
27687
|
-
/* harmony import */ var
|
|
27688
|
-
/* harmony import */ var
|
|
27689
|
-
/* harmony import */ var
|
|
27749
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
27750
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
|
|
27751
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45674);
|
|
27752
|
+
/* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
27690
27753
|
/*!
|
|
27691
27754
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27692
27755
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27698,8 +27761,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
27698
27761
|
|
|
27699
27762
|
|
|
27700
27763
|
|
|
27701
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (
|
|
27702
|
-
|
|
27764
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
27765
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
|
|
27703
27766
|
isVisible: (editor) => {
|
|
27704
27767
|
return !editor.o.disablePlugins.includes('color');
|
|
27705
27768
|
},
|
|
@@ -27712,7 +27775,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27712
27775
|
if (!selected.length) {
|
|
27713
27776
|
return false;
|
|
27714
27777
|
}
|
|
27715
|
-
const makeColorPicker = (key) => (0,
|
|
27778
|
+
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27716
27779
|
selected.forEach(cell => {
|
|
27717
27780
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
27718
27781
|
});
|
|
@@ -27721,7 +27784,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27721
27784
|
close();
|
|
27722
27785
|
editor.unlock();
|
|
27723
27786
|
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
27724
|
-
return (0,
|
|
27787
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
|
|
27725
27788
|
{
|
|
27726
27789
|
name: 'Background',
|
|
27727
27790
|
content: makeColorPicker('background-color')
|
|
@@ -27732,7 +27795,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27732
27795
|
},
|
|
27733
27796
|
tooltip: 'Background'
|
|
27734
27797
|
};
|
|
27735
|
-
|
|
27798
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
|
|
27736
27799
|
isVisible: (editor) => {
|
|
27737
27800
|
return !editor.o.disablePlugins.includes('color');
|
|
27738
27801
|
},
|
|
@@ -27780,7 +27843,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27780
27843
|
}
|
|
27781
27844
|
}, editor.editor);
|
|
27782
27845
|
}
|
|
27783
|
-
const backgroundTag = (0,
|
|
27846
|
+
const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27784
27847
|
if (!currentElement) {
|
|
27785
27848
|
editor.execCommand('background', false, value);
|
|
27786
27849
|
}
|
|
@@ -27791,7 +27854,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27791
27854
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
|
|
27792
27855
|
close();
|
|
27793
27856
|
}, bg_color);
|
|
27794
|
-
const colorTab = (0,
|
|
27857
|
+
const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27795
27858
|
if (!currentElement) {
|
|
27796
27859
|
editor.execCommand('forecolor', false, value);
|
|
27797
27860
|
}
|
|
@@ -27815,7 +27878,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27815
27878
|
if (editor.o.colorPickerDefaultTab !== 'background') {
|
|
27816
27879
|
tabs = tabs.reverse();
|
|
27817
27880
|
}
|
|
27818
|
-
return (0,
|
|
27881
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
|
|
27819
27882
|
},
|
|
27820
27883
|
exec(jodit, current, { button }) {
|
|
27821
27884
|
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');
|
|
@@ -27854,10 +27917,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
|
|
|
27854
27917
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
27855
27918
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
|
|
27856
27919
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
27857
|
-
/* harmony import */ var
|
|
27858
|
-
/* harmony import */ var
|
|
27859
|
-
/* harmony import */ var
|
|
27860
|
-
/* harmony import */ var
|
|
27920
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
27921
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3843);
|
|
27922
|
+
/* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
27923
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94628);
|
|
27861
27924
|
/*!
|
|
27862
27925
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27863
27926
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27915,7 +27978,7 @@ const getStyles = (editor, box, defaultStyles) => {
|
|
|
27915
27978
|
}
|
|
27916
27979
|
return result;
|
|
27917
27980
|
};
|
|
27918
|
-
|
|
27981
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
|
|
27919
27982
|
exec: (editor, current, { button }) => {
|
|
27920
27983
|
if (!current) {
|
|
27921
27984
|
return;
|
|
@@ -27965,10 +28028,10 @@ function copyFormat(editor) {
|
|
|
27965
28028
|
name: 'copyformat',
|
|
27966
28029
|
group: 'clipboard'
|
|
27967
28030
|
});
|
|
27968
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(
|
|
28031
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
|
|
27969
28032
|
}
|
|
27970
28033
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
|
|
27971
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (
|
|
28034
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
27972
28035
|
|
|
27973
28036
|
|
|
27974
28037
|
/***/ }),
|
|
@@ -28525,45 +28588,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
28525
28588
|
const sel = this.j.s.sel;
|
|
28526
28589
|
const range = this.bufferRange ||
|
|
28527
28590
|
(sel && sel.rangeCount ? sel.getRangeAt(0) : null);
|
|
28528
|
-
|
|
28529
|
-
if (!this.draggable && range) {
|
|
28530
|
-
fragment = this.isCopyMode
|
|
28531
|
-
? range.cloneContents()
|
|
28532
|
-
: range.extractContents();
|
|
28533
|
-
}
|
|
28534
|
-
else if (this.draggable) {
|
|
28535
|
-
if (this.isCopyMode) {
|
|
28536
|
-
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
28537
|
-
? ['a', 'href']
|
|
28538
|
-
: ['img', 'src'];
|
|
28539
|
-
fragment = this.j.createInside.element(tagName);
|
|
28540
|
-
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
28541
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
28542
|
-
'');
|
|
28543
|
-
if (tagName === 'a') {
|
|
28544
|
-
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
28545
|
-
}
|
|
28546
|
-
}
|
|
28547
|
-
else {
|
|
28548
|
-
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
28549
|
-
}
|
|
28550
|
-
}
|
|
28551
|
-
else if (this.getText(event)) {
|
|
28552
|
-
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
28553
|
-
}
|
|
28591
|
+
const fragment = this.__getWorkFragment(range, event);
|
|
28554
28592
|
sel && sel.removeAllRanges();
|
|
28555
28593
|
this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
|
|
28556
28594
|
if (fragment) {
|
|
28557
|
-
this.
|
|
28558
|
-
if (range && fragment.firstChild && fragment.lastChild) {
|
|
28559
|
-
range.setStartBefore(fragment.firstChild);
|
|
28560
|
-
range.setEndAfter(fragment.lastChild);
|
|
28561
|
-
this.j.s.selectRange(range);
|
|
28562
|
-
this.j.e.fire('synchro');
|
|
28563
|
-
}
|
|
28564
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
28565
|
-
this.j.e.fire('afterInsertImage', fragment);
|
|
28566
|
-
}
|
|
28595
|
+
this.__insertFragment.call(this, fragment, range);
|
|
28567
28596
|
}
|
|
28568
28597
|
event.preventDefault();
|
|
28569
28598
|
event.stopPropagation();
|
|
@@ -28571,6 +28600,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
28571
28600
|
this.isFragmentFromEditor = false;
|
|
28572
28601
|
this.removeDragListeners();
|
|
28573
28602
|
}
|
|
28603
|
+
__getWorkFragment(range, event) {
|
|
28604
|
+
let fragment = null;
|
|
28605
|
+
if (!this.draggable && range) {
|
|
28606
|
+
fragment = this.isCopyMode
|
|
28607
|
+
? range.cloneContents()
|
|
28608
|
+
: range.extractContents();
|
|
28609
|
+
}
|
|
28610
|
+
else if (this.draggable) {
|
|
28611
|
+
if (this.isCopyMode) {
|
|
28612
|
+
const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
|
|
28613
|
+
? ['a', 'href']
|
|
28614
|
+
: ['img', 'src'];
|
|
28615
|
+
fragment = this.j.createInside.element(tagName);
|
|
28616
|
+
fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
|
|
28617
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
|
|
28618
|
+
'');
|
|
28619
|
+
if (tagName === 'a') {
|
|
28620
|
+
fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
|
|
28621
|
+
}
|
|
28622
|
+
}
|
|
28623
|
+
else {
|
|
28624
|
+
fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
28625
|
+
}
|
|
28626
|
+
}
|
|
28627
|
+
else if (this.getText(event)) {
|
|
28628
|
+
fragment = this.j.createInside.fromHTML(this.getText(event));
|
|
28629
|
+
}
|
|
28630
|
+
return fragment;
|
|
28631
|
+
}
|
|
28632
|
+
__insertFragment(fragment, range) {
|
|
28633
|
+
this.j.s.insertNode(fragment, false, false);
|
|
28634
|
+
if (range && fragment.firstChild && fragment.lastChild) {
|
|
28635
|
+
range.setStartBefore(fragment.firstChild);
|
|
28636
|
+
range.setEndAfter(fragment.lastChild);
|
|
28637
|
+
this.j.s.selectRange(range);
|
|
28638
|
+
this.j.e.fire('synchro');
|
|
28639
|
+
}
|
|
28640
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
|
|
28641
|
+
this.j.e.fire('afterInsertImage', fragment);
|
|
28642
|
+
}
|
|
28643
|
+
}
|
|
28574
28644
|
/** @override */
|
|
28575
28645
|
beforeDestruct() {
|
|
28576
28646
|
this.onDragEnd();
|
|
@@ -29372,8 +29442,8 @@ function wrapText(fake, jodit) {
|
|
|
29372
29442
|
/* unused harmony export file */
|
|
29373
29443
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
29374
29444
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
29375
|
-
/* harmony import */ var
|
|
29376
|
-
/* harmony import */ var
|
|
29445
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
29446
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
|
|
29377
29447
|
/*!
|
|
29378
29448
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29379
29449
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29383,7 +29453,7 @@ function wrapText(fake, jodit) {
|
|
|
29383
29453
|
|
|
29384
29454
|
|
|
29385
29455
|
|
|
29386
|
-
|
|
29456
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
|
|
29387
29457
|
popup: (editor, current, close) => {
|
|
29388
29458
|
const insert = (url, title = '') => {
|
|
29389
29459
|
editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
|
|
@@ -29396,7 +29466,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
29396
29466
|
? current
|
|
29397
29467
|
: jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
29398
29468
|
}
|
|
29399
|
-
return (0,
|
|
29469
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
|
|
29400
29470
|
filebrowser: (data) => {
|
|
29401
29471
|
data.files &&
|
|
29402
29472
|
data.files.forEach(file => insert(data.baseurl + file));
|
|
@@ -29519,11 +29589,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
29519
29589
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
|
|
29520
29590
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
|
|
29521
29591
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
29522
|
-
/* harmony import */ var
|
|
29523
|
-
/* harmony import */ var
|
|
29524
|
-
/* harmony import */ var
|
|
29525
|
-
/* harmony import */ var
|
|
29526
|
-
/* harmony import */ var
|
|
29592
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
29593
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48842);
|
|
29594
|
+
/* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
29595
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25501);
|
|
29596
|
+
/* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
29527
29597
|
/*!
|
|
29528
29598
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29529
29599
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29539,9 +29609,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
|
|
|
29539
29609
|
/**
|
|
29540
29610
|
* Default font-size points
|
|
29541
29611
|
*/
|
|
29542
|
-
|
|
29543
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (
|
|
29544
|
-
|
|
29612
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
|
|
29613
|
+
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()));
|
|
29614
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
|
|
29545
29615
|
command: 'fontsize',
|
|
29546
29616
|
data: {
|
|
29547
29617
|
cssRule: 'font-size',
|
|
@@ -29597,8 +29667,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
|
|
|
29597
29667
|
return keySet.has(normalize(value.toString()));
|
|
29598
29668
|
}
|
|
29599
29669
|
};
|
|
29600
|
-
|
|
29601
|
-
...
|
|
29670
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
|
|
29671
|
+
...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
|
|
29602
29672
|
command: 'fontname',
|
|
29603
29673
|
textTemplate: (j, value) => {
|
|
29604
29674
|
const [first] = value.split(',');
|
|
@@ -29708,11 +29778,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
29708
29778
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
29709
29779
|
|
|
29710
29780
|
"use strict";
|
|
29711
|
-
/* harmony import */ var
|
|
29781
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
29782
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
|
|
29712
29783
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
29713
|
-
/* harmony import */ var
|
|
29714
|
-
/* harmony import */ var
|
|
29715
|
-
/* harmony import */ var
|
|
29784
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
29785
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29348);
|
|
29786
|
+
/* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
29716
29787
|
/*!
|
|
29717
29788
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29718
29789
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29722,12 +29793,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
|
|
|
29722
29793
|
|
|
29723
29794
|
|
|
29724
29795
|
|
|
29725
|
-
|
|
29726
|
-
|
|
29796
|
+
|
|
29797
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
29798
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
|
|
29727
29799
|
command: 'formatBlock',
|
|
29728
29800
|
value(editor, button) {
|
|
29729
29801
|
const control = button.control, current = editor.s.current();
|
|
29730
|
-
const currentBox =
|
|
29802
|
+
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);
|
|
29731
29803
|
return currentBox?.nodeName.toLowerCase() ?? control.data?.currentValue;
|
|
29732
29804
|
},
|
|
29733
29805
|
update(editor, button) {
|
|
@@ -29736,7 +29808,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
29736
29808
|
return false;
|
|
29737
29809
|
}
|
|
29738
29810
|
const currentValue = button.state.value, list = control.list;
|
|
29739
|
-
if (list && list[currentValue.toString()]) {
|
|
29811
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
|
|
29740
29812
|
if (editor.o.textIcons) {
|
|
29741
29813
|
button.state.text = list[currentValue.toString()].toString();
|
|
29742
29814
|
}
|
|
@@ -29760,7 +29832,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
|
|
|
29760
29832
|
},
|
|
29761
29833
|
isActive: (editor, button) => {
|
|
29762
29834
|
return (button.state.value !== editor.o.enter &&
|
|
29763
|
-
|
|
29835
|
+
(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
|
|
29836
|
+
Boolean(button.control.list[button.state.value]));
|
|
29764
29837
|
},
|
|
29765
29838
|
childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
|
|
29766
29839
|
tooltip: 'Insert format block'
|
|
@@ -29810,11 +29883,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
29810
29883
|
"use strict";
|
|
29811
29884
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
29812
29885
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
29813
|
-
/* harmony import */ var
|
|
29814
|
-
/* harmony import */ var
|
|
29815
|
-
/* harmony import */ var
|
|
29816
|
-
/* harmony import */ var
|
|
29817
|
-
/* harmony import */ var
|
|
29886
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
29887
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24772);
|
|
29888
|
+
/* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
29889
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66547);
|
|
29890
|
+
/* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
29818
29891
|
/*!
|
|
29819
29892
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29820
29893
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29826,10 +29899,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
|
|
|
29826
29899
|
|
|
29827
29900
|
|
|
29828
29901
|
|
|
29829
|
-
|
|
29830
|
-
|
|
29831
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (
|
|
29832
|
-
|
|
29902
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
|
|
29903
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
|
|
29904
|
+
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()));
|
|
29905
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
|
|
29833
29906
|
exec: (editor) => {
|
|
29834
29907
|
editor.toggleFullSize();
|
|
29835
29908
|
},
|
|
@@ -30155,9 +30228,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30155
30228
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
|
|
30156
30229
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
30157
30230
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
|
|
30158
|
-
/* harmony import */ var
|
|
30159
|
-
/* harmony import */ var
|
|
30160
|
-
/* harmony import */ var
|
|
30231
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
30232
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
|
|
30233
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
30161
30234
|
/*!
|
|
30162
30235
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30163
30236
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30168,8 +30241,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
|
|
|
30168
30241
|
|
|
30169
30242
|
|
|
30170
30243
|
|
|
30171
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (
|
|
30172
|
-
|
|
30244
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30245
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
|
|
30173
30246
|
command: 'insertHorizontalRule',
|
|
30174
30247
|
tags: ['hr'],
|
|
30175
30248
|
tooltip: 'Insert Horizontal Line'
|
|
@@ -30646,6 +30719,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
|
|
|
30646
30719
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
30647
30720
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30648
30721
|
*/
|
|
30722
|
+
/**
|
|
30723
|
+
* @module plugins/image-properties
|
|
30724
|
+
*/
|
|
30649
30725
|
|
|
30650
30726
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
|
|
30651
30727
|
dialogWidth: 600,
|
|
@@ -32146,10 +32222,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32146
32222
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
32147
32223
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
32148
32224
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
32149
|
-
/* harmony import */ var
|
|
32150
|
-
/* harmony import */ var
|
|
32151
|
-
/* harmony import */ var
|
|
32152
|
-
/* harmony import */ var
|
|
32225
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
32226
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
|
|
32227
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64831);
|
|
32228
|
+
/* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
32153
32229
|
/*!
|
|
32154
32230
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32155
32231
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32162,8 +32238,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
32162
32238
|
|
|
32163
32239
|
|
|
32164
32240
|
|
|
32165
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (
|
|
32166
|
-
|
|
32241
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
32242
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
|
|
32167
32243
|
popup: (editor, current, close) => {
|
|
32168
32244
|
let sourceImage = null;
|
|
32169
32245
|
if (current &&
|
|
@@ -32175,7 +32251,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
|
|
|
32175
32251
|
: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
|
|
32176
32252
|
}
|
|
32177
32253
|
editor.s.save();
|
|
32178
|
-
return (0,
|
|
32254
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
|
|
32179
32255
|
filebrowser: (data) => {
|
|
32180
32256
|
editor.s.restore();
|
|
32181
32257
|
data.files &&
|
|
@@ -32218,12 +32294,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32218
32294
|
"use strict";
|
|
32219
32295
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
|
|
32220
32296
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
32221
|
-
/* harmony import */ var
|
|
32222
|
-
/* harmony import */ var
|
|
32223
|
-
/* harmony import */ var
|
|
32224
|
-
/* harmony import */ var
|
|
32225
|
-
/* harmony import */ var
|
|
32226
|
-
/* harmony import */ var
|
|
32297
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
32298
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67176);
|
|
32299
|
+
/* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
32300
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14017);
|
|
32301
|
+
/* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
32302
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3392);
|
|
32227
32303
|
/*!
|
|
32228
32304
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32229
32305
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32235,17 +32311,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
|
|
|
32235
32311
|
|
|
32236
32312
|
|
|
32237
32313
|
|
|
32238
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (
|
|
32239
|
-
|
|
32314
|
+
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()));
|
|
32315
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
|
|
32240
32316
|
tooltip: 'Increase Indent'
|
|
32241
32317
|
};
|
|
32242
|
-
|
|
32318
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
|
|
32243
32319
|
isDisabled: (editor) => {
|
|
32244
32320
|
const current = editor.s.current();
|
|
32245
32321
|
if (current) {
|
|
32246
32322
|
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);
|
|
32247
32323
|
if (currentBox) {
|
|
32248
|
-
const arrow = (0,
|
|
32324
|
+
const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
|
|
32249
32325
|
return (!currentBox.style[arrow] ||
|
|
32250
32326
|
parseInt(currentBox.style[arrow], 10) <= 0);
|
|
32251
32327
|
}
|
|
@@ -32254,7 +32330,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
|
|
|
32254
32330
|
},
|
|
32255
32331
|
tooltip: 'Decrease Indent'
|
|
32256
32332
|
};
|
|
32257
|
-
|
|
32333
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
|
|
32258
32334
|
|
|
32259
32335
|
|
|
32260
32336
|
/***/ }),
|
|
@@ -32515,12 +32591,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
32515
32591
|
|
|
32516
32592
|
"use strict";
|
|
32517
32593
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
32518
|
-
/* harmony import */ var
|
|
32519
|
-
/* harmony import */ var
|
|
32520
|
-
/* harmony import */ var
|
|
32521
|
-
/* harmony import */ var
|
|
32594
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
32595
|
+
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97836);
|
|
32596
|
+
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82558);
|
|
32597
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6295);
|
|
32598
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26396);
|
|
32522
32599
|
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58540);
|
|
32523
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
32524
32600
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38681);
|
|
32525
32601
|
/* 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__);
|
|
32526
32602
|
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64637);
|
|
@@ -32554,10 +32630,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
|
|
|
32554
32630
|
|
|
32555
32631
|
|
|
32556
32632
|
|
|
32557
|
-
|
|
32558
|
-
|
|
32559
|
-
|
|
32560
|
-
|
|
32633
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
|
|
32634
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
|
|
32635
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
|
|
32636
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
|
|
32561
32637
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
|
|
32562
32638
|
.set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
|
|
32563
32639
|
.set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
|
|
@@ -32565,14 +32641,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
|
|
|
32565
32641
|
.set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
|
|
32566
32642
|
.set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
|
|
32567
32643
|
.set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
|
|
32568
|
-
|
|
32569
|
-
a:
|
|
32570
|
-
img:
|
|
32571
|
-
cells:
|
|
32644
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
|
|
32645
|
+
a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
32646
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
|
|
32647
|
+
cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
|
|
32572
32648
|
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
|
|
32573
|
-
jodit:
|
|
32574
|
-
iframe:
|
|
32575
|
-
'jodit-media':
|
|
32649
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
32650
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
32651
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
|
|
32576
32652
|
selection: [
|
|
32577
32653
|
'bold',
|
|
32578
32654
|
'underline',
|
|
@@ -33184,12 +33260,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33184
33260
|
/* unused harmony export justify */
|
|
33185
33261
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
33186
33262
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
33187
|
-
/* harmony import */ var
|
|
33188
|
-
/* harmony import */ var
|
|
33189
|
-
/* harmony import */ var
|
|
33190
|
-
/* harmony import */ var
|
|
33191
|
-
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
33263
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
33264
|
+
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40080);
|
|
33265
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38322);
|
|
33266
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
33192
33267
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
33268
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80515);
|
|
33269
|
+
/* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
33193
33270
|
/*!
|
|
33194
33271
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33195
33272
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33202,7 +33279,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
|
|
|
33202
33279
|
|
|
33203
33280
|
|
|
33204
33281
|
|
|
33205
|
-
|
|
33282
|
+
|
|
33283
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
33206
33284
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
|
|
33207
33285
|
name: 'left',
|
|
33208
33286
|
tooltip: 'Align',
|
|
@@ -33211,22 +33289,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33211
33289
|
if (current) {
|
|
33212
33290
|
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) ||
|
|
33213
33291
|
editor.editor;
|
|
33214
|
-
let currentValue = (0,
|
|
33292
|
+
let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
|
|
33215
33293
|
if (control.defaultValue &&
|
|
33216
33294
|
control.defaultValue.indexOf(currentValue) !== -1) {
|
|
33217
33295
|
currentValue = 'left';
|
|
33218
33296
|
}
|
|
33219
|
-
|
|
33220
|
-
|
|
33221
|
-
|
|
33222
|
-
|
|
33297
|
+
const { list, data } = control;
|
|
33298
|
+
if (data &&
|
|
33299
|
+
data.currentValue !== currentValue &&
|
|
33300
|
+
list &&
|
|
33301
|
+
((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
|
|
33302
|
+
? list[currentValue]
|
|
33303
|
+
: list.includes(currentValue))) {
|
|
33223
33304
|
if (editor.o.textIcons || control.component === 'select') {
|
|
33224
33305
|
button.state.text = currentValue;
|
|
33225
33306
|
}
|
|
33226
33307
|
else {
|
|
33227
33308
|
button.state.icon.name = currentValue;
|
|
33228
33309
|
}
|
|
33229
|
-
|
|
33310
|
+
data.currentValue = currentValue;
|
|
33230
33311
|
}
|
|
33231
33312
|
}
|
|
33232
33313
|
},
|
|
@@ -33237,7 +33318,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
|
|
|
33237
33318
|
}
|
|
33238
33319
|
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) ||
|
|
33239
33320
|
editor.editor;
|
|
33240
|
-
return (btn.control.defaultValue.indexOf((0,
|
|
33321
|
+
return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
|
|
33241
33322
|
},
|
|
33242
33323
|
defaultValue: ['left', 'start', 'inherit'],
|
|
33243
33324
|
data: {
|
|
@@ -33291,7 +33372,7 @@ function justify(editor) {
|
|
|
33291
33372
|
if (!currentBox) {
|
|
33292
33373
|
currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
|
|
33293
33374
|
}
|
|
33294
|
-
(0,
|
|
33375
|
+
(0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
|
|
33295
33376
|
});
|
|
33296
33377
|
return false;
|
|
33297
33378
|
};
|
|
@@ -33502,9 +33583,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
33502
33583
|
"use strict";
|
|
33503
33584
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65147);
|
|
33504
33585
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
33505
|
-
/* harmony import */ var
|
|
33506
|
-
/* harmony import */ var
|
|
33507
|
-
/* harmony import */ var
|
|
33586
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
33587
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
|
|
33588
|
+
/* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
33508
33589
|
/*!
|
|
33509
33590
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33510
33591
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33514,9 +33595,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
|
|
|
33514
33595
|
|
|
33515
33596
|
|
|
33516
33597
|
|
|
33517
|
-
|
|
33518
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (
|
|
33519
|
-
|
|
33598
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
|
|
33599
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
33600
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
|
|
33520
33601
|
command: 'applyLineHeight',
|
|
33521
33602
|
tags: ['ol'],
|
|
33522
33603
|
tooltip: 'Line height',
|
|
@@ -33684,12 +33765,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
33684
33765
|
"use strict";
|
|
33685
33766
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
33686
33767
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
33687
|
-
/* harmony import */ var
|
|
33688
|
-
/* harmony import */ var
|
|
33689
|
-
/* harmony import */ var
|
|
33690
|
-
/* harmony import */ var
|
|
33691
|
-
/* harmony import */ var
|
|
33692
|
-
/* harmony import */ var
|
|
33768
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
33769
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95032);
|
|
33770
|
+
/* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
33771
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73533);
|
|
33772
|
+
/* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
33773
|
+
/* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21329);
|
|
33693
33774
|
/*!
|
|
33694
33775
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33695
33776
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33701,8 +33782,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
|
|
|
33701
33782
|
|
|
33702
33783
|
|
|
33703
33784
|
|
|
33704
|
-
|
|
33705
|
-
formTemplate:
|
|
33785
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
|
|
33786
|
+
formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
|
|
33706
33787
|
followOnDblClick: false,
|
|
33707
33788
|
processVideoLink: true,
|
|
33708
33789
|
processPastedLink: true,
|
|
@@ -33714,8 +33795,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
|
|
|
33714
33795
|
selectOptionsClassName: [],
|
|
33715
33796
|
hotkeys: ['ctrl+k', 'cmd+k']
|
|
33716
33797
|
};
|
|
33717
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (
|
|
33718
|
-
|
|
33798
|
+
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()));
|
|
33799
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
|
|
33719
33800
|
exec: (editor, current) => {
|
|
33720
33801
|
const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
|
|
33721
33802
|
if (anchor) {
|
|
@@ -33726,7 +33807,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
|
|
|
33726
33807
|
},
|
|
33727
33808
|
tooltip: 'Unlink'
|
|
33728
33809
|
};
|
|
33729
|
-
|
|
33810
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
|
|
33730
33811
|
isActive: (editor) => {
|
|
33731
33812
|
const current = editor.s.current();
|
|
33732
33813
|
return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
|
|
@@ -33884,35 +33965,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
33884
33965
|
if (link) {
|
|
33885
33966
|
url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
|
|
33886
33967
|
if (modeClassName) {
|
|
33887
|
-
|
|
33888
|
-
case 'input':
|
|
33889
|
-
if (className_input) {
|
|
33890
|
-
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
33891
|
-
}
|
|
33892
|
-
break;
|
|
33893
|
-
case 'select':
|
|
33894
|
-
if (className_select) {
|
|
33895
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
33896
|
-
const option = className_select.options.item(i);
|
|
33897
|
-
if (option) {
|
|
33898
|
-
option.selected = false;
|
|
33899
|
-
}
|
|
33900
|
-
}
|
|
33901
|
-
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
33902
|
-
classNames.split(' ').forEach(className => {
|
|
33903
|
-
if (className) {
|
|
33904
|
-
for (let i = 0; i < className_select.options.length; i++) {
|
|
33905
|
-
const option = className_select.options.item(i);
|
|
33906
|
-
if (option?.value &&
|
|
33907
|
-
option.value === className) {
|
|
33908
|
-
option.selected = true;
|
|
33909
|
-
}
|
|
33910
|
-
}
|
|
33911
|
-
}
|
|
33912
|
-
});
|
|
33913
|
-
}
|
|
33914
|
-
break;
|
|
33915
|
-
}
|
|
33968
|
+
readClassnames(modeClassName, className_input, link, className_select);
|
|
33916
33969
|
}
|
|
33917
33970
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
33918
33971
|
target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
|
|
@@ -33974,42 +34027,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
33974
34027
|
}
|
|
33975
34028
|
links.forEach(a => {
|
|
33976
34029
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
|
|
33977
|
-
|
|
33978
|
-
if (modeClassName === 'input') {
|
|
33979
|
-
if (className_input.value === '' &&
|
|
33980
|
-
a.hasAttribute('class')) {
|
|
33981
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
33982
|
-
}
|
|
33983
|
-
if (className_input.value !== '') {
|
|
33984
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
33985
|
-
}
|
|
33986
|
-
}
|
|
33987
|
-
else if (modeClassName === 'select') {
|
|
33988
|
-
if (a.hasAttribute('class')) {
|
|
33989
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
33990
|
-
}
|
|
33991
|
-
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
33992
|
-
const className = className_select.selectedOptions.item(i)?.value;
|
|
33993
|
-
if (className) {
|
|
33994
|
-
a.classList.add(className);
|
|
33995
|
-
}
|
|
33996
|
-
}
|
|
33997
|
-
}
|
|
33998
|
-
}
|
|
34030
|
+
writeClasses(modeClassName, className_input, className_select, a);
|
|
33999
34031
|
if (!isImageContent) {
|
|
34000
|
-
|
|
34001
|
-
if (content_input.value.trim().length) {
|
|
34002
|
-
if (textWasChanged) {
|
|
34003
|
-
newContent = content_input.value;
|
|
34004
|
-
}
|
|
34005
|
-
}
|
|
34006
|
-
else {
|
|
34007
|
-
newContent = url_input.value;
|
|
34008
|
-
}
|
|
34009
|
-
const content = a.textContent;
|
|
34010
|
-
if (newContent !== content) {
|
|
34011
|
-
a.textContent = newContent;
|
|
34012
|
-
}
|
|
34032
|
+
writeImage(a, content_input, textWasChanged, url_input);
|
|
34013
34033
|
}
|
|
34014
34034
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
34015
34035
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
|
|
@@ -34054,6 +34074,74 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
34054
34074
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
34055
34075
|
], link.prototype, "__generateForm", null);
|
|
34056
34076
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
|
|
34077
|
+
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
34078
|
+
if (modeClassName && (className_input ?? className_select)) {
|
|
34079
|
+
if (modeClassName === 'input') {
|
|
34080
|
+
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
34081
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34082
|
+
}
|
|
34083
|
+
if (className_input.value !== '') {
|
|
34084
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
|
|
34085
|
+
}
|
|
34086
|
+
}
|
|
34087
|
+
else if (modeClassName === 'select') {
|
|
34088
|
+
if (a.hasAttribute('class')) {
|
|
34089
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
|
|
34090
|
+
}
|
|
34091
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34092
|
+
const className = className_select.selectedOptions.item(i)?.value;
|
|
34093
|
+
if (className) {
|
|
34094
|
+
a.classList.add(className);
|
|
34095
|
+
}
|
|
34096
|
+
}
|
|
34097
|
+
}
|
|
34098
|
+
}
|
|
34099
|
+
}
|
|
34100
|
+
function readClassnames(modeClassName, className_input, link, className_select) {
|
|
34101
|
+
switch (modeClassName) {
|
|
34102
|
+
case 'input':
|
|
34103
|
+
if (className_input) {
|
|
34104
|
+
className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34105
|
+
}
|
|
34106
|
+
break;
|
|
34107
|
+
case 'select':
|
|
34108
|
+
if (className_select) {
|
|
34109
|
+
for (let i = 0; i < className_select.selectedOptions.length; i++) {
|
|
34110
|
+
const option = className_select.options.item(i);
|
|
34111
|
+
if (option) {
|
|
34112
|
+
option.selected = false;
|
|
34113
|
+
}
|
|
34114
|
+
}
|
|
34115
|
+
const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
|
|
34116
|
+
classNames.split(' ').forEach(className => {
|
|
34117
|
+
if (className) {
|
|
34118
|
+
for (let i = 0; i < className_select.options.length; i++) {
|
|
34119
|
+
const option = className_select.options.item(i);
|
|
34120
|
+
if (option?.value && option.value === className) {
|
|
34121
|
+
option.selected = true;
|
|
34122
|
+
}
|
|
34123
|
+
}
|
|
34124
|
+
}
|
|
34125
|
+
});
|
|
34126
|
+
}
|
|
34127
|
+
break;
|
|
34128
|
+
}
|
|
34129
|
+
}
|
|
34130
|
+
function writeImage(a, content_input, textWasChanged, url_input) {
|
|
34131
|
+
let newContent = a.textContent;
|
|
34132
|
+
if (content_input.value.trim().length) {
|
|
34133
|
+
if (textWasChanged) {
|
|
34134
|
+
newContent = content_input.value;
|
|
34135
|
+
}
|
|
34136
|
+
}
|
|
34137
|
+
else {
|
|
34138
|
+
newContent = url_input.value;
|
|
34139
|
+
}
|
|
34140
|
+
const content = a.textContent;
|
|
34141
|
+
if (newContent !== content) {
|
|
34142
|
+
a.textContent = newContent;
|
|
34143
|
+
}
|
|
34144
|
+
}
|
|
34057
34145
|
|
|
34058
34146
|
|
|
34059
34147
|
/***/ }),
|
|
@@ -34263,9 +34351,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
34263
34351
|
"use strict";
|
|
34264
34352
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
34265
34353
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
34266
|
-
/* harmony import */ var
|
|
34267
|
-
/* harmony import */ var
|
|
34268
|
-
/* harmony import */ var
|
|
34354
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
34355
|
+
/* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97394);
|
|
34356
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8809);
|
|
34269
34357
|
/*!
|
|
34270
34358
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34271
34359
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34276,9 +34364,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
|
|
|
34276
34364
|
|
|
34277
34365
|
|
|
34278
34366
|
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
|
|
34367
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
|
|
34368
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
|
|
34369
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
|
|
34282
34370
|
{
|
|
34283
34371
|
group: 'font-style',
|
|
34284
34372
|
buttons: []
|
|
@@ -34325,7 +34413,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
|
|
|
34325
34413
|
'|',
|
|
34326
34414
|
'dots'
|
|
34327
34415
|
];
|
|
34328
|
-
|
|
34416
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
|
|
34329
34417
|
{
|
|
34330
34418
|
group: 'font-style',
|
|
34331
34419
|
buttons: []
|
|
@@ -34360,7 +34448,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
|
|
|
34360
34448
|
'|',
|
|
34361
34449
|
'dots'
|
|
34362
34450
|
];
|
|
34363
|
-
|
|
34451
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
|
|
34364
34452
|
{
|
|
34365
34453
|
group: 'font-style',
|
|
34366
34454
|
buttons: []
|
|
@@ -34381,16 +34469,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
|
|
|
34381
34469
|
'---',
|
|
34382
34470
|
'dots'
|
|
34383
34471
|
];
|
|
34384
|
-
|
|
34472
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
|
|
34385
34473
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
|
|
34386
34474
|
popup: (editor, current, close, button) => {
|
|
34387
34475
|
let store = button.control.data;
|
|
34388
34476
|
if (store === undefined) {
|
|
34389
34477
|
store = {
|
|
34390
|
-
toolbar: (0,
|
|
34478
|
+
toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
|
|
34391
34479
|
rebuild: () => {
|
|
34392
34480
|
if (button) {
|
|
34393
|
-
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(
|
|
34481
|
+
const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
|
|
34394
34482
|
if (buttons && store) {
|
|
34395
34483
|
store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
|
|
34396
34484
|
const w = editor.toolbar?.firstButton?.container
|
|
@@ -34501,11 +34589,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
|
|
|
34501
34589
|
"use strict";
|
|
34502
34590
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
|
|
34503
34591
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
34504
|
-
/* harmony import */ var
|
|
34505
|
-
/* harmony import */ var
|
|
34506
|
-
/* harmony import */ var
|
|
34507
|
-
/* harmony import */ var
|
|
34508
|
-
/* harmony import */ var
|
|
34592
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
34593
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40037);
|
|
34594
|
+
/* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
34595
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
|
|
34596
|
+
/* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
34509
34597
|
/*!
|
|
34510
34598
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34511
34599
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34522,8 +34610,8 @@ const memoExec = (jodit, _, { control }) => {
|
|
|
34522
34610
|
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
|
|
34523
34611
|
jodit.execCommand(control.command, false, value === 'default' ? null : value);
|
|
34524
34612
|
};
|
|
34525
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (
|
|
34526
|
-
|
|
34613
|
+
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()));
|
|
34614
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
|
|
34527
34615
|
command: 'insertUnorderedList',
|
|
34528
34616
|
tags: ['ul'],
|
|
34529
34617
|
tooltip: 'Insert Unordered List',
|
|
@@ -34535,7 +34623,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
|
|
|
34535
34623
|
},
|
|
34536
34624
|
exec: memoExec
|
|
34537
34625
|
};
|
|
34538
|
-
|
|
34626
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
|
|
34539
34627
|
command: 'insertOrderedList',
|
|
34540
34628
|
tags: ['ol'],
|
|
34541
34629
|
tooltip: 'Insert Ordered List',
|
|
@@ -34909,8 +34997,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
34909
34997
|
|
|
34910
34998
|
"use strict";
|
|
34911
34999
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
34912
|
-
/* harmony import */ var
|
|
34913
|
-
/* harmony import */ var
|
|
35000
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
35001
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90823);
|
|
34914
35002
|
/*!
|
|
34915
35003
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34916
35004
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34919,19 +35007,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
|
|
|
34919
35007
|
|
|
34920
35008
|
|
|
34921
35009
|
|
|
34922
|
-
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
35010
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
|
|
35011
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
|
|
35012
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
|
|
35013
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
|
|
35014
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
|
|
34927
35015
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
34928
35016
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
34929
35017
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
|
|
34930
35018
|
];
|
|
34931
|
-
|
|
34932
|
-
|
|
35019
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
|
|
35020
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
|
|
34933
35021
|
const psKey = 'pasteStorage';
|
|
34934
|
-
|
|
35022
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
|
|
34935
35023
|
tooltip: 'Paste from clipboard',
|
|
34936
35024
|
async exec(editor, _, { control }) {
|
|
34937
35025
|
if (control.name === psKey) {
|
|
@@ -34979,7 +35067,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
|
|
|
34979
35067
|
!error && editor.e.fire('afterPaste');
|
|
34980
35068
|
}
|
|
34981
35069
|
else if (text.length) {
|
|
34982
|
-
(0,
|
|
35070
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
|
|
34983
35071
|
editor.e.fire('afterPaste');
|
|
34984
35072
|
}
|
|
34985
35073
|
else {
|
|
@@ -35703,10 +35791,10 @@ function generateCriticalCSS(jodit) {
|
|
|
35703
35791
|
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17527);
|
|
35704
35792
|
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98434);
|
|
35705
35793
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
35706
|
-
/* harmony import */ var
|
|
35707
|
-
/* harmony import */ var
|
|
35708
|
-
/* harmony import */ var
|
|
35709
|
-
/* harmony import */ var
|
|
35794
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
35795
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11131);
|
|
35796
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59827);
|
|
35797
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
35710
35798
|
/*!
|
|
35711
35799
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35712
35800
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35721,8 +35809,8 @@ function generateCriticalCSS(jodit) {
|
|
|
35721
35809
|
|
|
35722
35810
|
|
|
35723
35811
|
|
|
35724
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (
|
|
35725
|
-
|
|
35812
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
35813
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
|
|
35726
35814
|
exec: (editor) => {
|
|
35727
35815
|
const iframe = editor.create.element('iframe');
|
|
35728
35816
|
Object.assign(iframe.style, {
|
|
@@ -35733,7 +35821,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
35733
35821
|
height: 0,
|
|
35734
35822
|
border: 0
|
|
35735
35823
|
});
|
|
35736
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
35824
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
|
|
35737
35825
|
const afterFinishPrint = () => {
|
|
35738
35826
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
35739
35827
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -35751,7 +35839,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
|
|
|
35751
35839
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
35752
35840
|
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
35753
35841
|
'"><head><title></title></head><style>' +
|
|
35754
|
-
(0,
|
|
35842
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
|
|
35755
35843
|
'</style><body></body></html>');
|
|
35756
35844
|
myWindow.document.close();
|
|
35757
35845
|
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
@@ -35789,11 +35877,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
35789
35877
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
35790
35878
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
|
|
35791
35879
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
35792
|
-
/* harmony import */ var
|
|
35793
|
-
/* harmony import */ var
|
|
35794
|
-
/* harmony import */ var
|
|
35795
|
-
/* harmony import */ var
|
|
35796
|
-
/* harmony import */ var
|
|
35880
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
35881
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34045);
|
|
35882
|
+
/* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
35883
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39199);
|
|
35884
|
+
/* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
35797
35885
|
/*!
|
|
35798
35886
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35799
35887
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35806,13 +35894,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
|
|
|
35806
35894
|
|
|
35807
35895
|
|
|
35808
35896
|
|
|
35809
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (
|
|
35810
|
-
|
|
35897
|
+
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()));
|
|
35898
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
|
|
35811
35899
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
35812
35900
|
isDisabled: (editor) => !editor.history.canRedo(),
|
|
35813
35901
|
tooltip: 'Redo'
|
|
35814
35902
|
};
|
|
35815
|
-
|
|
35903
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
|
|
35816
35904
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
35817
35905
|
isDisabled: (editor) => !editor.history.canUndo(),
|
|
35818
35906
|
tooltip: 'Undo'
|
|
@@ -36831,9 +36919,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
36831
36919
|
|
|
36832
36920
|
"use strict";
|
|
36833
36921
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
36834
|
-
/* harmony import */ var
|
|
36835
|
-
/* harmony import */ var
|
|
36836
|
-
/* harmony import */ var
|
|
36922
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
36923
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21917);
|
|
36924
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
36837
36925
|
/*!
|
|
36838
36926
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36839
36927
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36843,14 +36931,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
36843
36931
|
|
|
36844
36932
|
|
|
36845
36933
|
|
|
36846
|
-
|
|
36847
|
-
|
|
36934
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
|
|
36935
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
|
|
36848
36936
|
lazyIdleTimeout: 0,
|
|
36849
36937
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
36850
36938
|
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
36851
36939
|
};
|
|
36852
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (
|
|
36853
|
-
|
|
36940
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
36941
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
|
|
36854
36942
|
tooltip: 'Find',
|
|
36855
36943
|
icon: 'search',
|
|
36856
36944
|
exec(jodit, _, { control }) {
|
|
@@ -36891,7 +36979,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
|
|
|
36891
36979
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
36892
36980
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
36893
36981
|
/* harmony export */ });
|
|
36894
|
-
/* unused harmony export isSelectionWrapper */
|
|
36895
36982
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
|
|
36896
36983
|
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58720);
|
|
36897
36984
|
/*!
|
|
@@ -36913,60 +37000,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
36913
37000
|
rng.endContainer.nodeValue == null) {
|
|
36914
37001
|
return;
|
|
36915
37002
|
}
|
|
36916
|
-
if (jodit
|
|
36917
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
36918
|
-
typeof window.Highlight !== 'undefined') {
|
|
36919
|
-
const ranges = [rng, ...restRanges].map(rng => {
|
|
36920
|
-
const range = jodit.selection.createRange();
|
|
36921
|
-
range.setStart(rng.startContainer, rng.startOffset);
|
|
36922
|
-
range.setEnd(rng.endContainer, rng.endOffset);
|
|
36923
|
-
return range;
|
|
36924
|
-
});
|
|
36925
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
36926
|
-
const searchHighlight = new Highlight(...ranges);
|
|
36927
|
-
// @ts-ignore
|
|
36928
|
-
CSS.highlights.clear();
|
|
36929
|
-
// @ts-ignore
|
|
36930
|
-
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
36931
|
-
restRanges.length = 0;
|
|
37003
|
+
if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
|
|
36932
37004
|
return;
|
|
36933
37005
|
}
|
|
36934
37006
|
const span = ci.element('span', {
|
|
36935
37007
|
[TMP_ATTR]: true
|
|
36936
37008
|
});
|
|
36937
37009
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
|
|
36938
|
-
|
|
36939
|
-
let diff = 0;
|
|
36940
|
-
if (rng.startOffset !== 0) {
|
|
36941
|
-
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
36942
|
-
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
36943
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
36944
|
-
if (rng.startContainer === rng.endContainer) {
|
|
36945
|
-
diff = rng.startOffset;
|
|
36946
|
-
rng.endOffset -= diff;
|
|
36947
|
-
}
|
|
36948
|
-
rng.startOffset = 0;
|
|
36949
|
-
}
|
|
36950
|
-
const endText = rng.endContainer.nodeValue;
|
|
36951
|
-
if (rng.endOffset !== endText.length) {
|
|
36952
|
-
const text = ci.text(endText.substring(rng.endOffset));
|
|
36953
|
-
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
36954
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
36955
|
-
for (const range of restRanges) {
|
|
36956
|
-
if (range.startContainer === rng.endContainer) {
|
|
36957
|
-
range.startContainer = text;
|
|
36958
|
-
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
36959
|
-
if (range.endContainer === rng.endContainer) {
|
|
36960
|
-
range.endContainer = text;
|
|
36961
|
-
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
36962
|
-
}
|
|
36963
|
-
}
|
|
36964
|
-
else {
|
|
36965
|
-
break;
|
|
36966
|
-
}
|
|
36967
|
-
}
|
|
36968
|
-
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
36969
|
-
}
|
|
37010
|
+
normalizeRanges(rng, restRanges, ci);
|
|
36970
37011
|
let next = rng.startContainer;
|
|
36971
37012
|
do {
|
|
36972
37013
|
if (!next) {
|
|
@@ -37012,6 +37053,61 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
37012
37053
|
function isSelectionWrapper(node) {
|
|
37013
37054
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
37014
37055
|
}
|
|
37056
|
+
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
37057
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
37058
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37059
|
+
typeof window.Highlight !== 'undefined') {
|
|
37060
|
+
const ranges = [rng, ...restRanges].map(rng => {
|
|
37061
|
+
const range = jodit.selection.createRange();
|
|
37062
|
+
range.setStart(rng.startContainer, rng.startOffset);
|
|
37063
|
+
range.setEnd(rng.endContainer, rng.endOffset);
|
|
37064
|
+
return range;
|
|
37065
|
+
});
|
|
37066
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37067
|
+
const searchHighlight = new Highlight(...ranges);
|
|
37068
|
+
// @ts-ignore
|
|
37069
|
+
CSS.highlights.clear();
|
|
37070
|
+
// @ts-ignore
|
|
37071
|
+
CSS.highlights.set('jodit-search-result', searchHighlight);
|
|
37072
|
+
restRanges.length = 0;
|
|
37073
|
+
return true;
|
|
37074
|
+
}
|
|
37075
|
+
return false;
|
|
37076
|
+
}
|
|
37077
|
+
function normalizeRanges(rng, restRanges, ci) {
|
|
37078
|
+
const startText = rng.startContainer.nodeValue;
|
|
37079
|
+
let diff = 0;
|
|
37080
|
+
if (rng.startOffset !== 0) {
|
|
37081
|
+
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
37082
|
+
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
37083
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
|
|
37084
|
+
if (rng.startContainer === rng.endContainer) {
|
|
37085
|
+
diff = rng.startOffset;
|
|
37086
|
+
rng.endOffset -= diff;
|
|
37087
|
+
}
|
|
37088
|
+
rng.startOffset = 0;
|
|
37089
|
+
}
|
|
37090
|
+
const endText = rng.endContainer.nodeValue;
|
|
37091
|
+
if (rng.endOffset !== endText.length) {
|
|
37092
|
+
const text = ci.text(endText.substring(rng.endOffset));
|
|
37093
|
+
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
37094
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
|
|
37095
|
+
for (const range of restRanges) {
|
|
37096
|
+
if (range.startContainer === rng.endContainer) {
|
|
37097
|
+
range.startContainer = text;
|
|
37098
|
+
range.startOffset = range.startOffset - rng.endOffset - diff;
|
|
37099
|
+
if (range.endContainer === rng.endContainer) {
|
|
37100
|
+
range.endContainer = text;
|
|
37101
|
+
range.endOffset = range.endOffset - rng.endOffset - diff;
|
|
37102
|
+
}
|
|
37103
|
+
}
|
|
37104
|
+
else {
|
|
37105
|
+
break;
|
|
37106
|
+
}
|
|
37107
|
+
}
|
|
37108
|
+
rng.endOffset = rng.endContainer.nodeValue.length;
|
|
37109
|
+
}
|
|
37110
|
+
}
|
|
37015
37111
|
|
|
37016
37112
|
|
|
37017
37113
|
/***/ }),
|
|
@@ -38449,9 +38545,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
38449
38545
|
"use strict";
|
|
38450
38546
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
38451
38547
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
38452
|
-
/* harmony import */ var
|
|
38453
|
-
/* harmony import */ var
|
|
38454
|
-
/* harmony import */ var
|
|
38548
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
38549
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9103);
|
|
38550
|
+
/* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
38455
38551
|
/*!
|
|
38456
38552
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38457
38553
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38461,9 +38557,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
|
|
|
38461
38557
|
|
|
38462
38558
|
|
|
38463
38559
|
|
|
38464
|
-
|
|
38465
|
-
|
|
38466
|
-
|
|
38560
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
|
|
38561
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
|
|
38562
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
|
|
38467
38563
|
/**
|
|
38468
38564
|
* Show gutter
|
|
38469
38565
|
*/
|
|
@@ -38485,15 +38581,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
|
|
|
38485
38581
|
*/
|
|
38486
38582
|
highlightActiveLine: true
|
|
38487
38583
|
};
|
|
38488
|
-
|
|
38584
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
|
|
38489
38585
|
'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
|
|
38490
38586
|
];
|
|
38491
|
-
|
|
38587
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
|
|
38492
38588
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
|
|
38493
38589
|
'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
|
|
38494
38590
|
];
|
|
38495
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (
|
|
38496
|
-
|
|
38591
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
38592
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
|
|
38497
38593
|
mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
|
|
38498
38594
|
exec: (editor) => {
|
|
38499
38595
|
editor.toggleMode();
|
|
@@ -39288,9 +39384,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
39288
39384
|
|
|
39289
39385
|
"use strict";
|
|
39290
39386
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
39291
|
-
/* harmony import */ var
|
|
39292
|
-
/* harmony import */ var
|
|
39293
|
-
/* harmony import */ var
|
|
39387
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
39388
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49989);
|
|
39389
|
+
/* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
39294
39390
|
/*!
|
|
39295
39391
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39296
39392
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39299,13 +39395,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
|
|
|
39299
39395
|
|
|
39300
39396
|
|
|
39301
39397
|
|
|
39302
|
-
|
|
39303
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (
|
|
39304
|
-
|
|
39398
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
|
|
39399
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
39400
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
|
|
39305
39401
|
isActive(e) {
|
|
39306
39402
|
return e.o.spellcheck;
|
|
39307
39403
|
},
|
|
39308
|
-
icon: (
|
|
39404
|
+
icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
39309
39405
|
name: 'spellcheck',
|
|
39310
39406
|
command: 'toggleSpellcheck',
|
|
39311
39407
|
tooltip: 'Spellcheck'
|
|
@@ -39683,9 +39779,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
39683
39779
|
|
|
39684
39780
|
"use strict";
|
|
39685
39781
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
|
|
39686
|
-
/* harmony import */ var
|
|
39687
|
-
/* harmony import */ var
|
|
39688
|
-
/* harmony import */ var
|
|
39782
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
|
|
39783
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81875);
|
|
39784
|
+
/* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
39689
39785
|
/*!
|
|
39690
39786
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39691
39787
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39694,8 +39790,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
|
|
|
39694
39790
|
|
|
39695
39791
|
|
|
39696
39792
|
|
|
39697
|
-
|
|
39698
|
-
|
|
39793
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
|
|
39794
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
|
|
39699
39795
|
'!',
|
|
39700
39796
|
'"',
|
|
39701
39797
|
'#',
|
|
@@ -39907,8 +40003,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
|
|
|
39907
40003
|
'♦',
|
|
39908
40004
|
'≈'
|
|
39909
40005
|
];
|
|
39910
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (
|
|
39911
|
-
|
|
40006
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
|
|
40007
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
|
|
39912
40008
|
hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
|
|
39913
40009
|
tooltip: 'Insert Special Character',
|
|
39914
40010
|
popup: (editor, current, close) => {
|
|
@@ -40393,38 +40489,10 @@ function tableKeyboardNavigation(editor) {
|
|
|
40393
40489
|
.off('.tableKeyboardNavigation')
|
|
40394
40490
|
.on('keydown.tableKeyboardNavigation', (event) => {
|
|
40395
40491
|
const { key } = event;
|
|
40396
|
-
|
|
40397
|
-
return;
|
|
40398
|
-
}
|
|
40399
|
-
const current = editor.s.current();
|
|
40400
|
-
if (!current) {
|
|
40401
|
-
return;
|
|
40402
|
-
}
|
|
40403
|
-
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);
|
|
40492
|
+
const cell = findCell(editor, key);
|
|
40404
40493
|
if (!cell) {
|
|
40405
40494
|
return;
|
|
40406
40495
|
}
|
|
40407
|
-
const { range } = editor.s;
|
|
40408
|
-
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
40409
|
-
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
40410
|
-
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
|
|
40411
|
-
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
40412
|
-
: Boolean(elm), cell);
|
|
40413
|
-
if ((!isNextDirection &&
|
|
40414
|
-
(hasNext ||
|
|
40415
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
40416
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
40417
|
-
range.startOffset !== 0))) ||
|
|
40418
|
-
(isNextDirection &&
|
|
40419
|
-
(hasNext ||
|
|
40420
|
-
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
40421
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
40422
|
-
current.nodeValue &&
|
|
40423
|
-
range.startOffset !==
|
|
40424
|
-
current.nodeValue.length)))) {
|
|
40425
|
-
return;
|
|
40426
|
-
}
|
|
40427
|
-
}
|
|
40428
40496
|
const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
|
|
40429
40497
|
const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
|
|
40430
40498
|
let next = null;
|
|
@@ -40482,6 +40550,40 @@ function tableKeyboardNavigation(editor) {
|
|
|
40482
40550
|
});
|
|
40483
40551
|
}
|
|
40484
40552
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
|
|
40553
|
+
function findCell(editor, key) {
|
|
40554
|
+
if (!WORK_KEYS.has(key)) {
|
|
40555
|
+
return;
|
|
40556
|
+
}
|
|
40557
|
+
const current = editor.s.current();
|
|
40558
|
+
if (!current) {
|
|
40559
|
+
return;
|
|
40560
|
+
}
|
|
40561
|
+
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);
|
|
40562
|
+
if (!cell) {
|
|
40563
|
+
return;
|
|
40564
|
+
}
|
|
40565
|
+
const { range } = editor.s;
|
|
40566
|
+
if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
|
|
40567
|
+
const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
|
|
40568
|
+
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
|
|
40569
|
+
? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
|
|
40570
|
+
: Boolean(elm), cell);
|
|
40571
|
+
if ((!isNextDirection &&
|
|
40572
|
+
(hasNext ||
|
|
40573
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
|
|
40574
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
40575
|
+
range.startOffset !== 0))) ||
|
|
40576
|
+
(isNextDirection &&
|
|
40577
|
+
(hasNext ||
|
|
40578
|
+
(key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
|
|
40579
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
|
|
40580
|
+
current.nodeValue &&
|
|
40581
|
+
range.startOffset !== current.nodeValue.length)))) {
|
|
40582
|
+
return;
|
|
40583
|
+
}
|
|
40584
|
+
}
|
|
40585
|
+
return cell;
|
|
40586
|
+
}
|
|
40485
40587
|
|
|
40486
40588
|
|
|
40487
40589
|
/***/ }),
|
|
@@ -40494,9 +40596,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
40494
40596
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
|
|
40495
40597
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
|
|
40496
40598
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
40497
|
-
/* harmony import */ var
|
|
40498
|
-
/* harmony import */ var
|
|
40499
|
-
/* harmony import */ var
|
|
40599
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
40600
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67447);
|
|
40601
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
40500
40602
|
/*!
|
|
40501
40603
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40502
40604
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40508,12 +40610,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
|
|
|
40508
40610
|
|
|
40509
40611
|
|
|
40510
40612
|
|
|
40511
|
-
|
|
40613
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
40512
40614
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
40513
40615
|
useExtraClassesOptions: false
|
|
40514
40616
|
};
|
|
40515
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (
|
|
40516
|
-
|
|
40617
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
40618
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
|
|
40517
40619
|
data: {
|
|
40518
40620
|
cols: 10,
|
|
40519
40621
|
rows: 10,
|
|
@@ -40680,10 +40782,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
40680
40782
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35265);
|
|
40681
40783
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20703);
|
|
40682
40784
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
|
|
40683
|
-
/* harmony import */ var
|
|
40684
|
-
/* harmony import */ var
|
|
40685
|
-
/* harmony import */ var
|
|
40686
|
-
/* harmony import */ var
|
|
40785
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
40786
|
+
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
|
|
40787
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36339);
|
|
40788
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
40687
40789
|
/*!
|
|
40688
40790
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40689
40791
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40696,8 +40798,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
|
|
|
40696
40798
|
|
|
40697
40799
|
|
|
40698
40800
|
|
|
40699
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (
|
|
40700
|
-
|
|
40801
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
40802
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
|
|
40701
40803
|
popup: (editor, current, close) => {
|
|
40702
40804
|
const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
|
|
40703
40805
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
|
|
@@ -40744,7 +40846,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
|
|
|
40744
40846
|
formCode.onSubmit(data => {
|
|
40745
40847
|
insertCode(data.code);
|
|
40746
40848
|
});
|
|
40747
|
-
return (0,
|
|
40849
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
|
|
40748
40850
|
},
|
|
40749
40851
|
tags: ['iframe'],
|
|
40750
40852
|
tooltip: 'Insert youtube/vimeo video'
|
|
@@ -42397,16 +42499,16 @@ var __webpack_exports__ = {};
|
|
|
42397
42499
|
__webpack_require__.r(__webpack_exports__);
|
|
42398
42500
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42399
42501
|
/* harmony export */ CommitMode: function() { return /* binding */ CommitMode; },
|
|
42400
|
-
/* harmony export */ Jodit: function() { return /* reexport safe */
|
|
42502
|
+
/* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
|
|
42401
42503
|
/* harmony export */ });
|
|
42402
|
-
/* harmony import */ var
|
|
42403
|
-
/* harmony import */ var
|
|
42504
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46173);
|
|
42505
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
|
|
42404
42506
|
/* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17352);
|
|
42405
42507
|
/* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22664);
|
|
42406
42508
|
/* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37435);
|
|
42407
42509
|
/* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79721);
|
|
42408
|
-
/* harmony import */ var
|
|
42409
|
-
/* harmony import */ var
|
|
42510
|
+
/* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74470);
|
|
42511
|
+
/* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88222);
|
|
42410
42512
|
/*!
|
|
42411
42513
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42412
42514
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42417,6 +42519,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42417
42519
|
* @packageDocumentation
|
|
42418
42520
|
* @module jodit
|
|
42419
42521
|
*/
|
|
42522
|
+
// eslint-disable-next-line simple-import-sort/imports
|
|
42420
42523
|
|
|
42421
42524
|
|
|
42422
42525
|
|
|
@@ -42429,7 +42532,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42429
42532
|
|
|
42430
42533
|
// copy constants in Jodit
|
|
42431
42534
|
Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
|
|
42432
|
-
|
|
42535
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
42433
42536
|
});
|
|
42434
42537
|
const esFilter = (key) => key !== '__esModule';
|
|
42435
42538
|
// Icons
|
|
@@ -42444,32 +42547,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
|
|
|
42444
42547
|
.forEach((key) => {
|
|
42445
42548
|
// @ts-ignore
|
|
42446
42549
|
const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
42447
|
-
const name = (0,
|
|
42550
|
+
const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)(module.prototype?.className)
|
|
42448
42551
|
? module.prototype.className()
|
|
42449
42552
|
: key;
|
|
42450
|
-
if (!(0,
|
|
42553
|
+
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
|
|
42451
42554
|
console.warn('Module name must be a string', key);
|
|
42452
42555
|
return;
|
|
42453
42556
|
}
|
|
42454
42557
|
// @ts-ignore
|
|
42455
|
-
|
|
42558
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
|
|
42456
42559
|
});
|
|
42457
42560
|
// Decorators
|
|
42458
42561
|
Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
|
|
42459
42562
|
.filter(esFilter)
|
|
42460
42563
|
.forEach((key) => {
|
|
42461
42564
|
// @ts-ignore
|
|
42462
|
-
|
|
42565
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
42463
42566
|
});
|
|
42464
42567
|
['Confirm', 'Alert', 'Prompt'].forEach((key) => {
|
|
42465
42568
|
// @ts-ignore
|
|
42466
|
-
|
|
42569
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
|
|
42467
42570
|
});
|
|
42468
42571
|
// Languages
|
|
42469
|
-
Object.keys(
|
|
42572
|
+
Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
|
|
42470
42573
|
.filter(esFilter)
|
|
42471
42574
|
.forEach((key) => {
|
|
42472
|
-
|
|
42575
|
+
_jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
|
|
42473
42576
|
});
|
|
42474
42577
|
|
|
42475
42578
|
class CommitMode {
|