@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.46
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-richtexteditor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-richtexteditor@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@20.2.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ej4cOLeY7dXoZNyj8rsNeaT5yHrFYM+Mi2QBJcYPvuRSK91wnoNGME4CptbxZoKegPVj2ahTr8fHvSBpTfMM3A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
27
27
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
28
28
|
],
|
|
29
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.
|
|
30
|
-
"_shasum": "
|
|
29
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.45.tgz",
|
|
30
|
+
"_shasum": "a037c49ba04ac66b8143621556c31764671d0931",
|
|
31
31
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
32
32
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
33
33
|
"author": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"bundleDependencies": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
42
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
41
|
+
"@syncfusion/ej2-base": "~20.2.46",
|
|
42
|
+
"@syncfusion/ej2-buttons": "~20.2.46",
|
|
43
43
|
"@syncfusion/ej2-filemanager": "~20.2.45",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~20.2.45",
|
|
45
|
-
"@syncfusion/ej2-navigations": "~20.2.
|
|
45
|
+
"@syncfusion/ej2-navigations": "~20.2.46",
|
|
46
46
|
"@syncfusion/ej2-popups": "~20.2.45",
|
|
47
47
|
"@syncfusion/ej2-splitbuttons": "~20.2.45"
|
|
48
48
|
},
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
71
71
|
},
|
|
72
72
|
"typings": "index.d.ts",
|
|
73
|
-
"version": "20.2.
|
|
73
|
+
"version": "20.2.46",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -43,7 +43,7 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
43
43
|
blockElement = curElement;
|
|
44
44
|
curElement = curElement.parentElement;
|
|
45
45
|
}
|
|
46
|
-
isTableEnter = blockElement.tagName === 'TD' ? false : true;
|
|
46
|
+
isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
|
|
47
47
|
}
|
|
48
48
|
if (e.args.which === 13 && e.args.code === 'Enter') {
|
|
49
49
|
if (isNOU(this.startNode.closest('LI')) && isNOU(this.endNode.closest('LI')) && isTableEnter &&
|
|
@@ -129,7 +129,10 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
129
129
|
isFocusedFirst = true;
|
|
130
130
|
}
|
|
131
131
|
_this.removeBRElement(nearBlockNode);
|
|
132
|
-
|
|
132
|
+
var fireFoxEnterAtMiddle = Browser.userAgent.indexOf('Firefox') != -1 && _this.range.startOffset === 0 && _this.range.startContainer === _this.range.endContainer &&
|
|
133
|
+
_this.range.startContainer.nodeName === '#text' && !_this.parent.formatter.editorManager.domNode.isBlockNode(_this.range.startContainer.previousSibling) &&
|
|
134
|
+
_this.range.startContainer.parentElement === _this.range.startContainer.previousSibling.parentElement;
|
|
135
|
+
if (!fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
|
|
133
136
|
!(!isNOU(_this.range.startContainer.previousSibling) &&
|
|
134
137
|
(_this.range.startContainer.previousSibling.nodeName === 'IMG' || _this.range.startContainer.previousSibling.nodeName === 'BR'))) {
|
|
135
138
|
var isNearBlockLengthZero = void 0;
|
|
@@ -57,6 +57,7 @@ var FullScreen = /** @class */ (function () {
|
|
|
57
57
|
baseToolbar: _this.parent.getBaseToolbarObject()
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
+
_this.parent.refreshUI();
|
|
60
61
|
_this.parent.trigger(events.actionComplete, { requestType: 'Maximize', targetItem: 'Maximize', args: event });
|
|
61
62
|
}
|
|
62
63
|
});
|
|
@@ -1199,7 +1199,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1199
1199
|
if (this.valueContainer) {
|
|
1200
1200
|
this.valueContainer.value = (this.enableHtmlEncode) ? this.value : value;
|
|
1201
1201
|
}
|
|
1202
|
-
if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.trim() !== value.trim()) {
|
|
1202
|
+
if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.replace('&', '&').trim() !== value.trim()) {
|
|
1203
1203
|
this.inputElement.innerHTML = value;
|
|
1204
1204
|
}
|
|
1205
1205
|
else if (this.editorMode === 'Markdown' && this.inputElement
|