@syncfusion/ej2-richtexteditor 23.1.44 → 23.2.5
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 +14 -0
- package/dist/ej2-richtexteditor.min.js +2 -2
- 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 +24 -8
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +24 -8
- 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 +12 -13
- package/src/editor-manager/plugin/selection-commands.js +8 -1
- package/src/editor-manager/plugin/toolbar-status.js +12 -3
- package/src/rich-text-editor/base/rich-text-editor.js +1 -1
- package/src/rich-text-editor/base/util.js +3 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.5
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@23.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-gQoJXBFkuekaa+gB0U2JpQldeFdkRz6T+N7qkqYNBpSDw0+zF71ScmwYy42dxjGVEJRdZT/HHRwtV5KgLEAhAQ==",
|
|
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.
|
|
30
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-23.2.4.tgz",
|
|
29
|
+
"_shasum": "53e152500eb6b7a1c1215748894fb8de196fec14",
|
|
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.
|
|
42
|
-
"@syncfusion/ej2-buttons": "~23.
|
|
43
|
-
"@syncfusion/ej2-filemanager": "~23.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~23.
|
|
45
|
-
"@syncfusion/ej2-navigations": "~23.
|
|
46
|
-
"@syncfusion/ej2-popups": "~23.
|
|
47
|
-
"@syncfusion/ej2-splitbuttons": "~23.
|
|
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.5",
|
|
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.
|
|
72
|
+
"version": "23.2.5",
|
|
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
|
|
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 (
|
|
83
|
+
if (index === 0 && formatCollection.fontname) {
|
|
84
84
|
nodeCollection.fontname = formatCollection.fontname;
|
|
85
85
|
}
|
|
86
|
-
|
|
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 (
|
|
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
|
}
|
|
@@ -2219,7 +2219,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2219
2219
|
trg.setAttribute('tabindex', '-1');
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
else if (closest(trg, '[aria-owns="' + this.getID() + '"]')) {
|
|
2222
|
+
else if (closest(trg, '[aria-owns="' + this.getID() + '"]') || closest(trg, '.' + classes.CLS_RTE_ELEMENTS)) {
|
|
2223
2223
|
this.isBlur = false;
|
|
2224
2224
|
}
|
|
2225
2225
|
else {
|
|
@@ -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) + '">'
|