jodit 4.20.0 → 4.20.2
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 +20 -0
- package/es2015/jodit.css +68 -9
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +11 -11
- package/es2015/jodit.js +238 -54
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +8 -8
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +11 -11
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +8 -8
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +68 -9
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +12 -12
- package/es2021/jodit.js +234 -54
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +8 -8
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +68 -9
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +234 -54
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +19 -19
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +45 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +285 -56
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/ui/form/inputs/input/input.js +2 -0
- package/esm/modules/toolbar/button/button.d.ts +10 -0
- package/esm/modules/toolbar/button/button.js +19 -2
- package/esm/modules/toolbar/button/select/select.d.ts +6 -0
- package/esm/modules/toolbar/button/select/select.js +18 -0
- package/esm/modules/widget/color-picker/color-picker.js +76 -18
- package/esm/plugins/anchor/anchor.d.ts +11 -0
- package/esm/plugins/anchor/anchor.js +84 -8
- package/esm/plugins/fullsize/config.js +2 -0
- package/esm/plugins/hr/hr.js +0 -1
- package/esm/plugins/line-height/config.js +0 -1
- package/esm/plugins/link/template.js +3 -1
- package/esm/plugins/resizer/resizer.d.ts +6 -0
- package/esm/plugins/resizer/resizer.js +11 -0
- package/esm/types/toolbar.d.ts +2 -0
- package/package.json +1 -1
- package/types/modules/toolbar/button/button.d.ts +10 -0
- package/types/modules/toolbar/button/select/select.d.ts +6 -0
- package/types/plugins/anchor/anchor.d.ts +11 -0
- package/types/plugins/resizer/resizer.d.ts +6 -0
- package/types/types/toolbar.d.ts +2 -0
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.20.
|
|
4
|
+
* Version: v4.20.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -2155,7 +2155,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2155
2155
|
* @packageDocumentation
|
|
2156
2156
|
* @module constants
|
|
2157
2157
|
*/
|
|
2158
|
-
var APP_VERSION = "4.20.
|
|
2158
|
+
var APP_VERSION = "4.20.2";
|
|
2159
2159
|
// prettier-ignore
|
|
2160
2160
|
var ES = "es5";
|
|
2161
2161
|
var IS_ES_MODERN = false;
|
|
@@ -20361,6 +20361,8 @@ var UIInput = /*#__PURE__*/ function(UIElement) {
|
|
|
20361
20361
|
if (label) {
|
|
20362
20362
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_10__.Dom.before(this.wrapper, this.label);
|
|
20363
20363
|
this.label.innerText = this.j.i18n(label);
|
|
20364
|
+
// The label is a span, so it names the input only this way
|
|
20365
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_12__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
20364
20366
|
} else {
|
|
20365
20367
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_10__.Dom.safeRemove(this.label);
|
|
20366
20368
|
}
|
|
@@ -31598,11 +31600,25 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
31598
31600
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
31599
31601
|
}
|
|
31600
31602
|
},
|
|
31603
|
+
{
|
|
31604
|
+
key: "isToggle",
|
|
31605
|
+
get: /**
|
|
31606
|
+
* A button that its control can show as on is a toggle, and says whether
|
|
31607
|
+
* it's pressed
|
|
31608
|
+
*/ function get() {
|
|
31609
|
+
var _this_control = this.control, isActive = _this_control.isActive, tags = _this_control.tags, css = _this_control.css;
|
|
31610
|
+
return Boolean(isActive || tags || css);
|
|
31611
|
+
}
|
|
31612
|
+
},
|
|
31601
31613
|
{
|
|
31602
31614
|
key: "onChangeActivated",
|
|
31603
|
-
value:
|
|
31604
|
-
|
|
31605
|
-
|
|
31615
|
+
value: /**
|
|
31616
|
+
* The pressed look comes from the mod, as any button looks pressed while
|
|
31617
|
+
* its list is open, and the container is a `listitem`, which can't have
|
|
31618
|
+
* `aria-pressed`
|
|
31619
|
+
*/ function onChangeActivated() {
|
|
31620
|
+
;(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_28__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
|
|
31621
|
+
this.setMod('activated', this.state.activated || null);
|
|
31606
31622
|
}
|
|
31607
31623
|
},
|
|
31608
31624
|
{
|
|
@@ -31610,6 +31626,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
31610
31626
|
value: function onChangeText() {
|
|
31611
31627
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_21__.isFunction)(this.control.template)) {
|
|
31612
31628
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
31629
|
+
// The name given before the text came would otherwise stay
|
|
31630
|
+
this.updateAriaLabel();
|
|
31613
31631
|
} else {
|
|
31614
31632
|
(0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarButton.prototype), "onChangeText", this).call(this);
|
|
31615
31633
|
}
|
|
@@ -31684,6 +31702,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
31684
31702
|
state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_21__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
31685
31703
|
}
|
|
31686
31704
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
31705
|
+
// UIButton's template makes every button a toggle
|
|
31706
|
+
this.onChangeActivated();
|
|
31687
31707
|
}
|
|
31688
31708
|
},
|
|
31689
31709
|
{
|
|
@@ -32340,7 +32360,8 @@ ToolbarContent = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__._)([
|
|
|
32340
32360
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(84839);
|
|
32341
32361
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(62101);
|
|
32342
32362
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(85932);
|
|
32343
|
-
/* harmony import */ var
|
|
32363
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
|
|
32364
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(22533);
|
|
32344
32365
|
/*!
|
|
32345
32366
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32346
32367
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32359,6 +32380,7 @@ ToolbarContent = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__._)([
|
|
|
32359
32380
|
|
|
32360
32381
|
|
|
32361
32382
|
|
|
32383
|
+
|
|
32362
32384
|
var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
32363
32385
|
"use strict";
|
|
32364
32386
|
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarSelect, ToolbarButton);
|
|
@@ -32373,6 +32395,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
32373
32395
|
return 'ToolbarSelect';
|
|
32374
32396
|
}
|
|
32375
32397
|
},
|
|
32398
|
+
{
|
|
32399
|
+
key: "isToggle",
|
|
32400
|
+
get: // It shows its value, rather than being on or off
|
|
32401
|
+
function get() {
|
|
32402
|
+
return false;
|
|
32403
|
+
}
|
|
32404
|
+
},
|
|
32376
32405
|
{
|
|
32377
32406
|
key: "update",
|
|
32378
32407
|
value: function update() {
|
|
@@ -32391,10 +32420,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
|
|
|
32391
32420
|
this.state.text = (_ref = (_this_control_textTemplate = (_this_control1 = this.control).textTemplate) === null || _this_control_textTemplate === void 0 ? void 0 : _this_control_textTemplate.call(_this_control1, this.jodit, text)) !== null && _ref !== void 0 ? _ref : text;
|
|
32392
32421
|
}
|
|
32393
32422
|
}
|
|
32423
|
+
},
|
|
32424
|
+
{
|
|
32425
|
+
key: "updateAriaLabel",
|
|
32426
|
+
value: /**
|
|
32427
|
+
* The button shows only the value, so its name says which control it
|
|
32428
|
+
* is too: "Font size, 16px"
|
|
32429
|
+
*/ function updateAriaLabel() {
|
|
32430
|
+
var _this_text_textContent;
|
|
32431
|
+
(0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_4__._)(ToolbarSelect.prototype), "updateAriaLabel", this).call(this);
|
|
32432
|
+
var tooltip = this.state.tooltip;
|
|
32433
|
+
var value = (_this_text_textContent = this.text.textContent) === null || _this_text_textContent === void 0 ? void 0 : _this_text_textContent.trim();
|
|
32434
|
+
if (tooltip && value) {
|
|
32435
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.button, 'aria-label', "".concat(this.jodit.i18n(tooltip), ", ").concat(value));
|
|
32436
|
+
}
|
|
32437
|
+
}
|
|
32394
32438
|
}
|
|
32395
32439
|
]);
|
|
32396
32440
|
return ToolbarSelect;
|
|
32397
|
-
}(
|
|
32441
|
+
}(_button__WEBPACK_IMPORTED_MODULE_11__.ToolbarButton);
|
|
32398
32442
|
ToolbarSelect = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__._)([
|
|
32399
32443
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.component
|
|
32400
32444
|
], ToolbarSelect);
|
|
@@ -33938,11 +33982,13 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
33938
33982
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33939
33983
|
/* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
|
|
33940
33984
|
/* harmony export */ });
|
|
33941
|
-
/* harmony import */ var
|
|
33942
|
-
/* harmony import */ var
|
|
33943
|
-
/* harmony import */ var
|
|
33944
|
-
/* harmony import */ var
|
|
33945
|
-
/* harmony import */ var
|
|
33985
|
+
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42395);
|
|
33986
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
|
|
33987
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27795);
|
|
33988
|
+
/* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
|
|
33989
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4099);
|
|
33990
|
+
/* harmony import */ var _palette_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54522);
|
|
33991
|
+
/* harmony import */ var _palette_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_palette_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
33946
33992
|
/*!
|
|
33947
33993
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33948
33994
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33952,11 +33998,14 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
|
|
|
33952
33998
|
* @packageDocumentation
|
|
33953
33999
|
* @module modules/widget/color-picker
|
|
33954
34000
|
*/
|
|
34001
|
+
var _this = undefined;
|
|
33955
34002
|
|
|
33956
34003
|
|
|
33957
34004
|
|
|
33958
34005
|
|
|
33959
|
-
|
|
34006
|
+
|
|
34007
|
+
|
|
34008
|
+
jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.Icon.set('palette', (_palette_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
33960
34009
|
/**
|
|
33961
34010
|
* Build color picker
|
|
33962
34011
|
*
|
|
@@ -33974,29 +34023,66 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
33974
34023
|
* });
|
|
33975
34024
|
* ```
|
|
33976
34025
|
*/ var ColorPickerWidget = function ColorPickerWidget(editor, callback, coldColor) {
|
|
33977
|
-
var
|
|
34026
|
+
var _items_find;
|
|
34027
|
+
var cn = 'jodit-color-picker', valueHex = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.normalizeColor)(coldColor), form = editor.c.div(cn), iconPalette = editor.o.textIcons ? "<span>".concat(editor.i18n('palette'), "</span>") : jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.Icon.get('palette'), eachColor = function eachColor1(colors) {
|
|
33978
34028
|
var stack = [];
|
|
33979
|
-
if ((0,
|
|
34029
|
+
if ((0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(colors)) {
|
|
33980
34030
|
Object.keys(colors).forEach(function(key) {
|
|
33981
34031
|
stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
|
|
33982
34032
|
stack.push(eachColor(colors[key]));
|
|
33983
34033
|
stack.push('</div>');
|
|
33984
34034
|
});
|
|
33985
|
-
} else if ((0,
|
|
34035
|
+
} else if ((0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isArray)(colors)) {
|
|
33986
34036
|
colors.forEach(function(color) {
|
|
33987
|
-
|
|
34037
|
+
var active = valueHex === color;
|
|
34038
|
+
stack.push('<button type="button" class=\''.concat(cn, "__color-item ").concat(active ? cn + '__color-item_active_true' : '', "' title=\"").concat(color, '" aria-pressed="').concat(active, '" tabindex="-1" style="background-color:').concat(color, '" data-color="').concat(color, '"></button>'));
|
|
33988
34039
|
});
|
|
33989
34040
|
}
|
|
33990
34041
|
return stack.join('');
|
|
33991
34042
|
};
|
|
33992
34043
|
// The group wrapper lays the colors out in rows, so a flat list needs one
|
|
33993
34044
|
// too. See #1487
|
|
33994
|
-
var groups = (0,
|
|
33995
|
-
|
|
33996
|
-
|
|
33997
|
-
|
|
33998
|
-
|
|
33999
|
-
var
|
|
34045
|
+
var groups = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isArray)(editor.o.colors) ? '<div class="'.concat(cn, '__group">').concat(eachColor(editor.o.colors), "</div>") : eachColor(editor.o.colors);
|
|
34046
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
|
|
34047
|
+
var items = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.toArray)(form.querySelectorAll(".".concat(cn, "__color-item")));
|
|
34048
|
+
// Tab stops at one color, the current one or the first, and the arrow
|
|
34049
|
+
// keys move from it
|
|
34050
|
+
var tabStop = (_items_find = items.find(function(item) {
|
|
34051
|
+
return (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.attr)(item, 'aria-pressed') === 'true';
|
|
34052
|
+
})) !== null && _items_find !== void 0 ? _items_find : items[0];
|
|
34053
|
+
if (tabStop) {
|
|
34054
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.attr)(tabStop, 'tabindex', 0);
|
|
34055
|
+
}
|
|
34056
|
+
// Along a row, or to the nearest color in the row above or below, as the
|
|
34057
|
+
// palette is laid out
|
|
34058
|
+
var nextItem = function nextItem(item, key) {
|
|
34059
|
+
var index = items.indexOf(item);
|
|
34060
|
+
if (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_RIGHT) {
|
|
34061
|
+
var step = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT ? -1 : 1;
|
|
34062
|
+
var rtl = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.css)(item, 'direction') === 'rtl';
|
|
34063
|
+
return items[index + (rtl ? -step : step)];
|
|
34064
|
+
}
|
|
34065
|
+
var down = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN, rows = items.filter(function(other) {
|
|
34066
|
+
return down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop;
|
|
34067
|
+
});
|
|
34068
|
+
if (!rows.length) {
|
|
34069
|
+
return;
|
|
34070
|
+
}
|
|
34071
|
+
var top = (down ? Math.min : Math.max).apply(_this, (0,_swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_0__._)(rows.map(function(other) {
|
|
34072
|
+
return other.offsetTop;
|
|
34073
|
+
}))), distance = function distance(other) {
|
|
34074
|
+
return Math.abs(other.offsetLeft - item.offsetLeft);
|
|
34075
|
+
};
|
|
34076
|
+
return rows.filter(function(other) {
|
|
34077
|
+
return other.offsetTop === top;
|
|
34078
|
+
}).reduce(function(nearest, other) {
|
|
34079
|
+
return distance(other) < distance(nearest) ? other : nearest;
|
|
34080
|
+
});
|
|
34081
|
+
};
|
|
34082
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
|
|
34083
|
+
var extra = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.refs)(form).extra;
|
|
34084
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="').concat(valueHex || '', '"/></div>')));
|
|
34085
|
+
var hexInput = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.refs)(form).hexInput;
|
|
34000
34086
|
// Enter applies the value and closes the popup; removing the focused
|
|
34001
34087
|
// input then makes Chrome fire `change` on it, which would apply the
|
|
34002
34088
|
// same color a second time and toggle it off again. See #1459
|
|
@@ -34011,8 +34097,8 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
34011
34097
|
if (!isHex && !isRgb) {
|
|
34012
34098
|
return;
|
|
34013
34099
|
}
|
|
34014
|
-
var color = (0,
|
|
34015
|
-
if (color && (0,
|
|
34100
|
+
var color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
|
|
34101
|
+
if (color && (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isFunction)(callback)) {
|
|
34016
34102
|
appliedHexValue = raw;
|
|
34017
34103
|
callback(color);
|
|
34018
34104
|
}
|
|
@@ -34027,40 +34113,79 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
34027
34113
|
e.stopPropagation();
|
|
34028
34114
|
applyHexInput();
|
|
34029
34115
|
});
|
|
34030
|
-
|
|
34031
|
-
if (editor.o.showBrowserColorPicker && (0,
|
|
34032
|
-
|
|
34116
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(extra, editor.c.fromHTML('<button type="button" class="'.concat(cn, '__remove" data-color="" title="').concat(editor.i18n('Remove'), '">').concat(editor.o.textIcons ? editor.i18n('Remove') : jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.Icon.get('eraser'), "</button>")));
|
|
34117
|
+
if (editor.o.showBrowserColorPicker && (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.hasBrowserColorPicker)()) {
|
|
34118
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__native">').concat(iconPalette, '<input type="color" value="#ffffff"/></div>')));
|
|
34033
34119
|
editor.e.on(form, 'change', function(e) {
|
|
34034
34120
|
e.stopPropagation();
|
|
34035
34121
|
var target = e.target;
|
|
34036
|
-
if (!target || !target.tagName || !
|
|
34122
|
+
if (!target || !target.tagName || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(target, 'input') || target.type !== 'color') {
|
|
34037
34123
|
return;
|
|
34038
34124
|
}
|
|
34039
34125
|
var color = target.value || '';
|
|
34040
|
-
if ((0,
|
|
34126
|
+
if ((0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isFunction)(callback)) {
|
|
34041
34127
|
callback(color);
|
|
34042
34128
|
}
|
|
34043
34129
|
e.preventDefault();
|
|
34044
34130
|
});
|
|
34045
34131
|
}
|
|
34132
|
+
// The color of a swatch, or '' for Remove, from an event on it or its icon
|
|
34133
|
+
var colorOf = function colorOf(node) {
|
|
34134
|
+
var button = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, function(elm) {
|
|
34135
|
+
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove'));
|
|
34136
|
+
}, form);
|
|
34137
|
+
return button ? (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.attr)(button, '-color') || '' : undefined;
|
|
34138
|
+
};
|
|
34139
|
+
var apply = function apply(color) {
|
|
34140
|
+
if (callback && (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.isFunction)(callback)) {
|
|
34141
|
+
callback(color);
|
|
34142
|
+
}
|
|
34143
|
+
};
|
|
34144
|
+
// A pointer applies the color on `mousedown`, which keeps the selection.
|
|
34145
|
+
// The keyboard and screen readers press the button, which sends only
|
|
34146
|
+
// `click`, so a click after the pointer's `mousedown` is skipped
|
|
34147
|
+
var pointerPressed = false;
|
|
34046
34148
|
editor.e.on(form, 'mousedown touchend', function(e) {
|
|
34047
34149
|
// let the hex/native inputs receive focus and clicks
|
|
34048
|
-
if (
|
|
34150
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'input')) {
|
|
34049
34151
|
e.stopPropagation();
|
|
34050
34152
|
return;
|
|
34051
34153
|
}
|
|
34052
34154
|
e.stopPropagation();
|
|
34053
34155
|
e.preventDefault();
|
|
34054
|
-
var
|
|
34055
|
-
if (
|
|
34056
|
-
|
|
34156
|
+
var color = colorOf(e.target);
|
|
34157
|
+
if (color !== undefined) {
|
|
34158
|
+
pointerPressed = e.type === 'mousedown';
|
|
34159
|
+
apply(color);
|
|
34057
34160
|
}
|
|
34058
|
-
|
|
34161
|
+
});
|
|
34162
|
+
editor.e.on(form, 'click', function(e) {
|
|
34163
|
+
var color = colorOf(e.target);
|
|
34164
|
+
if (color !== undefined && !pointerPressed) {
|
|
34165
|
+
apply(color);
|
|
34166
|
+
}
|
|
34167
|
+
pointerPressed = false;
|
|
34168
|
+
}).on(form, 'keydown', function(e) {
|
|
34169
|
+
var _nextItem;
|
|
34170
|
+
pointerPressed = false;
|
|
34171
|
+
var item = e.target;
|
|
34172
|
+
if (!items.includes(item) || ![
|
|
34173
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT,
|
|
34174
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_RIGHT,
|
|
34175
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP,
|
|
34176
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN
|
|
34177
|
+
].includes(e.key)) {
|
|
34059
34178
|
return;
|
|
34060
34179
|
}
|
|
34061
|
-
|
|
34062
|
-
|
|
34063
|
-
|
|
34180
|
+
// The toolbar's dropdown would walk every color one by one
|
|
34181
|
+
e.preventDefault();
|
|
34182
|
+
e.stopPropagation();
|
|
34183
|
+
(_nextItem = nextItem(item, e.key)) === null || _nextItem === void 0 ? void 0 : _nextItem.focus();
|
|
34184
|
+
}).on(form, 'focusin', function(e) {
|
|
34185
|
+
if (items.includes(e.target)) {
|
|
34186
|
+
items.forEach(function(item) {
|
|
34187
|
+
return (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_3__.attr)(item, 'tabindex', item === e.target ? 0 : -1);
|
|
34188
|
+
});
|
|
34064
34189
|
}
|
|
34065
34190
|
});
|
|
34066
34191
|
editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
|
|
@@ -35438,7 +35563,8 @@ UiAiAssistant = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
|
35438
35563
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(91206);
|
|
35439
35564
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(59400);
|
|
35440
35565
|
/* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(5658);
|
|
35441
|
-
/* harmony import */ var
|
|
35566
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29434);
|
|
35567
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(95085);
|
|
35442
35568
|
/*!
|
|
35443
35569
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35444
35570
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35463,16 +35589,23 @@ UiAiAssistant = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
|
35463
35589
|
|
|
35464
35590
|
|
|
35465
35591
|
|
|
35466
|
-
|
|
35467
|
-
|
|
35468
|
-
|
|
35469
|
-
|
|
35470
|
-
|
|
35471
|
-
return ".jodit-wysiwyg a[".concat(key, "]:not([href]):empty::before");
|
|
35472
|
-
}).join(',');
|
|
35592
|
+
|
|
35593
|
+
/**
|
|
35594
|
+
* The editing area of an editor with the plugin, when it shares its document
|
|
35595
|
+
* with the page and so with any other editor on it
|
|
35596
|
+
*/ var WITH_ANCHORS = 'jodit-wysiwyg_anchors';
|
|
35473
35597
|
/**
|
|
35474
|
-
* Each anchor's marker, in the editing
|
|
35475
|
-
*/
|
|
35598
|
+
* Each anchor's marker, in the editing areas `scope` picks out
|
|
35599
|
+
*/ function markerStyle(scope) {
|
|
35600
|
+
var marker = [
|
|
35601
|
+
'id',
|
|
35602
|
+
'name'
|
|
35603
|
+
].map(function(key) {
|
|
35604
|
+
return ".jodit-wysiwyg".concat(scope, " a[").concat(key, "]:not([href]):empty::before");
|
|
35605
|
+
}).join(',');
|
|
35606
|
+
var icon = 'url("data:image/svg+xml,'.concat(encodeURIComponent(jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_15__.Icon.get('anchor')), '") center/contain no-repeat');
|
|
35607
|
+
return "".concat(marker, "{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:").concat(icon, ";mask:").concat(icon, ";cursor:pointer;content:''}");
|
|
35608
|
+
}
|
|
35476
35609
|
/**
|
|
35477
35610
|
* The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
|
|
35478
35611
|
*/ var MARK = ' contenteditable="false"';
|
|
@@ -35501,8 +35634,14 @@ var MARKER = [
|
|
|
35501
35634
|
{
|
|
35502
35635
|
key: "afterInit",
|
|
35503
35636
|
value: /** @override */ function afterInit(jodit) {
|
|
35637
|
+
// An iframe's document is the editor's alone, and its body is part of
|
|
35638
|
+
// the value with `editHTMLDocumentMode`, so it gets no class
|
|
35639
|
+
var shared = jodit.ed === jodit.od;
|
|
35640
|
+
if (shared) {
|
|
35641
|
+
jodit.editor.classList.add(WITH_ANCHORS);
|
|
35642
|
+
}
|
|
35504
35643
|
// It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
|
|
35505
|
-
;(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_10__.getContainer)(jodit, 'anchor', 'style', true).textContent =
|
|
35644
|
+
;(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_10__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
|
|
35506
35645
|
jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
|
|
35507
35646
|
top: true
|
|
35508
35647
|
});
|
|
@@ -35547,6 +35686,27 @@ var MARKER = [
|
|
|
35547
35686
|
data.value = unmarkAnchors(data.value);
|
|
35548
35687
|
}
|
|
35549
35688
|
},
|
|
35689
|
+
{
|
|
35690
|
+
key: "onBeforePasteInsert",
|
|
35691
|
+
value: /**
|
|
35692
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
35693
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
35694
|
+
*/ function onBeforePasteInsert(html) {
|
|
35695
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isElement(html) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isFragment(html)) {
|
|
35696
|
+
this.__renameCopies(html);
|
|
35697
|
+
return;
|
|
35698
|
+
}
|
|
35699
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.isString)(html) || !/<a\s/i.test(html)) {
|
|
35700
|
+
return;
|
|
35701
|
+
}
|
|
35702
|
+
// Inert, so nothing in it loads
|
|
35703
|
+
var template = this.j.createInside.element('template');
|
|
35704
|
+
template.innerHTML = html;
|
|
35705
|
+
if (this.__renameCopies(template.content)) {
|
|
35706
|
+
return template.innerHTML;
|
|
35707
|
+
}
|
|
35708
|
+
}
|
|
35709
|
+
},
|
|
35550
35710
|
{
|
|
35551
35711
|
key: "__generateForm",
|
|
35552
35712
|
value: /**
|
|
@@ -35706,10 +35866,60 @@ var MARKER = [
|
|
|
35706
35866
|
});
|
|
35707
35867
|
}
|
|
35708
35868
|
},
|
|
35869
|
+
{
|
|
35870
|
+
key: "__renameCopies",
|
|
35871
|
+
value: /**
|
|
35872
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
35873
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
35874
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
35875
|
+
*/ function __renameCopies(root) {
|
|
35876
|
+
var _this = this;
|
|
35877
|
+
var inRoot = new Set((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.toArray)(root.querySelectorAll('[id], a[name]')).map(function(elm) {
|
|
35878
|
+
return elm.id || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.attr)(elm, 'name');
|
|
35879
|
+
}));
|
|
35880
|
+
var renamed = new Map();
|
|
35881
|
+
var anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.isAnchor)(root) ? [
|
|
35882
|
+
root
|
|
35883
|
+
] : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.getAnchors)(root);
|
|
35884
|
+
anchors.forEach(function(anchor) {
|
|
35885
|
+
var name = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.getAnchorName)(anchor);
|
|
35886
|
+
if (!_this.__isTaken(name, null)) {
|
|
35887
|
+
return;
|
|
35888
|
+
}
|
|
35889
|
+
var copy = name;
|
|
35890
|
+
for(var n = 2; inRoot.has(copy) || _this.__isTaken(copy, null); n += 1){
|
|
35891
|
+
copy = "".concat(name, "-").concat(n);
|
|
35892
|
+
}
|
|
35893
|
+
[
|
|
35894
|
+
'id',
|
|
35895
|
+
'name'
|
|
35896
|
+
].forEach(function(key) {
|
|
35897
|
+
if (anchor.hasAttribute(key)) {
|
|
35898
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.attr)(anchor, key, copy);
|
|
35899
|
+
}
|
|
35900
|
+
});
|
|
35901
|
+
inRoot.add(copy);
|
|
35902
|
+
renamed.set(name, copy);
|
|
35903
|
+
});
|
|
35904
|
+
if (!renamed.size) {
|
|
35905
|
+
return false;
|
|
35906
|
+
}
|
|
35907
|
+
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.toArray)(root.querySelectorAll('a[href]')).forEach(function(link) {
|
|
35908
|
+
var _attr;
|
|
35909
|
+
var href = (_attr = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.attr)(link, 'href')) !== null && _attr !== void 0 ? _attr : '';
|
|
35910
|
+
var copy = href[0] === '#' && renamed.get(href.slice(1));
|
|
35911
|
+
if (copy) {
|
|
35912
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__.attr)(link, 'href', '#' + copy);
|
|
35913
|
+
}
|
|
35914
|
+
});
|
|
35915
|
+
return true;
|
|
35916
|
+
}
|
|
35917
|
+
},
|
|
35709
35918
|
{
|
|
35710
35919
|
key: "beforeDestruct",
|
|
35711
35920
|
value: /** @override */ function beforeDestruct(jodit) {
|
|
35712
35921
|
this.__dropForm();
|
|
35922
|
+
jodit.editor.classList.remove(WITH_ANCHORS);
|
|
35713
35923
|
jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
|
|
35714
35924
|
}
|
|
35715
35925
|
}
|
|
@@ -35730,6 +35940,9 @@ var MARKER = [
|
|
|
35730
35940
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
35731
35941
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':afterGetValueFromEditor')
|
|
35732
35942
|
], anchor.prototype, "onAfterGetValueFromEditor", null);
|
|
35943
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
35944
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':beforePasteInsert')
|
|
35945
|
+
], anchor.prototype, "onBeforePasteInsert", null);
|
|
35733
35946
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
35734
35947
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.autobind
|
|
35735
35948
|
], anchor.prototype, "__generateForm", null);
|
|
@@ -43536,6 +43749,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
|
|
|
43536
43749
|
exec: function exec(editor) {
|
|
43537
43750
|
editor.toggleFullSize();
|
|
43538
43751
|
},
|
|
43752
|
+
// Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
|
|
43753
|
+
isActive: function isActive(editor) {
|
|
43754
|
+
return editor.isFullSize;
|
|
43755
|
+
},
|
|
43539
43756
|
update: function update(editor, button) {
|
|
43540
43757
|
var mode = editor.isFullSize ? 'shrink' : 'fullsize';
|
|
43541
43758
|
button.state.activated = editor.isFullSize;
|
|
@@ -43931,9 +44148,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_7__.pluginSystem.add('hotkeys', hotke
|
|
|
43931
44148
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
43932
44149
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
|
|
43933
44150
|
command: 'insertHorizontalRule',
|
|
43934
|
-
tags: [
|
|
43935
|
-
'hr'
|
|
43936
|
-
],
|
|
43937
44151
|
tooltip: 'Insert Horizontal Line'
|
|
43938
44152
|
};
|
|
43939
44153
|
function hr(editor) {
|
|
@@ -49435,9 +49649,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = n
|
|
|
49435
49649
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
49436
49650
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
|
|
49437
49651
|
command: 'applyLineHeight',
|
|
49438
|
-
tags: [
|
|
49439
|
-
'ol'
|
|
49440
|
-
],
|
|
49441
49652
|
tooltip: 'Line height',
|
|
49442
49653
|
list: [
|
|
49443
49654
|
1,
|
|
@@ -50869,7 +51080,9 @@ var formTemplate = function formTemplate(editor) {
|
|
|
50869
51080
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
50870
51081
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
50871
51082
|
name: 'url',
|
|
50872
|
-
|
|
51083
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
51084
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
51085
|
+
type: 'url',
|
|
50873
51086
|
ref: 'url_input',
|
|
50874
51087
|
label: 'URL',
|
|
50875
51088
|
placeholder: 'http://',
|
|
@@ -54491,6 +54704,19 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
54491
54704
|
this.__onChangeEditor();
|
|
54492
54705
|
}
|
|
54493
54706
|
},
|
|
54707
|
+
{
|
|
54708
|
+
key: "onEditorTouchEnd",
|
|
54709
|
+
value: /**
|
|
54710
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
54711
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
54712
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
54713
|
+
*/ function onEditorTouchEnd(e) {
|
|
54714
|
+
var _this = this;
|
|
54715
|
+
this.j.async.setTimeout(function() {
|
|
54716
|
+
return _this.onEditorClick(e);
|
|
54717
|
+
}, 1);
|
|
54718
|
+
}
|
|
54719
|
+
},
|
|
54494
54720
|
{
|
|
54495
54721
|
key: "onEditorClick",
|
|
54496
54722
|
value: /**
|
|
@@ -54944,6 +55170,9 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
54944
55170
|
]);
|
|
54945
55171
|
return resizer;
|
|
54946
55172
|
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_14__.Plugin));
|
|
55173
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
55174
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':touchend')
|
|
55175
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
54947
55176
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
54948
55177
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':click')
|
|
54949
55178
|
], resizer.prototype, "onEditorClick", null);
|