@syncfusion/ej2-richtexteditor 20.1.51 → 20.1.52
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 +16 -0
- 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 +8 -6
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +8 -6
- 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 +7 -7
- package/src/editor-manager/plugin/inserthtml.js +2 -1
- package/src/editor-manager/plugin/nodecutter.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +3 -2
- package/src/rich-text-editor/actions/toolbar.js +1 -1
- package/src/rich-text-editor/renderer/table-module.js +1 -1
|
@@ -4232,7 +4232,7 @@ class Toolbar$2 {
|
|
|
4232
4232
|
if ((parent.bottom < (floatOffset + tbHeight + topValue)) || parent.bottom < 0 || parent.top > floatOffset + topValue) {
|
|
4233
4233
|
isFloat = false;
|
|
4234
4234
|
}
|
|
4235
|
-
else if (parent.top < floatOffset) {
|
|
4235
|
+
else if (parent.top < floatOffset || parent.top < floatOffset + topValue) {
|
|
4236
4236
|
isFloat = true;
|
|
4237
4237
|
}
|
|
4238
4238
|
}
|
|
@@ -11411,7 +11411,7 @@ class NodeCutter {
|
|
|
11411
11411
|
else if (len > -1) {
|
|
11412
11412
|
this.spliceEmptyNode(fragment.childNodes[0], isStart);
|
|
11413
11413
|
}
|
|
11414
|
-
else if (fragment.nodeType !== 3 && fragment.nodeType !== 11) {
|
|
11414
|
+
else if (fragment.nodeType !== 3 && fragment.nodeType !== 11 && fragment.nodeName !== 'IMG') {
|
|
11415
11415
|
fragment.parentNode.removeChild(fragment);
|
|
11416
11416
|
}
|
|
11417
11417
|
return fragment;
|
|
@@ -12233,7 +12233,8 @@ class InsertHtml {
|
|
|
12233
12233
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
12234
12234
|
}
|
|
12235
12235
|
else {
|
|
12236
|
-
|
|
12236
|
+
const nodeSelection = new NodeSelection();
|
|
12237
|
+
let currentNode = this.getNodeCollection(range, nodeSelection, node)[this.getNodeCollection(range, nodeSelection, node).length - 1];
|
|
12237
12238
|
let splitedElm;
|
|
12238
12239
|
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR') && !isNullOrUndefined(currentNode.parentElement) &&
|
|
12239
12240
|
currentNode.parentElement.textContent.trim().length === 0) {
|
|
@@ -23225,7 +23226,7 @@ class Table {
|
|
|
23225
23226
|
EventHandler.remove(this.contentModule.getEditPanel(), 'mouseover', this.resizeHelper);
|
|
23226
23227
|
}
|
|
23227
23228
|
const widthType = this.curTable.style.width.indexOf('%') > -1;
|
|
23228
|
-
this.curTable.style.width = widthType ? this.convertPixelToPercentage(tableWidth + mouseX, rteWidth) + '%'
|
|
23229
|
+
this.curTable.style.width = widthType && !this.curTable.closest('TD') ? this.convertPixelToPercentage(tableWidth + mouseX, rteWidth) + '%'
|
|
23229
23230
|
: tableWidth + mouseX + 'px';
|
|
23230
23231
|
this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
23231
23232
|
tableReBox.classList.add('e-rbox-select');
|
|
@@ -24532,8 +24533,9 @@ class EnterKeyAction {
|
|
|
24532
24533
|
}
|
|
24533
24534
|
removeBRElement(currentElement) {
|
|
24534
24535
|
if (Browser.userAgent.indexOf('Firefox') != -1 &&
|
|
24535
|
-
this.range.endOffset === currentElement.textContent.length &&
|
|
24536
|
-
currentElement.
|
|
24536
|
+
this.range.endOffset === currentElement.textContent.length && (currentElement.textContent.length !== 0 ||
|
|
24537
|
+
currentElement.querySelectorAll('BR').length > 1) &&
|
|
24538
|
+
!isNullOrUndefined(currentElement.lastChild) && currentElement.lastChild.nodeName === 'BR') {
|
|
24537
24539
|
detach(currentElement.lastChild);
|
|
24538
24540
|
}
|
|
24539
24541
|
}
|