@syncfusion/ej2-richtexteditor 21.2.8 → 21.2.9
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 +8 -2
- package/dist/ej2-richtexteditor.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +7 -3
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +7 -3
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/rich-text-editor/actions/html-editor.js +7 -3
- package/styles/rich-text-editor/_layout.scss +0 -5
- package/styles/rich-text-editor/tailwind-dark.css +0 -5
- package/styles/rich-text-editor/tailwind.css +0 -5
- package/styles/tailwind-dark.css +0 -5
- package/styles/tailwind.css +0 -5
|
@@ -19549,9 +19549,10 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
19549
19549
|
range.startContainer.nodeName === '#text' ? range.startContainer.parentElement !== this.parent.inputElement ? range.startContainer.parentElement.classList.add('currentStartMark')
|
|
19550
19550
|
: isRootParent = true : range.startContainer.classList.add('currentStartMark');
|
|
19551
19551
|
if (range.startContainer.textContent.charCodeAt(0) === 8203) {
|
|
19552
|
-
|
|
19553
|
-
|
|
19552
|
+
var previousLength_1 = range.startContainer.textContent.length;
|
|
19553
|
+
var previousRange = range.startOffset;
|
|
19554
19554
|
range.startContainer.textContent = range.startContainer.textContent.replace(regEx, '');
|
|
19555
|
+
pointer = previousRange === 0 ? previousRange : previousRange - (previousLength_1 - range.startContainer.textContent.length);
|
|
19555
19556
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), range.startContainer, pointer);
|
|
19556
19557
|
}
|
|
19557
19558
|
var previousLength = this.parent.inputElement.innerHTML.length;
|
|
@@ -19571,7 +19572,10 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
19571
19572
|
i--;
|
|
19572
19573
|
}
|
|
19573
19574
|
if (focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
|
|
19574
|
-
pointer = focusNode.textContent.length > 1 ?
|
|
19575
|
+
pointer = focusNode.textContent.length > 1 ?
|
|
19576
|
+
(focusNode.textContent === currentChildNode[i].textContent ? pointer :
|
|
19577
|
+
pointer - (focusNode.textContent.length - focusNode.textContent.replace(regEx, '').length)) :
|
|
19578
|
+
focusNode.textContent.length;
|
|
19575
19579
|
focusNode = currentChildNode[i];
|
|
19576
19580
|
}
|
|
19577
19581
|
}
|