@syncfusion/ej2-richtexteditor 23.1.36 → 23.1.40
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 +36 -0
- package/dist/ej2-richtexteditor.min.js +3 -3
- package/dist/ej2-richtexteditor.umd.min.js +3 -3
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +94 -24
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +94 -24
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +3 -3
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +11 -11
- package/src/editor-manager/plugin/inserthtml.js +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +11 -1
- package/src/editor-manager/plugin/selection-exec.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +3 -0
- package/src/rich-text-editor/actions/full-screen.js +3 -0
- package/src/rich-text-editor/actions/markdown-editor.js +3 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +3 -0
- package/src/rich-text-editor/actions/toolbar.js +3 -0
- package/src/rich-text-editor/base/rich-text-editor.js +12 -2
- package/src/rich-text-editor/renderer/image-module.js +11 -0
- package/src/rich-text-editor/renderer/link-module.js +3 -0
- package/src/rich-text-editor/renderer/render.js +4 -0
- package/src/rich-text-editor/renderer/table-module.js +34 -19
- package/src/rich-text-editor/renderer/view-source.js +3 -0
- package/styles/bootstrap-dark.css +4 -4
- package/styles/bootstrap.css +4 -4
- package/styles/bootstrap4.css +4 -4
- package/styles/bootstrap5-dark.css +4 -4
- package/styles/bootstrap5.css +4 -4
- package/styles/fabric-dark.css +4 -4
- package/styles/fabric.css +4 -4
- package/styles/fluent-dark.css +4 -4
- package/styles/fluent.css +4 -4
- package/styles/highcontrast-light.css +4 -4
- package/styles/highcontrast.css +4 -4
- package/styles/material-dark.css +4 -4
- package/styles/material.css +4 -4
- package/styles/material3-dark.css +4 -4
- package/styles/material3.css +4 -4
- package/styles/rich-text-editor/_layout.scss +2 -2
- package/styles/rich-text-editor/bootstrap-dark.css +4 -4
- package/styles/rich-text-editor/bootstrap.css +4 -4
- package/styles/rich-text-editor/bootstrap4.css +4 -4
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -4
- package/styles/rich-text-editor/bootstrap5.css +4 -4
- package/styles/rich-text-editor/fabric-dark.css +4 -4
- package/styles/rich-text-editor/fabric.css +4 -4
- package/styles/rich-text-editor/fluent-dark.css +4 -4
- package/styles/rich-text-editor/fluent.css +4 -4
- package/styles/rich-text-editor/highcontrast-light.css +4 -4
- package/styles/rich-text-editor/highcontrast.css +4 -4
- package/styles/rich-text-editor/material-dark.css +4 -4
- package/styles/rich-text-editor/material.css +4 -4
- package/styles/rich-text-editor/material3-dark.css +4 -4
- package/styles/rich-text-editor/material3.css +4 -4
- package/styles/rich-text-editor/tailwind-dark.css +4 -4
- package/styles/rich-text-editor/tailwind.css +4 -4
- package/styles/tailwind-dark.css +4 -4
- package/styles/tailwind.css +4 -4
|
@@ -5295,6 +5295,9 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
5295
5295
|
* @deprecated
|
|
5296
5296
|
*/
|
|
5297
5297
|
Toolbar$$1.prototype.destroy = function () {
|
|
5298
|
+
if (isNullOrUndefined(this.parent)) {
|
|
5299
|
+
return;
|
|
5300
|
+
}
|
|
5298
5301
|
if (this.isToolbarDestroyed()) {
|
|
5299
5302
|
this.destroyToolbar();
|
|
5300
5303
|
if (this.keyBoardModule) {
|
|
@@ -6808,6 +6811,9 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6808
6811
|
* @deprecated
|
|
6809
6812
|
*/
|
|
6810
6813
|
QuickToolbar.prototype.destroy = function () {
|
|
6814
|
+
if (isNullOrUndefined(this.parent)) {
|
|
6815
|
+
return;
|
|
6816
|
+
}
|
|
6811
6817
|
if (this.linkQTBar) {
|
|
6812
6818
|
EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
|
|
6813
6819
|
EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
|
|
@@ -10183,6 +10189,9 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
10183
10189
|
* @deprecated
|
|
10184
10190
|
*/
|
|
10185
10191
|
MarkdownEditor.prototype.destroy = function () {
|
|
10192
|
+
if (isNullOrUndefined(this.parent)) {
|
|
10193
|
+
return;
|
|
10194
|
+
}
|
|
10186
10195
|
this.removeEventListener();
|
|
10187
10196
|
};
|
|
10188
10197
|
MarkdownEditor.prototype.moduleDestroy = function () {
|
|
@@ -13212,7 +13221,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
13212
13221
|
var range = nodeSelection.getRange(docElement);
|
|
13213
13222
|
if (range.startContainer === editNode && range.startContainer === range.endContainer && range.startOffset === 0 &&
|
|
13214
13223
|
range.startOffset === range.endOffset && editNode.textContent.length === 0 &&
|
|
13215
|
-
(editNode.children[0].tagName === 'P' || (editNode.children[0].tagName === 'BR'))) {
|
|
13224
|
+
(editNode.children[0].tagName === 'P' || editNode.children[0].tagName === 'DIV' || (editNode.children[0].tagName === 'BR'))) {
|
|
13216
13225
|
nodeSelection.setSelectionText(docElement, range.startContainer.children[0], range.startContainer.children[0], 0, 0);
|
|
13217
13226
|
range = nodeSelection.getRange(docElement);
|
|
13218
13227
|
}
|
|
@@ -16938,7 +16947,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
16938
16947
|
SelectionBasedExec.prototype.keyDownHandler = function (e) {
|
|
16939
16948
|
var validFormats = ['bold', 'italic', 'underline', 'strikethrough', 'superscript',
|
|
16940
16949
|
'subscript', 'uppercase', 'lowercase'];
|
|
16941
|
-
if (e.event.ctrlKey && validFormats.indexOf(e.event.action) > -1) {
|
|
16950
|
+
if ((e.event.ctrlKey || e.event.metaKey) && validFormats.indexOf(e.event.action) > -1) {
|
|
16942
16951
|
e.event.preventDefault();
|
|
16943
16952
|
SelectionCommands.applyFormat(this.parent.currentDocument, e.event.action, this.parent.editableElement, e.enterAction);
|
|
16944
16953
|
this.callBack(e, e.event.action);
|
|
@@ -18315,10 +18324,20 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
18315
18324
|
temp.style.listStyleType = collection[index].listStyleTypeName;
|
|
18316
18325
|
}
|
|
18317
18326
|
else if (collection[index].nestedLevel === pLevel) {
|
|
18318
|
-
if (prevList
|
|
18327
|
+
if (!isNullOrUndefined(prevList) && !isNullOrUndefined(prevList.parentElement)
|
|
18328
|
+
&& prevList.parentElement.tagName.toLowerCase() === collection[index].listType) {
|
|
18319
18329
|
prevList.parentElement.appendChild(prevList = createElement('li'));
|
|
18320
18330
|
prevList.appendChild(pElement);
|
|
18321
18331
|
}
|
|
18332
|
+
else if (isNullOrUndefined(prevList)) {
|
|
18333
|
+
temp = createElement(collection[index].listType);
|
|
18334
|
+
temp.style.listStyleType = collection[index].listStyleTypeName;
|
|
18335
|
+
prevList = createElement('li');
|
|
18336
|
+
prevList.appendChild(pElement);
|
|
18337
|
+
temp.appendChild(prevList);
|
|
18338
|
+
temp.setAttribute('level', collection[index].nestedLevel.toString());
|
|
18339
|
+
root.appendChild(temp);
|
|
18340
|
+
}
|
|
18322
18341
|
else {
|
|
18323
18342
|
temp = createElement(collection[index].listType);
|
|
18324
18343
|
temp.style.listStyleType = collection[index].listStyleTypeName;
|
|
@@ -22586,6 +22605,9 @@ var FullScreen = /** @__PURE__ @class */ (function () {
|
|
|
22586
22605
|
* @deprecated
|
|
22587
22606
|
*/
|
|
22588
22607
|
FullScreen.prototype.destroy = function () {
|
|
22608
|
+
if (isNullOrUndefined(this.parent)) {
|
|
22609
|
+
return;
|
|
22610
|
+
}
|
|
22589
22611
|
if (this.parent.element.classList.contains(CLS_FULL_SCREEN)) {
|
|
22590
22612
|
this.toggleParentOverflow(false);
|
|
22591
22613
|
}
|
|
@@ -23658,6 +23680,9 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
23658
23680
|
* @returns {void}
|
|
23659
23681
|
*/
|
|
23660
23682
|
Render.prototype.destroy = function () {
|
|
23683
|
+
if (isNullOrUndefined(this.parent)) {
|
|
23684
|
+
return;
|
|
23685
|
+
}
|
|
23661
23686
|
this.removeEventListener();
|
|
23662
23687
|
};
|
|
23663
23688
|
Render.prototype.moduleDestroy = function () {
|
|
@@ -24228,6 +24253,9 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
24228
24253
|
* @deprecated
|
|
24229
24254
|
*/
|
|
24230
24255
|
Link.prototype.destroy = function () {
|
|
24256
|
+
if (isNullOrUndefined(this.parent)) {
|
|
24257
|
+
return;
|
|
24258
|
+
}
|
|
24231
24259
|
this.removeEventListener();
|
|
24232
24260
|
};
|
|
24233
24261
|
Link.prototype.moduleDestroy = function () {
|
|
@@ -25718,6 +25746,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25718
25746
|
this.prevSelectedImgEle.style.outline = '';
|
|
25719
25747
|
}
|
|
25720
25748
|
}
|
|
25749
|
+
if (target.tagName !== 'IMG') {
|
|
25750
|
+
var items = this.contentModule.getEditPanel().querySelectorAll('img');
|
|
25751
|
+
for (var i = 0; i < items.length; i++) {
|
|
25752
|
+
removeClass([items[i]], 'e-img-focus');
|
|
25753
|
+
removeClass([items[i]], 'e-resize');
|
|
25754
|
+
items[i].style.maxWidth = '';
|
|
25755
|
+
}
|
|
25756
|
+
}
|
|
25721
25757
|
};
|
|
25722
25758
|
Image.prototype.removeResizeEle = function () {
|
|
25723
25759
|
EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
|
|
@@ -26506,6 +26542,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
26506
26542
|
/* eslint-enable */
|
|
26507
26543
|
Image.prototype.destroy = function () {
|
|
26508
26544
|
this.prevSelectedImgEle = undefined;
|
|
26545
|
+
if (isNullOrUndefined(this.parent)) {
|
|
26546
|
+
return;
|
|
26547
|
+
}
|
|
26509
26548
|
this.removeEventListener();
|
|
26510
26549
|
};
|
|
26511
26550
|
Image.prototype.moduleDestroy = function () {
|
|
@@ -29033,6 +29072,9 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
29033
29072
|
* @deprecated
|
|
29034
29073
|
*/
|
|
29035
29074
|
ViewSource.prototype.destroy = function () {
|
|
29075
|
+
if (isNullOrUndefined(this.parent)) {
|
|
29076
|
+
return;
|
|
29077
|
+
}
|
|
29036
29078
|
this.removeEventListener();
|
|
29037
29079
|
};
|
|
29038
29080
|
ViewSource.prototype.moduleDestroy = function () {
|
|
@@ -29102,6 +29144,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29102
29144
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
29103
29145
|
this.parent.off(destroy, this.destroy);
|
|
29104
29146
|
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
29147
|
+
if (!Browser.isDevice && this.parent.tableSettings.resize) {
|
|
29148
|
+
EventHandler.remove(this.contentModule.getEditPanel(), 'mouseover', this.resizeHelper);
|
|
29149
|
+
}
|
|
29105
29150
|
};
|
|
29106
29151
|
Table.prototype.updateCss = function (currentObj, e) {
|
|
29107
29152
|
if (currentObj && e.cssClass) {
|
|
@@ -29642,7 +29687,12 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29642
29687
|
var columns = table.rows[this.calMaxCol(table)].cells;
|
|
29643
29688
|
var rows = [];
|
|
29644
29689
|
for (var i = 0; i < table.rows.length; i++) {
|
|
29645
|
-
|
|
29690
|
+
for (var j = 0; j < table.rows[i].cells.length; j++) {
|
|
29691
|
+
if (!table.rows[i].cells[j].hasAttribute('rowspan')) {
|
|
29692
|
+
rows.push(Array.prototype.slice.call(table.rows[i].cells, 0, table.rows[i].cells.length)[j]);
|
|
29693
|
+
break;
|
|
29694
|
+
}
|
|
29695
|
+
}
|
|
29646
29696
|
}
|
|
29647
29697
|
var height = parseInt(getComputedStyle(table).height, 10);
|
|
29648
29698
|
var width = parseInt(getComputedStyle(table).width, 10);
|
|
@@ -29692,7 +29742,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29692
29742
|
};
|
|
29693
29743
|
Table.prototype.removeResizeElement = function () {
|
|
29694
29744
|
var item = this.parent.contentModule.getEditPanel().
|
|
29695
|
-
querySelectorAll('.e-column-resize, .e-row-resize, .e-table-box');
|
|
29745
|
+
querySelectorAll('.e-column-resize, .e-row-resize, .e-table-box, .e-table-rhelper');
|
|
29696
29746
|
if (item.length > 0) {
|
|
29697
29747
|
for (var i = 0; i < item.length; i++) {
|
|
29698
29748
|
detach(item[i]);
|
|
@@ -29890,6 +29940,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29890
29940
|
var currentTdElement = this.curTable.closest('td');
|
|
29891
29941
|
var args = { event: e, requestType: 'table' };
|
|
29892
29942
|
var isRowCellsMerged = false;
|
|
29943
|
+
var isColCellsMerged = false;
|
|
29893
29944
|
var mergedCellIndex;
|
|
29894
29945
|
var mergedElement;
|
|
29895
29946
|
this.parent.trigger(onResize, args, function (resizingArgs) {
|
|
@@ -29919,7 +29970,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29919
29970
|
var width = parseFloat(_this.columnEle.offsetWidth.toString());
|
|
29920
29971
|
var cellRow = _this.curTable.rows[0].cells[0].nodeName === 'TH' ? 1 : 0;
|
|
29921
29972
|
var currentTableWidth = void 0;
|
|
29922
|
-
if (_this.curTable.style.width !== '') {
|
|
29973
|
+
if (_this.curTable.style.width !== '' && _this.curTable.style.width.includes('%')) {
|
|
29923
29974
|
currentTableWidth = parseFloat(_this.curTable.style.width.split('%')[0]);
|
|
29924
29975
|
}
|
|
29925
29976
|
else {
|
|
@@ -29982,6 +30033,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29982
30033
|
var isMergedEleResize = false;
|
|
29983
30034
|
var leftTableCell = void 0;
|
|
29984
30035
|
var rightTableCell = void 0;
|
|
30036
|
+
isColCellsMerged = false;
|
|
30037
|
+
isRowCellsMerged = false;
|
|
29985
30038
|
/* eslint-disable */
|
|
29986
30039
|
for (var j = 0; j < currentRow.cells.length; j++) {
|
|
29987
30040
|
if (currentRow.cells[j].hasAttribute('rowspan') && j <= _this.colIndex) {
|
|
@@ -29989,6 +30042,11 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29989
30042
|
mergedCellIndex = i;
|
|
29990
30043
|
mergedElement = currentRow.cells[j];
|
|
29991
30044
|
}
|
|
30045
|
+
else if (currentRow.cells[j].hasAttribute('colspan') && j <= currentRow.cells.length) {
|
|
30046
|
+
isColCellsMerged = true;
|
|
30047
|
+
mergedCellIndex = i;
|
|
30048
|
+
mergedElement = currentRow.cells[j];
|
|
30049
|
+
}
|
|
29992
30050
|
}
|
|
29993
30051
|
if (!isNullOrUndefined(currentRow.cells[i]) && currentRow.cells[i].hasAttribute('colspan')) {
|
|
29994
30052
|
index = parseInt(currentRow.cells[i].getAttribute('colspan'), 10) - 1;
|
|
@@ -29996,14 +30054,14 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29996
30054
|
else {
|
|
29997
30055
|
index = _this.colIndex;
|
|
29998
30056
|
}
|
|
29999
|
-
if (isRowCellsMerged) {
|
|
30057
|
+
if (isRowCellsMerged || isColCellsMerged) {
|
|
30000
30058
|
var currentResizeRow = void 0;
|
|
30001
30059
|
if (currentRow.cells.length < cellColl.length) {
|
|
30002
|
-
index = currentRow.cells.length === _this.colIndex ?
|
|
30003
|
-
_this.colIndex - 1 : _this.colIndex
|
|
30060
|
+
index = currentRow.cells.length === _this.colIndex || currentRow === _this.curTable.rows[_this.curTable.rows.length - 1] ?
|
|
30061
|
+
_this.colIndex - 1 : _this.colIndex;
|
|
30004
30062
|
currentResizeRow = _this.curTable.rows[!isNullOrUndefined(mergedCellIndex) ?
|
|
30005
30063
|
mergedCellIndex : _this.colIndex - 1];
|
|
30006
|
-
if (currentResizeRow && (currentResizeRow.cells[_this.colIndex - 1] === mergedElement ||
|
|
30064
|
+
if (currentResizeRow && currentResizeRow !== currentRow && (currentResizeRow.cells[_this.colIndex - 1] === mergedElement ||
|
|
30007
30065
|
currentResizeRow.cells[currentResizeRow.cells.length - 1] === mergedElement)) {
|
|
30008
30066
|
isMergedEleResize = true;
|
|
30009
30067
|
}
|
|
@@ -30018,10 +30076,10 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30018
30076
|
currentResizeRow.cells[currentResizeRow.cells.length - 1] !== mergedElement) ?
|
|
30019
30077
|
currentResizeRow.cells[_this.colIndex - 1] : currentRow.cells[currentRow.cells.length - 1];
|
|
30020
30078
|
rightTableCell = !isMergedEleResize ? currentRow.cells[index] : rightTableCell && rightTableCell.hasAttribute('rowspan') ?
|
|
30021
|
-
|
|
30079
|
+
currentResizeRow.cells[_this.colIndex] : currentResizeRow && currentResizeRow.cells[currentResizeRow.cells.length - 1] !== mergedElement ?
|
|
30022
30080
|
currentRow.cells[index - 1] : currentResizeRow.cells[currentResizeRow.cells.length - 1];
|
|
30023
30081
|
}
|
|
30024
|
-
if (!isNullOrUndefined(currentRow.cells[index - 1]) && !isRowCellsMerged) {
|
|
30082
|
+
if (!isNullOrUndefined(currentRow.cells[index - 1]) && !isRowCellsMerged && !isColCellsMerged) {
|
|
30025
30083
|
currentRow.cells[index - 1].style.width =
|
|
30026
30084
|
_this.convertPixelToPercentage(leftColumnWidth, tableWidth) + '%';
|
|
30027
30085
|
}
|
|
@@ -30031,7 +30089,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30031
30089
|
_this.convertPixelToPercentage(leftColumnWidth, tableWidth) + '%';
|
|
30032
30090
|
}
|
|
30033
30091
|
}
|
|
30034
|
-
if (!isNullOrUndefined(currentRow.cells[index]) && !isRowCellsMerged) {
|
|
30092
|
+
if (!isNullOrUndefined(currentRow.cells[index]) && !isRowCellsMerged && !isColCellsMerged) {
|
|
30035
30093
|
currentRow.cells[index].style.width =
|
|
30036
30094
|
_this.convertPixelToPercentage(rightColWidth, tableWidth) + '%';
|
|
30037
30095
|
}
|
|
@@ -30061,9 +30119,6 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30061
30119
|
_this.updateHelper();
|
|
30062
30120
|
}
|
|
30063
30121
|
else if (_this.resizeBtnStat.tableBox) {
|
|
30064
|
-
if (!Browser.isDevice) {
|
|
30065
|
-
EventHandler.remove(_this.contentModule.getEditPanel(), 'mouseover', _this.resizeHelper);
|
|
30066
|
-
}
|
|
30067
30122
|
if (currentTdElement) {
|
|
30068
30123
|
var tableBoxPosition = _this.curTable.getBoundingClientRect().left
|
|
30069
30124
|
- currentTdElement.getBoundingClientRect().left;
|
|
@@ -30074,9 +30129,11 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30074
30129
|
_this.curTable.style.width = widthType ? _this.convertPixelToPercentage(tableWidth + mouseX, widthCompare) + '%'
|
|
30075
30130
|
: tableWidth + mouseX + 'px';
|
|
30076
30131
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
30077
|
-
tableReBox
|
|
30078
|
-
|
|
30079
|
-
'
|
|
30132
|
+
if (!isNullOrUndefined(tableReBox)) {
|
|
30133
|
+
tableReBox.classList.add('e-rbox-select');
|
|
30134
|
+
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top + tableHeight - 4) +
|
|
30135
|
+
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
30136
|
+
}
|
|
30080
30137
|
}
|
|
30081
30138
|
}
|
|
30082
30139
|
});
|
|
@@ -30111,9 +30168,6 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30111
30168
|
EventHandler.remove(this.contentModule.getDocument(), Browser.touchEndEvent, this.resizeEnd);
|
|
30112
30169
|
if (this.contentModule.getEditPanel().querySelector('.e-table-box') &&
|
|
30113
30170
|
this.contentModule.getEditPanel().contains(this.contentModule.getEditPanel().querySelector('.e-table-box'))) {
|
|
30114
|
-
if (!Browser.isDevice) {
|
|
30115
|
-
EventHandler.add(this.contentModule.getEditPanel(), 'mouseover', this.resizeHelper, this);
|
|
30116
|
-
}
|
|
30117
30171
|
this.removeResizeElement();
|
|
30118
30172
|
}
|
|
30119
30173
|
if (this.helper && this.contentModule.getEditPanel().contains(this.helper)) {
|
|
@@ -30542,6 +30596,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30542
30596
|
* @deprecated
|
|
30543
30597
|
*/
|
|
30544
30598
|
Table.prototype.destroy = function () {
|
|
30599
|
+
if (isNullOrUndefined(this.parent)) {
|
|
30600
|
+
return;
|
|
30601
|
+
}
|
|
30545
30602
|
this.removeEventListener();
|
|
30546
30603
|
};
|
|
30547
30604
|
Table.prototype.moduleDestroy = function () {
|
|
@@ -31445,6 +31502,9 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
31445
31502
|
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
31446
31503
|
};
|
|
31447
31504
|
EnterKeyAction.prototype.destroy = function () {
|
|
31505
|
+
if (isNullOrUndefined(this.parent)) {
|
|
31506
|
+
return;
|
|
31507
|
+
}
|
|
31448
31508
|
this.removeEventListener();
|
|
31449
31509
|
};
|
|
31450
31510
|
EnterKeyAction.prototype.moduleDestroy = function () {
|
|
@@ -32636,7 +32696,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
32636
32696
|
}
|
|
32637
32697
|
if (e.action !== 'insert-link' &&
|
|
32638
32698
|
e.action !== 'format-copy' && e.action !== 'format-paste' &&
|
|
32639
|
-
(!e.target ||
|
|
32699
|
+
(!e.target || (e.target.classList.contains('e-mention') && e.code !== 'Tab')) &&
|
|
32640
32700
|
(e.action && e.action !== 'paste' && e.action !== 'space'
|
|
32641
32701
|
|| e.which === 9 || (e.code === 'Backspace' && e.which === 8))) {
|
|
32642
32702
|
var FormatPainterEscapeAction = false;
|
|
@@ -32942,6 +33002,8 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
32942
33002
|
this.toolbarModule.destroy();
|
|
32943
33003
|
}
|
|
32944
33004
|
this.notify(moduleDestroy, {});
|
|
33005
|
+
_super.prototype.destroy.call(this);
|
|
33006
|
+
this.isRendered = false;
|
|
32945
33007
|
return;
|
|
32946
33008
|
}
|
|
32947
33009
|
this.notify(destroy, {});
|
|
@@ -33741,13 +33803,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
33741
33803
|
heightValue = heightPercent && rteHeightPercent ? rteHeightPercent : rteHeight - (tbHeight + rzHeight) + 'px';
|
|
33742
33804
|
}
|
|
33743
33805
|
}
|
|
33744
|
-
if (target !== 'windowResize') {
|
|
33806
|
+
if (target !== 'windowResize' || heightPercent) {
|
|
33745
33807
|
if (this.iframeSettings.enable) {
|
|
33746
33808
|
if (heightValue !== 'auto') {
|
|
33747
33809
|
setStyleAttribute(cntEle, { height: heightValue, marginTop: topValue + 'px' });
|
|
33748
33810
|
}
|
|
33749
33811
|
}
|
|
33750
33812
|
else {
|
|
33813
|
+
if (target === 'windowResize' && heightPercent) {
|
|
33814
|
+
// cntEle hide the borderBottom of RichTextEditor. so removed the 2px of cntEle height.
|
|
33815
|
+
heightValue = parseInt(heightValue) - 2 + 'px';
|
|
33816
|
+
}
|
|
33751
33817
|
setStyleAttribute(cntEle, { height: heightValue, marginTop: topValue + 'px' });
|
|
33752
33818
|
}
|
|
33753
33819
|
}
|
|
@@ -33956,6 +34022,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
33956
34022
|
this.toolbarModule.refreshToolbarOverflow();
|
|
33957
34023
|
isExpand = this.toolbarModule.baseToolbar.toolbarObj.element.classList.contains(CLS_EXPAND_OPEN);
|
|
33958
34024
|
}
|
|
34025
|
+
if (this.iframeSettings.enable !== true) {
|
|
34026
|
+
// When resize the window,border bottom of cntEle and this.element border visible separatly.so none the cntEle borderBottom.
|
|
34027
|
+
this.contentModule.getPanel().style.borderBottom = 'none';
|
|
34028
|
+
}
|
|
33959
34029
|
this.setContentHeight('windowResize', isExpand);
|
|
33960
34030
|
this.notify(windowResize, null);
|
|
33961
34031
|
};
|