jodit 4.20.2 → 4.20.3
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 +10 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +6 -6
- package/es2015/jodit.js +90 -21
- package/es2015/jodit.min.js +6 -6
- 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.js +6 -6
- package/es2018/jodit.min.js +6 -6
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +6 -6
- package/es2021/jodit.js +87 -21
- package/es2021/jodit.min.js +6 -6
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +6 -6
- package/es2021.en/jodit.js +87 -21
- package/es2021.en/jodit.min.js +6 -6
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +98 -21
- package/es5/jodit.min.css +2 -2
- 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/modules/file-browser/builders/context-menu.js +6 -2
- package/esm/modules/toolbar/factory.js +3 -1
- package/esm/plugins/backspace/cases/check-not-collapsed.js +1 -1
- package/esm/plugins/delete/delete.d.ts +12 -0
- package/esm/plugins/delete/delete.js +66 -4
- package/esm/plugins/delete/interface.d.ts +4 -2
- package/esm/plugins/dtd/after-insert/remove-extra-br.js +7 -1
- package/esm/plugins/placeholder/placeholder.js +3 -1
- package/package.json +1 -1
- package/types/plugins/delete/delete.d.ts +12 -0
- package/types/plugins/delete/interface.d.ts +4 -2
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.3
|
|
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.3";
|
|
2159
2159
|
// prettier-ignore
|
|
2160
2160
|
var ES = "es5";
|
|
2161
2161
|
var IS_ES_MODERN = false;
|
|
@@ -26038,12 +26038,13 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
26038
26038
|
}), temp_content = self.c.div(CLASS_PREVIEW, '<div class="jodit-icon_loader"></div>'), preview_box = self.c.div(CLASS_PREVIEW + '__box'), next = self.c.fromHTML(preview_tpl_next()), prev = self.c.fromHTML(preview_tpl_next('prev', 'left')), addLoadHandler = function addLoadHandler(src) {
|
|
26039
26039
|
var image = self.c.element('img');
|
|
26040
26040
|
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'src', src);
|
|
26041
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'alt', ga('data-name'));
|
|
26041
26042
|
var onload = function onload() {
|
|
26042
26043
|
var _self_events;
|
|
26043
26044
|
if (self.isInDestruct) {
|
|
26044
26045
|
return;
|
|
26045
26046
|
}
|
|
26046
|
-
self.e.off(image, 'load');
|
|
26047
|
+
self.e.off(image, 'load error');
|
|
26047
26048
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.detach(temp_content);
|
|
26048
26049
|
if (opt.showPreviewNavigation) {
|
|
26049
26050
|
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.prevWithClass(item, self.files.getFullElName('item'))) {
|
|
@@ -26058,7 +26059,10 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
26058
26059
|
preview.setPosition();
|
|
26059
26060
|
self === null || self === void 0 ? void 0 : (_self_events = self.events) === null || _self_events === void 0 ? void 0 : _self_events.fire('previewOpenedAndLoaded');
|
|
26060
26061
|
};
|
|
26061
|
-
|
|
26062
|
+
// An image that can't load is shown too,
|
|
26063
|
+
// broken with the file's name, rather
|
|
26064
|
+
// than the loader for good
|
|
26065
|
+
self.e.on(image, 'load error', onload);
|
|
26062
26066
|
if (image.complete) {
|
|
26063
26067
|
onload();
|
|
26064
26068
|
}
|
|
@@ -32902,7 +32906,9 @@ ToolbarEditorCollection = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7
|
|
|
32902
32906
|
function makeSelect(view, control) {
|
|
32903
32907
|
var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
32904
32908
|
var ToolbarSelect = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
32905
|
-
|
|
32909
|
+
var select = new ToolbarSelect(view, control, target);
|
|
32910
|
+
select.state.tabIndex = view.o.allowTabNavigation ? 0 : -1;
|
|
32911
|
+
return select;
|
|
32906
32912
|
}
|
|
32907
32913
|
|
|
32908
32914
|
|
|
@@ -36772,7 +36778,7 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
|
|
|
36772
36778
|
* @private
|
|
36773
36779
|
*/ function checkNotCollapsed(jodit) {
|
|
36774
36780
|
if (!jodit.s.isCollapsed()) {
|
|
36775
|
-
jodit.execCommand('
|
|
36781
|
+
jodit.execCommand('delete', false, true);
|
|
36776
36782
|
return true;
|
|
36777
36783
|
}
|
|
36778
36784
|
return false;
|
|
@@ -40459,6 +40465,13 @@ var KEEPS_SPACES = new Set([
|
|
|
40459
40465
|
'pre-wrap',
|
|
40460
40466
|
'break-spaces'
|
|
40461
40467
|
]);
|
|
40468
|
+
/**
|
|
40469
|
+
* Formatting that the next letter keeps once all of the text in it is
|
|
40470
|
+
* deleted with a key: a formatting tag, or a span with styles of its own.
|
|
40471
|
+
* Not a link, which new text isn't added to, or a wrapper such as a video's
|
|
40472
|
+
*/ function keepsFormat(node) {
|
|
40473
|
+
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isHTMLElement(node) && !node.hasAttribute('contenteditable') && !jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isTemporary(node) && (/^(STRONG|B|EM|I|U|S|SUB|SUP)$/.test(node.nodeName) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isTag(node, 'span') && node.hasAttribute('style'));
|
|
40474
|
+
}
|
|
40462
40475
|
/**
|
|
40463
40476
|
* A plain space beside this neighbor isn't shown: there is none, or it's a
|
|
40464
40477
|
* line break, a block or text starting (or ending) with a plain space
|
|
@@ -40528,7 +40541,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
40528
40541
|
},
|
|
40529
40542
|
{
|
|
40530
40543
|
key: "__onDeleteCommand",
|
|
40531
|
-
value: function __onDeleteCommand() {
|
|
40544
|
+
value: function __onDeleteCommand(command, showUI, keepFormat) {
|
|
40532
40545
|
var jodit = this.jodit;
|
|
40533
40546
|
if (jodit.s.isCollapsed()) {
|
|
40534
40547
|
return;
|
|
@@ -40536,6 +40549,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
40536
40549
|
jodit.s.expandSelection();
|
|
40537
40550
|
var range = jodit.s.range;
|
|
40538
40551
|
this.__moveEdgesIntoCells(range);
|
|
40552
|
+
var format = keepFormat === true ? this.__formatTakenWhole(range) : [];
|
|
40539
40553
|
var caret = this.__clearSelectedCells(range);
|
|
40540
40554
|
if (caret && range.collapsed) {
|
|
40541
40555
|
jodit.s.selectRange(caret);
|
|
@@ -40551,8 +40565,12 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
40551
40565
|
this.__keepSpacesVisibleBesideTable(fake);
|
|
40552
40566
|
range.setStartBefore(fake);
|
|
40553
40567
|
range.collapse(true);
|
|
40554
|
-
|
|
40555
|
-
|
|
40568
|
+
if (format.length && !caret) {
|
|
40569
|
+
this.__keepFormat(format, fake, range);
|
|
40570
|
+
} else {
|
|
40571
|
+
this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
|
|
40572
|
+
this.__addBrInEmptyBlock(fake, range);
|
|
40573
|
+
}
|
|
40556
40574
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(fake);
|
|
40557
40575
|
jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
|
|
40558
40576
|
return false;
|
|
@@ -40577,6 +40595,56 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
40577
40595
|
}
|
|
40578
40596
|
}
|
|
40579
40597
|
},
|
|
40598
|
+
{
|
|
40599
|
+
key: "__formatTakenWhole",
|
|
40600
|
+
value: /**
|
|
40601
|
+
* The formatting elements the deletion takes whole from its start,
|
|
40602
|
+
* outermost first: `<strong>` and `<em>` for all of the text in
|
|
40603
|
+
* `<strong><em>cd</em></strong>`
|
|
40604
|
+
*/ function __formatTakenWhole(range) {
|
|
40605
|
+
var format = [];
|
|
40606
|
+
var whole = this.jodit.s.createRange();
|
|
40607
|
+
var startContainer = range.startContainer, startOffset = range.startOffset;
|
|
40608
|
+
var node = jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isText(startContainer) ? null : startContainer.childNodes[startOffset];
|
|
40609
|
+
// Through a block taken whole, as a line holding only the word is
|
|
40610
|
+
while(jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isHTMLElement(node)){
|
|
40611
|
+
whole.selectNode(node);
|
|
40612
|
+
if (range.compareBoundaryPoints(Range.END_TO_END, whole) < 0) {
|
|
40613
|
+
break;
|
|
40614
|
+
}
|
|
40615
|
+
if (keepsFormat(node)) {
|
|
40616
|
+
format.push(node);
|
|
40617
|
+
} else if (format.length || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isBlock(node)) {
|
|
40618
|
+
break;
|
|
40619
|
+
}
|
|
40620
|
+
node = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.toArray)(node.childNodes).find(function(child) {
|
|
40621
|
+
var _child_nodeValue;
|
|
40622
|
+
return !jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isText(child) || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_10__.trimInv)((_child_nodeValue = child.nodeValue) !== null && _child_nodeValue !== void 0 ? _child_nodeValue : '');
|
|
40623
|
+
});
|
|
40624
|
+
}
|
|
40625
|
+
return format;
|
|
40626
|
+
}
|
|
40627
|
+
},
|
|
40628
|
+
{
|
|
40629
|
+
key: "__keepFormat",
|
|
40630
|
+
value: /**
|
|
40631
|
+
* As the browsers do, the next letter typed keeps the formatting that was
|
|
40632
|
+
* deleted whole: empty copies go where it was, round an invisible space,
|
|
40633
|
+
* as Bold does at a collapsed caret, and the caret goes inside (#1784)
|
|
40634
|
+
*/ function __keepFormat(format, fake, range) {
|
|
40635
|
+
var copies = format.map(function(element) {
|
|
40636
|
+
return element.cloneNode(false);
|
|
40637
|
+
});
|
|
40638
|
+
for(var i = 1; i < copies.length; i += 1){
|
|
40639
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.append(copies[i - 1], copies[i]);
|
|
40640
|
+
}
|
|
40641
|
+
var text = this.jodit.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.INVISIBLE_SPACE);
|
|
40642
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.append(copies[copies.length - 1], text);
|
|
40643
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.before(fake, copies[0]);
|
|
40644
|
+
range.setStartAfter(text);
|
|
40645
|
+
range.collapse(true);
|
|
40646
|
+
}
|
|
40647
|
+
},
|
|
40580
40648
|
{
|
|
40581
40649
|
key: "__clearSelectedCells",
|
|
40582
40650
|
value: /**
|
|
@@ -41472,7 +41540,13 @@ var brBoxes = new Set([
|
|
|
41472
41540
|
// text; moving it before the `<br>` would put it on a line of its own
|
|
41473
41541
|
// below the block (#1315)
|
|
41474
41542
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(node, jodit.s.range.startContainer)) {
|
|
41475
|
-
|
|
41543
|
+
// Not with setCursorBefore: the text node it adds for the caret
|
|
41544
|
+
// stays after the inserted element once the `<br>` has gone, and
|
|
41545
|
+
// Right or End then take the caret into it, out of the element
|
|
41546
|
+
var range = jodit.s.createRange();
|
|
41547
|
+
range.setStartBefore(br);
|
|
41548
|
+
range.collapse(true);
|
|
41549
|
+
jodit.s.selectRange(range);
|
|
41476
41550
|
}
|
|
41477
41551
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(br);
|
|
41478
41552
|
}
|
|
@@ -53055,10 +53129,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder
|
|
|
53055
53129
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23211);
|
|
53056
53130
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(28077);
|
|
53057
53131
|
/* harmony import */ var jodit_core_helpers_checker_is_marker__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(23175);
|
|
53058
|
-
/* harmony import */ var
|
|
53059
|
-
/* harmony import */ var
|
|
53060
|
-
/* harmony import */ var
|
|
53061
|
-
/* harmony import */ var
|
|
53132
|
+
/* harmony import */ var jodit_core_helpers_utils_anchor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85371);
|
|
53133
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(7909);
|
|
53134
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80991);
|
|
53135
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18855);
|
|
53136
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8257);
|
|
53062
53137
|
/*!
|
|
53063
53138
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
53064
53139
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -53085,6 +53160,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder
|
|
|
53085
53160
|
|
|
53086
53161
|
|
|
53087
53162
|
|
|
53163
|
+
|
|
53088
53164
|
/**
|
|
53089
53165
|
* Check if root node is empty
|
|
53090
53166
|
* @private
|
|
@@ -53113,8 +53189,9 @@ function isBlank(root) {
|
|
|
53113
53189
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isText(first) && !next) {
|
|
53114
53190
|
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isEmptyTextNode(first);
|
|
53115
53191
|
}
|
|
53192
|
+
// An anchor has no text, but it's content, shown as a marker
|
|
53116
53193
|
return !next && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.each(first, function(elm) {
|
|
53117
|
-
return !(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isLeaf(elm) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isList(elm)) && (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isEmpty(elm) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(elm, 'br'));
|
|
53194
|
+
return !(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isLeaf(elm) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isList(elm) || (0,jodit_core_helpers_utils_anchor__WEBPACK_IMPORTED_MODULE_12__.isAnchor)(elm)) && (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isEmpty(elm) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(elm, 'br'));
|
|
53118
53195
|
});
|
|
53119
53196
|
}
|
|
53120
53197
|
/**
|
|
@@ -53130,7 +53207,7 @@ function isBlank(root) {
|
|
|
53130
53207
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "addEvents", function() {
|
|
53131
53208
|
var editor = _this.j;
|
|
53132
53209
|
if (editor.o.useInputsPlaceholder && editor.element.hasAttribute('placeholder')) {
|
|
53133
|
-
_this.placeholderElm.innerHTML = (0,
|
|
53210
|
+
_this.placeholderElm.innerHTML = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_13__.attr)(editor.element, 'placeholder') || '';
|
|
53134
53211
|
}
|
|
53135
53212
|
editor.e.fire('placeholder', _this.placeholderElm.innerHTML);
|
|
53136
53213
|
editor.e.off('.placeholder').on('changePlace.placeholder', _this.addNativeListeners).on('change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder ' + 'mousedown.placeholder afterSetMode.placeholder changePlace.placeholder ' + 'internalChange.placeholder afterCommand.placeholder resize.placeholder', _this.toggle).on(window, 'load', _this.toggle);
|
|
@@ -53149,7 +53226,7 @@ function isBlank(root) {
|
|
|
53149
53226
|
}
|
|
53150
53227
|
this.placeholderElm = editor.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(editor.i18n(editor.o.placeholder), "</span>"));
|
|
53151
53228
|
if (editor.o.direction === 'rtl') {
|
|
53152
|
-
(0,
|
|
53229
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__.css)(this.placeholderElm, {
|
|
53153
53230
|
right: 0,
|
|
53154
53231
|
direction: 'rtl'
|
|
53155
53232
|
});
|
|
@@ -53181,19 +53258,19 @@ function isBlank(root) {
|
|
|
53181
53258
|
var style2 = editor.ew.getComputedStyle(firstChild);
|
|
53182
53259
|
marginTop = parseInt(style2.getPropertyValue('margin-top'), 10);
|
|
53183
53260
|
marginLeft = parseInt(style2.getPropertyValue('margin-left'), 10);
|
|
53184
|
-
(0,
|
|
53261
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__.css)(this.placeholderElm, {
|
|
53185
53262
|
fontFamily: style2.getPropertyValue('font-family'),
|
|
53186
53263
|
fontSize: parseInt(style2.getPropertyValue('font-size'), 10),
|
|
53187
53264
|
lineHeight: style2.getPropertyValue('line-height')
|
|
53188
53265
|
});
|
|
53189
53266
|
} else {
|
|
53190
|
-
(0,
|
|
53267
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__.css)(this.placeholderElm, {
|
|
53191
53268
|
fontFamily: style.getPropertyValue('font-family'),
|
|
53192
53269
|
fontSize: parseInt(style.getPropertyValue('font-size'), 10),
|
|
53193
53270
|
lineHeight: style.getPropertyValue('line-height')
|
|
53194
53271
|
});
|
|
53195
53272
|
}
|
|
53196
|
-
;(0,
|
|
53273
|
+
;(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__.css)(this.placeholderElm, {
|
|
53197
53274
|
display: 'block',
|
|
53198
53275
|
textAlign: style.getPropertyValue('text-align'),
|
|
53199
53276
|
paddingTop: parseInt(styleEditor.paddingTop, 10) + 'px',
|
|
@@ -53237,7 +53314,7 @@ function isBlank(root) {
|
|
|
53237
53314
|
}
|
|
53238
53315
|
]);
|
|
53239
53316
|
return placeholder;
|
|
53240
|
-
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(
|
|
53317
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_15__.Plugin));
|
|
53241
53318
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
|
|
53242
53319
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.debounce)(function(ctx) {
|
|
53243
53320
|
return ctx.defaultTimeout / 10;
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.20.
|
|
11
|
+
* Version: v4.20.3
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|