@syncfusion/ej2-richtexteditor 23.1.44 → 23.2.4

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 : 23.1.44
3
+ * version : 23.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@23.1.43",
3
+ "_id": "@syncfusion/ej2-richtexteditor@23.1.44",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-jgzplcFRi5rmn0kbDEri7p8DT1c7WyfUq6Gc4tDWhQX0voLlzxQaCv0VOf/zK/PB4PSbu4eaTIsuvOQlY7bmzA==",
5
+ "_integrity": "sha512-fsFkpynFC1d3CrTaX57BGcF3GHHRX5jbxs8gdEOvx/Ctg4DPFrWsTQUthkZT1UpZJfqv7YTC0TmK3OoNt65p3g==",
6
6
  "_location": "/@syncfusion/ej2-richtexteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -22,12 +22,11 @@
22
22
  "/@syncfusion/ej2-angular-richtexteditor",
23
23
  "/@syncfusion/ej2-gantt",
24
24
  "/@syncfusion/ej2-inplace-editor",
25
- "/@syncfusion/ej2-pdfviewer",
26
25
  "/@syncfusion/ej2-react-richtexteditor",
27
26
  "/@syncfusion/ej2-vue-richtexteditor"
28
27
  ],
29
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-23.1.43.tgz",
30
- "_shasum": "c003b36ae31089222d8492e3cdb00d29a82d6703",
28
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-23.1.44.tgz",
29
+ "_shasum": "da1060a6d62d138984f4565a75c86a4cf069b513",
31
30
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
31
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
33
32
  "author": {
@@ -38,13 +37,13 @@
38
37
  },
39
38
  "bundleDependencies": false,
40
39
  "dependencies": {
41
- "@syncfusion/ej2-base": "~23.1.41",
42
- "@syncfusion/ej2-buttons": "~23.1.43",
43
- "@syncfusion/ej2-filemanager": "~23.1.43",
44
- "@syncfusion/ej2-inputs": "~23.1.43",
45
- "@syncfusion/ej2-navigations": "~23.1.44",
46
- "@syncfusion/ej2-popups": "~23.1.44",
47
- "@syncfusion/ej2-splitbuttons": "~23.1.43"
40
+ "@syncfusion/ej2-base": "~23.2.4",
41
+ "@syncfusion/ej2-buttons": "~23.2.4",
42
+ "@syncfusion/ej2-filemanager": "~23.2.4",
43
+ "@syncfusion/ej2-inputs": "~23.2.4",
44
+ "@syncfusion/ej2-navigations": "~23.2.4",
45
+ "@syncfusion/ej2-popups": "~23.2.4",
46
+ "@syncfusion/ej2-splitbuttons": "~23.2.4"
48
47
  },
49
48
  "deprecated": false,
50
49
  "description": "Essential JS 2 RichTextEditor component",
@@ -70,6 +69,6 @@
70
69
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
71
70
  },
72
71
  "typings": "index.d.ts",
73
- "version": "23.1.44",
72
+ "version": "23.2.4",
74
73
  "sideEffects": false
75
74
  }
@@ -288,7 +288,14 @@ var SelectionCommands = /** @class */ (function () {
288
288
  }
289
289
  var formatNodeStyles = formatNode.getAttribute('style');
290
290
  var formatNodeTagName = formatNode.tagName;
291
- var child = InsertMethods.unwrap(formatNode);
291
+ var child;
292
+ if (formatNodeTagName === 'A' && format === 'underline') {
293
+ formatNode.style.textDecoration = 'none';
294
+ child = [formatNode];
295
+ }
296
+ else {
297
+ child = InsertMethods.unwrap(formatNode);
298
+ }
292
299
  if (child[0] && !isFontStyle) {
293
300
  var nodeTraverse = child[index] ? child[index] : child[0];
294
301
  var textNode = nodeTraverse;
@@ -80,12 +80,18 @@ var ToolbarStatus = /** @class */ (function () {
80
80
  if ((index === 0 && formatCollection.fontcolor) || !formatCollection.fontcolor) {
81
81
  nodeCollection.fontcolor = formatCollection.fontcolor;
82
82
  }
83
- if ((index === 0 && formatCollection.fontname) || !formatCollection.fontname) {
83
+ if (index === 0 && formatCollection.fontname) {
84
84
  nodeCollection.fontname = formatCollection.fontname;
85
85
  }
86
- if ((index === 0 && formatCollection.fontsize) || !formatCollection.fontsize) {
86
+ else {
87
+ nodeCollection.fontname = formatCollection.fontname === nodeCollection.fontname ? formatCollection.fontname : 'empty';
88
+ }
89
+ if (index === 0 && formatCollection.fontsize) {
87
90
  nodeCollection.fontsize = formatCollection.fontsize;
88
91
  }
92
+ else {
93
+ nodeCollection.fontsize = formatCollection.fontsize === nodeCollection.fontsize ? formatCollection.fontsize : 'empty';
94
+ }
89
95
  if ((index === 0 && formatCollection.backgroundcolor) || !formatCollection.backgroundcolor) {
90
96
  nodeCollection.backgroundcolor = formatCollection.backgroundcolor;
91
97
  }
@@ -98,9 +104,12 @@ var ToolbarStatus = /** @class */ (function () {
98
104
  if ((index === 0 && formatCollection.alignments) || !formatCollection.alignments) {
99
105
  nodeCollection.alignments = formatCollection.alignments;
100
106
  }
101
- if ((index === 0 && formatCollection.formats) || !formatCollection.formats) {
107
+ if (index === 0 && formatCollection.formats) {
102
108
  nodeCollection.formats = formatCollection.formats;
103
109
  }
110
+ else {
111
+ nodeCollection.formats = formatCollection.formats === nodeCollection.formats ? formatCollection.formats : 'empty';
112
+ }
104
113
  if ((index === 0 && formatCollection.createlink) || !formatCollection.createlink) {
105
114
  nodeCollection.createlink = formatCollection.createlink;
106
115
  }
@@ -175,7 +175,7 @@ export function setToolbarStatus(e, isPopToolbar, self) {
175
175
  var formatItems = e.parent.format.types;
176
176
  var formatContent = isNOU(e.parent.format.default) ? formatItems[0].text :
177
177
  e.parent.format.default;
178
- result = getDropDownValue(formatItems, value, 'subCommand', 'text');
178
+ result = value === 'empty' ? '' : getDropDownValue(formatItems, value, 'subCommand', 'text');
179
179
  dropDown.formatDropDown.content = ('<span style="display: inline-flex;' +
180
180
  'width:' + e.parent.format.width + '" >' +
181
181
  '<span class="e-rte-dropdown-btn-text' + (isNOU(e.parent.cssClass) ? '' : ' ' + e.parent.cssClass) + '">'
@@ -201,7 +201,7 @@ export function setToolbarStatus(e, isPopToolbar, self) {
201
201
  break;
202
202
  }
203
203
  var fontNameItems = e.parent.fontFamily.items;
204
- result = getDropDownValue(fontNameItems, value, 'value', 'text');
204
+ result = value === 'empty' ? '' : getDropDownValue(fontNameItems, value, 'value', 'text');
205
205
  var fontNameContent = isNOU(e.parent.fontFamily.default) ? fontNameItems[0].text :
206
206
  e.parent.fontFamily.default;
207
207
  var name_1 = (isNOU(result) ? fontNameContent : result);
@@ -220,7 +220,7 @@ export function setToolbarStatus(e, isPopToolbar, self) {
220
220
  var fontSizeItems = e.parent.fontSize.items;
221
221
  var fontSizeContent = isNOU(e.parent.fontSize.default) ? fontSizeItems[1].text :
222
222
  e.parent.fontSize.default;
223
- result = getDropDownValue(fontSizeItems, (value === '' ? fontSizeContent.replace(/\s/g, '') : value), 'value', 'text');
223
+ result = value === 'empty' ? '' : getDropDownValue(fontSizeItems, (value === '' ? fontSizeContent.replace(/\s/g, '') : value), 'value', 'text');
224
224
  dropDown.fontSizeDropDown.content = ('<span style="display: inline-flex;' +
225
225
  'width:' + e.parent.fontSize.width + '" >' +
226
226
  '<span class="e-rte-dropdown-btn-text' + (isNOU(e.parent.cssClass) ? '' : ' ' + e.parent.cssClass) + '">'