@syncfusion/ej2-richtexteditor 20.2.39 → 20.2.44
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 +33 -1
- 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 +145 -16
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +145 -16
- 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/lists.d.ts +3 -0
- package/src/editor-manager/plugin/lists.js +29 -0
- package/src/editor-manager/plugin/toolbar-status.js +1 -1
- package/src/rich-text-editor/actions/base-toolbar.d.ts +6 -1
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +6 -1
- package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
- package/src/rich-text-editor/actions/enter-key.js +7 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +1 -0
- package/src/rich-text-editor/actions/full-screen.js +5 -0
- package/src/rich-text-editor/actions/markdown-editor.d.ts +1 -0
- package/src/rich-text-editor/actions/markdown-editor.js +6 -0
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +5 -0
- package/src/rich-text-editor/actions/toolbar-action.d.ts +6 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/toolbar.js +8 -0
- package/src/rich-text-editor/base/constant.d.ts +5 -0
- package/src/rich-text-editor/base/constant.js +5 -0
- package/src/rich-text-editor/base/rich-text-editor.js +16 -5
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +3 -0
- package/src/rich-text-editor/renderer/dialog-renderer.js +18 -0
- package/src/rich-text-editor/renderer/image-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/image-module.js +18 -6
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -0
- package/src/rich-text-editor/renderer/link-module.js +5 -0
- package/src/rich-text-editor/renderer/render.d.ts +1 -0
- package/src/rich-text-editor/renderer/render.js +5 -0
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -0
- package/src/rich-text-editor/renderer/table-module.js +9 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +6 -1
- package/src/rich-text-editor/renderer/toolbar-renderer.js +2 -1
- package/src/rich-text-editor/renderer/view-source.d.ts +1 -0
- package/src/rich-text-editor/renderer/view-source.js +5 -0
|
@@ -444,6 +444,11 @@ var checkUndo = 'checkUndoStack';
|
|
|
444
444
|
* @deprecated
|
|
445
445
|
*/
|
|
446
446
|
var readOnlyMode = 'readOnlyMode';
|
|
447
|
+
/**
|
|
448
|
+
* @hidden
|
|
449
|
+
* @deprecated
|
|
450
|
+
*/
|
|
451
|
+
var moduleDestroy = 'moduleDestroy';
|
|
447
452
|
/**
|
|
448
453
|
* @hidden
|
|
449
454
|
* @deprecated
|
|
@@ -3076,10 +3081,11 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3076
3081
|
proxy.parent.notify(selectionRestore, {});
|
|
3077
3082
|
range = proxy.parent.formatter.editorManager.nodeSelection.getRange(proxy.parent.contentModule.getDocument());
|
|
3078
3083
|
var parentNode = range.startContainer.parentNode;
|
|
3084
|
+
var closestElement = closest(range.startContainer.parentNode, 'table');
|
|
3079
3085
|
if ((range.startContainer.nodeName === 'TD' || range.startContainer.nodeName === 'TH' ||
|
|
3080
3086
|
(closest(range.startContainer.parentNode, 'td,th')) ||
|
|
3081
3087
|
(proxy.parent.iframeSettings.enable && !hasClass(parentNode.ownerDocument.querySelector('body'), 'e-lib')))
|
|
3082
|
-
&& range.collapsed && args.subCommand === 'BackgroundColor') {
|
|
3088
|
+
&& range.collapsed && args.subCommand === 'BackgroundColor' && closest(closestElement, '.' + CLS_RTE)) {
|
|
3083
3089
|
proxy.parent.notify(tableColorPickerChanged, {
|
|
3084
3090
|
item: { command: args.command, subCommand: args.subCommand,
|
|
3085
3091
|
value: colorpickerValue }
|
|
@@ -4671,6 +4677,12 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4671
4677
|
}
|
|
4672
4678
|
}
|
|
4673
4679
|
};
|
|
4680
|
+
Toolbar$$1.prototype.moduleDestroy = function () {
|
|
4681
|
+
this.parent = null;
|
|
4682
|
+
this.baseToolbar.parent = null;
|
|
4683
|
+
this.toolbarActionModule.parent = null;
|
|
4684
|
+
this.dropDownModule.parent = null;
|
|
4685
|
+
};
|
|
4674
4686
|
Toolbar$$1.prototype.scrollHandler = function (e) {
|
|
4675
4687
|
if (!this.parent.inlineMode.enable) {
|
|
4676
4688
|
if (this.parent.toolbarSettings.enableFloating && this.getDOMVisibility(this.tbElement)) {
|
|
@@ -4772,6 +4784,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4772
4784
|
this.parent.on(mouseDown, this.mouseDownHandler, this);
|
|
4773
4785
|
this.parent.on(sourceCodeMouseDown, this.mouseDownHandler, this);
|
|
4774
4786
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
4787
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
4775
4788
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4776
4789
|
this.parent.on(toolbarClick, this.toolbarClickHandler, this);
|
|
4777
4790
|
}
|
|
@@ -4796,6 +4809,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4796
4809
|
this.parent.off(mouseDown, this.mouseDownHandler);
|
|
4797
4810
|
this.parent.off(sourceCodeMouseDown, this.mouseDownHandler);
|
|
4798
4811
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
4812
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
4799
4813
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4800
4814
|
this.parent.off(toolbarClick, this.toolbarClickHandler);
|
|
4801
4815
|
}
|
|
@@ -6108,6 +6122,9 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6108
6122
|
}
|
|
6109
6123
|
this.removeEventListener();
|
|
6110
6124
|
};
|
|
6125
|
+
QuickToolbar.prototype.moduleDestroy = function () {
|
|
6126
|
+
this.parent = null;
|
|
6127
|
+
};
|
|
6111
6128
|
QuickToolbar.prototype.wireInlineQTBarEvents = function () {
|
|
6112
6129
|
this.parent.on(mouseUp, this.mouseUpHandler, this);
|
|
6113
6130
|
this.parent.on(mouseDown, this.inlineQTBarMouseDownHandler, this);
|
|
@@ -6163,6 +6180,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6163
6180
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
6164
6181
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
6165
6182
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
6183
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
6166
6184
|
};
|
|
6167
6185
|
QuickToolbar.prototype.onKeyDown = function (e) {
|
|
6168
6186
|
var args = e.args;
|
|
@@ -6232,6 +6250,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6232
6250
|
this.parent.off(keyDown, this.onKeyDown);
|
|
6233
6251
|
this.parent.off(rtlMode, this.setRtl);
|
|
6234
6252
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
6253
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
6235
6254
|
};
|
|
6236
6255
|
/**
|
|
6237
6256
|
* Called internally if any of the property value changed.
|
|
@@ -9358,6 +9377,10 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
9358
9377
|
MarkdownEditor.prototype.destroy = function () {
|
|
9359
9378
|
this.removeEventListener();
|
|
9360
9379
|
};
|
|
9380
|
+
MarkdownEditor.prototype.moduleDestroy = function () {
|
|
9381
|
+
this.parent = null;
|
|
9382
|
+
this.toolbarUpdate.parent = null;
|
|
9383
|
+
};
|
|
9361
9384
|
MarkdownEditor.prototype.addEventListener = function () {
|
|
9362
9385
|
if (this.parent.isDestroyed) {
|
|
9363
9386
|
return;
|
|
@@ -9373,6 +9396,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
9373
9396
|
this.parent.on(selectionSave, this.onSelectionSave, this);
|
|
9374
9397
|
this.parent.on(selectionRestore, this.onSelectionRestore, this);
|
|
9375
9398
|
this.parent.on(readOnlyMode, this.updateReadOnly, this);
|
|
9399
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
9376
9400
|
};
|
|
9377
9401
|
MarkdownEditor.prototype.updateReadOnly = function () {
|
|
9378
9402
|
if (this.parent.readonly) {
|
|
@@ -9444,6 +9468,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
9444
9468
|
this.parent.off(selectionSave, this.onSelectionSave);
|
|
9445
9469
|
this.parent.off(selectionRestore, this.onSelectionRestore);
|
|
9446
9470
|
this.parent.off(readOnlyMode, this.updateReadOnly);
|
|
9471
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
9447
9472
|
};
|
|
9448
9473
|
MarkdownEditor.prototype.render = function () {
|
|
9449
9474
|
this.contentRenderer = this.renderFactory.getRenderer(RenderType.Content);
|
|
@@ -10838,6 +10863,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
10838
10863
|
Lists.prototype.addEventListener = function () {
|
|
10839
10864
|
this.parent.observer.on(LIST_TYPE, this.applyListsHandler, this);
|
|
10840
10865
|
this.parent.observer.on(KEY_DOWN_HANDLER, this.keyDownHandler, this);
|
|
10866
|
+
this.parent.observer.on(KEY_UP_HANDLER, this.onKeyUp, this);
|
|
10841
10867
|
this.parent.observer.on(SPACE_ACTION, this.spaceKeyAction, this);
|
|
10842
10868
|
};
|
|
10843
10869
|
Lists.prototype.testList = function (elem) {
|
|
@@ -10990,6 +11016,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
10990
11016
|
}
|
|
10991
11017
|
}
|
|
10992
11018
|
this.removeList(range, e);
|
|
11019
|
+
this.firstListBackSpace(range, e);
|
|
10993
11020
|
};
|
|
10994
11021
|
Lists.prototype.removeList = function (range, e) {
|
|
10995
11022
|
var startNode = this.parent.domNode.getSelectedNode(range.startContainer, range.startOffset);
|
|
@@ -11015,6 +11042,33 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
11015
11042
|
e.event.preventDefault();
|
|
11016
11043
|
}
|
|
11017
11044
|
};
|
|
11045
|
+
Lists.prototype.onKeyUp = function () {
|
|
11046
|
+
if (!isNullOrUndefined(this.commonLIParent) && !isNullOrUndefined(this.commonLIParent.querySelector('.removeList'))) {
|
|
11047
|
+
var currentLIElem = this.commonLIParent.querySelector('.removeList');
|
|
11048
|
+
while (!isNullOrUndefined(currentLIElem.firstChild)) {
|
|
11049
|
+
this.parent.domNode.insertAfter(currentLIElem.firstChild, currentLIElem);
|
|
11050
|
+
}
|
|
11051
|
+
detach(currentLIElem);
|
|
11052
|
+
}
|
|
11053
|
+
};
|
|
11054
|
+
Lists.prototype.firstListBackSpace = function (range, e) {
|
|
11055
|
+
var startNode = this.parent.domNode.getSelectedNode(range.startContainer, range.startOffset);
|
|
11056
|
+
if (!isNullOrUndefined(startNode.closest('OL'))) {
|
|
11057
|
+
this.commonLIParent = startNode.closest('OL');
|
|
11058
|
+
}
|
|
11059
|
+
else if (!isNullOrUndefined(startNode.closest('UL'))) {
|
|
11060
|
+
this.commonLIParent = startNode.closest('UL');
|
|
11061
|
+
}
|
|
11062
|
+
if (startNode.nodeName === 'LI' && range.startOffset === 0 && range.endOffset === 0 &&
|
|
11063
|
+
isNullOrUndefined(startNode.previousSibling) && !isNullOrUndefined(this.commonLIParent) && isNullOrUndefined(this.commonLIParent.previousSibling) &&
|
|
11064
|
+
(isNullOrUndefined(this.commonLIParent.parentElement.closest('OL')) && isNullOrUndefined(this.commonLIParent.parentElement.closest('UL')) &&
|
|
11065
|
+
isNullOrUndefined(this.commonLIParent.parentElement.closest('LI')))) {
|
|
11066
|
+
var currentElem = createElement('P');
|
|
11067
|
+
currentElem.innerHTML = '​';
|
|
11068
|
+
startNode.classList.add('removeList');
|
|
11069
|
+
this.commonLIParent.parentElement.insertBefore(currentElem, this.commonLIParent);
|
|
11070
|
+
}
|
|
11071
|
+
};
|
|
11018
11072
|
Lists.prototype.keyDownHandler = function (e) {
|
|
11019
11073
|
if (e.event.which === 13) {
|
|
11020
11074
|
this.enterList(e);
|
|
@@ -17123,7 +17177,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
17123
17177
|
if ((name !== null && name !== '' && name !== undefined)
|
|
17124
17178
|
&& (fontName === null || fontName === undefined || (fontName.filter(function (value, pos) {
|
|
17125
17179
|
var pattern = new RegExp(name, 'i');
|
|
17126
|
-
if ((value.replace(/"/g, '').replace(/ /g, '') === name.replace(/"/g, '').replace(/ /g, '')) ||
|
|
17180
|
+
if ((value.replace(/"/g, '').replace(/ /g, '').toLowerCase() === name.replace(/"/g, '').replace(/ /g, '').toLowerCase()) ||
|
|
17127
17181
|
(value.search(pattern) > -1)) {
|
|
17128
17182
|
index = pos;
|
|
17129
17183
|
}
|
|
@@ -19777,10 +19831,12 @@ var FullScreen = /** @__PURE__ @class */ (function () {
|
|
|
19777
19831
|
FullScreen.prototype.addEventListener = function () {
|
|
19778
19832
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
19779
19833
|
this.parent.on(destroy, this.destroy, this);
|
|
19834
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
19780
19835
|
};
|
|
19781
19836
|
FullScreen.prototype.removeEventListener = function () {
|
|
19782
19837
|
this.parent.off(keyDown, this.onKeyDown);
|
|
19783
19838
|
this.parent.off(destroy, this.destroy);
|
|
19839
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
19784
19840
|
};
|
|
19785
19841
|
/**
|
|
19786
19842
|
* destroy method
|
|
@@ -19799,6 +19855,9 @@ var FullScreen = /** @__PURE__ @class */ (function () {
|
|
|
19799
19855
|
}
|
|
19800
19856
|
this.removeEventListener();
|
|
19801
19857
|
};
|
|
19858
|
+
FullScreen.prototype.moduleDestroy = function () {
|
|
19859
|
+
this.parent = null;
|
|
19860
|
+
};
|
|
19802
19861
|
return FullScreen;
|
|
19803
19862
|
}());
|
|
19804
19863
|
|
|
@@ -19915,12 +19974,16 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
19915
19974
|
Render.prototype.destroy = function () {
|
|
19916
19975
|
this.removeEventListener();
|
|
19917
19976
|
};
|
|
19977
|
+
Render.prototype.moduleDestroy = function () {
|
|
19978
|
+
this.parent = null;
|
|
19979
|
+
};
|
|
19918
19980
|
Render.prototype.addEventListener = function () {
|
|
19919
19981
|
if (this.parent.isDestroyed) {
|
|
19920
19982
|
return;
|
|
19921
19983
|
}
|
|
19922
19984
|
this.parent.on(modelChanged, this.refresh, this);
|
|
19923
19985
|
this.parent.on(keyUp, this.keyUp, this);
|
|
19986
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
19924
19987
|
};
|
|
19925
19988
|
Render.prototype.removeEventListener = function () {
|
|
19926
19989
|
if (this.parent.isDestroyed) {
|
|
@@ -19928,6 +19991,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
19928
19991
|
}
|
|
19929
19992
|
this.parent.off(modelChanged, this.refresh);
|
|
19930
19993
|
this.parent.off(keyUp, this.keyUp);
|
|
19994
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
19931
19995
|
};
|
|
19932
19996
|
Render.prototype.keyUp = function (e) {
|
|
19933
19997
|
if (this.parent.editorMode === 'HTML') {
|
|
@@ -19989,6 +20053,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19989
20053
|
this.parent.on(editAreaClick, this.editAreaClickHandler, this);
|
|
19990
20054
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19991
20055
|
this.parent.on(destroy, this.destroy, this);
|
|
20056
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
19992
20057
|
};
|
|
19993
20058
|
Link.prototype.onToolbarAction = function (args) {
|
|
19994
20059
|
var item = args.args.item;
|
|
@@ -20022,6 +20087,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
20022
20087
|
this.parent.off(editAreaClick, this.editAreaClickHandler);
|
|
20023
20088
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
20024
20089
|
this.parent.off(destroy, this.destroy);
|
|
20090
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
20025
20091
|
};
|
|
20026
20092
|
Link.prototype.onIframeMouseDown = function () {
|
|
20027
20093
|
if (this.dialogObj) {
|
|
@@ -20472,6 +20538,9 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
20472
20538
|
Link.prototype.destroy = function () {
|
|
20473
20539
|
this.removeEventListener();
|
|
20474
20540
|
};
|
|
20541
|
+
Link.prototype.moduleDestroy = function () {
|
|
20542
|
+
this.parent = null;
|
|
20543
|
+
};
|
|
20475
20544
|
/**
|
|
20476
20545
|
* For internal use only - Get the module name.
|
|
20477
20546
|
*
|
|
@@ -20492,7 +20561,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20492
20561
|
this.isAllowedTypes = true;
|
|
20493
20562
|
this.pageX = null;
|
|
20494
20563
|
this.pageY = null;
|
|
20495
|
-
this.
|
|
20564
|
+
this.mouseX = null;
|
|
20496
20565
|
this.deletedImg = [];
|
|
20497
20566
|
this.parent = parent;
|
|
20498
20567
|
this.rteID = parent.element.id;
|
|
@@ -20527,6 +20596,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20527
20596
|
this.parent.on(paste, this.imagePaste, this);
|
|
20528
20597
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
20529
20598
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
20599
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
20530
20600
|
};
|
|
20531
20601
|
Image.prototype.removeEventListener = function () {
|
|
20532
20602
|
if (this.parent.isDestroyed) {
|
|
@@ -20554,6 +20624,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20554
20624
|
this.parent.off(paste, this.imagePaste);
|
|
20555
20625
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
20556
20626
|
this.parent.off(destroy, this.removeEventListener);
|
|
20627
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
20557
20628
|
var dropElement = this.parent.iframeSettings.enable ? this.parent.inputElement.ownerDocument
|
|
20558
20629
|
: this.parent.inputElement;
|
|
20559
20630
|
dropElement.removeEventListener('drop', this.dragDrop.bind(this), true);
|
|
@@ -20829,7 +20900,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20829
20900
|
img.style.minWidth = this.parent.insertImageSettings.minWidth === 0 ? '20px' : formatUnit(this.parent.insertImageSettings.minWidth);
|
|
20830
20901
|
if (this.parent.insertImageSettings.resizeByPercent) {
|
|
20831
20902
|
if (parseInt('' + img.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
|
|
20832
|
-
var original = img.offsetWidth + this.
|
|
20903
|
+
var original = img.offsetWidth + this.mouseX;
|
|
20833
20904
|
var finalWidthByPerc = (original / img.offsetWidth) * (parseFloat(img.style.width).toString() == 'NaN' ? (img.offsetWidth / (parseFloat(getComputedStyle(this.parent.element).width)) * 100) : parseFloat(img.style.width));
|
|
20834
20905
|
img.style.width = ((finalWidthByPerc > 3) ? finalWidthByPerc : 3) + '%';
|
|
20835
20906
|
}
|
|
@@ -20855,17 +20926,17 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20855
20926
|
}
|
|
20856
20927
|
else {
|
|
20857
20928
|
if (this.parent.iframeSettings.enable) {
|
|
20858
|
-
img.setAttribute('width', (img.width + this.
|
|
20929
|
+
img.setAttribute('width', (img.width + this.mouseX).toString());
|
|
20859
20930
|
}
|
|
20860
20931
|
else {
|
|
20861
|
-
img.setAttribute('width', (img.offsetWidth + this.
|
|
20932
|
+
img.setAttribute('width', (img.offsetWidth + this.mouseX).toString());
|
|
20862
20933
|
}
|
|
20863
20934
|
}
|
|
20864
20935
|
}
|
|
20865
20936
|
else if (height > width) {
|
|
20866
20937
|
if (this.parent.insertImageSettings.resizeByPercent) {
|
|
20867
20938
|
if (parseInt('' + img.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
|
|
20868
|
-
var original = img.offsetWidth + this.
|
|
20939
|
+
var original = img.offsetWidth + this.mouseX;
|
|
20869
20940
|
var finalWidthByPerc = (original / img.offsetWidth) * (parseFloat(img.style.width).toString() == 'NaN' ? (img.offsetWidth / (parseFloat(getComputedStyle(this.parent.element).width)) * 100) : parseFloat(img.style.width));
|
|
20870
20941
|
img.style.width = ((finalWidthByPerc > 3) ? finalWidthByPerc : 3) + '%';
|
|
20871
20942
|
}
|
|
@@ -20928,13 +20999,17 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20928
20999
|
if (this.imgEle.offsetWidth >= this.parent.getInsertImgMaxWidth()) {
|
|
20929
21000
|
this.imgEle.style.maxHeight = this.imgEle.offsetHeight + 'px';
|
|
20930
21001
|
}
|
|
21002
|
+
else if (isNullOrUndefined(this.parent.insertImageSettings.maxHeight)) {
|
|
21003
|
+
this.imgEle.style.maxHeight = '';
|
|
21004
|
+
}
|
|
21005
|
+
this.imgEle.style.maxWidth = this.parent.getInsertImgMaxWidth() + 'px';
|
|
20931
21006
|
var pageX = this.getPointX(e);
|
|
20932
21007
|
var pageY = this.getPointY(e);
|
|
20933
21008
|
var mouseX = (this.resizeBtnStat.botLeft || this.resizeBtnStat.topLeft) ? -(pageX - this.pageX) : (pageX - this.pageX);
|
|
20934
21009
|
var mouseY = (this.resizeBtnStat.topLeft || this.resizeBtnStat.topRight) ? -(pageY - this.pageY) : (pageY - this.pageY);
|
|
20935
21010
|
var width = parseInt(this.imgDupPos.width, 10) + mouseX;
|
|
20936
21011
|
var height = parseInt(this.imgDupPos.height, 10) + mouseY;
|
|
20937
|
-
this.
|
|
21012
|
+
this.mouseX = mouseX;
|
|
20938
21013
|
this.pageX = pageX;
|
|
20939
21014
|
this.pageY = pageY;
|
|
20940
21015
|
if (this.resizeBtnStat.botRight) {
|
|
@@ -21882,6 +21957,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21882
21957
|
if (target.nodeName === 'IMG') {
|
|
21883
21958
|
this.imgEle = target;
|
|
21884
21959
|
}
|
|
21960
|
+
if (!this.parent) {
|
|
21961
|
+
return;
|
|
21962
|
+
}
|
|
21885
21963
|
if (target.nodeName !== '#document') {
|
|
21886
21964
|
this.parent.currentTarget = e.target;
|
|
21887
21965
|
}
|
|
@@ -22769,6 +22847,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22769
22847
|
this.prevSelectedImgEle = undefined;
|
|
22770
22848
|
this.removeEventListener();
|
|
22771
22849
|
};
|
|
22850
|
+
Image.prototype.moduleDestroy = function () {
|
|
22851
|
+
this.parent = null;
|
|
22852
|
+
};
|
|
22772
22853
|
/**
|
|
22773
22854
|
* For internal use only - Get the module name.
|
|
22774
22855
|
*
|
|
@@ -22805,6 +22886,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
22805
22886
|
this.parent.on(initialEnd, this.onInitialEnd, this);
|
|
22806
22887
|
this.parent.on(updateSource, this.updateSourceCode, this);
|
|
22807
22888
|
this.parent.on(destroy, this.destroy, this);
|
|
22889
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
22808
22890
|
};
|
|
22809
22891
|
ViewSource.prototype.onInitialEnd = function () {
|
|
22810
22892
|
this.parent.formatter.editorManager.observer.on(KEY_DOWN_HANDLER, this.onKeyDown, this);
|
|
@@ -22815,6 +22897,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
22815
22897
|
this.parent.off(updateSource, this.updateSourceCode);
|
|
22816
22898
|
this.parent.off(initialEnd, this.onInitialEnd);
|
|
22817
22899
|
this.parent.off(destroy, this.destroy);
|
|
22900
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
22818
22901
|
this.parent.formatter.editorManager.observer.off(KEY_DOWN_HANDLER, this.onKeyDown);
|
|
22819
22902
|
};
|
|
22820
22903
|
ViewSource.prototype.getSourceCode = function () {
|
|
@@ -23038,6 +23121,9 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
23038
23121
|
ViewSource.prototype.destroy = function () {
|
|
23039
23122
|
this.removeEventListener();
|
|
23040
23123
|
};
|
|
23124
|
+
ViewSource.prototype.moduleDestroy = function () {
|
|
23125
|
+
this.parent = null;
|
|
23126
|
+
};
|
|
23041
23127
|
return ViewSource;
|
|
23042
23128
|
}());
|
|
23043
23129
|
|
|
@@ -23077,6 +23163,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23077
23163
|
this.parent.on(mouseUp, this.selectionTable, this);
|
|
23078
23164
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
23079
23165
|
this.parent.on(destroy, this.destroy, this);
|
|
23166
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
23080
23167
|
};
|
|
23081
23168
|
Table.prototype.removeEventListener = function () {
|
|
23082
23169
|
if (this.parent.isDestroyed) {
|
|
@@ -23098,6 +23185,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23098
23185
|
this.parent.off(mouseUp, this.selectionTable);
|
|
23099
23186
|
this.parent.off(bindCssClass, this.setCssClass);
|
|
23100
23187
|
this.parent.off(destroy, this.destroy);
|
|
23188
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
23101
23189
|
};
|
|
23102
23190
|
Table.prototype.updateCss = function (currentObj, e) {
|
|
23103
23191
|
if (currentObj && e.cssClass) {
|
|
@@ -23581,7 +23669,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23581
23669
|
}
|
|
23582
23670
|
var target = e.target || e.targetTouches[0].target;
|
|
23583
23671
|
var closestTable = closest(target, 'table.e-rte-table');
|
|
23584
|
-
if (!isNullOrUndefined(this.curTable) && !isNullOrUndefined(closestTable) && closestTable !== this.curTable
|
|
23672
|
+
if (!isNullOrUndefined(this.curTable) && !isNullOrUndefined(closestTable) && closestTable !== this.curTable &&
|
|
23673
|
+
this.parent.contentModule.getEditPanel().contains(closestTable)) {
|
|
23585
23674
|
this.removeResizeElement();
|
|
23586
23675
|
this.removeHelper(e);
|
|
23587
23676
|
this.cancelResizeAction();
|
|
@@ -23858,7 +23947,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23858
23947
|
var rteWidth = _this.contentModule.getEditPanel().offsetWidth - (_this.contentModule.getEditPanel().offsetWidth -
|
|
23859
23948
|
_this.contentModule.getEditPanel().clientWidth) - paddingSize * 2;
|
|
23860
23949
|
var widthCompare = void 0;
|
|
23861
|
-
if (!isNullOrUndefined(_this.curTable.parentElement.closest('table')))
|
|
23950
|
+
if (!isNullOrUndefined(_this.curTable.parentElement.closest('table')) && !isNullOrUndefined(_this.curTable.closest('td')) &&
|
|
23951
|
+
_this.contentModule.getEditPanel().contains(_this.curTable.closest('td'))) {
|
|
23862
23952
|
var currentTd = _this.curTable.closest('td');
|
|
23863
23953
|
var currentTDPad = +getComputedStyle(currentTd).paddingRight.match(/\d/g).join('');
|
|
23864
23954
|
// Padding of the current table with the parent element multiply with 2.
|
|
@@ -24391,6 +24481,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
24391
24481
|
Table.prototype.destroy = function () {
|
|
24392
24482
|
this.removeEventListener();
|
|
24393
24483
|
};
|
|
24484
|
+
Table.prototype.moduleDestroy = function () {
|
|
24485
|
+
this.parent = null;
|
|
24486
|
+
};
|
|
24394
24487
|
/**
|
|
24395
24488
|
* For internal use only - Get the module name.
|
|
24396
24489
|
*
|
|
@@ -24408,7 +24501,22 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
24408
24501
|
var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
24409
24502
|
function DialogRenderer(parent) {
|
|
24410
24503
|
this.parent = parent;
|
|
24504
|
+
this.addEventListener();
|
|
24411
24505
|
}
|
|
24506
|
+
DialogRenderer.prototype.addEventListener = function () {
|
|
24507
|
+
if (this.parent.isDestroyed) {
|
|
24508
|
+
return;
|
|
24509
|
+
}
|
|
24510
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
24511
|
+
this.parent.on(destroy, this.removeEventListener, this);
|
|
24512
|
+
};
|
|
24513
|
+
DialogRenderer.prototype.removeEventListener = function () {
|
|
24514
|
+
if (this.parent.isDestroyed) {
|
|
24515
|
+
return;
|
|
24516
|
+
}
|
|
24517
|
+
this.parent.off(destroy, this.removeEventListener);
|
|
24518
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
24519
|
+
};
|
|
24412
24520
|
/**
|
|
24413
24521
|
* dialog render method
|
|
24414
24522
|
*
|
|
@@ -24461,6 +24569,9 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
24461
24569
|
DialogRenderer.prototype.close = function (args) {
|
|
24462
24570
|
this.parent.trigger(dialogClose, args);
|
|
24463
24571
|
};
|
|
24572
|
+
DialogRenderer.prototype.moduleDestroy = function () {
|
|
24573
|
+
this.parent = null;
|
|
24574
|
+
};
|
|
24464
24575
|
return DialogRenderer;
|
|
24465
24576
|
}());
|
|
24466
24577
|
|
|
@@ -25112,13 +25223,18 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
25112
25223
|
EnterKeyAction.prototype.addEventListener = function () {
|
|
25113
25224
|
this.parent.on(enterHandler, this.enterHandler, this);
|
|
25114
25225
|
this.parent.on(destroy, this.destroy, this);
|
|
25226
|
+
this.parent.on(moduleDestroy, this.moduleDestroy, this);
|
|
25115
25227
|
};
|
|
25116
25228
|
EnterKeyAction.prototype.destroy = function () {
|
|
25117
25229
|
this.removeEventListener();
|
|
25118
25230
|
};
|
|
25231
|
+
EnterKeyAction.prototype.moduleDestroy = function () {
|
|
25232
|
+
this.parent = null;
|
|
25233
|
+
};
|
|
25119
25234
|
EnterKeyAction.prototype.removeEventListener = function () {
|
|
25120
25235
|
this.parent.off(enterHandler, this.enterHandler);
|
|
25121
25236
|
this.parent.off(destroy, this.destroy);
|
|
25237
|
+
this.parent.off(moduleDestroy, this.moduleDestroy);
|
|
25122
25238
|
};
|
|
25123
25239
|
EnterKeyAction.prototype.getRangeNode = function () {
|
|
25124
25240
|
this.range = this.parent.getRange();
|
|
@@ -25236,7 +25352,8 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
25236
25352
|
isNearBlockLengthZero = false;
|
|
25237
25353
|
}
|
|
25238
25354
|
else {
|
|
25239
|
-
if (nearBlockNode.textContent.trim().length !== 0
|
|
25355
|
+
if (nearBlockNode.textContent.trim().length !== 0 ||
|
|
25356
|
+
nearBlockNode.childNodes[0].nodeName === 'IMG') {
|
|
25240
25357
|
newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
|
|
25241
25358
|
isNearBlockLengthZero = false;
|
|
25242
25359
|
}
|
|
@@ -25914,6 +26031,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25914
26031
|
var currentEndContainer = range.endContainer;
|
|
25915
26032
|
var currentStartOffset = range.startOffset;
|
|
25916
26033
|
var isSameContainer = currentStartContainer === currentEndContainer ? true : false;
|
|
26034
|
+
var currentEndOffset = currentEndContainer.textContent.length;
|
|
25917
26035
|
var endNode = range.endContainer.nodeName === '#text' ? range.endContainer.parentElement :
|
|
25918
26036
|
range.endContainer;
|
|
25919
26037
|
var closestLI = closest(endNode, 'LI');
|
|
@@ -25929,7 +26047,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25929
26047
|
while (currentLastElem.lastChild !== null && currentLastElem.nodeName !== '#text') {
|
|
25930
26048
|
currentLastElem = currentLastElem.lastChild;
|
|
25931
26049
|
}
|
|
25932
|
-
this.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), isSameContainer ? (currentLastElem.nodeName === 'BR' && !isNullOrUndefined(currentLastElem.previousSibling) ? currentLastElem.previousSibling :
|
|
26050
|
+
this.formatter.editorManager.nodeSelection.setSelectionText(this.contentModule.getDocument(), isSameContainer ? currentStartContainer : (currentLastElem.nodeName === 'BR' && !isNullOrUndefined(currentLastElem.previousSibling) ? currentLastElem.previousSibling : currentStartContainer), currentEndContainer, currentStartOffset, (currentLastElem.nodeName === 'BR' ? 0 : currentEndOffset));
|
|
25933
26051
|
}
|
|
25934
26052
|
};
|
|
25935
26053
|
/**
|
|
@@ -26268,8 +26386,11 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
26268
26386
|
if (this.isDestroyed || !this.isRendered) {
|
|
26269
26387
|
return;
|
|
26270
26388
|
}
|
|
26271
|
-
if (this.element.offsetParent === null
|
|
26272
|
-
this.toolbarModule
|
|
26389
|
+
if (this.element.offsetParent === null) {
|
|
26390
|
+
if (!isNullOrUndefined(this.toolbarModule)) {
|
|
26391
|
+
this.toolbarModule.destroy();
|
|
26392
|
+
}
|
|
26393
|
+
this.notify(moduleDestroy, {});
|
|
26273
26394
|
return;
|
|
26274
26395
|
}
|
|
26275
26396
|
this.notify(destroy, {});
|
|
@@ -27508,7 +27629,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27508
27629
|
RichTextEditor.prototype.restrict = function (e) {
|
|
27509
27630
|
if (this.maxLength >= 0) {
|
|
27510
27631
|
var element = this.editorMode === 'Markdown' ? this.contentModule.getText() :
|
|
27511
|
-
e.currentTarget.textContent;
|
|
27632
|
+
(e && e.currentTarget.textContent);
|
|
27633
|
+
if (!element) {
|
|
27634
|
+
return;
|
|
27635
|
+
}
|
|
27512
27636
|
var array = [8, 16, 17, 37, 38, 39, 40, 46, 65];
|
|
27513
27637
|
var arrayKey = void 0;
|
|
27514
27638
|
for (var i = 0; i <= array.length - 1; i++) {
|
|
@@ -27563,6 +27687,11 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27563
27687
|
case 'cut':
|
|
27564
27688
|
this.onCut();
|
|
27565
27689
|
break;
|
|
27690
|
+
case 'tab':
|
|
27691
|
+
if (this.iframeSettings.enable) {
|
|
27692
|
+
this.isBlur = true;
|
|
27693
|
+
}
|
|
27694
|
+
break;
|
|
27566
27695
|
}
|
|
27567
27696
|
if (e.callBack && (e.event.action === 'copy' || e.event.action === 'cut' || e.event.action === 'delete')) {
|
|
27568
27697
|
e.callBack({
|
|
@@ -27880,5 +28009,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27880
28009
|
* Rich Text Editor component exported items
|
|
27881
28010
|
*/
|
|
27882
28011
|
|
|
27883
|
-
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, mediaSelected, mediaUploading, mediaUploadSuccess, mediaUploadFailed, mediaRemoving, afterImageDelete, afterMediaDelete, drop, xhtmlValidation, beforeImageUpload, beforeMediaUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, closeImageDialog, closeAudioDialog, showTableDialog, closeTableDialog, bindCssClass, blockEmptyNodes, inlineEmptyNodes, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_TB_ENABLED, CLS_RTE_RES_WEST, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, INSERT_TEXT_COMMAND, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP, ON_BEGIN, SPACE_ACTION };
|
|
28012
|
+
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, moduleDestroy, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, mediaSelected, mediaUploading, mediaUploadSuccess, mediaUploadFailed, mediaRemoving, afterImageDelete, afterMediaDelete, drop, xhtmlValidation, beforeImageUpload, beforeMediaUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, closeImageDialog, closeAudioDialog, showTableDialog, closeTableDialog, bindCssClass, blockEmptyNodes, inlineEmptyNodes, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_TB_ENABLED, CLS_RTE_RES_WEST, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, INSERT_TEXT_COMMAND, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP, ON_BEGIN, SPACE_ACTION };
|
|
27884
28013
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|