jodit-pro-react 5.5.34 → 5.5.36
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.
|
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
193
193
|
var init_constants = __esm({
|
|
194
194
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
195
195
|
"use strict";
|
|
196
|
-
APP_VERSION = "4.12.
|
|
196
|
+
APP_VERSION = "4.12.17";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -7010,6 +7010,9 @@ function removeExtraBr(jodit, node) {
|
|
|
7010
7010
|
if (!Dom.isTag(br, "br")) {
|
|
7011
7011
|
return;
|
|
7012
7012
|
}
|
|
7013
|
+
if (Dom.findNotEmptySibling(br, false)) {
|
|
7014
|
+
return;
|
|
7015
|
+
}
|
|
7013
7016
|
jodit.s.setCursorBefore(br);
|
|
7014
7017
|
Dom.safeRemove(br);
|
|
7015
7018
|
}
|
|
@@ -28381,6 +28384,29 @@ var select = class extends Plugin {
|
|
|
28381
28384
|
s48.expandSelection();
|
|
28382
28385
|
return false;
|
|
28383
28386
|
}
|
|
28387
|
+
/**
|
|
28388
|
+
* Fix caret position when clicking to the right of a list item that has a
|
|
28389
|
+
* nested list. Blink/WebKit place the caret at the start of the line instead
|
|
28390
|
+
* of the end (#1296); move it to the end of the item's own text.
|
|
28391
|
+
*/
|
|
28392
|
+
onClickRightOfNestedListItem(e42) {
|
|
28393
|
+
const { s: s48 } = this.j;
|
|
28394
|
+
const range = s48.range;
|
|
28395
|
+
if (!range.collapsed || range.startOffset !== 0 || !Dom.isText(range.startContainer)) {
|
|
28396
|
+
return;
|
|
28397
|
+
}
|
|
28398
|
+
const text = range.startContainer;
|
|
28399
|
+
const li = text.parentNode;
|
|
28400
|
+
if (!Dom.isTag(li, "li") || !(li.querySelector("ul") || li.querySelector("ol"))) {
|
|
28401
|
+
return;
|
|
28402
|
+
}
|
|
28403
|
+
const measure = this.j.ed.createRange();
|
|
28404
|
+
measure.selectNodeContents(text);
|
|
28405
|
+
const rect = measure.getBoundingClientRect();
|
|
28406
|
+
if (e42.clientX > rect.right) {
|
|
28407
|
+
s48.setCursorAfter(text);
|
|
28408
|
+
}
|
|
28409
|
+
}
|
|
28384
28410
|
/**
|
|
28385
28411
|
* Normalize selection after triple click
|
|
28386
28412
|
*/
|
|
@@ -28417,6 +28443,9 @@ __decorate62([
|
|
|
28417
28443
|
__decorate62([
|
|
28418
28444
|
watch([":beforeCommandSelectall"])
|
|
28419
28445
|
], select.prototype, "beforeCommandSelectAll", null);
|
|
28446
|
+
__decorate62([
|
|
28447
|
+
watch([":click"])
|
|
28448
|
+
], select.prototype, "onClickRightOfNestedListItem", null);
|
|
28420
28449
|
__decorate62([
|
|
28421
28450
|
watch([":click"])
|
|
28422
28451
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|