@syncfusion/ej2-richtexteditor 26.1.35 → 26.1.38
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/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 +6 -6
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +6 -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 +9 -9
- package/src/editor-manager/plugin/ms-word-clean-up.js +2 -1
- package/src/rich-text-editor/actions/count.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor.js +1 -1
- package/src/rich-text-editor/renderer/toolbar-renderer.js +2 -3
- package/styles/fluent2.css +5 -5
- package/styles/rich-text-editor/_fluent2-definition.scss +1 -1
- package/styles/rich-text-editor/_layout.scss +12 -2
- package/styles/rich-text-editor/fluent2.css +5 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.1.
|
|
3
|
+
* version : 26.1.38
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@26.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-KqBGZPgKv9XaDdLOgB/NS1pUZbLeB6fJlml+BWspgrOxW6RzA92W1tqiThbQcIxL7QN5gVwZvDvlvthm1pCZcQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
26
26
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
27
27
|
],
|
|
28
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
29
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.1.35.tgz",
|
|
29
|
+
"_shasum": "2231ab55730f1011e9702dc00487d5a62d5fc604",
|
|
30
30
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
31
31
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
32
32
|
"author": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"bundleDependencies": false,
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@syncfusion/ej2-base": "~26.1.
|
|
40
|
+
"@syncfusion/ej2-base": "~26.1.37",
|
|
41
41
|
"@syncfusion/ej2-buttons": "~26.1.35",
|
|
42
42
|
"@syncfusion/ej2-filemanager": "~26.1.35",
|
|
43
|
-
"@syncfusion/ej2-inputs": "~26.1.
|
|
44
|
-
"@syncfusion/ej2-navigations": "~26.1.
|
|
45
|
-
"@syncfusion/ej2-popups": "~26.1.
|
|
43
|
+
"@syncfusion/ej2-inputs": "~26.1.38",
|
|
44
|
+
"@syncfusion/ej2-navigations": "~26.1.38",
|
|
45
|
+
"@syncfusion/ej2-popups": "~26.1.38",
|
|
46
46
|
"@syncfusion/ej2-splitbuttons": "~26.1.35"
|
|
47
47
|
},
|
|
48
48
|
"deprecated": false,
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
80
80
|
},
|
|
81
81
|
"typings": "index.d.ts",
|
|
82
|
-
"version": "26.1.
|
|
82
|
+
"version": "26.1.38",
|
|
83
83
|
"sideEffects": false
|
|
84
84
|
}
|
|
@@ -487,12 +487,13 @@ var MsWordPaste = /** @class */ (function () {
|
|
|
487
487
|
this.filterStyles(elm, wordPasteStyleConfig);
|
|
488
488
|
var resultElem = void 0;
|
|
489
489
|
var fromClass = false;
|
|
490
|
+
var regex = /^(p|div|li)\.(1|10|11)$/;
|
|
490
491
|
for (var i = 0; i < keys.length; i++) {
|
|
491
492
|
if (keys[i].split('.')[0] === '') {
|
|
492
493
|
resultElem = elm.getElementsByClassName(keys[i].split('.')[1]);
|
|
493
494
|
fromClass = true;
|
|
494
495
|
}
|
|
495
|
-
else if (keys[i].split('.').length === 1 && keys[i].split('.')[0].indexOf('@') >= 0) {
|
|
496
|
+
else if ((keys[i].split('.').length === 1 && keys[i].split('.')[0].indexOf('@') >= 0) || (regex.test(keys[i]))) {
|
|
496
497
|
continue;
|
|
497
498
|
}
|
|
498
499
|
else if (keys[i].split('.').length === 1 && keys[i].split('.')[0].indexOf('@') < 0) {
|
|
@@ -39,7 +39,7 @@ var Count = /** @class */ (function () {
|
|
|
39
39
|
};
|
|
40
40
|
Count.prototype.appendCount = function () {
|
|
41
41
|
var htmlText = this.parent.editorMode === 'Markdown' ? this.editPanel.value :
|
|
42
|
-
(this.parent.getText().replace(/(\r\n|\n|\r|\t)/gm, ''));
|
|
42
|
+
(isNullOrUndefined(this.parent.getText()) ? '' : (this.parent.getText().replace(/(\r\n|\n|\r|\t)/gm, '')));
|
|
43
43
|
if (this.parent.editorMode !== 'Markdown' && htmlText.indexOf('\u200B') !== -1) {
|
|
44
44
|
this.htmlLength = htmlText.replace(/\u200B/g, '').length;
|
|
45
45
|
}
|
|
@@ -2178,7 +2178,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
this.removeSelectionClassStates(valueElementWrapper);
|
|
2181
|
-
return valueElementWrapper.innerHTML;
|
|
2181
|
+
return (this.editorMode === 'Markdown') ? valueElementWrapper.innerHTML.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&') : valueElementWrapper.innerHTML;
|
|
2182
2182
|
};
|
|
2183
2183
|
RichTextEditor.prototype.updateStatus = function (e) {
|
|
2184
2184
|
if (!isNOU(e.html) || !isNOU(e.markdown)) {
|
|
@@ -617,9 +617,8 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
617
617
|
cssClass: ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass + ' ' + 'e-rte-picker-init',
|
|
618
618
|
created: function () {
|
|
619
619
|
var value = (item === 'backgroundcolor') ? proxy.parent.backgroundColor.default : proxy.parent.fontColor.default;
|
|
620
|
-
|
|
621
|
-
colorPicker.
|
|
622
|
-
colorPicker.value = value;
|
|
620
|
+
var cssClass = ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass;
|
|
621
|
+
colorPicker.setProperties({ value: value, cssClass: cssClass });
|
|
623
622
|
},
|
|
624
623
|
mode: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.mode : proxy.parent.fontColor.mode),
|
|
625
624
|
modeSwitcher: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.modeSwitcher : proxy.parent.fontColor.modeSwitcher),
|
package/styles/fluent2.css
CHANGED
|
@@ -2780,13 +2780,13 @@
|
|
|
2780
2780
|
font-size: 2em;
|
|
2781
2781
|
font-weight: bold;
|
|
2782
2782
|
height: 40px;
|
|
2783
|
-
line-height:
|
|
2783
|
+
line-height: 25px;
|
|
2784
2784
|
}
|
|
2785
2785
|
.e-rte-dropdown-popup ul .e-item.e-h2 {
|
|
2786
2786
|
font-size: 1.5em;
|
|
2787
2787
|
font-weight: bold;
|
|
2788
2788
|
height: 40px;
|
|
2789
|
-
line-height:
|
|
2789
|
+
line-height: 25px;
|
|
2790
2790
|
}
|
|
2791
2791
|
.e-rte-dropdown-popup ul .e-item.e-h3 {
|
|
2792
2792
|
font-size: 1.16em;
|
|
@@ -3160,13 +3160,13 @@
|
|
|
3160
3160
|
margin: 0 auto;
|
|
3161
3161
|
padding: 6px 12px 6px 12px;
|
|
3162
3162
|
position: relative;
|
|
3163
|
-
top: -
|
|
3163
|
+
top: -120px;
|
|
3164
3164
|
}
|
|
3165
3165
|
.e-richtexteditor .e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3166
3166
|
.e-richtexteditor .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3167
3167
|
.e-rte-elements .e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3168
3168
|
.e-rte-elements .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn {
|
|
3169
|
-
top: -
|
|
3169
|
+
top: -120px;
|
|
3170
3170
|
}
|
|
3171
3171
|
.e-richtexteditor .e-dialog.e-device.e-dlg-modal .e-img-uploadwrap.e-droparea .e-browsebtn,
|
|
3172
3172
|
.e-richtexteditor .e-dialog.e-device.e-dlg-modal .e-aud-uploadwrap.e-droparea .e-browsebtn,
|
|
@@ -4068,7 +4068,7 @@
|
|
|
4068
4068
|
margin: 0 auto;
|
|
4069
4069
|
padding: 6px 12px 6px 12px;
|
|
4070
4070
|
position: relative;
|
|
4071
|
-
top: -
|
|
4071
|
+
top: -120px;
|
|
4072
4072
|
}
|
|
4073
4073
|
.e-rte-elements.e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
4074
4074
|
.e-rte-elements.e-dialog .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn {
|
|
@@ -92,7 +92,7 @@ $rte-default-character-count-opacity: 1;
|
|
|
92
92
|
$rte-droparea-line-height: 10;
|
|
93
93
|
$rte-droparea-browsebtn-height: 32px;
|
|
94
94
|
$rte-droparea-browsebtn-padding: 6px 12px 6px 12px;
|
|
95
|
-
$rte-droparea-browsebtn-top: -
|
|
95
|
+
$rte-droparea-browsebtn-top: -120px;
|
|
96
96
|
$rte-big-droparea-browsebtn-top: -120px;
|
|
97
97
|
$rte-insert-dialog-font-size: 14px;
|
|
98
98
|
$rte-big-insert-dialog-font-size: 15px;
|
|
@@ -1190,14 +1190,24 @@
|
|
|
1190
1190
|
font-size: 2em;
|
|
1191
1191
|
font-weight: bold;
|
|
1192
1192
|
height: 40px;
|
|
1193
|
-
|
|
1193
|
+
@if $skin-name =='fluent2' {
|
|
1194
|
+
line-height: 25px;
|
|
1195
|
+
}
|
|
1196
|
+
@else {
|
|
1197
|
+
line-height: 40px;
|
|
1198
|
+
}
|
|
1194
1199
|
}
|
|
1195
1200
|
|
|
1196
1201
|
&.e-h2 {
|
|
1197
1202
|
font-size: 1.5em;
|
|
1198
1203
|
font-weight: bold;
|
|
1199
1204
|
height: 40px;
|
|
1200
|
-
|
|
1205
|
+
@if $skin-name =='fluent2' {
|
|
1206
|
+
line-height: 25px;
|
|
1207
|
+
}
|
|
1208
|
+
@else {
|
|
1209
|
+
line-height: 40px;
|
|
1210
|
+
}
|
|
1201
1211
|
}
|
|
1202
1212
|
|
|
1203
1213
|
&.e-h3 {
|
|
@@ -2780,13 +2780,13 @@
|
|
|
2780
2780
|
font-size: 2em;
|
|
2781
2781
|
font-weight: bold;
|
|
2782
2782
|
height: 40px;
|
|
2783
|
-
line-height:
|
|
2783
|
+
line-height: 25px;
|
|
2784
2784
|
}
|
|
2785
2785
|
.e-rte-dropdown-popup ul .e-item.e-h2 {
|
|
2786
2786
|
font-size: 1.5em;
|
|
2787
2787
|
font-weight: bold;
|
|
2788
2788
|
height: 40px;
|
|
2789
|
-
line-height:
|
|
2789
|
+
line-height: 25px;
|
|
2790
2790
|
}
|
|
2791
2791
|
.e-rte-dropdown-popup ul .e-item.e-h3 {
|
|
2792
2792
|
font-size: 1.16em;
|
|
@@ -3160,13 +3160,13 @@
|
|
|
3160
3160
|
margin: 0 auto;
|
|
3161
3161
|
padding: 6px 12px 6px 12px;
|
|
3162
3162
|
position: relative;
|
|
3163
|
-
top: -
|
|
3163
|
+
top: -120px;
|
|
3164
3164
|
}
|
|
3165
3165
|
.e-richtexteditor .e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3166
3166
|
.e-richtexteditor .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3167
3167
|
.e-rte-elements .e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
3168
3168
|
.e-rte-elements .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn {
|
|
3169
|
-
top: -
|
|
3169
|
+
top: -120px;
|
|
3170
3170
|
}
|
|
3171
3171
|
.e-richtexteditor .e-dialog.e-device.e-dlg-modal .e-img-uploadwrap.e-droparea .e-browsebtn,
|
|
3172
3172
|
.e-richtexteditor .e-dialog.e-device.e-dlg-modal .e-aud-uploadwrap.e-droparea .e-browsebtn,
|
|
@@ -4068,7 +4068,7 @@
|
|
|
4068
4068
|
margin: 0 auto;
|
|
4069
4069
|
padding: 6px 12px 6px 12px;
|
|
4070
4070
|
position: relative;
|
|
4071
|
-
top: -
|
|
4071
|
+
top: -120px;
|
|
4072
4072
|
}
|
|
4073
4073
|
.e-rte-elements.e-dialog .e-vid-uploadwrap.e-droparea .e-browsebtn,
|
|
4074
4074
|
.e-rte-elements.e-dialog .e-rte-video-dialog.e-dialog.e-device.e-dlg-modal .e-vid-uploadwrap.e-droparea .e-browsebtn {
|