@syncfusion/ej2-richtexteditor 20.4.40 → 20.4.42

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.40
3
+ * version : 20.4.42
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.4.38",
3
+ "_id": "@syncfusion/ej2-richtexteditor@20.4.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-99KINen2pXxxLc7WURF0dR7R+gc/1SCmKhe/iD3X+xyc8LIaNnBlRYaHGk1pCkmElDeEHKFOziXSl7V7NXDMjQ==",
5
+ "_integrity": "sha512-ZukcHwmMRufizhf2PBts+HIiwO1zIpUm+h8zLxPLWG6KMnls5UpMuAqlGWpi7DsNhhUJQW3DZzcp00tpVm4jlg==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.4.38.tgz",
30
- "_shasum": "cfd4376bcc8a43284062d004871b44ce4e6a6a72",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.4.40.tgz",
30
+ "_shasum": "a1ba4e9e14bfac4857e949a8e9a5de064fec7034",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
33
33
  "author": {
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~20.4.40",
42
- "@syncfusion/ej2-buttons": "~20.4.40",
43
- "@syncfusion/ej2-filemanager": "~20.4.40",
44
- "@syncfusion/ej2-inputs": "~20.4.40",
45
- "@syncfusion/ej2-navigations": "~20.4.40",
46
- "@syncfusion/ej2-popups": "~20.4.40",
47
- "@syncfusion/ej2-splitbuttons": "~20.4.40"
41
+ "@syncfusion/ej2-base": "~20.4.42",
42
+ "@syncfusion/ej2-buttons": "~20.4.42",
43
+ "@syncfusion/ej2-filemanager": "~20.4.42",
44
+ "@syncfusion/ej2-inputs": "~20.4.42",
45
+ "@syncfusion/ej2-navigations": "~20.4.42",
46
+ "@syncfusion/ej2-popups": "~20.4.42",
47
+ "@syncfusion/ej2-splitbuttons": "~20.4.42"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Essential JS 2 RichTextEditor component",
@@ -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.4.40",
73
+ "version": "20.4.42",
74
74
  "sideEffects": false
75
75
  }
@@ -29,10 +29,11 @@ var ToolbarStatus = /** @class */ (function () {
29
29
  var formatCollection = JSON.parse(JSON.stringify(statusCollection));
30
30
  var nodeCollection = JSON.parse(JSON.stringify(statusCollection));
31
31
  var nodeSelection = new NodeSelection();
32
- var nodes = documentNode ? [documentNode] : nodeSelection.getNodeCollection(nodeSelection.getRange(docElement));
32
+ var range = nodeSelection.getRange(docElement);
33
+ var nodes = documentNode ? [documentNode] : range.collapsed ? nodeSelection.getNodeCollection(range) :
34
+ nodeSelection.getSelectionNodeCollectionBr(range);
33
35
  var nodesLength = nodes.length;
34
36
  var isNodeChanged = false;
35
- var range = nodeSelection.getRange(docElement);
36
37
  for (var index = 0; index < nodes.length; index++) {
37
38
  while (nodes[index].nodeType === 3 && range.startContainer.nodeType === 3 && nodes[index].parentNode &&
38
39
  nodes[index].parentNode.lastElementChild && nodes[index].parentNode.lastElementChild.nodeName !== 'BR' &&