@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
|
@@ -19477,9 +19477,10 @@ class HtmlEditor {
|
|
|
19477
19477
|
range.startContainer.nodeName === '#text' ? range.startContainer.parentElement !== this.parent.inputElement ? range.startContainer.parentElement.classList.add('currentStartMark')
|
|
19478
19478
|
: isRootParent = true : range.startContainer.classList.add('currentStartMark');
|
|
19479
19479
|
if (range.startContainer.textContent.charCodeAt(0) === 8203) {
|
|
19480
|
-
|
|
19481
|
-
|
|
19480
|
+
const previousLength = range.startContainer.textContent.length;
|
|
19481
|
+
const previousRange = range.startOffset;
|
|
19482
19482
|
range.startContainer.textContent = range.startContainer.textContent.replace(regEx, '');
|
|
19483
|
+
pointer = previousRange === 0 ? previousRange : previousRange - (previousLength - range.startContainer.textContent.length);
|
|
19483
19484
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), range.startContainer, pointer);
|
|
19484
19485
|
}
|
|
19485
19486
|
const previousLength = this.parent.inputElement.innerHTML.length;
|
|
@@ -19499,7 +19500,10 @@ class HtmlEditor {
|
|
|
19499
19500
|
i--;
|
|
19500
19501
|
}
|
|
19501
19502
|
if (focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
|
|
19502
|
-
pointer = focusNode.textContent.length > 1 ?
|
|
19503
|
+
pointer = focusNode.textContent.length > 1 ?
|
|
19504
|
+
(focusNode.textContent === currentChildNode[i].textContent ? pointer :
|
|
19505
|
+
pointer - (focusNode.textContent.length - focusNode.textContent.replace(regEx, '').length)) :
|
|
19506
|
+
focusNode.textContent.length;
|
|
19503
19507
|
focusNode = currentChildNode[i];
|
|
19504
19508
|
}
|
|
19505
19509
|
}
|