@syncfusion/ej2-richtexteditor 27.1.52 → 27.1.57
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 +10 -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 +244 -60
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +245 -59
- 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 +13 -13
- package/src/common/config.d.ts +7 -0
- package/src/common/config.js +12 -0
- package/src/editor-manager/base/editor-manager.js +1 -1
- package/src/editor-manager/base/interface.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.js +1 -1
- package/src/editor-manager/plugin/image.js +2 -0
- package/src/editor-manager/plugin/inserthtml.d.ts +1 -0
- package/src/editor-manager/plugin/inserthtml.js +34 -10
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.js +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -0
- package/src/editor-manager/plugin/ms-word-clean-up.js +16 -0
- package/src/editor-manager/plugin/selection-commands.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +1 -1
- package/src/editor-manager/plugin/undo.js +3 -3
- package/src/rich-text-editor/actions/enter-key.js +10 -5
- package/src/rich-text-editor/actions/html-editor.js +2 -2
- package/src/rich-text-editor/actions/import-export.js +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/resize.d.ts +3 -0
- package/src/rich-text-editor/actions/resize.js +17 -0
- package/src/rich-text-editor/base/interface.d.ts +13 -1
- package/src/rich-text-editor/base/rich-text-editor.js +11 -0
- package/src/rich-text-editor/renderer/audio-module.js +7 -1
- package/src/rich-text-editor/renderer/image-module.js +57 -20
- package/src/rich-text-editor/renderer/link-module.js +8 -1
- package/src/rich-text-editor/renderer/slash-menu.js +1 -1
- package/src/rich-text-editor/renderer/table-module.js +3 -2
- package/src/rich-text-editor/renderer/video-module.js +8 -2
- package/src/selection/selection.d.ts +5 -0
- package/src/selection/selection.js +44 -1
|
@@ -4252,9 +4252,10 @@ var PASTE_SOURCE = ['word', 'excel', 'onenote'];
|
|
|
4252
4252
|
* `Selection` module is used to handle RTE Selections.
|
|
4253
4253
|
*/
|
|
4254
4254
|
var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
4255
|
-
function NodeSelection() {
|
|
4255
|
+
function NodeSelection(editElement) {
|
|
4256
4256
|
this.startNodeName = [];
|
|
4257
4257
|
this.endNodeName = [];
|
|
4258
|
+
this.editableElement = editElement;
|
|
4258
4259
|
}
|
|
4259
4260
|
NodeSelection.prototype.saveInstance = function (range, body) {
|
|
4260
4261
|
this.range = range.cloneRange();
|
|
@@ -4334,6 +4335,9 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4334
4335
|
return false;
|
|
4335
4336
|
};
|
|
4336
4337
|
NodeSelection.prototype.getNode = function (startNode, endNode, nodeCollection) {
|
|
4338
|
+
if (this.editableElement && (!this.editableElement.contains(startNode) || this.editableElement === startNode)) {
|
|
4339
|
+
return null;
|
|
4340
|
+
}
|
|
4337
4341
|
if (endNode === startNode &&
|
|
4338
4342
|
(startNode.nodeType === 3 || !startNode.firstChild || nodeCollection.indexOf(startNode.firstChild) !== -1
|
|
4339
4343
|
|| this.isChildNode(nodeCollection, startNode))) {
|
|
@@ -4368,6 +4372,12 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4368
4372
|
|| range.startContainer;
|
|
4369
4373
|
var endNode = range.endContainer.childNodes[(range.endOffset > 0) ? (range.endOffset - 1) : range.endOffset]
|
|
4370
4374
|
|| range.endContainer;
|
|
4375
|
+
var tableCursor = this.processedTableImageCursor(range);
|
|
4376
|
+
if (tableCursor.start || tableCursor.end) {
|
|
4377
|
+
if (tableCursor.startName === 'TABLE' || tableCursor.endName === 'TABLE') {
|
|
4378
|
+
return [];
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4371
4381
|
if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
|
|
4372
4382
|
startNode.childNodes.length === 0) {
|
|
4373
4383
|
return [startNode];
|
|
@@ -4687,6 +4697,39 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4687
4697
|
selection.removeAllRanges();
|
|
4688
4698
|
selection.addRange(range);
|
|
4689
4699
|
};
|
|
4700
|
+
NodeSelection.prototype.isTableOrImageStart = function (range) {
|
|
4701
|
+
var customHandlerElements = ['TABLE'];
|
|
4702
|
+
var startContainer = range.startContainer;
|
|
4703
|
+
var startOffset = range.startOffset;
|
|
4704
|
+
var isCursorAtStart = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4705
|
+
startContainer.isContentEditable && startContainer.childNodes[startOffset] &&
|
|
4706
|
+
(customHandlerElements.indexOf(startContainer.childNodes[startOffset].nodeName) > -1);
|
|
4707
|
+
if (isCursorAtStart) {
|
|
4708
|
+
return { start: isCursorAtStart, startNodeName: startContainer.childNodes[startOffset].nodeName };
|
|
4709
|
+
}
|
|
4710
|
+
else {
|
|
4711
|
+
return { start: false, startNodeName: '' };
|
|
4712
|
+
}
|
|
4713
|
+
};
|
|
4714
|
+
NodeSelection.prototype.isTableOrImageEnd = function (range) {
|
|
4715
|
+
var customHandlerElements = ['TABLE'];
|
|
4716
|
+
var startContainer = range.startContainer;
|
|
4717
|
+
var startOffset = range.startOffset;
|
|
4718
|
+
var isCursorAtEnd = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4719
|
+
startContainer.isContentEditable && startContainer.childNodes[startOffset - 1] &&
|
|
4720
|
+
(customHandlerElements.indexOf(startContainer.childNodes[startOffset - 1].nodeName) > -1);
|
|
4721
|
+
if (isCursorAtEnd) {
|
|
4722
|
+
return { end: isCursorAtEnd, endNodeName: startContainer.childNodes[startOffset - 1].nodeName };
|
|
4723
|
+
}
|
|
4724
|
+
else {
|
|
4725
|
+
return { end: false, endNodeName: '' };
|
|
4726
|
+
}
|
|
4727
|
+
};
|
|
4728
|
+
NodeSelection.prototype.processedTableImageCursor = function (range) {
|
|
4729
|
+
var _a = this.isTableOrImageStart(range), start = _a.start, startNodeName = _a.startNodeName;
|
|
4730
|
+
var _b = this.isTableOrImageEnd(range), end = _b.end, endNodeName = _b.endNodeName;
|
|
4731
|
+
return { start: start, startName: startNodeName, end: end, endName: endNodeName };
|
|
4732
|
+
};
|
|
4690
4733
|
return NodeSelection;
|
|
4691
4734
|
}());
|
|
4692
4735
|
|
|
@@ -5042,7 +5085,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
5042
5085
|
ToolbarStatus.get = function (docElement, rootNode, formatNode, fontSize, fontName, documentNode) {
|
|
5043
5086
|
var formatCollection = JSON.parse(JSON.stringify(statusCollection));
|
|
5044
5087
|
var nodeCollection = JSON.parse(JSON.stringify(statusCollection));
|
|
5045
|
-
var nodeSelection = new NodeSelection();
|
|
5088
|
+
var nodeSelection = new NodeSelection(rootNode);
|
|
5046
5089
|
var range = nodeSelection.getRange(docElement);
|
|
5047
5090
|
var nodes = documentNode ? [documentNode] : range.collapsed ? nodeSelection.getNodeCollection(range) :
|
|
5048
5091
|
nodeSelection.getSelectionNodeCollectionBr(range);
|
|
@@ -6585,6 +6628,9 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
6585
6628
|
if (document.body.contains(proxy.dialogObj.element)) {
|
|
6586
6629
|
this.selfLink.dialogObj.hide({ returnValue: false });
|
|
6587
6630
|
}
|
|
6631
|
+
if (this.selfLink.dialogObj !== null) {
|
|
6632
|
+
return;
|
|
6633
|
+
}
|
|
6588
6634
|
if (isIDevice$1() && proxy.parent.iframeSettings.enable) {
|
|
6589
6635
|
select('iframe', proxy.parent.element).contentWindow.focus();
|
|
6590
6636
|
}
|
|
@@ -6649,11 +6695,15 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
6649
6695
|
Link.prototype.openLink = function (e) {
|
|
6650
6696
|
var selectParentEle = this.getAnchorNode(e.selectParent[0]);
|
|
6651
6697
|
if (selectParentEle.classList.contains('e-rte-anchor') || selectParentEle.tagName === 'A') {
|
|
6698
|
+
var sanitizedHTML = this.parent.htmlEditorModule.sanitizeHelper(selectParentEle.outerHTML);
|
|
6699
|
+
var tempEle = document.createElement('div');
|
|
6700
|
+
tempEle.innerHTML = sanitizedHTML;
|
|
6652
6701
|
this.parent.formatter.process(this.parent, e.args, e.args, {
|
|
6653
|
-
url:
|
|
6702
|
+
url: tempEle.firstChild.href, text: selectParentEle.innerText,
|
|
6654
6703
|
target: selectParentEle.target === '' ? '_self' : '_blank', selectNode: e.selectNode,
|
|
6655
6704
|
subCommand: e.args.item.subCommand
|
|
6656
6705
|
});
|
|
6706
|
+
tempEle.remove();
|
|
6657
6707
|
}
|
|
6658
6708
|
};
|
|
6659
6709
|
Link.prototype.getAnchorNode = function (element) {
|
|
@@ -6878,6 +6928,18 @@ var imageResizeFactor = {
|
|
|
6878
6928
|
botRight: [1, 1],
|
|
6879
6929
|
botLeft: [-1, 1]
|
|
6880
6930
|
};
|
|
6931
|
+
/**
|
|
6932
|
+
* Resize factor for image in iframe editor.
|
|
6933
|
+
*
|
|
6934
|
+
*@hidden
|
|
6935
|
+
*
|
|
6936
|
+
*/
|
|
6937
|
+
var iframeResizeFactor = {
|
|
6938
|
+
topLeft: [-1.2, -1.2],
|
|
6939
|
+
topRight: [1.2, -1.2],
|
|
6940
|
+
botRight: [1.2, 1.2],
|
|
6941
|
+
botLeft: [-1.2, 1.2]
|
|
6942
|
+
};
|
|
6881
6943
|
/**
|
|
6882
6944
|
* Mention restrict key configuration.
|
|
6883
6945
|
*
|
|
@@ -7091,8 +7153,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7091
7153
|
if (this.parent.formatter.getUndoRedoStack().length === 0) {
|
|
7092
7154
|
this.parent.formatter.saveData();
|
|
7093
7155
|
}
|
|
7094
|
-
|
|
7095
|
-
|
|
7156
|
+
if (this.parent.iframeSettings.enable) {
|
|
7157
|
+
this.pageX = e.screenX;
|
|
7158
|
+
this.pageY = e.screenY;
|
|
7159
|
+
}
|
|
7160
|
+
else {
|
|
7161
|
+
this.pageX = this.getPointX(e);
|
|
7162
|
+
this.pageY = this.getPointY(e);
|
|
7163
|
+
}
|
|
7096
7164
|
e.preventDefault();
|
|
7097
7165
|
e.stopImmediatePropagation();
|
|
7098
7166
|
this.resizeBtnInit();
|
|
@@ -7357,29 +7425,50 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7357
7425
|
return;
|
|
7358
7426
|
}
|
|
7359
7427
|
if (this.resizeBtnStat.botRight || this.resizeBtnStat.botLeft || this.resizeBtnStat.topRight || this.resizeBtnStat.topLeft) {
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7428
|
+
if (this.parent.iframeSettings.enable) {
|
|
7429
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7430
|
+
var currentScreenX = e.screenX;
|
|
7431
|
+
var currentScreenY = e.screenY;
|
|
7432
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7433
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7434
|
+
var deltaX = currentScreenX - this.pageX;
|
|
7435
|
+
var deltaY = currentScreenY - this.pageY;
|
|
7436
|
+
var width = deltaX * resizeFactor[0] + currentWidth;
|
|
7437
|
+
var height = deltaY * resizeFactor[1] + currentHeight;
|
|
7438
|
+
var dimensions = this.adjustDimensions(width, height, deltaX, deltaY, this.aspectRatio);
|
|
7439
|
+
this.pageX = currentScreenX;
|
|
7440
|
+
this.pageY = currentScreenY;
|
|
7441
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7442
|
+
this.parent.autoResize();
|
|
7443
|
+
}
|
|
7444
|
+
else {
|
|
7445
|
+
var pageX = this.getPointX(e);
|
|
7446
|
+
var pageY = this.getPointY(e);
|
|
7447
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7448
|
+
var diffX = (pageX - this.pageX);
|
|
7449
|
+
var diffY = (pageY - this.pageY);
|
|
7450
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7451
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7452
|
+
var width = diffX * resizeFactor[0] + currentWidth;
|
|
7453
|
+
var height = diffY * resizeFactor[1] + currentHeight;
|
|
7454
|
+
var dimensions = this.adjustDimensions(width, height, diffX, diffY, this.aspectRatio);
|
|
7455
|
+
this.pageX = pageX;
|
|
7456
|
+
this.pageY = pageY;
|
|
7457
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7458
|
+
}
|
|
7373
7459
|
}
|
|
7374
7460
|
};
|
|
7375
7461
|
Image.prototype.adjustDimensions = function (width, height, diffX, diffY, aspectRatio) {
|
|
7376
7462
|
width = (width < 16) ? 16 : width;
|
|
7377
7463
|
height = (height < 16) ? 16 : height;
|
|
7378
|
-
var isWidthPrimary =
|
|
7464
|
+
var isWidthPrimary = width > height;
|
|
7379
7465
|
var dimensions = this.adjustDimensionsByAspectRatio(width, height, aspectRatio, isWidthPrimary);
|
|
7380
7466
|
return dimensions;
|
|
7381
7467
|
};
|
|
7382
7468
|
Image.prototype.getResizeFactor = function (value) {
|
|
7469
|
+
if (this.parent.iframeSettings.enable) {
|
|
7470
|
+
return iframeResizeFactor[value];
|
|
7471
|
+
}
|
|
7383
7472
|
return imageResizeFactor[value];
|
|
7384
7473
|
};
|
|
7385
7474
|
Image.prototype.findAspectRatio = function (image) {
|
|
@@ -7451,11 +7540,15 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7451
7540
|
}
|
|
7452
7541
|
};
|
|
7453
7542
|
Image.prototype.openImgLink = function (e) {
|
|
7543
|
+
var sanitizedHTML = this.parent.htmlEditorModule.sanitizeHelper(e.selectParent[0].parentNode.outerHTML);
|
|
7544
|
+
var tempEle = document.createElement('div');
|
|
7545
|
+
tempEle.innerHTML = sanitizedHTML;
|
|
7454
7546
|
var target = e.selectParent[0].parentNode.target === '' ? '_self' : '_blank';
|
|
7455
7547
|
this.parent.formatter.process(this.parent, e.args, e.args, {
|
|
7456
|
-
url:
|
|
7548
|
+
url: tempEle.firstChild.href, target: target, selectNode: e.selectNode,
|
|
7457
7549
|
subCommand: e.args.item.subCommand
|
|
7458
7550
|
});
|
|
7551
|
+
tempEle.remove();
|
|
7459
7552
|
};
|
|
7460
7553
|
Image.prototype.editImgLink = function (e) {
|
|
7461
7554
|
var selectParentEle = e.selectParent[0].parentNode;
|
|
@@ -7542,7 +7635,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7542
7635
|
}
|
|
7543
7636
|
}
|
|
7544
7637
|
if (originalEvent.keyCode === 8 || originalEvent.keyCode === 46) {
|
|
7545
|
-
if (selectNodeEle && selectNodeEle[0].nodeName === 'IMG' && selectNodeEle.length < 1) {
|
|
7638
|
+
if (selectNodeEle && selectNodeEle[0] && selectNodeEle[0].nodeName === 'IMG' && selectNodeEle.length < 1) {
|
|
7546
7639
|
if (!isNullOrUndefined(this.parent.formatter.editorManager.nodeSelection)) {
|
|
7547
7640
|
save = this.parent.formatter.editorManager.nodeSelection.save(range, this.parent.contentModule.getDocument());
|
|
7548
7641
|
}
|
|
@@ -8468,6 +8561,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8468
8561
|
proxy.uploadUrl.cssClass = (proxy.parent.insertImageSettings.display === 'inline' ?
|
|
8469
8562
|
CLS_IMGINLINE : CLS_IMGBREAK);
|
|
8470
8563
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8564
|
+
if (proxy.dialogObj !== null) {
|
|
8565
|
+
return;
|
|
8566
|
+
}
|
|
8471
8567
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
8472
8568
|
proxy.uploadUrl.url = '';
|
|
8473
8569
|
if (proxy.contentModule.getEditPanel().querySelector('.e-img-resize')) {
|
|
@@ -8498,8 +8594,11 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8498
8594
|
maxHeight: proxy.parent.insertImageSettings.maxHeight
|
|
8499
8595
|
}
|
|
8500
8596
|
};
|
|
8501
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8502
8597
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8598
|
+
if (proxy.dialogObj !== null) {
|
|
8599
|
+
return;
|
|
8600
|
+
}
|
|
8601
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8503
8602
|
}
|
|
8504
8603
|
};
|
|
8505
8604
|
Image.prototype.imgsizeInput = function (e) {
|
|
@@ -10158,6 +10257,9 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10158
10257
|
proxy.uploadUrl.cssClass = (proxy.parent.insertAudioSettings.layoutOption === 'Inline' ?
|
|
10159
10258
|
CLS_AUDIOINLINE : CLS_AUDIOBREAK);
|
|
10160
10259
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10260
|
+
if (proxy.dialogObj !== null) {
|
|
10261
|
+
return;
|
|
10262
|
+
}
|
|
10161
10263
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
10162
10264
|
proxy.uploadUrl.url = '';
|
|
10163
10265
|
}
|
|
@@ -10176,8 +10278,11 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10176
10278
|
url: url, selection: this.selection, fileName: name_1,
|
|
10177
10279
|
selectParent: this.selectParent
|
|
10178
10280
|
};
|
|
10179
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10180
10281
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10282
|
+
if (proxy.dialogObj !== null) {
|
|
10283
|
+
return;
|
|
10284
|
+
}
|
|
10285
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10181
10286
|
}
|
|
10182
10287
|
};
|
|
10183
10288
|
/* eslint-disable */
|
|
@@ -10878,7 +10983,7 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
10878
10983
|
this.undoStack({ subCommand: (originalEvent.keyCode === 90 ? 'undo' : 'redo') });
|
|
10879
10984
|
}
|
|
10880
10985
|
if (originalEvent.keyCode === 8 || originalEvent.keyCode === 46) {
|
|
10881
|
-
if (selectNodeEle && (selectNodeEle[0].nodeName === 'VIDEO' || this.isEmbedVidElem(selectNodeEle[0])) && selectNodeEle.length < 1) {
|
|
10986
|
+
if (selectNodeEle && selectNodeEle[0] && (selectNodeEle[0].nodeName === 'VIDEO' || this.isEmbedVidElem(selectNodeEle[0])) && selectNodeEle.length < 1) {
|
|
10882
10987
|
if (!isNullOrUndefined(this.parent.formatter.editorManager.nodeSelection)) {
|
|
10883
10988
|
save = this.parent.formatter.editorManager.nodeSelection.save(range, this.parent.contentModule.getDocument());
|
|
10884
10989
|
}
|
|
@@ -11651,6 +11756,9 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11651
11756
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11652
11757
|
};
|
|
11653
11758
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11759
|
+
if (proxy.dialogObj !== null) {
|
|
11760
|
+
return;
|
|
11761
|
+
}
|
|
11654
11762
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
11655
11763
|
proxy.uploadUrl.url = '';
|
|
11656
11764
|
}
|
|
@@ -11677,8 +11785,11 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11677
11785
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11678
11786
|
}
|
|
11679
11787
|
};
|
|
11680
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11681
11788
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11789
|
+
if (proxy.dialogObj !== null) {
|
|
11790
|
+
return;
|
|
11791
|
+
}
|
|
11792
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11682
11793
|
}
|
|
11683
11794
|
};
|
|
11684
11795
|
/* eslint-disable */
|
|
@@ -13716,7 +13827,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13716
13827
|
else {
|
|
13717
13828
|
var tableReBox = _this.contentModule.getEditPanel().querySelector('.e-table-box');
|
|
13718
13829
|
var tableWidth = parseInt(getComputedStyle(_this.curTable).width, 10);
|
|
13719
|
-
var tableHeight = parseInt(
|
|
13830
|
+
var tableHeight = !isNaN(parseInt(_this.curTable.style.height, 10)) ?
|
|
13831
|
+
parseInt(_this.curTable.style.height, 10) : parseInt(getComputedStyle(_this.curTable).height, 10);
|
|
13720
13832
|
var paddingSize = +getComputedStyle(_this.contentModule.getEditPanel()).paddingRight.match(/\d/g).join('');
|
|
13721
13833
|
var rteWidth = _this.contentModule.getEditPanel().offsetWidth -
|
|
13722
13834
|
(_this.contentModule.getEditPanel().offsetWidth -
|
|
@@ -13861,7 +13973,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13861
13973
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
13862
13974
|
if (!isNullOrUndefined(tableReBox)) {
|
|
13863
13975
|
tableReBox.classList.add('e-rbox-select');
|
|
13864
|
-
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top +
|
|
13976
|
+
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top + parseInt(getComputedStyle(_this.curTable).height, 10) - 4) +
|
|
13865
13977
|
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
13866
13978
|
}
|
|
13867
13979
|
if (_this.curTable.closest('li')) {
|
|
@@ -15049,7 +15161,7 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
|
|
|
15049
15161
|
this.parent = options;
|
|
15050
15162
|
this.currentDocument = this.parent.element.ownerDocument;
|
|
15051
15163
|
this.L10n = serviceLocator.getService('rteLocale');
|
|
15052
|
-
this.savedSelection = new NodeSelection();
|
|
15164
|
+
this.savedSelection = new NodeSelection(this.parent.inputElement);
|
|
15053
15165
|
this.defaultItems = defaultSlashMenuDataModel;
|
|
15054
15166
|
this.injectibleItems = injectibleSlashMenuDataModel;
|
|
15055
15167
|
this.parent.on(modelChanged, this.onPropertyChanged, this);
|
|
@@ -21206,7 +21318,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
21206
21318
|
*/
|
|
21207
21319
|
function DOMNode(parent, currentDocument) {
|
|
21208
21320
|
this.parent = parent;
|
|
21209
|
-
this.nodeSelection = new NodeSelection();
|
|
21321
|
+
this.nodeSelection = new NodeSelection(parent);
|
|
21210
21322
|
this.currentDocument = currentDocument;
|
|
21211
21323
|
this.tableSelection = new TableSelection(parent, currentDocument);
|
|
21212
21324
|
}
|
|
@@ -22522,7 +22634,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
22522
22634
|
if (e.event.which === 8) {
|
|
22523
22635
|
this.backspaceList(e);
|
|
22524
22636
|
}
|
|
22525
|
-
if ((e.event.which === 46 && e.event.action === 'delete')
|
|
22637
|
+
if ((e.event.which === 46 && e.event.action === 'delete')) {
|
|
22526
22638
|
var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
|
|
22527
22639
|
var commonAncestor = range.commonAncestorContainer;
|
|
22528
22640
|
var startEle = range.startContainer;
|
|
@@ -24049,7 +24161,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24049
24161
|
node = insertNode;
|
|
24050
24162
|
}
|
|
24051
24163
|
}
|
|
24052
|
-
var nodeSelection = new NodeSelection();
|
|
24164
|
+
var nodeSelection = new NodeSelection(editNode);
|
|
24053
24165
|
var nodeCutter = new NodeCutter();
|
|
24054
24166
|
var range = nodeSelection.getRange(docElement);
|
|
24055
24167
|
if (range.startContainer === editNode && range.startContainer === range.endContainer && range.startOffset === 0 &&
|
|
@@ -24413,6 +24525,26 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24413
24525
|
this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction);
|
|
24414
24526
|
}
|
|
24415
24527
|
this.alignCheck(editNode);
|
|
24528
|
+
var currentRange = nodeSelection.getRange(docElement);
|
|
24529
|
+
this.listCleanUp(currentRange);
|
|
24530
|
+
};
|
|
24531
|
+
InsertHtml.listCleanUp = function (range) {
|
|
24532
|
+
if (range.startContainer.parentElement.closest('ol,ul') !== null && range.endContainer.parentElement.closest('ol,ul') !== null) {
|
|
24533
|
+
var liElems = range.startContainer.parentElement.closest('ol,ul').querySelectorAll('li');
|
|
24534
|
+
if (liElems.length > 0) {
|
|
24535
|
+
liElems.forEach(function (item) {
|
|
24536
|
+
if (!isNullOrUndefined(item.firstChild) && (item.firstChild.nodeName === 'OL' || item.firstChild.nodeName === 'UL')) {
|
|
24537
|
+
item.style.listStyleType = 'none';
|
|
24538
|
+
}
|
|
24539
|
+
var nestedLi = Array.from(item.children).find(function (child) {
|
|
24540
|
+
return child.tagName === 'LI' && (child.parentElement && child.parentElement.tagName !== 'OL' && child.parentElement.tagName !== 'UL');
|
|
24541
|
+
});
|
|
24542
|
+
if (nestedLi) {
|
|
24543
|
+
item.parentNode.replaceChild(nestedLi, item);
|
|
24544
|
+
}
|
|
24545
|
+
});
|
|
24546
|
+
}
|
|
24547
|
+
}
|
|
24416
24548
|
};
|
|
24417
24549
|
InsertHtml.placeCursorEnd = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
|
|
24418
24550
|
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? (isNullOrUndefined(lastSelectionNode.previousSibling) ? lastSelectionNode.parentNode
|
|
@@ -24477,7 +24609,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24477
24609
|
blockNode = range.endContainer;
|
|
24478
24610
|
range.setEnd(blockNode, range.endContainer.textContent.length);
|
|
24479
24611
|
}
|
|
24480
|
-
if (blockNode && blockNode.nodeName === 'BODY' && range.startContainer === range.endContainer && range.startContainer.nodeType === 1) {
|
|
24612
|
+
if (blockNode && blockNode.nodeName === 'BODY' || blockNode.nodeName === 'DIV' && range.startContainer === range.endContainer && range.startContainer.nodeType === 1) {
|
|
24481
24613
|
blockNode = range.startContainer;
|
|
24482
24614
|
}
|
|
24483
24615
|
if (blockNode && blockNode.closest('LI') && editNode.contains(blockNode.closest('LI')) && blockNode.nodeName !== 'TD' && blockNode.nodeName !== 'TH' && blockNode.nodeName !== 'TR' && node && node.firstElementChild &&
|
|
@@ -24497,12 +24629,12 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24497
24629
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
24498
24630
|
}
|
|
24499
24631
|
else {
|
|
24500
|
-
var nodeSelection = new NodeSelection();
|
|
24632
|
+
var nodeSelection = new NodeSelection(editNode);
|
|
24501
24633
|
var currentNode = this.getNodeCollection(range, nodeSelection, node)[this.getNodeCollection(range, nodeSelection, node).length - 1];
|
|
24502
24634
|
var splitedElm = void 0;
|
|
24503
|
-
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR' ||
|
|
24635
|
+
if (currentNode && ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR' ||
|
|
24504
24636
|
(currentNode.nodeName === '#text' && !isNullOrUndefined(currentNode.parentElement) && currentNode.parentElement.nodeName === 'LI')) &&
|
|
24505
|
-
(!isNullOrUndefined(currentNode.parentElement) && currentNode.parentElement.textContent.trim().length === 0)) {
|
|
24637
|
+
(!isNullOrUndefined(currentNode.parentElement) && currentNode.parentElement.textContent.trim().length === 0))) {
|
|
24506
24638
|
splitedElm = currentNode;
|
|
24507
24639
|
if (currentNode.parentElement.nodeName === 'LI' && !isNullOrUndefined(currentNode.nextSibling) &&
|
|
24508
24640
|
currentNode.nextSibling.nodeName === 'BR') {
|
|
@@ -24515,16 +24647,20 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24515
24647
|
return;
|
|
24516
24648
|
}
|
|
24517
24649
|
}
|
|
24518
|
-
else if ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNullOrUndefined(currentNode.parentElement) &&
|
|
24650
|
+
else if (currentNode && ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNullOrUndefined(currentNode.parentElement) &&
|
|
24519
24651
|
(currentNode.parentElement.nodeName === 'LI' || currentNode.parentElement.closest('LI') || (blockNode === editNode && currentNode.parentElement === blockNode)) &&
|
|
24520
|
-
currentNode.parentElement.textContent.trim().length > 0) {
|
|
24652
|
+
currentNode.parentElement.textContent.trim().length > 0)) {
|
|
24521
24653
|
splitedElm = currentNode;
|
|
24522
24654
|
if (currentNode.parentElement.nodeName === 'LI' && !isNullOrUndefined(currentNode.nextSibling) &&
|
|
24523
24655
|
currentNode.nextSibling.nodeName === 'BR') {
|
|
24524
24656
|
detach(currentNode.nextSibling);
|
|
24525
24657
|
}
|
|
24526
24658
|
if (!range.collapsed) {
|
|
24659
|
+
var startContainer = range.startContainer;
|
|
24660
|
+
var startOffset = range.startOffset;
|
|
24527
24661
|
this.removeListfromPaste(range);
|
|
24662
|
+
range.setStart(startContainer, startOffset);
|
|
24663
|
+
range.setEnd(startContainer, startOffset);
|
|
24528
24664
|
}
|
|
24529
24665
|
range.insertNode(node);
|
|
24530
24666
|
this.contentsDeleted = true;
|
|
@@ -24564,9 +24700,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24564
24700
|
};
|
|
24565
24701
|
// eslint-disable-next-line
|
|
24566
24702
|
InsertHtml.getImmediateBlockNode = function (node, editNode) {
|
|
24567
|
-
|
|
24703
|
+
while (node && BLOCK_TAGS.indexOf(node.nodeName.toLocaleLowerCase()) < 0) {
|
|
24568
24704
|
node = node.parentNode;
|
|
24569
|
-
}
|
|
24705
|
+
}
|
|
24570
24706
|
return node;
|
|
24571
24707
|
};
|
|
24572
24708
|
InsertHtml.removingComments = function (elm) {
|
|
@@ -24682,7 +24818,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24682
24818
|
var value = range.startContainer;
|
|
24683
24819
|
if (!isNullOrUndefined(value) && value.nodeName === 'LI' && !isNullOrUndefined(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
|
|
24684
24820
|
value.parentElement.querySelectorAll('li').forEach(function (item) {
|
|
24685
|
-
if (item.textContent.trim() === '') {
|
|
24821
|
+
if (item.textContent.trim() === '' && item !== value) {
|
|
24686
24822
|
item.remove();
|
|
24687
24823
|
}
|
|
24688
24824
|
});
|
|
@@ -24785,7 +24921,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
24785
24921
|
}
|
|
24786
24922
|
}
|
|
24787
24923
|
else {
|
|
24788
|
-
var domSelection = new NodeSelection();
|
|
24924
|
+
var domSelection = new NodeSelection(this.parent.editableElement);
|
|
24789
24925
|
var range = domSelection.getRange(this.parent.currentDocument);
|
|
24790
24926
|
if (range.endContainer.nodeName === '#text' && range.startContainer.textContent.length === (range.endOffset + 1) &&
|
|
24791
24927
|
range.endContainer.textContent.charAt(range.endOffset) === ' ' && (!isNullOrUndefined(range.endContainer.nextSibling) && range.endContainer.nextSibling.nodeName === 'A')) {
|
|
@@ -24831,7 +24967,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
24831
24967
|
}
|
|
24832
24968
|
};
|
|
24833
24969
|
LinkCommand.prototype.createLinkNode = function (e) {
|
|
24834
|
-
var domSelection = new NodeSelection();
|
|
24970
|
+
var domSelection = new NodeSelection(this.parent.editableElement);
|
|
24835
24971
|
var nodeCutter = new NodeCutter();
|
|
24836
24972
|
var range = domSelection.getRange(this.parent.currentDocument);
|
|
24837
24973
|
var nodes = this.getSelectionNodes(domSelection.getNodeCollection(range));
|
|
@@ -25406,6 +25542,8 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25406
25542
|
(Browser.isIE ? selectedNode.previousSibling : selectedNode.previousElementSibling);
|
|
25407
25543
|
var onImageLoadEvent_1 = function () {
|
|
25408
25544
|
if (!isNullOrUndefined(_this.parent.currentDocument)) {
|
|
25545
|
+
imgElm_1.setAttribute('width', imgElm_1.offsetWidth.toString());
|
|
25546
|
+
imgElm_1.setAttribute('height', imgElm_1.offsetHeight.toString());
|
|
25409
25547
|
e.callBack({
|
|
25410
25548
|
requestType: (e.value === 'Replace') ? (e.item.subCommand = 'Replace', 'Replace') : 'Images',
|
|
25411
25549
|
editorMode: 'HTML',
|
|
@@ -27240,7 +27378,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27240
27378
|
if (format === 'backgroundcolor' && value === '') {
|
|
27241
27379
|
value = 'transparent';
|
|
27242
27380
|
}
|
|
27243
|
-
var domSelection = new NodeSelection();
|
|
27381
|
+
var domSelection = new NodeSelection(endNode);
|
|
27244
27382
|
var domNode = new DOMNode(endNode, docElement);
|
|
27245
27383
|
var nodeCutter = new NodeCutter();
|
|
27246
27384
|
var isFormatted = new IsFormatted();
|
|
@@ -27449,7 +27587,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27449
27587
|
if (cursorNodes.length === 1 && range.startOffset === 0 && (cursorNodes[0].nodeName === 'BR' || (isNullOrUndefined(cursorNodes[0].nextSibling) ? false : cursorNodes[0].nextSibling.nodeName === 'BR'))) {
|
|
27450
27588
|
detach(cursorNodes[0].nodeName === '#text' ? cursorNodes[0].nextSibling : cursorNodes[0]);
|
|
27451
27589
|
}
|
|
27452
|
-
if (!isNullOrUndefined(cursorNodes[0].parentElement) && IsFormatted.inlineTags.
|
|
27590
|
+
if (!isNullOrUndefined(cursorNodes[0] && cursorNodes[0].parentElement) && IsFormatted.inlineTags.
|
|
27453
27591
|
indexOf((cursorNodes[0].parentElement).tagName.toLowerCase()) !== -1 && cursorNodes[0].textContent.includes('\u200B')) {
|
|
27454
27592
|
var element = this.GetFormatNode(format, value);
|
|
27455
27593
|
var tempNode = cursorNodes[0];
|
|
@@ -28362,7 +28500,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
28362
28500
|
ClearFormat.clear = function (docElement, endNode, enterAction, selector, command) {
|
|
28363
28501
|
this.domNode = new DOMNode(endNode, docElement);
|
|
28364
28502
|
this.defaultTag = enterAction === 'P' ? this.defaultTag : 'div';
|
|
28365
|
-
var nodeSelection = new NodeSelection();
|
|
28503
|
+
var nodeSelection = new NodeSelection(endNode);
|
|
28366
28504
|
var nodeCutter = new NodeCutter();
|
|
28367
28505
|
var range = nodeSelection.getRange(docElement);
|
|
28368
28506
|
var nodes = range.collapsed ? nodeSelection.getSelectionNodeCollection(range) :
|
|
@@ -28794,7 +28932,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
28794
28932
|
if (!this.parent.currentDocument) {
|
|
28795
28933
|
return;
|
|
28796
28934
|
}
|
|
28797
|
-
var range = new NodeSelection().getRange(this.parent.currentDocument);
|
|
28935
|
+
var range = new NodeSelection(this.parent.editableElement).getRange(this.parent.currentDocument);
|
|
28798
28936
|
var currentContainer = this.parent.editableElement === range.startContainer.parentElement ?
|
|
28799
28937
|
range.startContainer.parentElement : range.startContainer;
|
|
28800
28938
|
for (var i = currentContainer.childNodes.length - 1; i >= 0; i--) {
|
|
@@ -28804,8 +28942,8 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
28804
28942
|
detach(currentContainer.childNodes[i]);
|
|
28805
28943
|
}
|
|
28806
28944
|
}
|
|
28807
|
-
range = new NodeSelection().getRange(this.parent.currentDocument);
|
|
28808
|
-
var save = new NodeSelection().save(range, this.parent.currentDocument);
|
|
28945
|
+
range = new NodeSelection(this.parent.editableElement).getRange(this.parent.currentDocument);
|
|
28946
|
+
var save = new NodeSelection(this.parent.editableElement).save(range, this.parent.currentDocument);
|
|
28809
28947
|
var clonedElement = this.parent.editableElement.cloneNode(true);
|
|
28810
28948
|
var fragment = document.createDocumentFragment();
|
|
28811
28949
|
while (clonedElement.firstChild) {
|
|
@@ -29018,6 +29156,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29018
29156
|
e.callBack(elm.innerHTML, this.cropImageDimensions, source);
|
|
29019
29157
|
}
|
|
29020
29158
|
else {
|
|
29159
|
+
if (source === PASTE_SOURCE[2]) {
|
|
29160
|
+
this.handleOneNoteContent(elm);
|
|
29161
|
+
}
|
|
29021
29162
|
e.callBack(elm.innerHTML, null, source);
|
|
29022
29163
|
}
|
|
29023
29164
|
};
|
|
@@ -30012,6 +30153,18 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30012
30153
|
}
|
|
30013
30154
|
return 'html';
|
|
30014
30155
|
};
|
|
30156
|
+
MsWordPaste.prototype.handleOneNoteContent = function (element) {
|
|
30157
|
+
var allListElements = element.querySelectorAll('ul, ol');
|
|
30158
|
+
if (allListElements.length > 0) {
|
|
30159
|
+
for (var i = 0; i < allListElements.length; i++) {
|
|
30160
|
+
// Removing the ul and ol parent node for the p tag
|
|
30161
|
+
var currentList = allListElements[i];
|
|
30162
|
+
if (currentList.querySelectorAll('li').length === 0 && currentList.childNodes.length > 0) {
|
|
30163
|
+
InsertMethods.unwrap(currentList);
|
|
30164
|
+
}
|
|
30165
|
+
}
|
|
30166
|
+
}
|
|
30167
|
+
};
|
|
30015
30168
|
MsWordPaste.prototype.destroy = function () {
|
|
30016
30169
|
this.removeEventListener();
|
|
30017
30170
|
};
|
|
@@ -30787,7 +30940,7 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
30787
30940
|
function EditorManager(options) {
|
|
30788
30941
|
this.currentDocument = options.document;
|
|
30789
30942
|
this.editableElement = options.editableElement;
|
|
30790
|
-
this.nodeSelection = new NodeSelection();
|
|
30943
|
+
this.nodeSelection = new NodeSelection(this.editableElement);
|
|
30791
30944
|
this.nodeCutter = new NodeCutter();
|
|
30792
30945
|
this.domNode = new DOMNode(this.editableElement, this.currentDocument);
|
|
30793
30946
|
this.observer = new Observer(this);
|
|
@@ -31474,7 +31627,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31474
31627
|
if (this.parent.isDestroyed) {
|
|
31475
31628
|
return;
|
|
31476
31629
|
}
|
|
31477
|
-
this.nodeSelectionObj = new NodeSelection();
|
|
31630
|
+
this.nodeSelectionObj = new NodeSelection(this.parent.inputElement);
|
|
31478
31631
|
this.parent.on(initialLoad, this.instantiateRenderer, this);
|
|
31479
31632
|
this.parent.on(htmlToolbarClick, this.onToolbarClick, this);
|
|
31480
31633
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
@@ -32188,7 +32341,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32188
32341
|
urlText = urlText.slice(0, urlTextRange);
|
|
32189
32342
|
// eslint-disable-next-line
|
|
32190
32343
|
var regex = new RegExp(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi);
|
|
32191
|
-
if (selectNodeEle[0].nodeName !== 'A' && urlText.match(regex)) {
|
|
32344
|
+
if (selectNodeEle[0] && selectNodeEle[0].nodeName !== 'A' && urlText.match(regex)) {
|
|
32192
32345
|
var selection = this.nodeSelectionObj.save(range, this.parent.contentModule.getDocument());
|
|
32193
32346
|
var url = urlText.indexOf('http') > -1 ? urlText : 'http://' + urlText;
|
|
32194
32347
|
var selectParent = this.parent.formatter.editorManager.nodeSelection.getParentNodeCollection(range);
|
|
@@ -32549,7 +32702,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32549
32702
|
this.isDestroyed = false;
|
|
32550
32703
|
}
|
|
32551
32704
|
PasteCleanup.prototype.addEventListener = function () {
|
|
32552
|
-
this.nodeSelectionObj = new NodeSelection();
|
|
32705
|
+
this.nodeSelectionObj = new NodeSelection(this.parent.inputElement);
|
|
32553
32706
|
if (this.parent.isDestroyed) {
|
|
32554
32707
|
return;
|
|
32555
32708
|
}
|
|
@@ -33714,6 +33867,8 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33714
33867
|
this.parent = parent;
|
|
33715
33868
|
this.addEventListener();
|
|
33716
33869
|
this.isDestroyed = false;
|
|
33870
|
+
this.isResizing = false;
|
|
33871
|
+
this.iframeMouseUpBoundFn = this.iframeMouseUp.bind(this);
|
|
33717
33872
|
}
|
|
33718
33873
|
Resize.prototype.addEventListener = function () {
|
|
33719
33874
|
if (this.parent.isDestroyed) {
|
|
@@ -33733,6 +33888,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33733
33888
|
this.parent.rootContainer.classList.add('e-resize-enabled');
|
|
33734
33889
|
if (this.parent.iframeSettings.enable) {
|
|
33735
33890
|
this.parent.inputElement.classList.add('e-resize-enabled');
|
|
33891
|
+
this.parent.contentModule.getDocument().addEventListener('mouseup', this.iframeMouseUpBoundFn);
|
|
33736
33892
|
}
|
|
33737
33893
|
this.touchStartEvent = (Browser.info.name === 'msie') ? 'pointerdown' : 'touchstart';
|
|
33738
33894
|
EventHandler.add(this.resizer, 'mousedown', this.resizeStart, this);
|
|
@@ -33740,6 +33896,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33740
33896
|
};
|
|
33741
33897
|
Resize.prototype.resizeStart = function (e) {
|
|
33742
33898
|
var _this = this;
|
|
33899
|
+
this.isResizing = false;
|
|
33743
33900
|
if (e.cancelable) {
|
|
33744
33901
|
e.preventDefault();
|
|
33745
33902
|
}
|
|
@@ -33754,6 +33911,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33754
33911
|
};
|
|
33755
33912
|
Resize.prototype.performResize = function (e) {
|
|
33756
33913
|
var _this = this;
|
|
33914
|
+
this.isResizing = true;
|
|
33757
33915
|
var args = { event: e, requestType: 'editor' };
|
|
33758
33916
|
this.parent.trigger(onResize, args, function (resizingArgs) {
|
|
33759
33917
|
if (resizingArgs.cancel) {
|
|
@@ -33780,9 +33938,14 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33780
33938
|
this.parent.element.style.height = eventType.clientY - boundRect.top + 'px';
|
|
33781
33939
|
this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
|
|
33782
33940
|
}
|
|
33941
|
+
var rteContent = this.parent.element.querySelector('#' + this.parent.getID() + '_source-view');
|
|
33942
|
+
if (!isNullOrUndefined(rteContent)) {
|
|
33943
|
+
rteContent.style.height = this.parent.element.style.height;
|
|
33944
|
+
}
|
|
33783
33945
|
this.parent.refreshUI();
|
|
33784
33946
|
};
|
|
33785
33947
|
Resize.prototype.stopResize = function (e) {
|
|
33948
|
+
this.isResizing = false;
|
|
33786
33949
|
this.parent.refreshUI();
|
|
33787
33950
|
this.unwireResizeEvents();
|
|
33788
33951
|
var args = { event: e, requestType: 'editor' };
|
|
@@ -33832,6 +33995,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33832
33995
|
}
|
|
33833
33996
|
if (this.parent.iframeSettings.enable && !isNullOrUndefined(this.parent.inputElement)) {
|
|
33834
33997
|
this.parent.inputElement.classList.remove('e-resize-enabled');
|
|
33998
|
+
this.parent.contentModule.getDocument().removeEventListener('mouseup', this.iframeMouseUpBoundFn);
|
|
33835
33999
|
}
|
|
33836
34000
|
if (this.resizer) {
|
|
33837
34001
|
EventHandler.remove(this.resizer, 'mousedown', this.resizeStart);
|
|
@@ -33839,6 +34003,12 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33839
34003
|
detach(this.resizer);
|
|
33840
34004
|
}
|
|
33841
34005
|
this.parent.off(destroy, this.destroy);
|
|
34006
|
+
this.iframeMouseUpBoundFn = null;
|
|
34007
|
+
};
|
|
34008
|
+
Resize.prototype.iframeMouseUp = function (e) {
|
|
34009
|
+
if (this.isResizing) {
|
|
34010
|
+
this.stopResize(e);
|
|
34011
|
+
}
|
|
33842
34012
|
};
|
|
33843
34013
|
/**
|
|
33844
34014
|
* For internal use only - Get the module name.
|
|
@@ -35354,7 +35524,7 @@ var ImportExport = /** @__PURE__ @class */ (function () {
|
|
|
35354
35524
|
saveUrl: this.parent.importWord.serviceUrl
|
|
35355
35525
|
},
|
|
35356
35526
|
success: function (args) {
|
|
35357
|
-
_this.parent.executeCommand('
|
|
35527
|
+
_this.parent.executeCommand('importWord', args.e.currentTarget.response, { undo: true });
|
|
35358
35528
|
}
|
|
35359
35529
|
});
|
|
35360
35530
|
this.parent.setProperties({ enableXhtml: true }, true);
|
|
@@ -36804,11 +36974,16 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
36804
36974
|
else if (!isNullOrUndefined(currentParent) && currentParent !== _this.parent.inputElement && currentParent.nodeName !== 'BR') {
|
|
36805
36975
|
if (currentParent.textContent.trim().length === 0 || (currentParent.textContent.trim().length === 1 &&
|
|
36806
36976
|
currentParent.textContent.charCodeAt(0) === 8203)) {
|
|
36807
|
-
|
|
36808
|
-
|
|
36809
|
-
|
|
36810
|
-
|
|
36811
|
-
|
|
36977
|
+
if (currentParent.childElementCount > 1 && currentParent.lastElementChild.nodeName === 'IMG') {
|
|
36978
|
+
_this.insertBRElement();
|
|
36979
|
+
}
|
|
36980
|
+
else {
|
|
36981
|
+
var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, currentParent, true).cloneNode(true);
|
|
36982
|
+
_this.parent.formatter.editorManager.domNode.insertAfter(newElem, currentParent);
|
|
36983
|
+
var outerBRElem = _this.parent.createElement('br');
|
|
36984
|
+
newElem.parentElement.insertBefore(outerBRElem, newElem);
|
|
36985
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElem, 0);
|
|
36986
|
+
}
|
|
36812
36987
|
}
|
|
36813
36988
|
else {
|
|
36814
36989
|
var newElem = void 0;
|
|
@@ -37380,6 +37555,17 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
37380
37555
|
* @public
|
|
37381
37556
|
*/
|
|
37382
37557
|
RichTextEditor.prototype.executeCommand = function (commandName, value, option) {
|
|
37558
|
+
if (commandName === 'importWord') {
|
|
37559
|
+
var importContainer = this.createElement('div');
|
|
37560
|
+
importContainer.innerHTML = value;
|
|
37561
|
+
var tableElement = importContainer.querySelectorAll('table:not(.e-rte-table):not(.e-rte-paste-table)');
|
|
37562
|
+
for (var i = 0; i < tableElement.length; i++) {
|
|
37563
|
+
tableElement[i].classList.add('e-rte-paste-table');
|
|
37564
|
+
}
|
|
37565
|
+
value = importContainer.innerHTML;
|
|
37566
|
+
importContainer.remove();
|
|
37567
|
+
commandName = 'insertHTML';
|
|
37568
|
+
}
|
|
37383
37569
|
value = this.htmlPurifier(commandName, value);
|
|
37384
37570
|
var internalValue;
|
|
37385
37571
|
if (this.editorMode === 'HTML') {
|
|
@@ -39992,5 +40178,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
39992
40178
|
return RichTextEditor;
|
|
39993
40179
|
}(Component));
|
|
39994
40180
|
|
|
39995
|
-
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
40181
|
+
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, iframeResizeFactor, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
39996
40182
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|