@syncfusion/ej2-richtexteditor 20.2.45 → 20.2.46
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 +6 -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 +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/enter-key.js +5 -2
- package/src/rich-text-editor/actions/full-screen.js +1 -0
- package/src/rich-text-editor/base/rich-text-editor.js +1 -1
|
@@ -19664,6 +19664,7 @@ class FullScreen {
|
|
|
19664
19664
|
baseToolbar: this.parent.getBaseToolbarObject()
|
|
19665
19665
|
});
|
|
19666
19666
|
}
|
|
19667
|
+
this.parent.refreshUI();
|
|
19667
19668
|
this.parent.trigger(actionComplete, { requestType: 'Maximize', targetItem: 'Maximize', args: event });
|
|
19668
19669
|
}
|
|
19669
19670
|
});
|
|
@@ -25020,7 +25021,7 @@ class EnterKeyAction {
|
|
|
25020
25021
|
blockElement = curElement;
|
|
25021
25022
|
curElement = curElement.parentElement;
|
|
25022
25023
|
}
|
|
25023
|
-
isTableEnter = blockElement.tagName === 'TD' ? false : true;
|
|
25024
|
+
isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
|
|
25024
25025
|
}
|
|
25025
25026
|
if (e.args.which === 13 && e.args.code === 'Enter') {
|
|
25026
25027
|
if (isNullOrUndefined(this.startNode.closest('LI')) && isNullOrUndefined(this.endNode.closest('LI')) && isTableEnter &&
|
|
@@ -25106,7 +25107,10 @@ class EnterKeyAction {
|
|
|
25106
25107
|
isFocusedFirst = true;
|
|
25107
25108
|
}
|
|
25108
25109
|
this.removeBRElement(nearBlockNode);
|
|
25109
|
-
|
|
25110
|
+
const fireFoxEnterAtMiddle = Browser.userAgent.indexOf('Firefox') != -1 && this.range.startOffset === 0 && this.range.startContainer === this.range.endContainer &&
|
|
25111
|
+
this.range.startContainer.nodeName === '#text' && !this.parent.formatter.editorManager.domNode.isBlockNode(this.range.startContainer.previousSibling) &&
|
|
25112
|
+
this.range.startContainer.parentElement === this.range.startContainer.previousSibling.parentElement;
|
|
25113
|
+
if (!fireFoxEnterAtMiddle && ((this.range.startOffset === 0 && this.range.endOffset === 0) || isFocusedFirst) &&
|
|
25110
25114
|
!(!isNullOrUndefined(this.range.startContainer.previousSibling) &&
|
|
25111
25115
|
(this.range.startContainer.previousSibling.nodeName === 'IMG' || this.range.startContainer.previousSibling.nodeName === 'BR'))) {
|
|
25112
25116
|
let isNearBlockLengthZero;
|
|
@@ -26471,7 +26475,7 @@ let RichTextEditor = class RichTextEditor extends Component {
|
|
|
26471
26475
|
if (this.valueContainer) {
|
|
26472
26476
|
this.valueContainer.value = (this.enableHtmlEncode) ? this.value : value;
|
|
26473
26477
|
}
|
|
26474
|
-
if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.trim() !== value.trim()) {
|
|
26478
|
+
if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.replace('&', '&').trim() !== value.trim()) {
|
|
26475
26479
|
this.inputElement.innerHTML = value;
|
|
26476
26480
|
}
|
|
26477
26481
|
else if (this.editorMode === 'Markdown' && this.inputElement
|