@syncfusion/ej2-richtexteditor 20.3.50 → 20.3.59
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 +12 -0
- 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 +14 -4
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +14 -4
- 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 +13 -13
- package/src/editor-manager/plugin/ms-word-clean-up.js +1 -2
- package/src/rich-text-editor/actions/enter-key.js +8 -2
- package/src/rich-text-editor/actions/html-editor.js +5 -0
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/rich-text-editor/bootstrap-dark.css +1 -1
- package/styles/rich-text-editor/bootstrap.css +1 -1
- package/styles/rich-text-editor/bootstrap4.css +1 -1
- package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
- package/styles/rich-text-editor/bootstrap5.css +1 -1
- package/styles/rich-text-editor/fabric-dark.css +1 -1
- package/styles/rich-text-editor/fabric.css +1 -1
- package/styles/rich-text-editor/fluent-dark.css +1 -1
- package/styles/rich-text-editor/fluent.css +1 -1
- package/styles/rich-text-editor/highcontrast-light.css +1 -1
- package/styles/rich-text-editor/highcontrast.css +1 -1
- package/styles/rich-text-editor/material-dark.css +1 -1
- package/styles/rich-text-editor/material.css +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +1 -1
- package/styles/rich-text-editor/tailwind.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
- package/.eslintrc.json +0 -244
- package/tslint.json +0 -111
|
@@ -16924,8 +16924,7 @@ class MsWordPaste {
|
|
|
16924
16924
|
}
|
|
16925
16925
|
}
|
|
16926
16926
|
}
|
|
16927
|
-
|
|
16928
|
-
const changedValue = styleProperty + values[i];
|
|
16927
|
+
const changedValue = styleProperty + valueSplit.join(';') + ';';
|
|
16929
16928
|
resultElem[j].setAttribute('style', changedValue);
|
|
16930
16929
|
}
|
|
16931
16930
|
else {
|
|
@@ -18612,6 +18611,11 @@ class HtmlEditor {
|
|
|
18612
18611
|
if (e.args.code === 'Backspace' && e.args.keyCode === 8 && currentRange.startOffset === 0 &&
|
|
18613
18612
|
currentRange.endOffset === 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.textContent.length > 0 &&
|
|
18614
18613
|
currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH') {
|
|
18614
|
+
let checkNode = currentRange.startContainer.nodeName === '#text' ? currentRange.startContainer.parentElement : currentRange.startContainer;
|
|
18615
|
+
if (!this.parent.formatter.editorManager.domNode.isBlockNode(checkNode) &&
|
|
18616
|
+
!isNullOrUndefined(checkNode.previousSibling) && checkNode.previousSibling.nodeName === 'BR') {
|
|
18617
|
+
return;
|
|
18618
|
+
}
|
|
18615
18619
|
this.rangeElement = this.getRootBlockNode(currentRange.startContainer);
|
|
18616
18620
|
if (this.rangeElement.tagName === 'OL' || this.rangeElement.tagName === 'UL') {
|
|
18617
18621
|
const liElement = this.getRangeLiNode(currentRange.startContainer);
|
|
@@ -28363,9 +28367,15 @@ class EnterKeyAction {
|
|
|
28363
28367
|
if (!isNearBlockLengthZero) {
|
|
28364
28368
|
let currentFocusElem = insertElem;
|
|
28365
28369
|
let finalFocusElem;
|
|
28366
|
-
|
|
28370
|
+
if (this.range.startOffset === this.range.endOffset && this.range.startOffset != 0) {
|
|
28371
|
+
while (!isNullOrUndefined(currentFocusElem) && currentFocusElem.nodeName !== '#text' &&
|
|
28372
|
+
currentFocusElem.nodeName !== 'BR') {
|
|
28373
|
+
finalFocusElem = currentFocusElem;
|
|
28374
|
+
currentFocusElem = currentFocusElem.lastChild;
|
|
28375
|
+
}
|
|
28376
|
+
}
|
|
28377
|
+
else {
|
|
28367
28378
|
finalFocusElem = currentFocusElem;
|
|
28368
|
-
currentFocusElem = currentFocusElem.lastChild;
|
|
28369
28379
|
}
|
|
28370
28380
|
finalFocusElem.innerHTML = '<br>';
|
|
28371
28381
|
if (!isImageNode) {
|