@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
|
@@ -17050,8 +17050,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
17050
17050
|
}
|
|
17051
17051
|
}
|
|
17052
17052
|
}
|
|
17053
|
-
|
|
17054
|
-
var changedValue = styleProperty + values[i];
|
|
17053
|
+
var changedValue = styleProperty + valueSplit.join(';') + ';';
|
|
17055
17054
|
resultElem[j].setAttribute('style', changedValue);
|
|
17056
17055
|
}
|
|
17057
17056
|
else {
|
|
@@ -18686,6 +18685,11 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
18686
18685
|
if (e.args.code === 'Backspace' && e.args.keyCode === 8 && currentRange.startOffset === 0 &&
|
|
18687
18686
|
currentRange.endOffset === 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.textContent.length > 0 &&
|
|
18688
18687
|
currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH') {
|
|
18688
|
+
var checkNode = currentRange.startContainer.nodeName === '#text' ? currentRange.startContainer.parentElement : currentRange.startContainer;
|
|
18689
|
+
if (!this.parent.formatter.editorManager.domNode.isBlockNode(checkNode) &&
|
|
18690
|
+
!isNullOrUndefined(checkNode.previousSibling) && checkNode.previousSibling.nodeName === 'BR') {
|
|
18691
|
+
return;
|
|
18692
|
+
}
|
|
18689
18693
|
this.rangeElement = this.getRootBlockNode(currentRange.startContainer);
|
|
18690
18694
|
if (this.rangeElement.tagName === 'OL' || this.rangeElement.tagName === 'UL') {
|
|
18691
18695
|
var liElement = this.getRangeLiNode(currentRange.startContainer);
|
|
@@ -28626,9 +28630,15 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
28626
28630
|
if (!isNearBlockLengthZero) {
|
|
28627
28631
|
var currentFocusElem = insertElem;
|
|
28628
28632
|
var finalFocusElem = void 0;
|
|
28629
|
-
|
|
28633
|
+
if (_this.range.startOffset === _this.range.endOffset && _this.range.startOffset != 0) {
|
|
28634
|
+
while (!isNullOrUndefined(currentFocusElem) && currentFocusElem.nodeName !== '#text' &&
|
|
28635
|
+
currentFocusElem.nodeName !== 'BR') {
|
|
28636
|
+
finalFocusElem = currentFocusElem;
|
|
28637
|
+
currentFocusElem = currentFocusElem.lastChild;
|
|
28638
|
+
}
|
|
28639
|
+
}
|
|
28640
|
+
else {
|
|
28630
28641
|
finalFocusElem = currentFocusElem;
|
|
28631
|
-
currentFocusElem = currentFocusElem.lastChild;
|
|
28632
28642
|
}
|
|
28633
28643
|
finalFocusElem.innerHTML = '<br>';
|
|
28634
28644
|
if (!isImageNode) {
|