jodit-pro-react 5.5.35 → 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;
|
|
@@ -28384,6 +28384,29 @@ var select = class extends Plugin {
|
|
|
28384
28384
|
s48.expandSelection();
|
|
28385
28385
|
return false;
|
|
28386
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
|
+
}
|
|
28387
28410
|
/**
|
|
28388
28411
|
* Normalize selection after triple click
|
|
28389
28412
|
*/
|
|
@@ -28420,6 +28443,9 @@ __decorate62([
|
|
|
28420
28443
|
__decorate62([
|
|
28421
28444
|
watch([":beforeCommandSelectall"])
|
|
28422
28445
|
], select.prototype, "beforeCommandSelectAll", null);
|
|
28446
|
+
__decorate62([
|
|
28447
|
+
watch([":click"])
|
|
28448
|
+
], select.prototype, "onClickRightOfNestedListItem", null);
|
|
28423
28449
|
__decorate62([
|
|
28424
28450
|
watch([":click"])
|
|
28425
28451
|
], select.prototype, "onTripleClickNormalizeSelection", null);
|