@syncfusion/ej2-richtexteditor 19.3.46 → 19.3.55
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 +40 -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 +79 -10
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +79 -10
- 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 -12
- package/src/editor-manager/plugin/selection-commands.js +18 -1
- package/src/rich-text-editor/actions/dropdown-buttons.js +10 -0
- package/src/rich-text-editor/actions/enter-key.js +1 -0
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +20 -2
- package/src/rich-text-editor/base/rich-text-editor.js +1 -2
- package/src/rich-text-editor/renderer/image-module.d.ts +2 -0
- package/src/rich-text-editor/renderer/image-module.js +23 -2
- package/src/rich-text-editor/renderer/link-module.js +3 -2
- package/src/rich-text-editor/renderer/table-module.js +3 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.js +3 -2
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/rich-text-editor/_layout.scss +4 -0
- package/styles/rich-text-editor/bootstrap-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap.css +4 -0
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/material-dark.css +4 -0
- package/styles/rich-text-editor/material.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +4 -0
- package/styles/rich-text-editor/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.3.
|
|
3
|
+
* version : 19.3.55
|
|
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@19.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@19.3.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-/w+XuY76VuYlFVyWhywJW+qPNC4qAsf4ICsEMJiaYSD0uMlEDlQdAEw56vCbKF+gMnWRUp0uBwCcRZYKPkFifQ==",
|
|
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/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-19.3.
|
|
30
|
-
"_shasum": "
|
|
29
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-19.3.53.tgz",
|
|
30
|
+
"_shasum": "ebf91ca62866526e3e847bbcb454f3d193c0bab2",
|
|
31
31
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
32
32
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
33
33
|
"author": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"bundleDependencies": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@syncfusion/ej2-base": "~19.3.
|
|
42
|
-
"@syncfusion/ej2-buttons": "~19.3.
|
|
43
|
-
"@syncfusion/ej2-filemanager": "~19.3.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.3.
|
|
45
|
-
"@syncfusion/ej2-navigations": "~19.3.
|
|
46
|
-
"@syncfusion/ej2-popups": "~19.3.
|
|
47
|
-
"@syncfusion/ej2-splitbuttons": "~19.3.
|
|
41
|
+
"@syncfusion/ej2-base": "~19.3.54",
|
|
42
|
+
"@syncfusion/ej2-buttons": "~19.3.53",
|
|
43
|
+
"@syncfusion/ej2-filemanager": "~19.3.55",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.3.53",
|
|
45
|
+
"@syncfusion/ej2-navigations": "~19.3.54",
|
|
46
|
+
"@syncfusion/ej2-popups": "~19.3.53",
|
|
47
|
+
"@syncfusion/ej2-splitbuttons": "~19.3.53"
|
|
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": "19.3.
|
|
73
|
+
"version": "19.3.55",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -146,7 +146,24 @@ var SelectionCommands = /** @class */ (function () {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
if ((['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1)) {
|
|
150
|
+
if (format === 'fontcolor') {
|
|
151
|
+
cursorFormat.style.color = value;
|
|
152
|
+
}
|
|
153
|
+
else if (format === 'fontname') {
|
|
154
|
+
cursorFormat.style.fontFamily = value;
|
|
155
|
+
}
|
|
156
|
+
else if (format === 'fontsize') {
|
|
157
|
+
cursorFormat.style.fontSize = value;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
cursorFormat.style.backgroundColor = value;
|
|
161
|
+
}
|
|
162
|
+
cursorNode = cursorFormat;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
InsertMethods.unwrap(cursorFormat);
|
|
166
|
+
}
|
|
150
167
|
}
|
|
151
168
|
else {
|
|
152
169
|
if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
|
|
@@ -206,6 +206,11 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
206
206
|
var prop = _a[_i];
|
|
207
207
|
switch (prop) {
|
|
208
208
|
case 'fontFamily':
|
|
209
|
+
if (this.parent.inlineMode.enable) {
|
|
210
|
+
if (!isNullOrUndefined(this.parent.fontFamily.default)) {
|
|
211
|
+
this.getEditNode().style.fontFamily = this.parent.fontFamily.default;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
209
214
|
if (this.fontNameDropDown) {
|
|
210
215
|
for (var _b = 0, _c = Object.keys(newProp.fontFamily); _b < _c.length; _b++) {
|
|
211
216
|
var fontFamily = _c[_b];
|
|
@@ -237,6 +242,11 @@ var DropDownButtons = /** @class */ (function () {
|
|
|
237
242
|
}
|
|
238
243
|
break;
|
|
239
244
|
case 'fontSize':
|
|
245
|
+
if (this.parent.inlineMode) {
|
|
246
|
+
if (!isNullOrUndefined(this.parent.fontSize.default)) {
|
|
247
|
+
this.getEditNode().style.fontSize = this.parent.fontSize.default;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
240
250
|
if (this.fontSizeDropDown) {
|
|
241
251
|
for (var _d = 0, _e = Object.keys(newProp.fontSize); _d < _e.length; _d++) {
|
|
242
252
|
var fontSize = _e[_d];
|
|
@@ -129,6 +129,7 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
129
129
|
detach(nearBlockNode);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
132
133
|
}
|
|
133
134
|
else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
|
|
134
135
|
if (!isNOU(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
@@ -38,6 +38,7 @@ export declare class QuickToolbar {
|
|
|
38
38
|
createQTBar(popupType: string, mode: string, items: (string | IToolbarItems)[], type: RenderType): BaseQuickToolbar;
|
|
39
39
|
private initializeQuickToolbars;
|
|
40
40
|
private onMouseDown;
|
|
41
|
+
private keyUpQT;
|
|
41
42
|
private renderQuickToolbars;
|
|
42
43
|
private renderInlineQuickToolbar;
|
|
43
44
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { select, isNullOrUndefined, Browser, addClass, removeClass, EventHandler, closest } from '@syncfusion/ej2-base';
|
|
1
|
+
import { select, isNullOrUndefined, Browser, addClass, removeClass, EventHandler, closest, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
2
2
|
import { RenderType } from '../base/enum';
|
|
3
3
|
import * as events from '../base/constant';
|
|
4
4
|
import { pageYOffset, hasClass, isIDevice } from '../base/util';
|
|
@@ -80,6 +80,11 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
80
80
|
this.parent.isBlur = false;
|
|
81
81
|
this.parent.isRTE = true;
|
|
82
82
|
};
|
|
83
|
+
QuickToolbar.prototype.keyUpQT = function (e) {
|
|
84
|
+
if (e.which == 27) {
|
|
85
|
+
this.hideQuickToolbars();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
83
88
|
QuickToolbar.prototype.renderQuickToolbars = function () {
|
|
84
89
|
if (this.linkQTBar || this.imageQTBar || this.textQTBar || this.tableQTBar) {
|
|
85
90
|
return;
|
|
@@ -94,15 +99,19 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
94
99
|
this.renderFactory.addRenderer(RenderType.TableToolbar, this.tableQTBar);
|
|
95
100
|
if (this.linkQTBar) {
|
|
96
101
|
EventHandler.add(this.linkQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
102
|
+
EventHandler.add(this.linkQTBar.element, 'keyup', this.keyUpQT, this);
|
|
97
103
|
}
|
|
98
104
|
if (this.imageQTBar) {
|
|
99
105
|
EventHandler.add(this.imageQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
106
|
+
EventHandler.add(this.imageQTBar.element, 'keyup', this.keyUpQT, this);
|
|
100
107
|
}
|
|
101
108
|
if (this.textQTBar) {
|
|
102
109
|
EventHandler.add(this.textQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
110
|
+
EventHandler.add(this.textQTBar.element, 'keyup', this.keyUpQT, this);
|
|
103
111
|
}
|
|
104
112
|
if (this.tableQTBar) {
|
|
105
113
|
EventHandler.add(this.tableQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
114
|
+
EventHandler.add(this.tableQTBar.element, 'keyup', this.keyUpQT, this);
|
|
106
115
|
}
|
|
107
116
|
};
|
|
108
117
|
QuickToolbar.prototype.renderInlineQuickToolbar = function () {
|
|
@@ -111,6 +120,7 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
111
120
|
this.inlineQTBar = this.createQTBar('Inline', 'MultiRow', this.parent.toolbarSettings.items, RenderType.InlineToolbar);
|
|
112
121
|
this.renderFactory.addRenderer(RenderType.InlineToolbar, this.inlineQTBar);
|
|
113
122
|
EventHandler.add(this.inlineQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
123
|
+
EventHandler.add(this.inlineQTBar.element, 'keyup', this.keyUpQT, this);
|
|
114
124
|
}
|
|
115
125
|
};
|
|
116
126
|
/**
|
|
@@ -193,7 +203,10 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
193
203
|
else {
|
|
194
204
|
var closestAnchor = closest(target, 'a');
|
|
195
205
|
target = closestAnchor ? closestAnchor : target;
|
|
196
|
-
|
|
206
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
207
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
208
|
+
if ((isNOU(closest(startNode, 'A')) || isNOU(closest(endNode, 'A'))) && (!closest(target, 'td,th') || !range.collapsed) &&
|
|
209
|
+
(target.tagName !== 'IMG' || this.parent.getRange().startOffset !== this.parent.getRange().endOffset)) {
|
|
197
210
|
if (this.parent.inlineMode.onSelection && range.collapsed) {
|
|
198
211
|
return;
|
|
199
212
|
}
|
|
@@ -262,22 +275,27 @@ var QuickToolbar = /** @class */ (function () {
|
|
|
262
275
|
QuickToolbar.prototype.destroy = function () {
|
|
263
276
|
if (this.linkQTBar) {
|
|
264
277
|
EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
|
|
278
|
+
EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
|
|
265
279
|
this.linkQTBar.destroy();
|
|
266
280
|
}
|
|
267
281
|
if (this.textQTBar) {
|
|
268
282
|
EventHandler.remove(this.textQTBar.element, 'mousedown', this.onMouseDown);
|
|
283
|
+
EventHandler.remove(this.textQTBar.element, 'keyup', this.keyUpQT);
|
|
269
284
|
this.textQTBar.destroy();
|
|
270
285
|
}
|
|
271
286
|
if (this.imageQTBar) {
|
|
272
287
|
EventHandler.remove(this.imageQTBar.element, 'mousedown', this.onMouseDown);
|
|
288
|
+
EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
|
|
273
289
|
this.imageQTBar.destroy();
|
|
274
290
|
}
|
|
275
291
|
if (this.tableQTBar) {
|
|
276
292
|
EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
|
|
293
|
+
EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
|
|
277
294
|
this.tableQTBar.destroy();
|
|
278
295
|
}
|
|
279
296
|
if (this.inlineQTBar) {
|
|
280
297
|
EventHandler.remove(this.inlineQTBar.element, 'mousedown', this.onMouseDown);
|
|
298
|
+
EventHandler.remove(this.inlineQTBar.element, 'keyup', this.keyUpQT);
|
|
281
299
|
if (isIDevice()) {
|
|
282
300
|
EventHandler.remove(document, 'selectionchange', this.selectionChangeHandler);
|
|
283
301
|
}
|
|
@@ -1431,8 +1431,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
1431
1431
|
this.setProperties({ value: this.valueTemplate });
|
|
1432
1432
|
}
|
|
1433
1433
|
else {
|
|
1434
|
-
var
|
|
1435
|
-
var compiledTemplate = compiledString({});
|
|
1434
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
1436
1435
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
1437
1436
|
var item = compiledTemplate[i];
|
|
1438
1437
|
append([item], this.element);
|
|
@@ -33,6 +33,7 @@ export declare class Image {
|
|
|
33
33
|
private changedHeightValue;
|
|
34
34
|
private inputWidthValue;
|
|
35
35
|
private inputHeightValue;
|
|
36
|
+
private removingImgName;
|
|
36
37
|
private constructor();
|
|
37
38
|
protected addEventListener(): void;
|
|
38
39
|
protected removeEventListener(): void;
|
|
@@ -78,6 +79,7 @@ export declare class Image {
|
|
|
78
79
|
private isUrl;
|
|
79
80
|
private deleteImg;
|
|
80
81
|
private imageRemovePost;
|
|
82
|
+
private triggerPost;
|
|
81
83
|
private caption;
|
|
82
84
|
private imageSize;
|
|
83
85
|
private break;
|
|
@@ -813,7 +813,7 @@ var Image = /** @class */ (function () {
|
|
|
813
813
|
var target = args.target;
|
|
814
814
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
815
815
|
var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
|
|
816
|
-
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
|
|
816
|
+
if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
|
|
817
817
|
if (isPopupOpen) {
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
@@ -1052,13 +1052,34 @@ var Image = /** @class */ (function () {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
};
|
|
1054
1054
|
Image.prototype.imageRemovePost = function (src) {
|
|
1055
|
+
var proxy = this;
|
|
1056
|
+
var absoluteUrl = '';
|
|
1057
|
+
if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
|
|
1058
|
+
absoluteUrl = src;
|
|
1059
|
+
}
|
|
1060
|
+
else {
|
|
1061
|
+
absoluteUrl = new URL(src, document.baseURI).href;
|
|
1062
|
+
}
|
|
1063
|
+
this.removingImgName = absoluteUrl.replace(/^.*[\\\/]/, '');
|
|
1064
|
+
var xhr = new XMLHttpRequest();
|
|
1065
|
+
xhr.addEventListener("readystatechange", function () {
|
|
1066
|
+
if (this.readyState == 4 && this.status == 200) {
|
|
1067
|
+
proxy.triggerPost(this.response);
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
xhr.open('GET', absoluteUrl);
|
|
1071
|
+
xhr.responseType = 'blob';
|
|
1072
|
+
xhr.send();
|
|
1073
|
+
};
|
|
1074
|
+
Image.prototype.triggerPost = function (response) {
|
|
1055
1075
|
var removeUrl = this.parent.insertImageSettings.removeUrl;
|
|
1056
1076
|
if (isNOU(removeUrl) || removeUrl === '') {
|
|
1057
1077
|
return;
|
|
1058
1078
|
}
|
|
1079
|
+
var file = new File([response], this.removingImgName);
|
|
1059
1080
|
var ajax = new Ajax(removeUrl, 'POST', true, null);
|
|
1060
1081
|
var formData = new FormData();
|
|
1061
|
-
formData.append(
|
|
1082
|
+
formData.append('UploadFiles', file);
|
|
1062
1083
|
ajax.send(formData);
|
|
1063
1084
|
};
|
|
1064
1085
|
Image.prototype.caption = function (e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, detach, isNullOrUndefined, select, extend } from '@syncfusion/ej2-base';
|
|
1
|
+
import { EventHandler, detach, isNullOrUndefined, select, extend, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
2
2
|
import { closest, addClass, removeClass, Browser } from '@syncfusion/ej2-base';
|
|
3
3
|
import * as events from '../base/constant';
|
|
4
4
|
import { CLS_RTE_ELEMENTS } from '../base/classes';
|
|
@@ -136,7 +136,8 @@ var Link = /** @class */ (function () {
|
|
|
136
136
|
this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
|
|
137
137
|
var isPopupOpen = this.quickToolObj.linkQTBar.element.classList.contains('e-rte-pop');
|
|
138
138
|
if (target.nodeName === 'A' && (target.childNodes.length > 0 && target.childNodes[0].nodeName !== 'IMG') &&
|
|
139
|
-
e.args.target.nodeName !== 'IMG'
|
|
139
|
+
e.args.target.nodeName !== 'IMG' &&
|
|
140
|
+
!isNOU(closest(this.parent.getRange().startContainer.parentElement, 'A')) && !isNOU(closest(this.parent.getRange().endContainer.parentElement, 'A'))) {
|
|
140
141
|
if (isPopupOpen) {
|
|
141
142
|
return;
|
|
142
143
|
}
|
|
@@ -399,7 +399,9 @@ var Table = /** @class */ (function () {
|
|
|
399
399
|
}
|
|
400
400
|
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
401
401
|
var closestTable = closest(target, 'table');
|
|
402
|
-
|
|
402
|
+
var startNode = this.parent.getRange().startContainer.parentElement;
|
|
403
|
+
var endNode = this.parent.getRange().endContainer.parentElement;
|
|
404
|
+
if (target && target.nodeName !== 'A' && target.nodeName !== 'IMG' && startNode === endNode && (target.nodeName === 'TD' || target.nodeName === 'TH' ||
|
|
403
405
|
target.nodeName === 'TABLE' || (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable)))
|
|
404
406
|
&& !(range.startContainer.nodeType === 3 && !range.collapsed)) {
|
|
405
407
|
var range_1 = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
|
|
@@ -486,7 +488,6 @@ var Table = /** @class */ (function () {
|
|
|
486
488
|
tdNode : target;
|
|
487
489
|
removeClass(this.contentModule.getEditPanel().querySelectorAll('table td, table th'), classes.CLS_TABLE_SEL);
|
|
488
490
|
if (target && (target.tagName === 'TD' || target.tagName === 'TH')) {
|
|
489
|
-
target.removeAttribute('class');
|
|
490
491
|
addClass([target], classes.CLS_TABLE_SEL);
|
|
491
492
|
this.activeCell = target;
|
|
492
493
|
this.curTable = (this.curTable) ? this.curTable : closest(target, 'table');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addClass, Browser, removeClass, EventHandler, formatUnit, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
1
|
+
import { addClass, Browser, removeClass, EventHandler, formatUnit, isNullOrUndefined, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
|
|
2
2
|
import { getInstance, closest, selectAll, detach } from '@syncfusion/ej2-base';
|
|
3
3
|
import { Toolbar } from '@syncfusion/ej2-navigations';
|
|
4
4
|
import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
|
|
@@ -62,7 +62,8 @@ var ToolbarRenderer = /** @class */ (function () {
|
|
|
62
62
|
this.parent.notify(events.beforeDropDownItemRender, args);
|
|
63
63
|
};
|
|
64
64
|
ToolbarRenderer.prototype.dropDownOpen = function (args) {
|
|
65
|
-
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1)
|
|
65
|
+
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1 && !isNOU(args.element.parentElement.querySelector('.e-cell-merge')) &&
|
|
66
|
+
(!isNOU(args.element.parentElement.querySelector('.e-cell-horizontal-split')) || !isNOU(args.element.parentElement.querySelector('.e-cell-vertical-split')))) {
|
|
66
67
|
var listEle = args.element.querySelectorAll('li');
|
|
67
68
|
if (this.parent.inputElement.querySelectorAll('.e-cell-select').length === 1) {
|
|
68
69
|
addClass([listEle[0]], 'e-disabled');
|
|
@@ -1324,6 +1324,10 @@
|
|
|
1324
1324
|
margin-top: 0;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1328
|
+
margin-right: 30px;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1327
1331
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1328
1332
|
border-bottom: 0 solid transparent;
|
|
1329
1333
|
min-height: initial;
|
package/styles/bootstrap.css
CHANGED
|
@@ -1470,6 +1470,10 @@
|
|
|
1470
1470
|
margin-top: 0;
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1474
|
+
margin-right: 30px;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1473
1477
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1474
1478
|
border-bottom: 0 solid transparent;
|
|
1475
1479
|
min-height: initial;
|
package/styles/bootstrap4.css
CHANGED
|
@@ -1603,6 +1603,10 @@
|
|
|
1603
1603
|
margin-top: 0;
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1607
|
+
margin-right: 30px;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1606
1610
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1607
1611
|
border-bottom: 0 solid transparent;
|
|
1608
1612
|
min-height: initial;
|
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|
package/styles/bootstrap5.css
CHANGED
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|
package/styles/fabric-dark.css
CHANGED
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
package/styles/fabric.css
CHANGED
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
package/styles/highcontrast.css
CHANGED
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
package/styles/material-dark.css
CHANGED
|
@@ -1314,6 +1314,10 @@
|
|
|
1314
1314
|
margin-top: 0;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1318
|
+
margin-right: 30px;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1317
1321
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1318
1322
|
border-bottom: 0 solid transparent;
|
|
1319
1323
|
min-height: initial;
|
package/styles/material.css
CHANGED
|
@@ -1314,6 +1314,10 @@
|
|
|
1314
1314
|
margin-top: 0;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1318
|
+
margin-right: 30px;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1317
1321
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1318
1322
|
border-bottom: 0 solid transparent;
|
|
1319
1323
|
min-height: initial;
|
|
@@ -866,6 +866,10 @@
|
|
|
866
866
|
margin-top: 0;
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
+
.e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
870
|
+
margin-right: 30px;
|
|
871
|
+
}
|
|
872
|
+
|
|
869
873
|
.e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
870
874
|
border-bottom: 0 solid transparent;
|
|
871
875
|
min-height: initial;
|
|
@@ -1324,6 +1324,10 @@
|
|
|
1324
1324
|
margin-top: 0;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1328
|
+
margin-right: 30px;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1327
1331
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1328
1332
|
border-bottom: 0 solid transparent;
|
|
1329
1333
|
min-height: initial;
|
|
@@ -1470,6 +1470,10 @@
|
|
|
1470
1470
|
margin-top: 0;
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1474
|
+
margin-right: 30px;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1473
1477
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1474
1478
|
border-bottom: 0 solid transparent;
|
|
1475
1479
|
min-height: initial;
|
|
@@ -1603,6 +1603,10 @@
|
|
|
1603
1603
|
margin-top: 0;
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1607
|
+
margin-right: 30px;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1606
1610
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1607
1611
|
border-bottom: 0 solid transparent;
|
|
1608
1612
|
min-height: initial;
|
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
|
@@ -1313,6 +1313,10 @@
|
|
|
1313
1313
|
margin-top: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1317
|
+
margin-right: 30px;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1316
1320
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1317
1321
|
border-bottom: 0 solid transparent;
|
|
1318
1322
|
min-height: initial;
|
|
@@ -1314,6 +1314,10 @@
|
|
|
1314
1314
|
margin-top: 0;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1318
|
+
margin-right: 30px;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1317
1321
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1318
1322
|
border-bottom: 0 solid transparent;
|
|
1319
1323
|
min-height: initial;
|
|
@@ -1314,6 +1314,10 @@
|
|
|
1314
1314
|
margin-top: 0;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1318
|
+
margin-right: 30px;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1317
1321
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1318
1322
|
border-bottom: 0 solid transparent;
|
|
1319
1323
|
min-height: initial;
|
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|
|
@@ -1320,6 +1320,10 @@
|
|
|
1320
1320
|
margin-top: 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-file-abort-btn.e-icons {
|
|
1324
|
+
margin-right: 30px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1323
1327
|
.e-richtexteditor .e-img-uploadwrap.e-droparea .e-upload .e-upload-files .e-upload-file-list {
|
|
1324
1328
|
border-bottom: 0 solid transparent;
|
|
1325
1329
|
min-height: initial;
|