jodit 4.20.5 → 4.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +0 -1
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +558 -210
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +12 -12
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +2 -2
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +12 -12
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +12 -12
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +550 -203
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +17 -17
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +2 -2
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +550 -203
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +32 -32
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +2 -2
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +595 -177
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +2 -2
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +1 -29
- package/es5/polyfills.min.js +2 -2
- package/esm/config.d.ts +18 -0
- package/esm/core/constants.d.ts +6 -0
- package/esm/core/constants.js +18 -1
- package/esm/core/helpers/html/clean-from-word.d.ts +3 -1
- package/esm/core/helpers/html/clean-from-word.js +87 -11
- package/esm/core/helpers/utils/selector.js +4 -3
- package/esm/plugins/hr/hr.js +290 -1
- package/esm/plugins/inline-popup/config/config.js +2 -0
- package/esm/plugins/inline-popup/config/items/hr.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/hr.js +15 -0
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
- package/esm/plugins/link/config.d.ts +7 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.js +20 -16
- package/esm/plugins/paste/config.d.ts +5 -0
- package/esm/plugins/paste/config.js +2 -1
- package/esm/plugins/paste/paste.js +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.js +2 -2
- package/esm/plugins/symbols/config.d.ts +6 -0
- package/esm/plugins/symbols/config.js +1 -0
- package/esm/plugins/symbols/symbols.d.ts +0 -1
- package/esm/plugins/symbols/symbols.js +12 -10
- package/package.json +1 -1
- package/types/config.d.ts +18 -0
- package/types/core/constants.d.ts +6 -0
- package/types/core/helpers/html/clean-from-word.d.ts +3 -1
- package/types/plugins/inline-popup/config/items/hr.d.ts +11 -0
- package/types/plugins/link/config.d.ts +7 -0
- package/types/plugins/paste/config.d.ts +5 -0
- package/types/plugins/symbols/config.d.ts +6 -0
- package/types/plugins/symbols/symbols.d.ts +0 -1
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.21.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1154,7 +1154,6 @@ Config.prototype.controls = {};
|
|
|
1154
1154
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(85932);
|
|
1155
1155
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(18303);
|
|
1156
1156
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
|
|
1157
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__);
|
|
1158
1157
|
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(14228);
|
|
1159
1158
|
/*!
|
|
1160
1159
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -2125,6 +2124,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2125
2124
|
/* harmony export */ NO_EMPTY_TAGS: function() { return /* binding */ NO_EMPTY_TAGS; },
|
|
2126
2125
|
/* harmony export */ PARAGRAPH: function() { return /* binding */ PARAGRAPH; },
|
|
2127
2126
|
/* harmony export */ PASSIVE_EVENTS: function() { return /* binding */ PASSIVE_EVENTS; },
|
|
2127
|
+
/* harmony export */ PASTE_KEEP_ATTRIBUTES: function() { return /* binding */ PASTE_KEEP_ATTRIBUTES; },
|
|
2128
2128
|
/* harmony export */ SAFE_COUNT_CHANGE_CALL: function() { return /* binding */ SAFE_COUNT_CHANGE_CALL; },
|
|
2129
2129
|
/* harmony export */ SET_TEST: function() { return /* binding */ SET_TEST; },
|
|
2130
2130
|
/* harmony export */ SOURCE_CONSUMER: function() { return /* binding */ SOURCE_CONSUMER; },
|
|
@@ -2155,7 +2155,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2155
2155
|
* @packageDocumentation
|
|
2156
2156
|
* @module constants
|
|
2157
2157
|
*/
|
|
2158
|
-
var APP_VERSION = "4.
|
|
2158
|
+
var APP_VERSION = "4.21.1";
|
|
2159
2159
|
// prettier-ignore
|
|
2160
2160
|
var ES = "es5";
|
|
2161
2161
|
var IS_ES_MODERN = false;
|
|
@@ -2306,6 +2306,22 @@ var EMULATE_DBLCLICK_TIMEOUT = 300;
|
|
|
2306
2306
|
* test
|
|
2307
2307
|
* ```
|
|
2308
2308
|
*/ var INSERT_ONLY_TEXT = 'insert_only_text';
|
|
2309
|
+
/**
|
|
2310
|
+
* The attributes a clean paste ([[INSERT_CLEAR_HTML]], and Clean for HTML from
|
|
2311
|
+
* Word) keeps by default: what links and media need, and what carries a table's
|
|
2312
|
+
* structure or the meaning of an image or a link
|
|
2313
|
+
*/ var PASTE_KEEP_ATTRIBUTES = [
|
|
2314
|
+
'src',
|
|
2315
|
+
'href',
|
|
2316
|
+
'rel',
|
|
2317
|
+
'content',
|
|
2318
|
+
'alt',
|
|
2319
|
+
'title',
|
|
2320
|
+
'colspan',
|
|
2321
|
+
'rowspan',
|
|
2322
|
+
'scope',
|
|
2323
|
+
'target'
|
|
2324
|
+
];
|
|
2309
2325
|
var SAFE_COUNT_CHANGE_CALL = 10;
|
|
2310
2326
|
// Connector answer code for a file name that is already taken (same as the HTTP status)
|
|
2311
2327
|
var ERROR_CODE_CONFLICT = 409;
|
|
@@ -2400,7 +2416,6 @@ var PASSIVE_EVENTS = new Set([
|
|
|
2400
2416
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
|
|
2401
2417
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65946);
|
|
2402
2418
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28712);
|
|
2403
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_6__);
|
|
2404
2419
|
/*!
|
|
2405
2420
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
2406
2421
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -2960,7 +2975,6 @@ function getComponentClass(name) {
|
|
|
2960
2975
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16964);
|
|
2961
2976
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28686);
|
|
2962
2977
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
2963
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
2964
2978
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33201);
|
|
2965
2979
|
/*!
|
|
2966
2980
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -3479,7 +3493,6 @@ function wait(condition) {
|
|
|
3479
3493
|
/* harmony import */ var jodit_core_helpers_html_tag_scan__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(81910);
|
|
3480
3494
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(4040);
|
|
3481
3495
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(28712);
|
|
3482
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16__);
|
|
3483
3496
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7909);
|
|
3484
3497
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(80991);
|
|
3485
3498
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(36400);
|
|
@@ -5573,7 +5586,6 @@ function isObservableObject(obj) {
|
|
|
5573
5586
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25045);
|
|
5574
5587
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88475);
|
|
5575
5588
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
5576
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
5577
5589
|
/*!
|
|
5578
5590
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5579
5591
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7128,10 +7140,102 @@ function normalizeCSS(s) {
|
|
|
7128
7140
|
|
|
7129
7141
|
|
|
7130
7142
|
|
|
7143
|
+
/**
|
|
7144
|
+
* Google Docs marks bold, italic, underline and strikethrough with styles on
|
|
7145
|
+
* spans, where Word uses tags, so they become the tags before the styles go
|
|
7146
|
+
*/ function formattedSpansToTags(root) {
|
|
7147
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('span[style]')).forEach(function(span) {
|
|
7148
|
+
var _span_style = span.style, fontWeight = _span_style.fontWeight, fontStyle = _span_style.fontStyle;
|
|
7149
|
+
var lines = span.style.textDecorationLine || span.style.textDecoration;
|
|
7150
|
+
var tags = [
|
|
7151
|
+
(fontWeight === 'bold' || fontWeight === 'bolder' || parseInt(fontWeight, 10) >= 600) && 'strong',
|
|
7152
|
+
/^(italic|oblique)/.test(fontStyle) && 'em',
|
|
7153
|
+
/underline/.test(lines) && 'u',
|
|
7154
|
+
/line-through/.test(lines) && 's'
|
|
7155
|
+
].filter(function(tag) {
|
|
7156
|
+
return Boolean(tag);
|
|
7157
|
+
});
|
|
7158
|
+
if (!tags.length) {
|
|
7159
|
+
return;
|
|
7160
|
+
}
|
|
7161
|
+
var elements = tags.map(function(tag) {
|
|
7162
|
+
return span.ownerDocument.createElement(tag);
|
|
7163
|
+
});
|
|
7164
|
+
// The outermost takes the span's attributes, which the cleaning
|
|
7165
|
+
// that follows filters as it would the span's
|
|
7166
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(span.attributes).forEach(function(param) {
|
|
7167
|
+
var name = param.name, value = param.value;
|
|
7168
|
+
return elements[0].setAttribute(name, value);
|
|
7169
|
+
});
|
|
7170
|
+
elements.reduce(function(parent, child) {
|
|
7171
|
+
return parent.appendChild(child);
|
|
7172
|
+
});
|
|
7173
|
+
var innermost = elements[elements.length - 1];
|
|
7174
|
+
while(span.firstChild){
|
|
7175
|
+
innermost.appendChild(span.firstChild);
|
|
7176
|
+
}
|
|
7177
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(span, elements[0]);
|
|
7178
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(span);
|
|
7179
|
+
});
|
|
7180
|
+
}
|
|
7181
|
+
/**
|
|
7182
|
+
* Takes `node` out of `format`, which stays around the rest of its content
|
|
7183
|
+
*/ function liftOut(node, format) {
|
|
7184
|
+
var range = node.ownerDocument.createRange();
|
|
7185
|
+
var wrap = function wrap() {
|
|
7186
|
+
if (!range.collapsed) {
|
|
7187
|
+
range.surroundContents(format.cloneNode());
|
|
7188
|
+
}
|
|
7189
|
+
};
|
|
7190
|
+
for(var child = node; child !== format; child = child.parentNode){
|
|
7191
|
+
range.selectNodeContents(child.parentNode);
|
|
7192
|
+
range.setEndBefore(child);
|
|
7193
|
+
wrap();
|
|
7194
|
+
range.selectNodeContents(child.parentNode);
|
|
7195
|
+
range.setStartAfter(child);
|
|
7196
|
+
wrap();
|
|
7197
|
+
}
|
|
7198
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(format);
|
|
7199
|
+
}
|
|
7200
|
+
/**
|
|
7201
|
+
* An element styled with a normal weight or style comes out of the bold or
|
|
7202
|
+
* italic tags around it, which would make it bold or italic once the styles go.
|
|
7203
|
+
* CSS can't take an ancestor's underline or strikethrough off, so they have no
|
|
7204
|
+
* such reset
|
|
7205
|
+
*/ function liftOutNormalFormatting(root) {
|
|
7206
|
+
var liftOutOf = function liftOutOf(element, tags) {
|
|
7207
|
+
var format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
|
|
7208
|
+
while(format){
|
|
7209
|
+
liftOut(element, format);
|
|
7210
|
+
format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
|
|
7211
|
+
}
|
|
7212
|
+
};
|
|
7213
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('[style]')).forEach(function(element) {
|
|
7214
|
+
var _element_style = element.style, fontWeight = _element_style.fontWeight, fontStyle = _element_style.fontStyle;
|
|
7215
|
+
if (fontWeight === 'normal' || fontWeight === 'lighter' || parseInt(fontWeight, 10) < 600) {
|
|
7216
|
+
liftOutOf(element, [
|
|
7217
|
+
'strong',
|
|
7218
|
+
'b'
|
|
7219
|
+
]);
|
|
7220
|
+
}
|
|
7221
|
+
if (fontStyle === 'normal') {
|
|
7222
|
+
liftOutOf(element, [
|
|
7223
|
+
'em',
|
|
7224
|
+
'i'
|
|
7225
|
+
]);
|
|
7226
|
+
}
|
|
7227
|
+
});
|
|
7228
|
+
}
|
|
7131
7229
|
/**
|
|
7132
7230
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
7133
7231
|
* content that matches the look and feel of the site.
|
|
7232
|
+
*
|
|
7233
|
+
* @param keepAttributes - The attributes to keep; every other attribute, and every style, is removed
|
|
7134
7234
|
*/ function cleanFromWord(html) {
|
|
7235
|
+
var keepAttributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.PASTE_KEEP_ATTRIBUTES;
|
|
7236
|
+
var keep = new Set(keepAttributes.map(function(name) {
|
|
7237
|
+
return name.toLowerCase();
|
|
7238
|
+
}));
|
|
7135
7239
|
if (html.indexOf('<html ') !== -1) {
|
|
7136
7240
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
7137
7241
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
@@ -7142,6 +7246,8 @@ function normalizeCSS(s) {
|
|
|
7142
7246
|
div.innerHTML = html;
|
|
7143
7247
|
var marks = [];
|
|
7144
7248
|
var listItems = (0,jodit_core_helpers_html_word_lists__WEBPACK_IMPORTED_MODULE_4__.readWordListItems)(div);
|
|
7249
|
+
formattedSpansToTags(div);
|
|
7250
|
+
liftOutNormalFormatting(div);
|
|
7145
7251
|
if (div.firstChild) {
|
|
7146
7252
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.each(div, function(node) {
|
|
7147
7253
|
if (!node) {
|
|
@@ -7171,12 +7277,7 @@ function normalizeCSS(s) {
|
|
|
7171
7277
|
break;
|
|
7172
7278
|
}
|
|
7173
7279
|
;(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(node.attributes).forEach(function(attribute) {
|
|
7174
|
-
if (
|
|
7175
|
-
'src',
|
|
7176
|
-
'href',
|
|
7177
|
-
'rel',
|
|
7178
|
-
'content'
|
|
7179
|
-
].indexOf(attribute.name.toLowerCase()) === -1) {
|
|
7280
|
+
if (!keep.has(attribute.name.toLowerCase())) {
|
|
7180
7281
|
// `attrRaw`: SVG keeps camelCase names
|
|
7181
7282
|
// (`viewBox`), `attr()` would kebab-case
|
|
7182
7283
|
// them and silently skip the removal
|
|
@@ -11706,16 +11807,17 @@ var $$temp = function $$temp() {
|
|
|
11706
11807
|
var path = [];
|
|
11707
11808
|
var start = el;
|
|
11708
11809
|
while(start && start.nodeType === Node.ELEMENT_NODE){
|
|
11709
|
-
var
|
|
11810
|
+
var tag = start.nodeName.toLowerCase();
|
|
11811
|
+
var selector = CSS.escape(tag);
|
|
11710
11812
|
if (start.id) {
|
|
11711
|
-
selector += '#' + start.id;
|
|
11813
|
+
selector += '#' + CSS.escape(start.id);
|
|
11712
11814
|
path.unshift(selector);
|
|
11713
11815
|
break;
|
|
11714
11816
|
} else {
|
|
11715
11817
|
var sib = start, nth = 1;
|
|
11716
11818
|
do {
|
|
11717
11819
|
sib = sib.previousElementSibling;
|
|
11718
|
-
if (sib && sib.nodeName.toLowerCase() ===
|
|
11820
|
+
if (sib && sib.nodeName.toLowerCase() === tag) {
|
|
11719
11821
|
nth++;
|
|
11720
11822
|
}
|
|
11721
11823
|
}while (sib);
|
|
@@ -13514,7 +13616,6 @@ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild,
|
|
|
13514
13616
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28686);
|
|
13515
13617
|
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(16849);
|
|
13516
13618
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(28712);
|
|
13517
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_14__);
|
|
13518
13619
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7470);
|
|
13519
13620
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(84578);
|
|
13520
13621
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(42259);
|
|
@@ -15474,7 +15575,6 @@ var Selection = /*#__PURE__*/ function() {
|
|
|
15474
15575
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81937);
|
|
15475
15576
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85932);
|
|
15476
15577
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28712);
|
|
15477
|
-
/* 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__);
|
|
15478
15578
|
/*!
|
|
15479
15579
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15480
15580
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15655,7 +15755,6 @@ var Selection = /*#__PURE__*/ function() {
|
|
|
15655
15755
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18303);
|
|
15656
15756
|
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19147);
|
|
15657
15757
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
15658
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
15659
15758
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80991);
|
|
15660
15759
|
/*!
|
|
15661
15760
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -15835,7 +15934,6 @@ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
|
15835
15934
|
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18073);
|
|
15836
15935
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93640);
|
|
15837
15936
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
15838
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
15839
15937
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
15840
15938
|
/* harmony import */ var _has_same_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9703);
|
|
15841
15939
|
/*!
|
|
@@ -15975,7 +16073,6 @@ function elementsEqualAttributes(elm1, elm2) {
|
|
|
15975
16073
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
15976
16074
|
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18073);
|
|
15977
16075
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
15978
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
15979
16076
|
/* harmony import */ var jodit_core_selection_style_api_extract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17481);
|
|
15980
16077
|
/* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95971);
|
|
15981
16078
|
/* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82794);
|
|
@@ -16894,7 +16991,6 @@ var CommitStyle = /*#__PURE__*/ function() {
|
|
|
16894
16991
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81937);
|
|
16895
16992
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
|
|
16896
16993
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28712);
|
|
16897
|
-
/* 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__);
|
|
16898
16994
|
/* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51640);
|
|
16899
16995
|
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98394);
|
|
16900
16996
|
/*!
|
|
@@ -18558,7 +18654,6 @@ var Mods = /*#__PURE__*/ function() {
|
|
|
18558
18654
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91565);
|
|
18559
18655
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(85932);
|
|
18560
18656
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
|
|
18561
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__);
|
|
18562
18657
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(7909);
|
|
18563
18658
|
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96007);
|
|
18564
18659
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(29434);
|
|
@@ -18963,7 +19058,6 @@ function Button(jodit, stateOrText, text, variant) {
|
|
|
18963
19058
|
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91672);
|
|
18964
19059
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23211);
|
|
18965
19060
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
|
|
18966
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
|
|
18967
19061
|
/* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(53681);
|
|
18968
19062
|
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(63468);
|
|
18969
19063
|
/*!
|
|
@@ -21779,7 +21873,6 @@ var Icon = /*#__PURE__*/ function() {
|
|
|
21779
21873
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(28077);
|
|
21780
21874
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(65946);
|
|
21781
21875
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(28712);
|
|
21782
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_16__);
|
|
21783
21876
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(80991);
|
|
21784
21877
|
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(96007);
|
|
21785
21878
|
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(63468);
|
|
@@ -25053,7 +25146,6 @@ ContextMenu = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__._)([
|
|
|
25053
25146
|
/* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(22852);
|
|
25054
25147
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(93640);
|
|
25055
25148
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(28712);
|
|
25056
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19__);
|
|
25057
25149
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4099);
|
|
25058
25150
|
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(35099);
|
|
25059
25151
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(2222);
|
|
@@ -31409,7 +31501,6 @@ var instance = function instance(j) {
|
|
|
31409
31501
|
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(86878);
|
|
31410
31502
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(57821);
|
|
31411
31503
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(28712);
|
|
31412
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_27__);
|
|
31413
31504
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(7909);
|
|
31414
31505
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(71125);
|
|
31415
31506
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(59400);
|
|
@@ -44244,12 +44335,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_7__.pluginSystem.add('hotkeys', hotke
|
|
|
44244
44335
|
|
|
44245
44336
|
"use strict";
|
|
44246
44337
|
/* unused harmony export hr */
|
|
44247
|
-
/* harmony import */ var
|
|
44248
|
-
/* harmony import */ var
|
|
44249
|
-
/* harmony import */ var
|
|
44250
|
-
/* harmony import */ var
|
|
44251
|
-
/* harmony import */ var
|
|
44252
|
-
/* harmony import */ var
|
|
44338
|
+
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50684);
|
|
44339
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
|
|
44340
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27795);
|
|
44341
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28077);
|
|
44342
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65946);
|
|
44343
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29434);
|
|
44344
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5266);
|
|
44345
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89097);
|
|
44346
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
44253
44347
|
/*!
|
|
44254
44348
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
44255
44349
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -44263,8 +44357,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_7__.pluginSystem.add('hotkeys', hotke
|
|
|
44263
44357
|
|
|
44264
44358
|
|
|
44265
44359
|
|
|
44266
|
-
|
|
44267
|
-
|
|
44360
|
+
|
|
44361
|
+
|
|
44362
|
+
|
|
44363
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_7___default()));
|
|
44364
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.controls.hr = {
|
|
44268
44365
|
command: 'insertHorizontalRule',
|
|
44269
44366
|
tooltip: 'Insert Horizontal Line'
|
|
44270
44367
|
};
|
|
@@ -44277,36 +44374,307 @@ function hr(editor) {
|
|
|
44277
44374
|
var _editor_o_dtd;
|
|
44278
44375
|
var elm = editor.createInside.element('hr');
|
|
44279
44376
|
editor.s.insertNode(elm, false, false);
|
|
44280
|
-
var block =
|
|
44377
|
+
var block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
|
|
44281
44378
|
// A block that holds other blocks, such as a list item or a table
|
|
44282
44379
|
// cell, keeps the line
|
|
44283
|
-
if (block &&
|
|
44284
|
-
|
|
44285
|
-
|
|
44380
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmpty(block) && block !== editor.editor && !((_editor_o_dtd = editor.o.dtd) === null || _editor_o_dtd === void 0 ? void 0 : _editor_o_dtd.blockLimits[block.nodeName.toLowerCase()])) {
|
|
44381
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.after(block, elm);
|
|
44382
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove(block);
|
|
44286
44383
|
}
|
|
44287
|
-
var next =
|
|
44288
|
-
if (
|
|
44384
|
+
var next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.findNotEmptySibling(elm, false);
|
|
44385
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(next)) {
|
|
44289
44386
|
editor.s.setCursorIn(next, true);
|
|
44290
44387
|
return false;
|
|
44291
44388
|
}
|
|
44292
44389
|
// In a list item or a table cell the text goes on after the line, as
|
|
44293
44390
|
// it does with the browsers' own command
|
|
44294
|
-
if (next || elm.parentNode !== editor.editor && !
|
|
44391
|
+
if (next || elm.parentNode !== editor.editor && !jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.findNotEmptySibling(elm, true))) {
|
|
44295
44392
|
editor.s.setCursorAfter(elm);
|
|
44296
44393
|
return false;
|
|
44297
44394
|
}
|
|
44298
44395
|
var p = editor.createInside.element(editor.o.enter);
|
|
44299
44396
|
// As Enter's new line has, so it keeps its height without clean-html's
|
|
44300
44397
|
// fillEmptyParagraph (#1807)
|
|
44301
|
-
if (!
|
|
44302
|
-
|
|
44398
|
+
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(p, 'br')) {
|
|
44399
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(p, editor.createInside.element('br'));
|
|
44303
44400
|
}
|
|
44304
|
-
|
|
44401
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.after(elm, p);
|
|
44305
44402
|
editor.s.setCursorIn(p);
|
|
44306
44403
|
return false;
|
|
44307
44404
|
});
|
|
44405
|
+
// A horizontal line is selected whole, as an image is: by a click on it,
|
|
44406
|
+
// or by an arrow key that comes to it (#1802)
|
|
44407
|
+
var nearest = function nearest(node, forward) {
|
|
44408
|
+
while(node && jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(node)){
|
|
44409
|
+
node = forward ? node.nextSibling : node.previousSibling;
|
|
44410
|
+
}
|
|
44411
|
+
return node;
|
|
44412
|
+
};
|
|
44413
|
+
var beside = function beside(node, forward) {
|
|
44414
|
+
return nearest(forward ? node.nextSibling : node.previousSibling, forward);
|
|
44415
|
+
};
|
|
44416
|
+
// A line between blocks, where the caret beside it isn't in a line of
|
|
44417
|
+
// text, as it is in a list item or a table cell (#1606)
|
|
44418
|
+
var isLoose = function isLoose(node) {
|
|
44419
|
+
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'hr') && node.parentNode === editor.editor && editor.o.enter.toLowerCase() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.BR;
|
|
44420
|
+
};
|
|
44421
|
+
// The line a range holds, and nothing else
|
|
44422
|
+
var lineIn = function lineIn(range) {
|
|
44423
|
+
var box = range.startContainer, startOffset = range.startOffset;
|
|
44424
|
+
var node = box.childNodes[startOffset];
|
|
44425
|
+
return box === range.endContainer && range.endOffset === startOffset + 1 && jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'hr') && editor.editor.contains(node) ? node : null;
|
|
44426
|
+
};
|
|
44427
|
+
// The browsers don't draw a selection round a line, so a rule in the
|
|
44428
|
+
// editor's document frames it, as the table module marks cells
|
|
44429
|
+
var framed = null;
|
|
44430
|
+
var frame = function frame(line) {
|
|
44431
|
+
if (line === framed) {
|
|
44432
|
+
return;
|
|
44433
|
+
}
|
|
44434
|
+
framed = line;
|
|
44435
|
+
var path = line && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.cssPath)(line);
|
|
44436
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.getContainer)(editor, 'hr', 'style', true).innerHTML = path ? "".concat(path, "{outline:3px solid var(--jd-resizer-border-color,#98c1f1);outline-offset:3px}") : '';
|
|
44437
|
+
};
|
|
44438
|
+
var editable = function editable() {
|
|
44439
|
+
return !editor.o.readonly && !editor.isLocked;
|
|
44440
|
+
};
|
|
44441
|
+
var plain = function plain(e) {
|
|
44442
|
+
return !e.shiftKey && !e.ctrlKey && !e.metaKey && !e.altKey;
|
|
44443
|
+
};
|
|
44444
|
+
var newLine = function newLine(node, after) {
|
|
44445
|
+
var p = editor.createInside.element(editor.o.enter);
|
|
44446
|
+
var br = editor.createInside.element('br');
|
|
44447
|
+
p.appendChild(br);
|
|
44448
|
+
after ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.after(node, p) : jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.before(node, p);
|
|
44449
|
+
editor.s.setCursorBefore(br);
|
|
44450
|
+
};
|
|
44451
|
+
// On from a line the way an arrow key goes: to the next line in a row,
|
|
44452
|
+
// which is selected in turn, or into the text beyond, or into a new
|
|
44453
|
+
// paragraph at the start or end of the content
|
|
44454
|
+
var pass = function pass(line, forward) {
|
|
44455
|
+
var next = beside(line, forward);
|
|
44456
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(next, 'hr')) {
|
|
44457
|
+
editor.s.select(next);
|
|
44458
|
+
} else if (next) {
|
|
44459
|
+
editor.s.setCursorIn(next, forward);
|
|
44460
|
+
} else {
|
|
44461
|
+
newLine(line, forward);
|
|
44462
|
+
}
|
|
44463
|
+
};
|
|
44464
|
+
// Only the line goes, without joining the lines either side. Backspace
|
|
44465
|
+
// leaves the caret at the end of the line before, Delete at the start of
|
|
44466
|
+
// the line after, or the other side at the start or end of the content
|
|
44467
|
+
var remove = function remove(line, forward) {
|
|
44468
|
+
var before = beside(line, false);
|
|
44469
|
+
var after = beside(line, true);
|
|
44470
|
+
var next = forward ? after !== null && after !== void 0 ? after : before : before !== null && before !== void 0 ? before : after;
|
|
44471
|
+
if (!next) {
|
|
44472
|
+
newLine(line, true);
|
|
44473
|
+
}
|
|
44474
|
+
editor.s.removeNode(line);
|
|
44475
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(next, 'hr')) {
|
|
44476
|
+
editor.s.select(next);
|
|
44477
|
+
} else if (next) {
|
|
44478
|
+
editor.s.setCursorIn(next, next === after);
|
|
44479
|
+
}
|
|
44480
|
+
};
|
|
44481
|
+
// The nodes either side of a caret left beside a line in the editor
|
|
44482
|
+
// itself, outside any line of text, as a click beside the line, Jodit's
|
|
44483
|
+
// own delete or a paste leaves it
|
|
44484
|
+
var around = function around(range) {
|
|
44485
|
+
var _box_childNodes_, _box_childNodes_startOffset;
|
|
44486
|
+
var box = range.startContainer, startOffset = range.startOffset;
|
|
44487
|
+
if (!range.collapsed || box !== editor.editor) {
|
|
44488
|
+
return null;
|
|
44489
|
+
}
|
|
44490
|
+
var before = nearest((_box_childNodes_ = box.childNodes[startOffset - 1]) !== null && _box_childNodes_ !== void 0 ? _box_childNodes_ : null, false);
|
|
44491
|
+
var after = nearest((_box_childNodes_startOffset = box.childNodes[startOffset]) !== null && _box_childNodes_startOffset !== void 0 ? _box_childNodes_startOffset : null, true);
|
|
44492
|
+
return isLoose(before) || isLoose(after) ? [
|
|
44493
|
+
before,
|
|
44494
|
+
after
|
|
44495
|
+
] : null;
|
|
44496
|
+
};
|
|
44497
|
+
// After a click beside a line, off it, the caret goes to the nearest line
|
|
44498
|
+
// of text: the one above for a click above the line, the one below for a
|
|
44499
|
+
// click below
|
|
44500
|
+
var leave = function leave() {
|
|
44501
|
+
var sides = around(editor.s.range);
|
|
44502
|
+
if (!sides || !editable()) {
|
|
44503
|
+
return;
|
|
44504
|
+
}
|
|
44505
|
+
var _sides = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__._)(sides, 2), before = _sides[0], after = _sides[1];
|
|
44506
|
+
var forward = !isLoose(after);
|
|
44507
|
+
var edge = forward ? before : after;
|
|
44508
|
+
var next = forward ? after : before;
|
|
44509
|
+
while(isLoose(next)){
|
|
44510
|
+
edge = next;
|
|
44511
|
+
next = beside(next, forward);
|
|
44512
|
+
}
|
|
44513
|
+
if (next) {
|
|
44514
|
+
editor.s.setCursorIn(next, forward);
|
|
44515
|
+
} else if (edge) {
|
|
44516
|
+
newLine(edge, forward);
|
|
44517
|
+
editor.synchronizeValues();
|
|
44518
|
+
}
|
|
44519
|
+
};
|
|
44520
|
+
// The browsers stop the caret beside a line, so an arrow key that takes
|
|
44521
|
+
// the caret out of a block towards a line selects the line instead
|
|
44522
|
+
var arriveAt = function arriveAt(from, forward) {
|
|
44523
|
+
var top = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.up(from.startContainer, function(node) {
|
|
44524
|
+
return (node === null || node === void 0 ? void 0 : node.parentNode) === editor.editor;
|
|
44525
|
+
}, editor.editor);
|
|
44526
|
+
var next = top && beside(top, forward);
|
|
44527
|
+
if (!top || !isLoose(next)) {
|
|
44528
|
+
return;
|
|
44529
|
+
}
|
|
44530
|
+
// Once the browser has moved the caret
|
|
44531
|
+
editor.async.setTimeout(function() {
|
|
44532
|
+
var range = editor.s.range;
|
|
44533
|
+
if (range.collapsed && !top.contains(range.startContainer) && editor.editor.contains(next)) {
|
|
44534
|
+
editor.s.select(next);
|
|
44535
|
+
}
|
|
44536
|
+
}, 1);
|
|
44537
|
+
};
|
|
44538
|
+
// Delete or Backspace in an empty block next to a line removes the block
|
|
44539
|
+
// and selects the line, as it was before Enter on it. Jodit's own delete
|
|
44540
|
+
// would leave the caret beside the line
|
|
44541
|
+
var deleteEmpty = function deleteEmpty(range, forward) {
|
|
44542
|
+
var block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(range.startContainer, jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
|
|
44543
|
+
var next = block && beside(block, forward);
|
|
44544
|
+
if (!block || block.parentNode !== editor.editor || !isLoose(next) || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmpty(block)) {
|
|
44545
|
+
return false;
|
|
44546
|
+
}
|
|
44547
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.safeRemove(block);
|
|
44548
|
+
editor.s.select(next);
|
|
44549
|
+
return true;
|
|
44550
|
+
};
|
|
44551
|
+
// A key with the caret in a line of text, or beside a line: an arrow
|
|
44552
|
+
// key, Delete or Backspace that goes to a line selects it
|
|
44553
|
+
var atCaret = function atCaret(e, range) {
|
|
44554
|
+
var deleting = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DELETE;
|
|
44555
|
+
var forward = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_RIGHT || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DELETE;
|
|
44556
|
+
var arrow = forward ? e.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DELETE : e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT;
|
|
44557
|
+
if (!range.collapsed || !plain(e) || !(arrow || deleting)) {
|
|
44558
|
+
return false;
|
|
44559
|
+
}
|
|
44560
|
+
var sides = around(range);
|
|
44561
|
+
if (!sides) {
|
|
44562
|
+
if (arrow) {
|
|
44563
|
+
arriveAt(range, forward);
|
|
44564
|
+
return false;
|
|
44565
|
+
}
|
|
44566
|
+
return deleteEmpty(range, forward);
|
|
44567
|
+
}
|
|
44568
|
+
var _sides = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__._)(sides, 2), before = _sides[0], after = _sides[1];
|
|
44569
|
+
var next = forward ? after : before;
|
|
44570
|
+
if (isLoose(next)) {
|
|
44571
|
+
editor.s.select(next);
|
|
44572
|
+
} else if (deleting) {
|
|
44573
|
+
return false;
|
|
44574
|
+
} else if (next) {
|
|
44575
|
+
editor.s.setCursorIn(next, forward);
|
|
44576
|
+
} else {
|
|
44577
|
+
newLine(forward ? before : after, forward);
|
|
44578
|
+
}
|
|
44579
|
+
return true;
|
|
44580
|
+
};
|
|
44581
|
+
// A key with a line selected
|
|
44582
|
+
var onLine = function onLine(e, line) {
|
|
44583
|
+
var back = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT;
|
|
44584
|
+
if (plain(e) && (back || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_RIGHT)) {
|
|
44585
|
+
pass(line, !back);
|
|
44586
|
+
} else if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DELETE) {
|
|
44587
|
+
remove(line, e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DELETE);
|
|
44588
|
+
} else {
|
|
44589
|
+
var _e_key;
|
|
44590
|
+
// Typing starts a new paragraph after the line, and the browser
|
|
44591
|
+
// types the letter into it
|
|
44592
|
+
if (((_e_key = e.key) === null || _e_key === void 0 ? void 0 : _e_key.length) === 1 && !e.ctrlKey && !e.metaKey) {
|
|
44593
|
+
newLine(line, true);
|
|
44594
|
+
}
|
|
44595
|
+
return false;
|
|
44596
|
+
}
|
|
44597
|
+
return true;
|
|
44598
|
+
};
|
|
44599
|
+
// Enter with a line selected adds a paragraph after the line, and
|
|
44600
|
+
// Shift+Enter one before it, between the Enter plugin's own events. The
|
|
44601
|
+
// plugin itself would delete the line
|
|
44602
|
+
var enter = function enter(e, line) {
|
|
44603
|
+
var result = editor.e.fire('beforeEnter', e);
|
|
44604
|
+
if (result !== undefined) {
|
|
44605
|
+
return result;
|
|
44606
|
+
}
|
|
44607
|
+
editor.history.snapshot.transaction(function() {
|
|
44608
|
+
newLine(line, !e.shiftKey);
|
|
44609
|
+
editor.e.fire('afterEnter', e);
|
|
44610
|
+
});
|
|
44611
|
+
editor.synchronizeValues();
|
|
44612
|
+
return false;
|
|
44613
|
+
};
|
|
44614
|
+
// How far above or below a line a click still selects it
|
|
44615
|
+
var slack = 6;
|
|
44616
|
+
// The press that selected a line, for its click to open the popup
|
|
44617
|
+
var pressed = null;
|
|
44618
|
+
editor.e.on('afterInit', function() {
|
|
44619
|
+
editor.e.on(editor.ed, 'selectionchange', function() {
|
|
44620
|
+
var sel = editor.s.sel;
|
|
44621
|
+
frame((sel === null || sel === void 0 ? void 0 : sel.rangeCount) ? lineIn(sel.getRangeAt(0)) : null);
|
|
44622
|
+
});
|
|
44623
|
+
}).on('keydown', function(e) {
|
|
44624
|
+
if (!editable() || e.isComposing) {
|
|
44625
|
+
return;
|
|
44626
|
+
}
|
|
44627
|
+
var range = editor.s.range;
|
|
44628
|
+
var line = lineIn(range);
|
|
44629
|
+
if (line && e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_ENTER) {
|
|
44630
|
+
editor.e.stopPropagation('keydown');
|
|
44631
|
+
return enter(e, line);
|
|
44632
|
+
}
|
|
44633
|
+
if (line ? !onLine(e, line) : !atCaret(e, range)) {
|
|
44634
|
+
return;
|
|
44635
|
+
}
|
|
44636
|
+
editor.e.stopPropagation('keydown');
|
|
44637
|
+
editor.synchronizeValues();
|
|
44638
|
+
return false;
|
|
44639
|
+
}, {
|
|
44640
|
+
top: true
|
|
44641
|
+
}).on('mousedown', function(e) {
|
|
44642
|
+
pressed = null;
|
|
44643
|
+
if (!editable() || e.button !== 0 || e.shiftKey) {
|
|
44644
|
+
return;
|
|
44645
|
+
}
|
|
44646
|
+
var line = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.toArray)(editor.editor.getElementsByTagName('hr')).find(function(line) {
|
|
44647
|
+
if (e.target !== line && e.target !== line.parentNode) {
|
|
44648
|
+
return false;
|
|
44649
|
+
}
|
|
44650
|
+
var box = line.getBoundingClientRect();
|
|
44651
|
+
return e.clientX >= box.left && e.clientX <= box.right && e.clientY >= box.top - slack && e.clientY <= box.bottom + slack;
|
|
44652
|
+
});
|
|
44653
|
+
if (line) {
|
|
44654
|
+
// The browser's own press would put the caret beside the line
|
|
44655
|
+
e.preventDefault();
|
|
44656
|
+
pressed = line;
|
|
44657
|
+
editor.s.select(line);
|
|
44658
|
+
}
|
|
44659
|
+
}).on('click', function() {
|
|
44660
|
+
var line = pressed;
|
|
44661
|
+
pressed = null;
|
|
44662
|
+
// After the click's own handlers, which close the popups
|
|
44663
|
+
line && editor.async.setTimeout(function() {
|
|
44664
|
+
return editor.e.fire('showPopup', line, function() {
|
|
44665
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.position)(line, editor);
|
|
44666
|
+
}, 'hr');
|
|
44667
|
+
}, 1);
|
|
44668
|
+
}).on('mouseup', function() {
|
|
44669
|
+
editor.async.setTimeout(leave, 1);
|
|
44670
|
+
}).on('deleteHorizontalRule', function(line) {
|
|
44671
|
+
if (editable()) {
|
|
44672
|
+
remove(line, true);
|
|
44673
|
+
editor.synchronizeValues();
|
|
44674
|
+
}
|
|
44675
|
+
});
|
|
44308
44676
|
}
|
|
44309
|
-
|
|
44677
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('hr', hr);
|
|
44310
44678
|
|
|
44311
44679
|
|
|
44312
44680
|
/***/ }),
|
|
@@ -48314,27 +48682,28 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
48314
48682
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5266);
|
|
48315
48683
|
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70235);
|
|
48316
48684
|
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17849);
|
|
48317
|
-
/* harmony import */ var
|
|
48318
|
-
/* harmony import */ var
|
|
48319
|
-
/* harmony import */ var
|
|
48320
|
-
/* harmony import */ var
|
|
48321
|
-
/* harmony import */ var
|
|
48322
|
-
/* harmony import */ var
|
|
48323
|
-
/* harmony import */ var
|
|
48324
|
-
/* harmony import */ var
|
|
48325
|
-
/* harmony import */ var
|
|
48326
|
-
/* harmony import */ var
|
|
48327
|
-
/* harmony import */ var
|
|
48328
|
-
/* harmony import */ var
|
|
48329
|
-
/* harmony import */ var
|
|
48330
|
-
/* harmony import */ var
|
|
48331
|
-
/* harmony import */ var
|
|
48332
|
-
/* harmony import */ var
|
|
48333
|
-
/* harmony import */ var
|
|
48334
|
-
/* harmony import */ var
|
|
48335
|
-
/* harmony import */ var
|
|
48336
|
-
/* harmony import */ var
|
|
48337
|
-
/* harmony import */ var
|
|
48685
|
+
/* harmony import */ var _items_hr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85732);
|
|
48686
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(466);
|
|
48687
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75711);
|
|
48688
|
+
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59399);
|
|
48689
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38681);
|
|
48690
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
48691
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64637);
|
|
48692
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
48693
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92148);
|
|
48694
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__);
|
|
48695
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(20115);
|
|
48696
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__);
|
|
48697
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(94190);
|
|
48698
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__);
|
|
48699
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51957);
|
|
48700
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__);
|
|
48701
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(71940);
|
|
48702
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__);
|
|
48703
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(43218);
|
|
48704
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__);
|
|
48705
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48007);
|
|
48706
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__);
|
|
48338
48707
|
/*!
|
|
48339
48708
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48340
48709
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -48358,6 +48727,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
48358
48727
|
|
|
48359
48728
|
|
|
48360
48729
|
|
|
48730
|
+
|
|
48361
48731
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
48362
48732
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
48363
48733
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
@@ -48365,7 +48735,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableF
|
|
|
48365
48735
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
48366
48736
|
'source'
|
|
48367
48737
|
];
|
|
48368
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (
|
|
48738
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default())).set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default())).set('caption', (jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default())).set('headerrow', (jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default())).set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default())).set('th', (jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default())).set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default())).set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default())).set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default()));
|
|
48369
48739
|
// Register cell popup buttons as global controls so they can be
|
|
48370
48740
|
// referenced by name in custom popup configurations.
|
|
48371
48741
|
// Skip buttons that already exist in controls (e.g. 'align' from justify plugin).
|
|
@@ -48376,12 +48746,13 @@ _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"].forEach(function(item) {
|
|
|
48376
48746
|
});
|
|
48377
48747
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.popup = {
|
|
48378
48748
|
a: _items_a__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
48379
|
-
img:
|
|
48749
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
48380
48750
|
cells: _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
48381
|
-
|
|
48382
|
-
|
|
48383
|
-
|
|
48384
|
-
|
|
48751
|
+
hr: _items_hr__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
48752
|
+
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
48753
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
48754
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
48755
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
48385
48756
|
selection: [
|
|
48386
48757
|
'bold',
|
|
48387
48758
|
'underline',
|
|
@@ -48583,6 +48954,30 @@ var cmd = function cmd(control) {
|
|
|
48583
48954
|
]);
|
|
48584
48955
|
|
|
48585
48956
|
|
|
48957
|
+
/***/ }),
|
|
48958
|
+
|
|
48959
|
+
/***/ 85732:
|
|
48960
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
48961
|
+
|
|
48962
|
+
"use strict";
|
|
48963
|
+
/*!
|
|
48964
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48965
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
48966
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
48967
|
+
*/ /**
|
|
48968
|
+
* @module plugins/inline-popup
|
|
48969
|
+
*/ /* harmony default export */ __webpack_exports__["default"] = ([
|
|
48970
|
+
{
|
|
48971
|
+
name: 'delete',
|
|
48972
|
+
icon: 'bin',
|
|
48973
|
+
tooltip: 'Delete',
|
|
48974
|
+
exec: function exec(editor, line) {
|
|
48975
|
+
line && editor.e.fire('deleteHorizontalRule', line);
|
|
48976
|
+
}
|
|
48977
|
+
}
|
|
48978
|
+
]);
|
|
48979
|
+
|
|
48980
|
+
|
|
48586
48981
|
/***/ }),
|
|
48587
48982
|
|
|
48588
48983
|
/***/ 466:
|
|
@@ -49559,7 +49954,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('justify', justi
|
|
|
49559
49954
|
if (((_endContainer_nodeValue = endContainer.nodeValue) === null || _endContainer_nodeValue === void 0 ? void 0 : _endContainer_nodeValue.length) === endOffset) {
|
|
49560
49955
|
var parentNode = endContainer.parentNode;
|
|
49561
49956
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isInlineBlock(parentNode) && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.findNotEmptyNeighbor(parentNode, false, this.j.editor)) {
|
|
49562
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.after(parentNode, this.j.createInside.
|
|
49957
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.after(parentNode, this.j.createInside.fake());
|
|
49563
49958
|
}
|
|
49564
49959
|
}
|
|
49565
49960
|
}
|
|
@@ -50391,6 +50786,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
|
|
|
50391
50786
|
preventReadOnlyNavigation: true,
|
|
50392
50787
|
selectSizeClassName: 3,
|
|
50393
50788
|
selectOptionsClassName: [],
|
|
50789
|
+
selectKeepOtherClassNames: false,
|
|
50394
50790
|
hotkeys: [
|
|
50395
50791
|
'ctrl+k',
|
|
50396
50792
|
'cmd+k'
|
|
@@ -50445,11 +50841,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50445
50841
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28077);
|
|
50446
50842
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(65946);
|
|
50447
50843
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(91206);
|
|
50448
|
-
/* harmony import */ var
|
|
50449
|
-
/* harmony import */ var
|
|
50450
|
-
/* harmony import */ var
|
|
50451
|
-
/* harmony import */ var
|
|
50452
|
-
/* harmony import */ var
|
|
50844
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(59400);
|
|
50845
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96007);
|
|
50846
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(29434);
|
|
50847
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(51116);
|
|
50848
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(65230);
|
|
50849
|
+
/* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(99763);
|
|
50453
50850
|
/*!
|
|
50454
50851
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50455
50852
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -50478,6 +50875,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50478
50875
|
|
|
50479
50876
|
|
|
50480
50877
|
|
|
50878
|
+
|
|
50481
50879
|
|
|
50482
50880
|
/**
|
|
50483
50881
|
* Process link. Insert, dblclick or remove format
|
|
@@ -50597,7 +50995,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50597
50995
|
value: function __generateForm(current, close) {
|
|
50598
50996
|
var jodit = this.jodit;
|
|
50599
50997
|
var i18n = jodit.i18n.bind(jodit);
|
|
50600
|
-
var _jodit_o_link = jodit.o.link, openInNewTabCheckbox = _jodit_o_link.openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked = _jodit_o_link.openInNewTabCheckboxDefaultChecked, noFollowCheckbox = _jodit_o_link.noFollowCheckbox, formTemplate = _jodit_o_link.formTemplate, formClassName = _jodit_o_link.formClassName, modeClassName = _jodit_o_link.modeClassName, contentMode = _jodit_o_link.contentMode;
|
|
50998
|
+
var _jodit_o_link = jodit.o.link, openInNewTabCheckbox = _jodit_o_link.openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked = _jodit_o_link.openInNewTabCheckboxDefaultChecked, noFollowCheckbox = _jodit_o_link.noFollowCheckbox, formTemplate = _jodit_o_link.formTemplate, formClassName = _jodit_o_link.formClassName, modeClassName = _jodit_o_link.modeClassName, contentMode = _jodit_o_link.contentMode, selectKeepOtherClassNames = _jodit_o_link.selectKeepOtherClassNames;
|
|
50601
50999
|
var html = formTemplate(jodit);
|
|
50602
51000
|
var form = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.isString)(html) ? jodit.c.fromHTML(html, {
|
|
50603
51001
|
target_checkbox_box: openInNewTabCheckbox,
|
|
@@ -50653,7 +51051,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50653
51051
|
if (noFollowCheckbox && nofollow_checkbox) {
|
|
50654
51052
|
nofollow_checkbox.checked = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(_$link, 'rel') || '').split(/\s+/).includes('nofollow');
|
|
50655
51053
|
}
|
|
50656
|
-
|
|
51054
|
+
// Through the button's state, so its text keeps its own element and styles
|
|
51055
|
+
var insertButton = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_16__.UIElement.closestElement(insert, jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_15__.UIButton);
|
|
51056
|
+
if (insertButton) {
|
|
51057
|
+
insertButton.state.text = 'Update';
|
|
51058
|
+
} else {
|
|
51059
|
+
insert.textContent = i18n('Update');
|
|
51060
|
+
}
|
|
50657
51061
|
} else {
|
|
50658
51062
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.hide(unlink);
|
|
50659
51063
|
if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
|
|
@@ -50720,7 +51124,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50720
51124
|
}
|
|
50721
51125
|
links.forEach(function(a) {
|
|
50722
51126
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'href', url_input.value);
|
|
50723
|
-
writeClasses(modeClassName, className_input, className_select, a);
|
|
51127
|
+
writeClasses(modeClassName, className_input, className_select, a, selectKeepOtherClassNames);
|
|
50724
51128
|
if (!isImageContent) {
|
|
50725
51129
|
writeContent(jodit, a, content_input.value, contentWasChanged, url_input.value, contentMode);
|
|
50726
51130
|
}
|
|
@@ -50849,7 +51253,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50849
51253
|
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
|
|
50850
51254
|
return;
|
|
50851
51255
|
}
|
|
50852
|
-
var found = (0,
|
|
51256
|
+
var found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_20__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
50853
51257
|
if (!found) {
|
|
50854
51258
|
return;
|
|
50855
51259
|
}
|
|
@@ -50942,7 +51346,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('link', link);
|
|
|
50942
51346
|
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
50943
51347
|
var anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.getAnchors)(jodit.editor);
|
|
50944
51348
|
var field = url === null || url === void 0 ? void 0 : url.closest('.jodit-ui-input__wrapper');
|
|
50945
|
-
var input = field &&
|
|
51349
|
+
var input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_16__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_16__.UIElement);
|
|
50946
51350
|
if (!field || !input || !anchors.length) {
|
|
50947
51351
|
return;
|
|
50948
51352
|
}
|
|
@@ -50963,14 +51367,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('link', link);
|
|
|
50963
51367
|
});
|
|
50964
51368
|
var icon = function icon(name) {
|
|
50965
51369
|
var _Icon_makeIcon;
|
|
50966
|
-
return (_Icon_makeIcon =
|
|
51370
|
+
return (_Icon_makeIcon = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_17__.Icon.makeIcon(jodit, {
|
|
50967
51371
|
name: name,
|
|
50968
51372
|
iconURL: '',
|
|
50969
51373
|
fill: '',
|
|
50970
51374
|
scale: undefined
|
|
50971
51375
|
})) !== null && _Icon_makeIcon !== void 0 ? _Icon_makeIcon : c.span();
|
|
50972
51376
|
};
|
|
50973
|
-
var dropdown = new
|
|
51377
|
+
var dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_18__.Popup(jodit).setMod('padding', false);
|
|
50974
51378
|
var items = [];
|
|
50975
51379
|
var filled = '';
|
|
50976
51380
|
var open = function open() {
|
|
@@ -51092,7 +51496,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('link', link);
|
|
|
51092
51496
|
return value;
|
|
51093
51497
|
}
|
|
51094
51498
|
// email address -> mailto:
|
|
51095
|
-
if (
|
|
51499
|
+
if (_typed_link__WEBPACK_IMPORTED_MODULE_20__.EMAIL.test(value)) {
|
|
51096
51500
|
return "mailto:".concat(value);
|
|
51097
51501
|
}
|
|
51098
51502
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -51101,7 +51505,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('link', link);
|
|
|
51101
51505
|
}
|
|
51102
51506
|
return '';
|
|
51103
51507
|
}
|
|
51104
|
-
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
51508
|
+
function writeClasses(modeClassName, className_input, className_select, a, keepOtherClassNames) {
|
|
51105
51509
|
if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
|
|
51106
51510
|
if (modeClassName === 'input') {
|
|
51107
51511
|
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
@@ -51111,19 +51515,27 @@ function writeClasses(modeClassName, className_input, className_select, a) {
|
|
|
51111
51515
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'class', className_input.value);
|
|
51112
51516
|
}
|
|
51113
51517
|
} else if (modeClassName === 'select') {
|
|
51114
|
-
|
|
51518
|
+
var classes = function classes(option) {
|
|
51519
|
+
return option.value.split(/\s+/).filter(function(cn) {
|
|
51520
|
+
return cn.trim().length > 0;
|
|
51521
|
+
});
|
|
51522
|
+
};
|
|
51523
|
+
if (keepOtherClassNames) {
|
|
51524
|
+
Array.from(className_select.options).forEach(function(option) {
|
|
51525
|
+
return classes(option).forEach(function(cn) {
|
|
51526
|
+
return a.classList.remove(cn);
|
|
51527
|
+
});
|
|
51528
|
+
});
|
|
51529
|
+
} else {
|
|
51115
51530
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'class', null);
|
|
51116
51531
|
}
|
|
51117
|
-
|
|
51118
|
-
|
|
51119
|
-
|
|
51120
|
-
|
|
51121
|
-
|
|
51122
|
-
|
|
51123
|
-
|
|
51124
|
-
a.classList.add(cn);
|
|
51125
|
-
});
|
|
51126
|
-
}
|
|
51532
|
+
Array.from(className_select.selectedOptions).forEach(function(option) {
|
|
51533
|
+
return classes(option).forEach(function(cn) {
|
|
51534
|
+
return a.classList.add(cn);
|
|
51535
|
+
});
|
|
51536
|
+
});
|
|
51537
|
+
if (!a.classList.length) {
|
|
51538
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'class', null);
|
|
51127
51539
|
}
|
|
51128
51540
|
}
|
|
51129
51541
|
}
|
|
@@ -52338,12 +52750,12 @@ var pasteFromWord = /*#__PURE__*/ function(Plugin) {
|
|
|
52338
52750
|
}
|
|
52339
52751
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.INSERT_AS_TEXT:
|
|
52340
52752
|
{
|
|
52341
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.cleanFromWord)(html);
|
|
52753
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.cleanFromWord)(html, this.j.o.pasteKeepAttributes);
|
|
52342
52754
|
break;
|
|
52343
52755
|
}
|
|
52344
52756
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.INSERT_ONLY_TEXT:
|
|
52345
52757
|
{
|
|
52346
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.cleanFromWord)(html), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
52758
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.cleanFromWord)(html, this.j.o.pasteKeepAttributes), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
52347
52759
|
break;
|
|
52348
52760
|
}
|
|
52349
52761
|
}
|
|
@@ -52579,10 +52991,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('pasteStorage',
|
|
|
52579
52991
|
"use strict";
|
|
52580
52992
|
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);
|
|
52581
52993
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25045);
|
|
52582
|
-
/* harmony import */ var
|
|
52583
|
-
/* harmony import */ var
|
|
52584
|
-
/* harmony import */ var
|
|
52585
|
-
/* harmony import */ var
|
|
52994
|
+
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42395);
|
|
52995
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3233);
|
|
52996
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81937);
|
|
52997
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
52998
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54308);
|
|
52586
52999
|
/*!
|
|
52587
53000
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
52588
53001
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -52595,36 +53008,38 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('pasteStorage',
|
|
|
52595
53008
|
|
|
52596
53009
|
|
|
52597
53010
|
|
|
52598
|
-
|
|
52599
|
-
|
|
52600
|
-
|
|
52601
|
-
|
|
53011
|
+
|
|
53012
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.askBeforePasteHTML = true;
|
|
53013
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.processPasteHTML = true;
|
|
53014
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.scrollToPastedContent = true;
|
|
53015
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.pasteExcludeStripTags = [
|
|
52602
53016
|
'br',
|
|
52603
53017
|
'hr'
|
|
52604
53018
|
];
|
|
52605
|
-
|
|
53019
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.pasteKeepAttributes = (0,_swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_2__._)(jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.PASTE_KEEP_ATTRIBUTES);
|
|
53020
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.pasteHTMLActionList = [
|
|
52606
53021
|
{
|
|
52607
|
-
value:
|
|
53022
|
+
value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INSERT_AS_HTML,
|
|
52608
53023
|
text: 'Keep'
|
|
52609
53024
|
},
|
|
52610
53025
|
{
|
|
52611
|
-
value:
|
|
53026
|
+
value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INSERT_AS_TEXT,
|
|
52612
53027
|
text: 'Insert as Text'
|
|
52613
53028
|
},
|
|
52614
53029
|
{
|
|
52615
|
-
value:
|
|
53030
|
+
value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INSERT_ONLY_TEXT,
|
|
52616
53031
|
text: 'Insert only Text'
|
|
52617
53032
|
}
|
|
52618
53033
|
];
|
|
52619
|
-
|
|
52620
|
-
|
|
53034
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.memorizeChoiceWhenPasteFragment = false;
|
|
53035
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.nl2brInPlainText = true;
|
|
52621
53036
|
var psKey = 'pasteStorage';
|
|
52622
|
-
|
|
53037
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.paste = {
|
|
52623
53038
|
tooltip: 'Paste from clipboard',
|
|
52624
53039
|
exec: function exec(_0, _1, _2) {
|
|
52625
53040
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function(editor, _, param) {
|
|
52626
53041
|
var control, text, error, items, _item_types, item, type, textBlob, e, e1, value;
|
|
52627
|
-
return (0,
|
|
53042
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_3__._)(this, function(_state) {
|
|
52628
53043
|
switch(_state.label){
|
|
52629
53044
|
case 0:
|
|
52630
53045
|
control = param.control;
|
|
@@ -52663,7 +53078,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
52663
53078
|
// Ctrl+V shortcut (which receives text/html from the
|
|
52664
53079
|
// native paste event). See
|
|
52665
53080
|
// https://github.com/xdan/jodit/issues/1061
|
|
52666
|
-
type = ((_item_types = item.types) === null || _item_types === void 0 ? void 0 : _item_types.includes(
|
|
53081
|
+
type = ((_item_types = item.types) === null || _item_types === void 0 ? void 0 : _item_types.includes(jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.TEXT_HTML)) ? jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.TEXT_HTML : jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.TEXT_PLAIN;
|
|
52667
53082
|
return [
|
|
52668
53083
|
4,
|
|
52669
53084
|
item.getType(type)
|
|
@@ -52685,7 +53100,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
52685
53100
|
];
|
|
52686
53101
|
case 6:
|
|
52687
53102
|
e = _state.sent();
|
|
52688
|
-
if (!
|
|
53103
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.IS_PROD) {
|
|
52689
53104
|
// eslint-disable-next-line no-console
|
|
52690
53105
|
console.log(e);
|
|
52691
53106
|
}
|
|
@@ -52719,7 +53134,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
52719
53134
|
];
|
|
52720
53135
|
case 10:
|
|
52721
53136
|
e1 = _state.sent();
|
|
52722
|
-
if (!
|
|
53137
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.IS_PROD) {
|
|
52723
53138
|
// eslint-disable-next-line no-console
|
|
52724
53139
|
console.log(e1);
|
|
52725
53140
|
}
|
|
@@ -52729,7 +53144,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
52729
53144
|
];
|
|
52730
53145
|
case 11:
|
|
52731
53146
|
if (error) {
|
|
52732
|
-
text = editor.buffer.get(
|
|
53147
|
+
text = editor.buffer.get(jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.CLIPBOARD_ID) || '';
|
|
52733
53148
|
error = text.length === 0;
|
|
52734
53149
|
}
|
|
52735
53150
|
value = editor.value;
|
|
@@ -52738,7 +53153,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
52738
53153
|
error = value === editor.value;
|
|
52739
53154
|
!error && editor.e.fire('afterPaste');
|
|
52740
53155
|
} else if (text.length) {
|
|
52741
|
-
(0,
|
|
53156
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.pasteInsertHtml)(null, editor, text);
|
|
52742
53157
|
editor.e.fire('afterPaste');
|
|
52743
53158
|
} else {
|
|
52744
53159
|
if (error) {
|
|
@@ -53107,7 +53522,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.paste = {
|
|
|
53107
53522
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.CLIPBOARD_ID, html);
|
|
53108
53523
|
switch(action){
|
|
53109
53524
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.INSERT_CLEAR_HTML:
|
|
53110
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_14__.removeGoogleDocsWrapper)(html));
|
|
53525
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_14__.removeGoogleDocsWrapper)(html), this.j.o.pasteKeepAttributes);
|
|
53111
53526
|
break;
|
|
53112
53527
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.INSERT_ONLY_TEXT:
|
|
53113
53528
|
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.stripTags)(html, this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
@@ -60439,6 +60854,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_10__.pluginSystem.add('sticky', stick
|
|
|
60439
60854
|
|
|
60440
60855
|
|
|
60441
60856
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.usePopupForSpecialCharacters = false;
|
|
60857
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharactersColumns = 17;
|
|
60442
60858
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharacters = [
|
|
60443
60859
|
'!',
|
|
60444
60860
|
'"',
|
|
@@ -61107,10 +61523,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61107
61523
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81937);
|
|
61108
61524
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23211);
|
|
61109
61525
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28077);
|
|
61110
|
-
/* harmony import */ var
|
|
61111
|
-
/* harmony import */ var
|
|
61112
|
-
/* harmony import */ var
|
|
61113
|
-
/* harmony import */ var
|
|
61526
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28686);
|
|
61527
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(93640);
|
|
61528
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18855);
|
|
61529
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(18993);
|
|
61530
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91017);
|
|
61114
61531
|
/*!
|
|
61115
61532
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61116
61533
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -61133,6 +61550,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61133
61550
|
|
|
61134
61551
|
|
|
61135
61552
|
|
|
61553
|
+
|
|
61136
61554
|
/**
|
|
61137
61555
|
* The plugin inserts characters that are not part of the standard keyboard.
|
|
61138
61556
|
*/ var symbols = /*#__PURE__*/ function(Plugin) {
|
|
@@ -61148,17 +61566,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61148
61566
|
name: 'symbols',
|
|
61149
61567
|
group: 'insert'
|
|
61150
61568
|
}
|
|
61151
|
-
])
|
|
61152
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.extendLang)(
|
|
61569
|
+
]);
|
|
61570
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_13__);
|
|
61153
61571
|
return _this;
|
|
61154
61572
|
}
|
|
61155
61573
|
;(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(symbols, [
|
|
61156
61574
|
{
|
|
61157
61575
|
key: "afterInit",
|
|
61158
61576
|
value: function afterInit(jodit) {
|
|
61159
|
-
var _this = this;
|
|
61160
61577
|
jodit.e.on('generateSpecialCharactersTable.symbols', function() {
|
|
61578
|
+
var specialCharactersColumns = jodit.o.specialCharactersColumns;
|
|
61579
|
+
var columns = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_9__.isInt)(specialCharactersColumns) && specialCharactersColumns > 0 ? Number(specialCharactersColumns) : 17;
|
|
61161
61580
|
var container = jodit.c.fromHTML('<div class="jodit-symbols__container">\n <div class="jodit-symbols__container_table">\n <table class="jodit-symbols__table"><tbody></tbody></table>\n </div>\n <div class="jodit-symbols__container_preview">\n <div class="jodit-symbols__preview"></div>\n </div>\n </div>');
|
|
61581
|
+
container.style.setProperty('--jd-symbols-columns', String(columns));
|
|
61162
61582
|
var preview = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.first(container, function(node) {
|
|
61163
61583
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isHTMLElement(node) && node.classList.contains('jodit-symbols__preview');
|
|
61164
61584
|
});
|
|
@@ -61169,7 +61589,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61169
61589
|
var chars = [];
|
|
61170
61590
|
for(var i = 0; i < jodit.o.specialCharacters.length;){
|
|
61171
61591
|
var tr = jodit.c.element('tr');
|
|
61172
|
-
for(var j = 0; j <
|
|
61592
|
+
for(var j = 0; j < columns && i < jodit.o.specialCharacters.length; j += 1, i += 1){
|
|
61173
61593
|
var td = jodit.c.element('td'), a = jodit.c.fromHTML('<a\n data-index="'.concat(i, '"\n data-index-j="').concat(j, '"\n role="option"\n tabindex="-1"\n >').concat(jodit.o.specialCharacters[i], "</a>"));
|
|
61174
61594
|
chars.push(a);
|
|
61175
61595
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.append(td, a);
|
|
@@ -61177,7 +61597,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61177
61597
|
}
|
|
61178
61598
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.append(body, tr);
|
|
61179
61599
|
}
|
|
61180
|
-
var self = _this;
|
|
61181
61600
|
jodit.e.on(chars, 'focus', function() {
|
|
61182
61601
|
preview.innerHTML = this.innerHTML;
|
|
61183
61602
|
}).on(chars, 'mousedown', function(e) {
|
|
@@ -61197,16 +61616,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61197
61616
|
}).on(chars, 'keydown', function(e) {
|
|
61198
61617
|
var target = e.target;
|
|
61199
61618
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isTag(target, 'a')) {
|
|
61200
|
-
var index = parseInt((0,
|
|
61619
|
+
var index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.attr)(target, '-index') || '0', 10), jIndex = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.attr)(target, 'data-index-j') || '0', 10);
|
|
61201
61620
|
var newIndex;
|
|
61202
61621
|
switch(e.key){
|
|
61203
61622
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
61204
61623
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
61205
|
-
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ? index -
|
|
61624
|
+
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ? index - columns : index + columns;
|
|
61206
61625
|
if (chars[newIndex] === undefined) {
|
|
61207
|
-
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ? Math.floor(chars.length /
|
|
61626
|
+
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ? Math.floor(chars.length / columns) * columns + jIndex : jIndex;
|
|
61208
61627
|
if (newIndex > chars.length - 1) {
|
|
61209
|
-
newIndex -=
|
|
61628
|
+
newIndex -= columns;
|
|
61210
61629
|
}
|
|
61211
61630
|
}
|
|
61212
61631
|
chars[newIndex] && chars[newIndex].focus();
|
|
@@ -61239,7 +61658,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61239
61658
|
}
|
|
61240
61659
|
]);
|
|
61241
61660
|
return symbols;
|
|
61242
|
-
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(
|
|
61661
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_11__.Plugin));
|
|
61243
61662
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('symbols', symbols);
|
|
61244
61663
|
|
|
61245
61664
|
|
|
@@ -61279,7 +61698,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('symbols', symbo
|
|
|
61279
61698
|
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50684);
|
|
61280
61699
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
|
|
61281
61700
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
61282
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
61283
61701
|
/*!
|
|
61284
61702
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
61285
61703
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -64854,7 +65272,7 @@ function _array_like_to_array(arr, len) {
|
|
|
64854
65272
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
64855
65273
|
return arr2;
|
|
64856
65274
|
}
|
|
64857
|
-
|
|
65275
|
+
;
|
|
64858
65276
|
|
|
64859
65277
|
|
|
64860
65278
|
/***/ }),
|
|
@@ -64869,7 +65287,7 @@ function _array_like_to_array(arr, len) {
|
|
|
64869
65287
|
function _array_with_holes(arr) {
|
|
64870
65288
|
if (Array.isArray(arr)) return arr;
|
|
64871
65289
|
}
|
|
64872
|
-
|
|
65290
|
+
;
|
|
64873
65291
|
|
|
64874
65292
|
|
|
64875
65293
|
/***/ }),
|
|
@@ -64886,7 +65304,7 @@ function _array_with_holes(arr) {
|
|
|
64886
65304
|
function _array_without_holes(arr) {
|
|
64887
65305
|
if (Array.isArray(arr)) return (0,_array_like_to_array_js__WEBPACK_IMPORTED_MODULE_0__._)(arr);
|
|
64888
65306
|
}
|
|
64889
|
-
|
|
65307
|
+
;
|
|
64890
65308
|
|
|
64891
65309
|
|
|
64892
65310
|
/***/ }),
|
|
@@ -64902,7 +65320,7 @@ function _assert_this_initialized(self) {
|
|
|
64902
65320
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
64903
65321
|
return self;
|
|
64904
65322
|
}
|
|
64905
|
-
|
|
65323
|
+
;
|
|
64906
65324
|
|
|
64907
65325
|
|
|
64908
65326
|
/***/ }),
|
|
@@ -65034,7 +65452,7 @@ function _async_to_generator(fn) {
|
|
|
65034
65452
|
});
|
|
65035
65453
|
};
|
|
65036
65454
|
}
|
|
65037
|
-
|
|
65455
|
+
;
|
|
65038
65456
|
|
|
65039
65457
|
|
|
65040
65458
|
/***/ }),
|
|
@@ -65051,7 +65469,7 @@ function _async_to_generator(fn) {
|
|
|
65051
65469
|
function _await_async_generator(value) {
|
|
65052
65470
|
return new _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._(value, /* kind: await */ 0);
|
|
65053
65471
|
}
|
|
65054
|
-
|
|
65472
|
+
;
|
|
65055
65473
|
|
|
65056
65474
|
|
|
65057
65475
|
/***/ }),
|
|
@@ -65074,7 +65492,7 @@ function _call_super(_this, derived, args) {
|
|
|
65074
65492
|
derived = (0,_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__._)(derived);
|
|
65075
65493
|
return (0,_possible_constructor_return_js__WEBPACK_IMPORTED_MODULE_2__._)(_this, (0,_is_native_reflect_construct_js__WEBPACK_IMPORTED_MODULE_1__._)() ? Reflect.construct(derived, args || [], (0,_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__._)(_this).constructor) : derived.apply(_this, args));
|
|
65076
65494
|
}
|
|
65077
|
-
|
|
65495
|
+
;
|
|
65078
65496
|
|
|
65079
65497
|
|
|
65080
65498
|
/***/ }),
|
|
@@ -65095,7 +65513,7 @@ function _instanceof(left, right) {
|
|
|
65095
65513
|
function _class_call_check(instance, Constructor) {
|
|
65096
65514
|
if (!_instanceof(instance, Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
65097
65515
|
}
|
|
65098
|
-
|
|
65516
|
+
;
|
|
65099
65517
|
|
|
65100
65518
|
|
|
65101
65519
|
/***/ }),
|
|
@@ -65127,7 +65545,7 @@ function _construct(Parent, args, Class) {
|
|
|
65127
65545
|
}
|
|
65128
65546
|
return _construct.apply(null, arguments);
|
|
65129
65547
|
}
|
|
65130
|
-
|
|
65548
|
+
;
|
|
65131
65549
|
|
|
65132
65550
|
|
|
65133
65551
|
/***/ }),
|
|
@@ -65153,7 +65571,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
65153
65571
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
65154
65572
|
return Constructor;
|
|
65155
65573
|
}
|
|
65156
|
-
|
|
65574
|
+
;
|
|
65157
65575
|
|
|
65158
65576
|
|
|
65159
65577
|
/***/ }),
|
|
@@ -65176,7 +65594,7 @@ function _define_property(obj, key, value) {
|
|
|
65176
65594
|
} else obj[key] = value;
|
|
65177
65595
|
return obj;
|
|
65178
65596
|
}
|
|
65179
|
-
|
|
65597
|
+
;
|
|
65180
65598
|
|
|
65181
65599
|
|
|
65182
65600
|
/***/ }),
|
|
@@ -65203,7 +65621,7 @@ function _get(target, property, receiver) {
|
|
|
65203
65621
|
}
|
|
65204
65622
|
return _get(target, property, receiver || target);
|
|
65205
65623
|
}
|
|
65206
|
-
|
|
65624
|
+
;
|
|
65207
65625
|
|
|
65208
65626
|
|
|
65209
65627
|
/***/ }),
|
|
@@ -65221,7 +65639,7 @@ function _get_prototype_of(o) {
|
|
|
65221
65639
|
};
|
|
65222
65640
|
return _get_prototype_of(o);
|
|
65223
65641
|
}
|
|
65224
|
-
|
|
65642
|
+
;
|
|
65225
65643
|
|
|
65226
65644
|
|
|
65227
65645
|
/***/ }),
|
|
@@ -65248,7 +65666,7 @@ function _inherits(subClass, superClass) {
|
|
|
65248
65666
|
});
|
|
65249
65667
|
if (superClass) (0,_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__._)(subClass, superClass);
|
|
65250
65668
|
}
|
|
65251
|
-
|
|
65669
|
+
;
|
|
65252
65670
|
|
|
65253
65671
|
|
|
65254
65672
|
/***/ }),
|
|
@@ -65266,7 +65684,7 @@ function _instanceof(left, right) {
|
|
|
65266
65684
|
return !!right[Symbol.hasInstance](left);
|
|
65267
65685
|
} else return left instanceof right;
|
|
65268
65686
|
}
|
|
65269
|
-
|
|
65687
|
+
;
|
|
65270
65688
|
|
|
65271
65689
|
|
|
65272
65690
|
/***/ }),
|
|
@@ -65281,7 +65699,7 @@ function _instanceof(left, right) {
|
|
|
65281
65699
|
function _is_native_function(fn) {
|
|
65282
65700
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
65283
65701
|
}
|
|
65284
|
-
|
|
65702
|
+
;
|
|
65285
65703
|
|
|
65286
65704
|
|
|
65287
65705
|
/***/ }),
|
|
@@ -65307,7 +65725,7 @@ function _is_native_reflect_construct() {
|
|
|
65307
65725
|
return !!result;
|
|
65308
65726
|
})();
|
|
65309
65727
|
}
|
|
65310
|
-
|
|
65728
|
+
;
|
|
65311
65729
|
|
|
65312
65730
|
|
|
65313
65731
|
/***/ }),
|
|
@@ -65324,7 +65742,7 @@ function _iterable_to_array(iter) {
|
|
|
65324
65742
|
return Array.from(iter);
|
|
65325
65743
|
}
|
|
65326
65744
|
}
|
|
65327
|
-
|
|
65745
|
+
;
|
|
65328
65746
|
|
|
65329
65747
|
|
|
65330
65748
|
/***/ }),
|
|
@@ -65360,7 +65778,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
65360
65778
|
}
|
|
65361
65779
|
return _arr;
|
|
65362
65780
|
}
|
|
65363
|
-
|
|
65781
|
+
;
|
|
65364
65782
|
|
|
65365
65783
|
|
|
65366
65784
|
/***/ }),
|
|
@@ -65375,7 +65793,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
65375
65793
|
function _non_iterable_rest() {
|
|
65376
65794
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65377
65795
|
}
|
|
65378
|
-
|
|
65796
|
+
;
|
|
65379
65797
|
|
|
65380
65798
|
|
|
65381
65799
|
/***/ }),
|
|
@@ -65390,7 +65808,7 @@ function _non_iterable_rest() {
|
|
|
65390
65808
|
function _non_iterable_spread() {
|
|
65391
65809
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65392
65810
|
}
|
|
65393
|
-
|
|
65811
|
+
;
|
|
65394
65812
|
|
|
65395
65813
|
|
|
65396
65814
|
/***/ }),
|
|
@@ -65419,7 +65837,7 @@ function _object_spread(target) {
|
|
|
65419
65837
|
}
|
|
65420
65838
|
return target;
|
|
65421
65839
|
}
|
|
65422
|
-
|
|
65840
|
+
;
|
|
65423
65841
|
|
|
65424
65842
|
|
|
65425
65843
|
/***/ }),
|
|
@@ -65454,7 +65872,7 @@ function _object_spread_props(target, source) {
|
|
|
65454
65872
|
}
|
|
65455
65873
|
return target;
|
|
65456
65874
|
}
|
|
65457
|
-
|
|
65875
|
+
;
|
|
65458
65876
|
|
|
65459
65877
|
|
|
65460
65878
|
/***/ }),
|
|
@@ -65470,7 +65888,7 @@ function _overload_yield(value, /** 0: await 1: delegate */ kind) {
|
|
|
65470
65888
|
this.v = value;
|
|
65471
65889
|
this.k = kind;
|
|
65472
65890
|
}
|
|
65473
|
-
|
|
65891
|
+
;
|
|
65474
65892
|
|
|
65475
65893
|
|
|
65476
65894
|
/***/ }),
|
|
@@ -65490,7 +65908,7 @@ function _possible_constructor_return(self, call) {
|
|
|
65490
65908
|
if (call && ((0,_type_of_js__WEBPACK_IMPORTED_MODULE_1__._)(call) === "object" || typeof call === "function")) return call;
|
|
65491
65909
|
return (0,_assert_this_initialized_js__WEBPACK_IMPORTED_MODULE_0__._)(self);
|
|
65492
65910
|
}
|
|
65493
|
-
|
|
65911
|
+
;
|
|
65494
65912
|
|
|
65495
65913
|
|
|
65496
65914
|
/***/ }),
|
|
@@ -65509,7 +65927,7 @@ function _set_prototype_of(o, p) {
|
|
|
65509
65927
|
};
|
|
65510
65928
|
return _set_prototype_of(o, p);
|
|
65511
65929
|
}
|
|
65512
|
-
|
|
65930
|
+
;
|
|
65513
65931
|
|
|
65514
65932
|
|
|
65515
65933
|
/***/ }),
|
|
@@ -65532,7 +65950,7 @@ function _set_prototype_of(o, p) {
|
|
|
65532
65950
|
function _sliced_to_array(arr, i) {
|
|
65533
65951
|
return (0,_array_with_holes_js__WEBPACK_IMPORTED_MODULE_0__._)(arr) || (0,_iterable_to_array_limit_js__WEBPACK_IMPORTED_MODULE_1__._)(arr, i) || (0,_unsupported_iterable_to_array_js__WEBPACK_IMPORTED_MODULE_3__._)(arr, i) || (0,_non_iterable_rest_js__WEBPACK_IMPORTED_MODULE_2__._)();
|
|
65534
65952
|
}
|
|
65535
|
-
|
|
65953
|
+
;
|
|
65536
65954
|
|
|
65537
65955
|
|
|
65538
65956
|
/***/ }),
|
|
@@ -65553,7 +65971,7 @@ function _super_prop_base(object, property) {
|
|
|
65553
65971
|
}
|
|
65554
65972
|
return object;
|
|
65555
65973
|
}
|
|
65556
|
-
|
|
65974
|
+
;
|
|
65557
65975
|
|
|
65558
65976
|
|
|
65559
65977
|
/***/ }),
|
|
@@ -65576,7 +65994,7 @@ function _super_prop_base(object, property) {
|
|
|
65576
65994
|
function _to_array(arr) {
|
|
65577
65995
|
return (0,_array_with_holes_js__WEBPACK_IMPORTED_MODULE_0__._)(arr) || (0,_iterable_to_array_js__WEBPACK_IMPORTED_MODULE_1__._)(arr) || (0,_unsupported_iterable_to_array_js__WEBPACK_IMPORTED_MODULE_3__._)(arr) || (0,_non_iterable_rest_js__WEBPACK_IMPORTED_MODULE_2__._)();
|
|
65578
65996
|
}
|
|
65579
|
-
|
|
65997
|
+
;
|
|
65580
65998
|
|
|
65581
65999
|
|
|
65582
66000
|
/***/ }),
|
|
@@ -65599,7 +66017,7 @@ function _to_array(arr) {
|
|
|
65599
66017
|
function _to_consumable_array(arr) {
|
|
65600
66018
|
return (0,_array_without_holes_js__WEBPACK_IMPORTED_MODULE_0__._)(arr) || (0,_iterable_to_array_js__WEBPACK_IMPORTED_MODULE_1__._)(arr) || (0,_unsupported_iterable_to_array_js__WEBPACK_IMPORTED_MODULE_3__._)(arr) || (0,_non_iterable_spread_js__WEBPACK_IMPORTED_MODULE_2__._)();
|
|
65601
66019
|
}
|
|
65602
|
-
|
|
66020
|
+
;
|
|
65603
66021
|
|
|
65604
66022
|
|
|
65605
66023
|
/***/ }),
|
|
@@ -65628,7 +66046,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
65628
66046
|
}
|
|
65629
66047
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
65630
66048
|
}
|
|
65631
|
-
|
|
66049
|
+
;
|
|
65632
66050
|
|
|
65633
66051
|
|
|
65634
66052
|
/***/ }),
|
|
@@ -65739,7 +66157,7 @@ function _ts_generator(thisArg, body) {
|
|
|
65739
66157
|
};
|
|
65740
66158
|
}
|
|
65741
66159
|
}
|
|
65742
|
-
|
|
66160
|
+
;
|
|
65743
66161
|
|
|
65744
66162
|
|
|
65745
66163
|
/***/ }),
|
|
@@ -65771,7 +66189,7 @@ function _ts_values(o) {
|
|
|
65771
66189
|
}
|
|
65772
66190
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
65773
66191
|
}
|
|
65774
|
-
|
|
66192
|
+
;
|
|
65775
66193
|
|
|
65776
66194
|
|
|
65777
66195
|
/***/ }),
|
|
@@ -65787,7 +66205,7 @@ function _type_of(obj) {
|
|
|
65787
66205
|
"@swc/helpers - typeof";
|
|
65788
66206
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
65789
66207
|
}
|
|
65790
|
-
|
|
66208
|
+
;
|
|
65791
66209
|
|
|
65792
66210
|
|
|
65793
66211
|
/***/ }),
|
|
@@ -65809,7 +66227,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
65809
66227
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
65810
66228
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_array_like_to_array_js__WEBPACK_IMPORTED_MODULE_0__._)(o, minLen);
|
|
65811
66229
|
}
|
|
65812
|
-
|
|
66230
|
+
;
|
|
65813
66231
|
|
|
65814
66232
|
|
|
65815
66233
|
/***/ }),
|
|
@@ -65828,7 +66246,7 @@ function _wrap_async_generator(fn) {
|
|
|
65828
66246
|
return new _async_generator_js__WEBPACK_IMPORTED_MODULE_0__._(fn.apply(this, arguments));
|
|
65829
66247
|
};
|
|
65830
66248
|
}
|
|
65831
|
-
|
|
66249
|
+
;
|
|
65832
66250
|
|
|
65833
66251
|
|
|
65834
66252
|
/***/ }),
|
|
@@ -65872,7 +66290,7 @@ function _wrap_native_super(Class) {
|
|
|
65872
66290
|
};
|
|
65873
66291
|
return _wrap_native_super(Class);
|
|
65874
66292
|
}
|
|
65875
|
-
|
|
66293
|
+
;
|
|
65876
66294
|
|
|
65877
66295
|
|
|
65878
66296
|
/***/ })
|
|
@@ -65965,7 +66383,7 @@ function _wrap_native_super(Class) {
|
|
|
65965
66383
|
/******/ }
|
|
65966
66384
|
/******/ var ns = Object.create(null);
|
|
65967
66385
|
/******/ __webpack_require__.r(ns);
|
|
65968
|
-
/******/ var def =
|
|
66386
|
+
/******/ var def = Object.create(null);
|
|
65969
66387
|
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
65970
66388
|
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
65971
66389
|
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
|
@@ -66048,7 +66466,7 @@ function _wrap_native_super(Class) {
|
|
|
66048
66466
|
/******/ return __webpack_require__.O(result);
|
|
66049
66467
|
/******/ }
|
|
66050
66468
|
/******/
|
|
66051
|
-
/******/ var chunkLoadingGlobal = self["webpackChunkjodit"]
|
|
66469
|
+
/******/ var chunkLoadingGlobal = Array.isArray(self["webpackChunkjodit"]) ? self["webpackChunkjodit"] : (self["webpackChunkjodit"] = []);
|
|
66052
66470
|
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
66053
66471
|
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
66054
66472
|
/******/ }();
|