@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.1.
|
|
3
|
+
* version : 20.1.52
|
|
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.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@20.1.51",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-bcIISkRgLWZVdsUIfFPqPrFMSGKxvgZmaNVU5xbKp0kVkMKtUJAouugs0PG1pnqX5AE7JihxTWbXzbBfKqPOqQ==",
|
|
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.1.
|
|
30
|
-
"_shasum": "
|
|
29
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.1.51.tgz",
|
|
30
|
+
"_shasum": "750c5f70b543df06b6138fef3e932de46991d2c2",
|
|
31
31
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
32
32
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
33
33
|
"author": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"bundleDependencies": false,
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@syncfusion/ej2-base": "~20.1.50",
|
|
42
|
-
"@syncfusion/ej2-buttons": "~20.1.
|
|
43
|
-
"@syncfusion/ej2-filemanager": "~20.1.
|
|
42
|
+
"@syncfusion/ej2-buttons": "~20.1.52",
|
|
43
|
+
"@syncfusion/ej2-filemanager": "~20.1.52",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~20.1.48",
|
|
45
45
|
"@syncfusion/ej2-navigations": "~20.1.51",
|
|
46
46
|
"@syncfusion/ej2-popups": "~20.1.47",
|
|
@@ -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.1.
|
|
73
|
+
"version": "20.1.52",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -377,7 +377,8 @@ var InsertHtml = /** @class */ (function () {
|
|
|
377
377
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
378
378
|
}
|
|
379
379
|
else {
|
|
380
|
-
var
|
|
380
|
+
var nodeSelection = new NodeSelection();
|
|
381
|
+
var currentNode = this.getNodeCollection(range, nodeSelection, node)[this.getNodeCollection(range, nodeSelection, node).length - 1];
|
|
381
382
|
var splitedElm = void 0;
|
|
382
383
|
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR') && !isNOU(currentNode.parentElement) &&
|
|
383
384
|
currentNode.parentElement.textContent.trim().length === 0) {
|
|
@@ -122,7 +122,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
122
122
|
else if (len > -1) {
|
|
123
123
|
this.spliceEmptyNode(fragment.childNodes[0], isStart);
|
|
124
124
|
}
|
|
125
|
-
else if (fragment.nodeType !== 3 && fragment.nodeType !== 11) {
|
|
125
|
+
else if (fragment.nodeType !== 3 && fragment.nodeType !== 11 && fragment.nodeName !== 'IMG') {
|
|
126
126
|
fragment.parentNode.removeChild(fragment);
|
|
127
127
|
}
|
|
128
128
|
return fragment;
|
|
@@ -292,8 +292,9 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
292
292
|
};
|
|
293
293
|
EnterKeyAction.prototype.removeBRElement = function (currentElement) {
|
|
294
294
|
if (Browser.userAgent.indexOf('Firefox') != -1 &&
|
|
295
|
-
this.range.endOffset === currentElement.textContent.length &&
|
|
296
|
-
currentElement.
|
|
295
|
+
this.range.endOffset === currentElement.textContent.length && (currentElement.textContent.length !== 0 ||
|
|
296
|
+
currentElement.querySelectorAll('BR').length > 1) &&
|
|
297
|
+
!isNOU(currentElement.lastChild) && currentElement.lastChild.nodeName === 'BR') {
|
|
297
298
|
detach(currentElement.lastChild);
|
|
298
299
|
}
|
|
299
300
|
};
|
|
@@ -195,7 +195,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
195
195
|
if ((parent_1.bottom < (floatOffset + tbHeight + topValue)) || parent_1.bottom < 0 || parent_1.top > floatOffset + topValue) {
|
|
196
196
|
isFloat = false;
|
|
197
197
|
}
|
|
198
|
-
else if (parent_1.top < floatOffset) {
|
|
198
|
+
else if (parent_1.top < floatOffset || parent_1.top < floatOffset + topValue) {
|
|
199
199
|
isFloat = true;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -807,7 +807,7 @@ var Table = /** @class */ (function () {
|
|
|
807
807
|
EventHandler.remove(_this.contentModule.getEditPanel(), 'mouseover', _this.resizeHelper);
|
|
808
808
|
}
|
|
809
809
|
var widthType = _this.curTable.style.width.indexOf('%') > -1;
|
|
810
|
-
_this.curTable.style.width = widthType ? _this.convertPixelToPercentage(tableWidth + mouseX, rteWidth) + '%'
|
|
810
|
+
_this.curTable.style.width = widthType && !_this.curTable.closest('TD') ? _this.convertPixelToPercentage(tableWidth + mouseX, rteWidth) + '%'
|
|
811
811
|
: tableWidth + mouseX + 'px';
|
|
812
812
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
813
813
|
tableReBox.classList.add('e-rbox-select');
|