@syncfusion/ej2-richtexteditor 27.1.55 → 27.1.57-643705
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/.eslintignore +4 -4
- package/.eslintrc.json +260 -260
- package/README.md +76 -76
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +985 -738
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +601 -352
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/ej2-richtexteditor-component.sln +30 -0
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +85 -85
- package/src/common/config.d.ts +7 -0
- package/src/common/config.js +12 -0
- package/src/common/interface.d.ts +10 -8
- package/src/common/util.js +2 -1
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/constant.d.ts +4 -0
- package/src/editor-manager/base/constant.js +4 -0
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +3 -3
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +36 -36
- package/src/editor-manager/plugin/dom-node.js +36 -36
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +27 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +11 -5
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +4 -2
- package/src/editor-manager/plugin/inserthtml.js +98 -19
- package/src/editor-manager/plugin/isformatted.d.ts +9 -9
- package/src/editor-manager/plugin/isformatted.js +9 -9
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +8 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +1 -1
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +12 -4
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +49 -22
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/resize.js +4 -0
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +158 -158
- package/src/rich-text-editor/base/constant.js +158 -158
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +51 -51
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +958 -958
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +68 -65
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +38 -38
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/slash-menu-settings-model.d.ts +25 -25
- package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +807 -807
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +8 -2
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +58 -21
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/slash-menu.js +9 -0
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +5 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +8 -2
- package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
- package/src/rich-text-editor/renderer/view-source.js +5 -5
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +24 -23
- package/src/selection/selection.js +37 -34
- package/styles/_all.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +290 -290
- package/styles/rich-text-editor/_bigger.scss +610 -610
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -291
- package/styles/rich-text-editor/_bootstrap-definition.scss +349 -349
- package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -476
- package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -278
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -278
- package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -275
- package/styles/rich-text-editor/_fabric-definition.scss +273 -273
- package/styles/rich-text-editor/_fluent-definition.scss +279 -279
- package/styles/rich-text-editor/_fluent2-definition.scss +287 -287
- package/styles/rich-text-editor/_fusionnew-definition.scss +276 -276
- package/styles/rich-text-editor/_highcontrast-definition.scss +274 -274
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -273
- package/styles/rich-text-editor/_layout.scss +2180 -2180
- package/styles/rich-text-editor/_material-dark-definition.scss +278 -278
- package/styles/rich-text-editor/_material-definition.scss +276 -276
- package/styles/rich-text-editor/_material3-definition.scss +278 -278
- package/styles/rich-text-editor/_tailwind-definition.scss +273 -273
- package/styles/rich-text-editor/_theme.scss +844 -844
- package/styles/rich-text-editor/icons/_bds.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -372
- package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_fabric.scss +373 -373
- package/styles/rich-text-editor/icons/_fluent.scss +372 -372
- package/styles/rich-text-editor/icons/_fluent2.scss +369 -369
- package/styles/rich-text-editor/icons/_fusionnew.scss +357 -357
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -361
- package/styles/rich-text-editor/icons/_highcontrast.scss +373 -373
- package/styles/rich-text-editor/icons/_material-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_material.scss +373 -373
- package/styles/rich-text-editor/icons/_material3.scss +372 -372
- package/styles/rich-text-editor/icons/_tailwind.scss +372 -372
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- package/dist/ej2-richtexteditor.min.js +0 -10
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -3690,7 +3690,7 @@ function updateDropDownFontFormatLocale(self) {
|
|
|
3690
3690
|
* @hidden
|
|
3691
3691
|
* @deprecated
|
|
3692
3692
|
*/
|
|
3693
|
-
var ContentRender = /** @
|
|
3693
|
+
var ContentRender = /** @class */ (function () {
|
|
3694
3694
|
/**
|
|
3695
3695
|
* Constructor for content renderer module
|
|
3696
3696
|
*
|
|
@@ -3787,7 +3787,7 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
3787
3787
|
* @hidden
|
|
3788
3788
|
* @deprecated
|
|
3789
3789
|
*/
|
|
3790
|
-
var Render = /** @
|
|
3790
|
+
var Render = /** @class */ (function () {
|
|
3791
3791
|
/**
|
|
3792
3792
|
* Constructor for render module
|
|
3793
3793
|
*
|
|
@@ -3886,7 +3886,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
3886
3886
|
* @hidden
|
|
3887
3887
|
* @deprecated
|
|
3888
3888
|
*/
|
|
3889
|
-
var IsFormatted = /** @
|
|
3889
|
+
var IsFormatted = /** @class */ (function () {
|
|
3890
3890
|
function IsFormatted() {
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
@@ -4247,11 +4247,15 @@ var SELF_CLOSING_TAGS = ['area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'p
|
|
|
4247
4247
|
* @hidden
|
|
4248
4248
|
*/
|
|
4249
4249
|
var PASTE_SOURCE = ['word', 'excel', 'onenote'];
|
|
4250
|
+
/**
|
|
4251
|
+
* @hidden
|
|
4252
|
+
*/
|
|
4253
|
+
var ALLOWED_TABLE_BLOCK_TAGS = ['article', 'aside', 'blockquote', 'body', 'canvas', 'details', 'div', 'fieldset', 'figure', 'footer', 'form', 'header', 'li', 'main', 'nav', 'noscript', 'section'];
|
|
4250
4254
|
|
|
4251
4255
|
/**
|
|
4252
4256
|
* `Selection` module is used to handle RTE Selections.
|
|
4253
4257
|
*/
|
|
4254
|
-
var NodeSelection = /** @
|
|
4258
|
+
var NodeSelection = /** @class */ (function () {
|
|
4255
4259
|
function NodeSelection(editElement) {
|
|
4256
4260
|
this.startNodeName = [];
|
|
4257
4261
|
this.endNodeName = [];
|
|
@@ -4375,7 +4379,8 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4375
4379
|
var tableCursor = this.processedTableImageCursor(range);
|
|
4376
4380
|
if (tableCursor.start || tableCursor.end) {
|
|
4377
4381
|
if (tableCursor.startName === 'TABLE' || tableCursor.endName === 'TABLE') {
|
|
4378
|
-
|
|
4382
|
+
var tableNode = tableCursor.start ? tableCursor.startNode : tableCursor.endNode;
|
|
4383
|
+
return [tableNode];
|
|
4379
4384
|
}
|
|
4380
4385
|
}
|
|
4381
4386
|
if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
|
|
@@ -4701,34 +4706,36 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4701
4706
|
var customHandlerElements = ['TABLE'];
|
|
4702
4707
|
var startContainer = range.startContainer;
|
|
4703
4708
|
var startOffset = range.startOffset;
|
|
4709
|
+
var startNode = startContainer.childNodes[startOffset];
|
|
4704
4710
|
var isCursorAtStart = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4705
|
-
startContainer.isContentEditable &&
|
|
4706
|
-
(customHandlerElements.indexOf(
|
|
4711
|
+
startContainer.isContentEditable && startNode &&
|
|
4712
|
+
(customHandlerElements.indexOf(startNode.nodeName) > -1);
|
|
4707
4713
|
if (isCursorAtStart) {
|
|
4708
|
-
return { start: isCursorAtStart, startNodeName:
|
|
4714
|
+
return { start: isCursorAtStart, startNodeName: startNode.nodeName, startNode: startNode };
|
|
4709
4715
|
}
|
|
4710
4716
|
else {
|
|
4711
|
-
return { start: false, startNodeName: '' };
|
|
4717
|
+
return { start: false, startNodeName: '', startNode: undefined };
|
|
4712
4718
|
}
|
|
4713
4719
|
};
|
|
4714
4720
|
NodeSelection.prototype.isTableOrImageEnd = function (range) {
|
|
4715
4721
|
var customHandlerElements = ['TABLE'];
|
|
4716
4722
|
var startContainer = range.startContainer;
|
|
4717
4723
|
var startOffset = range.startOffset;
|
|
4724
|
+
var endNode = startContainer.childNodes[startOffset - 1];
|
|
4718
4725
|
var isCursorAtEnd = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4719
|
-
startContainer.isContentEditable &&
|
|
4720
|
-
(customHandlerElements.indexOf(
|
|
4726
|
+
startContainer.isContentEditable && endNode &&
|
|
4727
|
+
(customHandlerElements.indexOf(endNode.nodeName) > -1);
|
|
4721
4728
|
if (isCursorAtEnd) {
|
|
4722
|
-
return { end: isCursorAtEnd, endNodeName:
|
|
4729
|
+
return { end: isCursorAtEnd, endNodeName: endNode.nodeName, endNode: endNode };
|
|
4723
4730
|
}
|
|
4724
4731
|
else {
|
|
4725
|
-
return { end: false, endNodeName: '' };
|
|
4732
|
+
return { end: false, endNodeName: '', endNode: undefined };
|
|
4726
4733
|
}
|
|
4727
4734
|
};
|
|
4728
4735
|
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 };
|
|
4736
|
+
var _a = this.isTableOrImageStart(range), start = _a.start, startNodeName = _a.startNodeName, startNode = _a.startNode;
|
|
4737
|
+
var _b = this.isTableOrImageEnd(range), end = _b.end, endNodeName = _b.endNodeName, endNode = _b.endNode;
|
|
4738
|
+
return { start: start, startName: startNodeName, end: end, endName: endNodeName, startNode: startNode, endNode: endNode };
|
|
4732
4739
|
};
|
|
4733
4740
|
return NodeSelection;
|
|
4734
4741
|
}());
|
|
@@ -4816,7 +4823,8 @@ function updateTextNode$1(value, enterAction) {
|
|
|
4816
4823
|
}
|
|
4817
4824
|
var tableElm = resultElm.querySelectorAll('table');
|
|
4818
4825
|
for (var i = 0; i < tableElm.length; i++) {
|
|
4819
|
-
if (tableElm[i].classList.length > 0 && !tableElm[i].classList.contains('e-rte-table')
|
|
4826
|
+
if (tableElm[i].classList.length > 0 && !tableElm[i].classList.contains('e-rte-table') &&
|
|
4827
|
+
!tableElm[i].classList.contains('e-rte-custom-table')) {
|
|
4820
4828
|
tableElm[i].classList.add('e-rte-paste-table');
|
|
4821
4829
|
if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
|
|
4822
4830
|
tableElm[i].classList.remove('e-rte-paste-word-table');
|
|
@@ -5066,7 +5074,7 @@ function removeClassWithAttr(elements, classes) {
|
|
|
5066
5074
|
* @deprecated
|
|
5067
5075
|
*/
|
|
5068
5076
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
5069
|
-
var ToolbarStatus = /** @
|
|
5077
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
5070
5078
|
function ToolbarStatus() {
|
|
5071
5079
|
}
|
|
5072
5080
|
/**
|
|
@@ -5464,7 +5472,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
5464
5472
|
* @hidden
|
|
5465
5473
|
* @deprecated
|
|
5466
5474
|
*/
|
|
5467
|
-
var ToolbarRenderer = /** @
|
|
5475
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
5468
5476
|
/**
|
|
5469
5477
|
* Constructor for toolbar renderer module
|
|
5470
5478
|
*
|
|
@@ -6210,7 +6218,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
6210
6218
|
/**
|
|
6211
6219
|
* `Link` module is used to handle undo actions.
|
|
6212
6220
|
*/
|
|
6213
|
-
var Link = /** @
|
|
6221
|
+
var Link = /** @class */ (function () {
|
|
6214
6222
|
function Link(parent, serviceLocator) {
|
|
6215
6223
|
this.parent = parent;
|
|
6216
6224
|
this.rteID = parent.element.id;
|
|
@@ -6628,6 +6636,9 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
6628
6636
|
if (document.body.contains(proxy.dialogObj.element)) {
|
|
6629
6637
|
this.selfLink.dialogObj.hide({ returnValue: false });
|
|
6630
6638
|
}
|
|
6639
|
+
if (this.selfLink.dialogObj !== null) {
|
|
6640
|
+
return;
|
|
6641
|
+
}
|
|
6631
6642
|
if (isIDevice$1() && proxy.parent.iframeSettings.enable) {
|
|
6632
6643
|
select('iframe', proxy.parent.element).contentWindow.focus();
|
|
6633
6644
|
}
|
|
@@ -6925,6 +6936,18 @@ var imageResizeFactor = {
|
|
|
6925
6936
|
botRight: [1, 1],
|
|
6926
6937
|
botLeft: [-1, 1]
|
|
6927
6938
|
};
|
|
6939
|
+
/**
|
|
6940
|
+
* Resize factor for image in iframe editor.
|
|
6941
|
+
*
|
|
6942
|
+
*@hidden
|
|
6943
|
+
*
|
|
6944
|
+
*/
|
|
6945
|
+
var iframeResizeFactor = {
|
|
6946
|
+
topLeft: [-1.2, -1.2],
|
|
6947
|
+
topRight: [1.2, -1.2],
|
|
6948
|
+
botRight: [1.2, 1.2],
|
|
6949
|
+
botLeft: [-1.2, 1.2]
|
|
6950
|
+
};
|
|
6928
6951
|
/**
|
|
6929
6952
|
* Mention restrict key configuration.
|
|
6930
6953
|
*
|
|
@@ -6942,7 +6965,7 @@ var mentionRestrictKeys = [
|
|
|
6942
6965
|
/**
|
|
6943
6966
|
* `Image` module is used to handle image actions.
|
|
6944
6967
|
*/
|
|
6945
|
-
var Image$1 = /** @
|
|
6968
|
+
var Image$1 = /** @class */ (function () {
|
|
6946
6969
|
function Image(parent, serviceLocator) {
|
|
6947
6970
|
this.isImgUploaded = false;
|
|
6948
6971
|
this.isAllowedTypes = true;
|
|
@@ -7138,8 +7161,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7138
7161
|
if (this.parent.formatter.getUndoRedoStack().length === 0) {
|
|
7139
7162
|
this.parent.formatter.saveData();
|
|
7140
7163
|
}
|
|
7141
|
-
|
|
7142
|
-
|
|
7164
|
+
if (this.parent.iframeSettings.enable) {
|
|
7165
|
+
this.pageX = e.screenX;
|
|
7166
|
+
this.pageY = e.screenY;
|
|
7167
|
+
}
|
|
7168
|
+
else {
|
|
7169
|
+
this.pageX = this.getPointX(e);
|
|
7170
|
+
this.pageY = this.getPointY(e);
|
|
7171
|
+
}
|
|
7143
7172
|
e.preventDefault();
|
|
7144
7173
|
e.stopImmediatePropagation();
|
|
7145
7174
|
this.resizeBtnInit();
|
|
@@ -7404,29 +7433,50 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7404
7433
|
return;
|
|
7405
7434
|
}
|
|
7406
7435
|
if (this.resizeBtnStat.botRight || this.resizeBtnStat.botLeft || this.resizeBtnStat.topRight || this.resizeBtnStat.topLeft) {
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7436
|
+
if (this.parent.iframeSettings.enable) {
|
|
7437
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7438
|
+
var currentScreenX = e.screenX;
|
|
7439
|
+
var currentScreenY = e.screenY;
|
|
7440
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7441
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7442
|
+
var deltaX = currentScreenX - this.pageX;
|
|
7443
|
+
var deltaY = currentScreenY - this.pageY;
|
|
7444
|
+
var width = deltaX * resizeFactor[0] + currentWidth;
|
|
7445
|
+
var height = deltaY * resizeFactor[1] + currentHeight;
|
|
7446
|
+
var dimensions = this.adjustDimensions(width, height, deltaX, deltaY, this.aspectRatio);
|
|
7447
|
+
this.pageX = currentScreenX;
|
|
7448
|
+
this.pageY = currentScreenY;
|
|
7449
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7450
|
+
this.parent.autoResize();
|
|
7451
|
+
}
|
|
7452
|
+
else {
|
|
7453
|
+
var pageX = this.getPointX(e);
|
|
7454
|
+
var pageY = this.getPointY(e);
|
|
7455
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7456
|
+
var diffX = (pageX - this.pageX);
|
|
7457
|
+
var diffY = (pageY - this.pageY);
|
|
7458
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7459
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7460
|
+
var width = diffX * resizeFactor[0] + currentWidth;
|
|
7461
|
+
var height = diffY * resizeFactor[1] + currentHeight;
|
|
7462
|
+
var dimensions = this.adjustDimensions(width, height, diffX, diffY, this.aspectRatio);
|
|
7463
|
+
this.pageX = pageX;
|
|
7464
|
+
this.pageY = pageY;
|
|
7465
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7466
|
+
}
|
|
7420
7467
|
}
|
|
7421
7468
|
};
|
|
7422
7469
|
Image.prototype.adjustDimensions = function (width, height, diffX, diffY, aspectRatio) {
|
|
7423
7470
|
width = (width < 16) ? 16 : width;
|
|
7424
7471
|
height = (height < 16) ? 16 : height;
|
|
7425
|
-
var isWidthPrimary =
|
|
7472
|
+
var isWidthPrimary = width > height;
|
|
7426
7473
|
var dimensions = this.adjustDimensionsByAspectRatio(width, height, aspectRatio, isWidthPrimary);
|
|
7427
7474
|
return dimensions;
|
|
7428
7475
|
};
|
|
7429
7476
|
Image.prototype.getResizeFactor = function (value) {
|
|
7477
|
+
if (this.parent.iframeSettings.enable) {
|
|
7478
|
+
return iframeResizeFactor[value];
|
|
7479
|
+
}
|
|
7430
7480
|
return imageResizeFactor[value];
|
|
7431
7481
|
};
|
|
7432
7482
|
Image.prototype.findAspectRatio = function (image) {
|
|
@@ -7842,7 +7892,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7842
7892
|
_this.parent.formatter.editorManager.nodeSelection.Clear(_this.contentModule.getDocument());
|
|
7843
7893
|
_this.parent.formatter.editorManager.nodeSelection.setSelectionContents(_this.contentModule.getDocument(), target);
|
|
7844
7894
|
_this.quickToolObj.imageQTBar.showPopup(args.pageX, pageY, target);
|
|
7845
|
-
_this.
|
|
7895
|
+
if (_this.parent.insertImageSettings.resize === true) {
|
|
7896
|
+
_this.resizeStart(e.args, target);
|
|
7897
|
+
}
|
|
7846
7898
|
}, 400);
|
|
7847
7899
|
}
|
|
7848
7900
|
else {
|
|
@@ -8519,6 +8571,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8519
8571
|
proxy.uploadUrl.cssClass = (proxy.parent.insertImageSettings.display === 'inline' ?
|
|
8520
8572
|
CLS_IMGINLINE : CLS_IMGBREAK);
|
|
8521
8573
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8574
|
+
if (proxy.dialogObj !== null) {
|
|
8575
|
+
return;
|
|
8576
|
+
}
|
|
8522
8577
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
8523
8578
|
proxy.uploadUrl.url = '';
|
|
8524
8579
|
if (proxy.contentModule.getEditPanel().querySelector('.e-img-resize')) {
|
|
@@ -8549,8 +8604,11 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8549
8604
|
maxHeight: proxy.parent.insertImageSettings.maxHeight
|
|
8550
8605
|
}
|
|
8551
8606
|
};
|
|
8552
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8553
8607
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8608
|
+
if (proxy.dialogObj !== null) {
|
|
8609
|
+
return;
|
|
8610
|
+
}
|
|
8611
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8554
8612
|
}
|
|
8555
8613
|
};
|
|
8556
8614
|
Image.prototype.imgsizeInput = function (e) {
|
|
@@ -9316,7 +9374,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
9316
9374
|
if (imageElement) {
|
|
9317
9375
|
this.showImageQTbarTime = setTimeout(function () {
|
|
9318
9376
|
_this.showImageQuickToolbar(args);
|
|
9319
|
-
_this.
|
|
9377
|
+
if (_this.parent.insertImageSettings.resize) {
|
|
9378
|
+
_this.resizeStart(e.args, imageElement);
|
|
9379
|
+
}
|
|
9320
9380
|
}, 0);
|
|
9321
9381
|
}
|
|
9322
9382
|
};
|
|
@@ -9378,7 +9438,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
9378
9438
|
/**
|
|
9379
9439
|
* `Audio` module is used to handle audio actions.
|
|
9380
9440
|
*/
|
|
9381
|
-
var Audio = /** @
|
|
9441
|
+
var Audio = /** @class */ (function () {
|
|
9382
9442
|
function Audio(parent, serviceLocator) {
|
|
9383
9443
|
this.isAudioUploaded = false;
|
|
9384
9444
|
this.isAllowedTypes = true;
|
|
@@ -10209,6 +10269,9 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10209
10269
|
proxy.uploadUrl.cssClass = (proxy.parent.insertAudioSettings.layoutOption === 'Inline' ?
|
|
10210
10270
|
CLS_AUDIOINLINE : CLS_AUDIOBREAK);
|
|
10211
10271
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10272
|
+
if (proxy.dialogObj !== null) {
|
|
10273
|
+
return;
|
|
10274
|
+
}
|
|
10212
10275
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
10213
10276
|
proxy.uploadUrl.url = '';
|
|
10214
10277
|
}
|
|
@@ -10227,8 +10290,11 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10227
10290
|
url: url, selection: this.selection, fileName: name_1,
|
|
10228
10291
|
selectParent: this.selectParent
|
|
10229
10292
|
};
|
|
10230
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10231
10293
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10294
|
+
if (proxy.dialogObj !== null) {
|
|
10295
|
+
return;
|
|
10296
|
+
}
|
|
10297
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10232
10298
|
}
|
|
10233
10299
|
};
|
|
10234
10300
|
/* eslint-disable */
|
|
@@ -10266,7 +10332,7 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10266
10332
|
return Audio;
|
|
10267
10333
|
}());
|
|
10268
10334
|
|
|
10269
|
-
var Video = /** @
|
|
10335
|
+
var Video = /** @class */ (function () {
|
|
10270
10336
|
function Video(parent, serviceLocator) {
|
|
10271
10337
|
this.isVideoUploaded = false;
|
|
10272
10338
|
this.isAllowedTypes = true;
|
|
@@ -11702,6 +11768,9 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11702
11768
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11703
11769
|
};
|
|
11704
11770
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11771
|
+
if (proxy.dialogObj !== null) {
|
|
11772
|
+
return;
|
|
11773
|
+
}
|
|
11705
11774
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
11706
11775
|
proxy.uploadUrl.url = '';
|
|
11707
11776
|
}
|
|
@@ -11728,8 +11797,11 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11728
11797
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11729
11798
|
}
|
|
11730
11799
|
};
|
|
11731
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11732
11800
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11801
|
+
if (proxy.dialogObj !== null) {
|
|
11802
|
+
return;
|
|
11803
|
+
}
|
|
11804
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11733
11805
|
}
|
|
11734
11806
|
};
|
|
11735
11807
|
/* eslint-disable */
|
|
@@ -11885,25 +11957,25 @@ var DESTROY = 'destroy';
|
|
|
11885
11957
|
*/
|
|
11886
11958
|
var INTERNAL_DESTROY = 'internal_destroy';
|
|
11887
11959
|
|
|
11888
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11889
|
-
var extendStatics = function (d, b) {
|
|
11890
|
-
extendStatics = Object.setPrototypeOf ||
|
|
11891
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11892
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11893
|
-
return extendStatics(d, b);
|
|
11894
|
-
};
|
|
11895
|
-
return function (d, b) {
|
|
11896
|
-
extendStatics(d, b);
|
|
11897
|
-
function __() { this.constructor = d; }
|
|
11898
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11899
|
-
};
|
|
11900
|
-
})();
|
|
11901
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11902
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11903
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11904
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11905
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11906
|
-
};
|
|
11960
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11961
|
+
var extendStatics = function (d, b) {
|
|
11962
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11963
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11964
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11965
|
+
return extendStatics(d, b);
|
|
11966
|
+
};
|
|
11967
|
+
return function (d, b) {
|
|
11968
|
+
extendStatics(d, b);
|
|
11969
|
+
function __() { this.constructor = d; }
|
|
11970
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11971
|
+
};
|
|
11972
|
+
})();
|
|
11973
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11974
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11975
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11976
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11977
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11978
|
+
};
|
|
11907
11979
|
var keyCode = {
|
|
11908
11980
|
'backspace': 8,
|
|
11909
11981
|
'tab': 9,
|
|
@@ -11974,7 +12046,7 @@ var keyCode = {
|
|
|
11974
12046
|
* @hidden
|
|
11975
12047
|
* @deprecated
|
|
11976
12048
|
*/
|
|
11977
|
-
var KeyboardEvents = /** @
|
|
12049
|
+
var KeyboardEvents = /** @class */ (function (_super) {
|
|
11978
12050
|
__extends(KeyboardEvents, _super);
|
|
11979
12051
|
/**
|
|
11980
12052
|
* Initializes the KeyboardEvents
|
|
@@ -12120,7 +12192,7 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
|
|
|
12120
12192
|
* @hidden
|
|
12121
12193
|
* @deprecated
|
|
12122
12194
|
*/
|
|
12123
|
-
var ViewSource = /** @
|
|
12195
|
+
var ViewSource = /** @class */ (function () {
|
|
12124
12196
|
/**
|
|
12125
12197
|
* Constructor for view source module
|
|
12126
12198
|
*
|
|
@@ -12359,7 +12431,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
12359
12431
|
/**
|
|
12360
12432
|
* `Table` module is used to handle table actions.
|
|
12361
12433
|
*/
|
|
12362
|
-
var Table = /** @
|
|
12434
|
+
var Table = /** @class */ (function () {
|
|
12363
12435
|
function Table(parent, serviceLocator) {
|
|
12364
12436
|
this.ensureInsideTableList = true;
|
|
12365
12437
|
this.pageX = null;
|
|
@@ -13416,7 +13488,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13416
13488
|
return;
|
|
13417
13489
|
}
|
|
13418
13490
|
var target = e.target || e.targetTouches[0].target;
|
|
13419
|
-
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table');
|
|
13491
|
+
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table, table.e-rte-custom-table');
|
|
13420
13492
|
var isResizing = this.parent.contentModule.getEditPanel().querySelectorAll('.e-table-box.e-rbox-select, .e-table-rhelper.e-column-helper, .e-table-rhelper.e-row-helper').length > 0;
|
|
13421
13493
|
if (!isResizing && !isNullOrUndefined(this.curTable) && !isNullOrUndefined(closestTable) && closestTable !== this.curTable &&
|
|
13422
13494
|
this.parent.contentModule.getEditPanel().contains(closestTable)) {
|
|
@@ -13767,7 +13839,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13767
13839
|
else {
|
|
13768
13840
|
var tableReBox = _this.contentModule.getEditPanel().querySelector('.e-table-box');
|
|
13769
13841
|
var tableWidth = parseInt(getComputedStyle(_this.curTable).width, 10);
|
|
13770
|
-
var tableHeight = parseInt(
|
|
13842
|
+
var tableHeight = !isNaN(parseInt(_this.curTable.style.height, 10)) ?
|
|
13843
|
+
parseInt(_this.curTable.style.height, 10) : parseInt(getComputedStyle(_this.curTable).height, 10);
|
|
13771
13844
|
var paddingSize = +getComputedStyle(_this.contentModule.getEditPanel()).paddingRight.match(/\d/g).join('');
|
|
13772
13845
|
var rteWidth = _this.contentModule.getEditPanel().offsetWidth -
|
|
13773
13846
|
(_this.contentModule.getEditPanel().offsetWidth -
|
|
@@ -13912,7 +13985,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13912
13985
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
13913
13986
|
if (!isNullOrUndefined(tableReBox)) {
|
|
13914
13987
|
tableReBox.classList.add('e-rbox-select');
|
|
13915
|
-
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top +
|
|
13988
|
+
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top + parseInt(getComputedStyle(_this.curTable).height, 10) - 4) +
|
|
13916
13989
|
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
13917
13990
|
}
|
|
13918
13991
|
if (_this.curTable.closest('li')) {
|
|
@@ -14552,7 +14625,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
14552
14625
|
/**
|
|
14553
14626
|
* Dialog Renderer
|
|
14554
14627
|
*/
|
|
14555
|
-
var DialogRenderer = /** @
|
|
14628
|
+
var DialogRenderer = /** @class */ (function () {
|
|
14556
14629
|
function DialogRenderer(parent) {
|
|
14557
14630
|
this.parent = parent;
|
|
14558
14631
|
this.addEventListener();
|
|
@@ -14672,19 +14745,19 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14672
14745
|
|
|
14673
14746
|
var IFRAME_EDITOR_STYLES = "\n@charset \"UTF-8\";\n\nhtml {\n height: auto;\n}\n\nhtml, body {\n margin: 0;\n}\n\nbody {\n color: #333;\n word-wrap: break-word;\n}\n\n.e-content {\n background: unset;\n box-sizing: border-box;\n min-height: 100px;\n outline: 0 solid transparent;\n padding: 16px;\n position: relative;\n overflow-x: auto;\n font-weight: normal;\n line-height: 1.5;\n font-size: 14px;\n text-align: inherit;\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\", \"-apple-system\", \"BlinkMacSystemFont\";\n}\n\n.e-content p {\n margin: 0 0 10px;\n margin-bottom: 10px;\n}\n\n.e-content h1 {\n font-size: 2.857em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h2 {\n font-size: 2.285em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h3 {\n font-size: 2em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h4 {\n font-size: 1.714em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h5 {\n font-size: 1.428em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h6 {\n font-size: 1.142em;\n font-weight: 600;\n line-height: 1.5;\n margin: 10px 0;\n}\n\n.e-content blockquote {\n margin: 10px 0;\n padding-left: 12px;\n border-left: 2px solid #5c5c5c;\n}\n\n.e-rtl.e-content blockquote {\n padding-left: 0;\n padding-right: 12px;\n}\n\n.e-content pre {\n border: 0;\n border-radius: 0;\n color: #333;\n font-size: inherit;\n line-height: inherit;\n margin: 0 0 10px;\n overflow: visible;\n padding: 0;\n white-space: pre-wrap;\n word-break: inherit;\n word-wrap: break-word;\n}\n\n.e-content code {\n background: #9d9d9d26;\n color: #ed484c;\n}\n\n.e-content strong,\n.e-content b {\n font-weight: bold;\n}\n\n.e-content a {\n text-decoration: none;\n user-select: auto;\n}\n\n.e-content a:hover {\n text-decoration: underline;\n}\n\n.e-content li {\n margin-bottom: 10px;\n}\n\n.e-content li ol,\n.e-content li ul {\n margin-block-start: 10px;\n}\n\n.e-content ul {\n list-style-type: disc;\n}\n\n.e-content ul ul,\n.e-content ol ul {\n list-style-type: circle;\n}\n\n.e-content ul ul ul,\n.e-content ol ul ul,\n.e-content ul ol ul,\n.e-content ol ol ul {\n list-style-type: square;\n}\n\n.e-rte-image,\n.e-rte-video {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-content p:last-child,\n.e-content pre:last-child,\n.e-content blockquote:last-child {\n margin-bottom: 0;\n}\n\n.e-content h3 + h4,\n.e-content h4 + h5,\n.e-content h5 + h6 {\n margin-top: 0.6em;\n}\n\n.e-content ul:last-child {\n margin-bottom: 0;\n}\n\n.e-content table {\n margin-bottom: 10px;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n.e-content table.e-cell-select {\n position: relative;\n}\n\n.e-content table.e-cell-select::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid #4a90e2;\n pointer-events: none;\n}\n\ntable .e-cell-select {\n border: 1px double #4a90e2 !important;\n}\n\n.e-content table.e-rte-table th {\n background-color: #E0E0E0;\n}\n\n.e-rte-table td,\n.e-rte-table th {\n border: 1px solid #BDBDBD;\n height: 20px;\n min-width: 20px;\n padding: 2px 5px;\n box-sizing: border-box;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select,\n.e-rte-table th.e-cell-select.e-multi-cells-select {\n position: relative;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select::after,\n.e-rte-table th.e-cell-select.e-multi-cells-select::after {\n background-color: rgba(13, 110, 253, 0.08);\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n bottom: 0;\n pointer-events: none;\n right: 0;\n}\n\ntable td.e-multi-cells-select ::selection,\ntable th.e-multi-cells-select ::selection {\n background-color: transparent;\n}\n\ntd.e-multi-cells-select,\nth.e-multi-cells-select {\n user-select: none !important;\n}\n\n.e-rte-table.e-dashed-border td,\n.e-rte-table.e-dashed-border th {\n border-style: dashed;\n}\n\n.e-rte-table .e-alternate-border tbody tr:nth-child(2n) {\n background-color: #F5F5F5;\n}\n\n.e-rte-audio {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imginline,\n.e-rte-audio.e-audio-inline,\n.e-rte-video.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n padding: 1px;\n vertical-align: bottom;\n}\n\n.e-rte-image.e-imgcenter,\n.e-rte-video.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imgright,\n.e-rte-video.e-video-right {\n float: right;\n margin: 0 auto;\n margin-left: 5px;\n text-align: right;\n}\n\n.e-rte-image.e-imgleft,\n.e-rte-video.e-video-left {\n float: left;\n margin: 0 auto;\n margin-right: 5px;\n text-align: left;\n}\n\n.e-img-caption {\n display: inline-block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-img-caption.e-caption-inline {\n display: inline-block;\n float: none;\n margin: 5px auto;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n position: relative;\n text-align: center;\n vertical-align: bottom;\n}\n\n.e-rte-img-caption.e-imgcenter {\n display: contents;\n margin-left: auto;\n margin-right: auto;\n}\n\n.e-rte-img-caption.e-imgright {\n display: contents;\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption.e-imgleft {\n display: contents;\n margin-left: 0;\n margin-right: auto;\n}\n\n.e-img-caption.e-rte-img-caption.e-imgbreak {\n display: contents;\n}\n\n.e-img-inner {\n box-sizing: border-box;\n display: block;\n font-size: 16px;\n font-weight: initial;\n margin: auto;\n opacity: .9;\n text-align: center;\n width: 100%;\n}\n\n.e-img-wrap {\n display: inline-block;\n margin: auto;\n padding: 0;\n text-align: center;\n width: 100%;\n}\n\n.e-imgleft,\n.e-video-left {\n float: left;\n margin: 0 5px 0 0;\n text-align: left;\n}\n\n.e-imgright,\n.e-video-right {\n float: right;\n margin: 0 0 0 5px;\n text-align: right;\n}\n\n.e-imgcenter,\n.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-control img:not(.e-resize) {\n border: 2px solid transparent;\n z-index: 1000\n}\n\n.e-imginline,\n.e-audio-inline,\n.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n vertical-align: bottom;\n}\n\n.e-imgbreak,\n.e-audio-break,\n.e-video-break {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-img-focus:not(.e-resize),\n.e-audio-focus:not(.e-resize),\n.e-video-focus:not(.e-resize) {\n border: solid 2px #4a90e2;\n}\n\nimg.e-img-focus::selection,\naudio.e-audio-focus::selection,\n.e-video-focus::selection {\n background: transparent;\n color: transparent;\n}\n\nspan.e-rte-imageboxmark,\nspan.e-rte-videoboxmark {\n width: 10px;\n height: 10px;\n position: absolute;\n display: block;\n background: #4a90e2;\n border: 1px solid #fff;\n z-index: 1000;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-mob-rte span.e-rte-imageboxmark,\n.e-mob-rte span.e-rte-videoboxmark {\n background: #fff;\n border: 1px solid #4a90e2;\n border-radius: 15px;\n height: 20px;\n width: 20px;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-content img.e-resize,\n.e-content video.e-resize {\n z-index: 1000;\n}\n\n.e-img-caption .e-img-inner {\n outline: 0;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-inner {\n float: left;\n text-align: left;\n}\n\n.e-rte-img-caption.e-imgright .e-img-inner {\n float: right;\n text-align: right;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-wrap,\n.e-rte-img-caption.e-imgright .e-img-wrap {\n display: contents;\n}\n\n.e-img-caption a:focus-visible {\n outline: none;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgright {\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgleft {\n margin: 0;\n}\n\nspan.e-table-box {\n cursor: nwse-resize;\n display: block;\n height: 10px;\n position: absolute;\n width: 10px;\n background-color: #ffffff;\n border: 1px solid #BDBDBD;\n}\n\nspan.e-table-box.e-rmob {\n height: 14px;\n width: 14px;\n background-color: #BDBDBD;\n border: 1px solid #BDBDBD;\n}\n\n.e-row-resize,\n.e-column-resize {\n background-color: transparent;\n background-repeat: repeat;\n bottom: 0;\n cursor: col-resize;\n height: 1px;\n overflow: visible;\n position: absolute;\n width: 1px;\n}\n\n.e-row-resize {\n cursor: row-resize;\n height: 1px;\n}\n\n.e-table-rhelper {\n cursor: col-resize;\n opacity: .87;\n position: absolute;\n}\n\n.e-table-rhelper.e-column-helper {\n width: 1px;\n}\n\n.e-table-rhelper.e-row-helper {\n height: 1px;\n}\n\n.e-reicon::before {\n border-bottom: 6px solid transparent;\n border-right: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n position: absolute;\n right: 4px;\n top: 4px;\n width: 20px;\n}\n\n.e-reicon::after {\n border-bottom: 6px solid transparent;\n border-left: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n left: 4px;\n position: absolute;\n top: 4px;\n width: 20px;\n z-index: 3;\n}\n\n.e-row-helper.e-reicon::after {\n top: 10px;\n transform: rotate(90deg);\n}\n\n.e-row-helper.e-reicon::before {\n left: 4px;\n top: -20px;\n transform: rotate(90deg);\n}\n\n\n.e-table-rhelper {\n background-color: #4a90e2;\n}\n\n.e-rtl {\n direction: rtl;\n}\n\n.e-rte-placeholder::before {\n content: attr(placeholder);\n opacity: 0.54;\n overflow: hidden;\n padding-top: 16px;\n position: absolute;\n text-align: start;\n top: 0;\n z-index: 1;\n}\n\n.e-resize-enabled,\n.e-count-enabled {\n padding-bottom: 0px;\n}\n";
|
|
14674
14747
|
|
|
14675
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14676
|
-
var extendStatics = function (d, b) {
|
|
14677
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14678
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14679
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14680
|
-
return extendStatics(d, b);
|
|
14681
|
-
};
|
|
14682
|
-
return function (d, b) {
|
|
14683
|
-
extendStatics(d, b);
|
|
14684
|
-
function __() { this.constructor = d; }
|
|
14685
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14686
|
-
};
|
|
14687
|
-
})();
|
|
14748
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14749
|
+
var extendStatics = function (d, b) {
|
|
14750
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14751
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14752
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14753
|
+
return extendStatics(d, b);
|
|
14754
|
+
};
|
|
14755
|
+
return function (d, b) {
|
|
14756
|
+
extendStatics(d, b);
|
|
14757
|
+
function __() { this.constructor = d; }
|
|
14758
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14759
|
+
};
|
|
14760
|
+
})();
|
|
14688
14761
|
var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>" +
|
|
14689
14762
|
IFRAME_EDITOR_STYLES.replace(/[\n\t]/g, '') + "\n </style>\n </head>\n";
|
|
14690
14763
|
/**
|
|
@@ -14693,7 +14766,7 @@ var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n
|
|
|
14693
14766
|
* @hidden
|
|
14694
14767
|
* @deprecated
|
|
14695
14768
|
*/
|
|
14696
|
-
var IframeContentRender = /** @
|
|
14769
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
14697
14770
|
__extends$1(IframeContentRender, _super);
|
|
14698
14771
|
function IframeContentRender() {
|
|
14699
14772
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14801,7 +14874,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
14801
14874
|
* @hidden
|
|
14802
14875
|
* @deprecated
|
|
14803
14876
|
*/
|
|
14804
|
-
var MarkdownRender = /** @
|
|
14877
|
+
var MarkdownRender = /** @class */ (function () {
|
|
14805
14878
|
/**
|
|
14806
14879
|
* Constructor for content renderer module
|
|
14807
14880
|
*
|
|
@@ -14887,7 +14960,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
14887
14960
|
* @hidden
|
|
14888
14961
|
* @deprecated
|
|
14889
14962
|
*/
|
|
14890
|
-
var PopupRenderer = /** @
|
|
14963
|
+
var PopupRenderer = /** @class */ (function () {
|
|
14891
14964
|
/**
|
|
14892
14965
|
* Constructor for popup renderer module
|
|
14893
14966
|
*
|
|
@@ -14953,29 +15026,29 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14953
15026
|
return PopupRenderer;
|
|
14954
15027
|
}());
|
|
14955
15028
|
|
|
14956
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
14957
|
-
var extendStatics = function (d, b) {
|
|
14958
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14959
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14960
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14961
|
-
return extendStatics(d, b);
|
|
14962
|
-
};
|
|
14963
|
-
return function (d, b) {
|
|
14964
|
-
extendStatics(d, b);
|
|
14965
|
-
function __() { this.constructor = d; }
|
|
14966
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14967
|
-
};
|
|
14968
|
-
})();
|
|
14969
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14970
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14971
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14972
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14973
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14974
|
-
};
|
|
15029
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
15030
|
+
var extendStatics = function (d, b) {
|
|
15031
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15032
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15033
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15034
|
+
return extendStatics(d, b);
|
|
15035
|
+
};
|
|
15036
|
+
return function (d, b) {
|
|
15037
|
+
extendStatics(d, b);
|
|
15038
|
+
function __() { this.constructor = d; }
|
|
15039
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15040
|
+
};
|
|
15041
|
+
})();
|
|
15042
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15043
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15044
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15045
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15046
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15047
|
+
};
|
|
14975
15048
|
/**
|
|
14976
15049
|
* Configures the slash menu settings of the RichTextEditor.
|
|
14977
15050
|
*/
|
|
14978
|
-
var SlashMenuSettings = /** @
|
|
15051
|
+
var SlashMenuSettings = /** @class */ (function (_super) {
|
|
14979
15052
|
__extends$2(SlashMenuSettings, _super);
|
|
14980
15053
|
function SlashMenuSettings() {
|
|
14981
15054
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -15095,7 +15168,7 @@ var injectibleSlashMenuDataModel = [
|
|
|
15095
15168
|
}
|
|
15096
15169
|
];
|
|
15097
15170
|
|
|
15098
|
-
var SlashMenu = /** @
|
|
15171
|
+
var SlashMenu = /** @class */ (function () {
|
|
15099
15172
|
function SlashMenu(options, serviceLocator) {
|
|
15100
15173
|
this.parent = options;
|
|
15101
15174
|
this.currentDocument = this.parent.element.ownerDocument;
|
|
@@ -15241,6 +15314,15 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
|
|
|
15241
15314
|
break;
|
|
15242
15315
|
}
|
|
15243
15316
|
}
|
|
15317
|
+
else {
|
|
15318
|
+
if (_this.parent.inputElement.classList.contains('e-mention')) {
|
|
15319
|
+
var slashMenuPopup = _this.parent.inputElement.ownerDocument.getElementById(_this.parent.inputElement.id + '_slash_menu_popup');
|
|
15320
|
+
var isSlashMenuPopupOpen = slashMenuPopup && slashMenuPopup.classList.contains('e-popup-open');
|
|
15321
|
+
if (isSlashMenuPopupOpen) {
|
|
15322
|
+
_this.mention.hidePopup();
|
|
15323
|
+
}
|
|
15324
|
+
}
|
|
15325
|
+
}
|
|
15244
15326
|
}
|
|
15245
15327
|
});
|
|
15246
15328
|
};
|
|
@@ -15296,7 +15378,7 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
|
|
|
15296
15378
|
/**
|
|
15297
15379
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
15298
15380
|
*/
|
|
15299
|
-
var BaseToolbar = /** @
|
|
15381
|
+
var BaseToolbar = /** @class */ (function () {
|
|
15300
15382
|
function BaseToolbar(parent, serviceLocator) {
|
|
15301
15383
|
this.tools = {};
|
|
15302
15384
|
this.parent = parent;
|
|
@@ -15526,7 +15608,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
15526
15608
|
/**
|
|
15527
15609
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
15528
15610
|
*/
|
|
15529
|
-
var DropDownButtons = /** @
|
|
15611
|
+
var DropDownButtons = /** @class */ (function () {
|
|
15530
15612
|
function DropDownButtons(parent, serviceLocator) {
|
|
15531
15613
|
this.parent = parent;
|
|
15532
15614
|
this.locator = serviceLocator;
|
|
@@ -16061,7 +16143,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
16061
16143
|
/**
|
|
16062
16144
|
* `ToolbarAction` module is used to toolbar click action
|
|
16063
16145
|
*/
|
|
16064
|
-
var ToolbarAction = /** @
|
|
16146
|
+
var ToolbarAction = /** @class */ (function () {
|
|
16065
16147
|
function ToolbarAction(parent) {
|
|
16066
16148
|
this.parent = parent;
|
|
16067
16149
|
this.addEventListener();
|
|
@@ -16133,7 +16215,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
16133
16215
|
/**
|
|
16134
16216
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
16135
16217
|
*/
|
|
16136
|
-
var ColorPickerInput = /** @
|
|
16218
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
16137
16219
|
function ColorPickerInput(parent, serviceLocator) {
|
|
16138
16220
|
this.tools = {};
|
|
16139
16221
|
this.parent = parent;
|
|
@@ -16388,7 +16470,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
16388
16470
|
/**
|
|
16389
16471
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
16390
16472
|
*/
|
|
16391
|
-
var Toolbar = /** @
|
|
16473
|
+
var Toolbar = /** @class */ (function () {
|
|
16392
16474
|
function Toolbar(parent, serviceLocator) {
|
|
16393
16475
|
this.tools = {};
|
|
16394
16476
|
this.parent = parent;
|
|
@@ -17003,7 +17085,7 @@ var Toolbar = /** @__PURE__ @class */ (function () {
|
|
|
17003
17085
|
/**
|
|
17004
17086
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
17005
17087
|
*/
|
|
17006
|
-
var BaseQuickToolbar = /** @
|
|
17088
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
17007
17089
|
function BaseQuickToolbar(parent, locator) {
|
|
17008
17090
|
this.parent = parent;
|
|
17009
17091
|
this.locator = locator;
|
|
@@ -17507,7 +17589,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
17507
17589
|
/**
|
|
17508
17590
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
17509
17591
|
*/
|
|
17510
|
-
var QuickToolbar = /** @
|
|
17592
|
+
var QuickToolbar = /** @class */ (function () {
|
|
17511
17593
|
function QuickToolbar(parent, locator) {
|
|
17512
17594
|
this.debounceTimeout = 1000;
|
|
17513
17595
|
this.parent = parent;
|
|
@@ -18119,7 +18201,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
18119
18201
|
/**
|
|
18120
18202
|
* `Count` module is used to handle Count actions.
|
|
18121
18203
|
*/
|
|
18122
|
-
var Count = /** @
|
|
18204
|
+
var Count = /** @class */ (function () {
|
|
18123
18205
|
function Count(parent, serviceLocator) {
|
|
18124
18206
|
this.parent = parent;
|
|
18125
18207
|
this.locator = serviceLocator;
|
|
@@ -18263,7 +18345,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
18263
18345
|
* @hidden
|
|
18264
18346
|
* @deprecated
|
|
18265
18347
|
*/
|
|
18266
|
-
var MarkdownSelection = /** @
|
|
18348
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
18267
18349
|
function MarkdownSelection() {
|
|
18268
18350
|
}
|
|
18269
18351
|
/**
|
|
@@ -18478,7 +18560,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
|
|
|
18478
18560
|
/**
|
|
18479
18561
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
18480
18562
|
*/
|
|
18481
|
-
var MarkdownToolbarStatus = /** @
|
|
18563
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
18482
18564
|
function MarkdownToolbarStatus(parent) {
|
|
18483
18565
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
18484
18566
|
this.selection = new MarkdownSelection();
|
|
@@ -18601,7 +18683,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
18601
18683
|
/**
|
|
18602
18684
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
18603
18685
|
*/
|
|
18604
|
-
var ExecCommandCallBack = /** @
|
|
18686
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
18605
18687
|
function ExecCommandCallBack(parent) {
|
|
18606
18688
|
this.parent = parent;
|
|
18607
18689
|
this.addEventListener();
|
|
@@ -18631,7 +18713,7 @@ var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
|
|
|
18631
18713
|
* @hidden
|
|
18632
18714
|
* @deprecated
|
|
18633
18715
|
*/
|
|
18634
|
-
var Formatter = /** @
|
|
18716
|
+
var Formatter = /** @class */ (function () {
|
|
18635
18717
|
function Formatter() {
|
|
18636
18718
|
}
|
|
18637
18719
|
/**
|
|
@@ -18946,7 +19028,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
|
|
|
18946
19028
|
*
|
|
18947
19029
|
* @hidden
|
|
18948
19030
|
*/
|
|
18949
|
-
var MDLists = /** @
|
|
19031
|
+
var MDLists = /** @class */ (function () {
|
|
18950
19032
|
/**
|
|
18951
19033
|
* Constructor for creating the Lists plugin
|
|
18952
19034
|
*
|
|
@@ -19426,7 +19508,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
19426
19508
|
* @hidden
|
|
19427
19509
|
* @deprecated
|
|
19428
19510
|
*/
|
|
19429
|
-
var MDFormats = /** @
|
|
19511
|
+
var MDFormats = /** @class */ (function () {
|
|
19430
19512
|
/**
|
|
19431
19513
|
* Constructor for creating the Formats plugin
|
|
19432
19514
|
*
|
|
@@ -19661,7 +19743,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
19661
19743
|
* @hidden
|
|
19662
19744
|
* @deprecated
|
|
19663
19745
|
*/
|
|
19664
|
-
var MDSelectionFormats = /** @
|
|
19746
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
19665
19747
|
function MDSelectionFormats(parent) {
|
|
19666
19748
|
extend(this, this, parent, true);
|
|
19667
19749
|
this.selection = this.parent.markdownSelection;
|
|
@@ -19998,7 +20080,7 @@ var MDSelectionFormats = /** @__PURE__ @class */ (function () {
|
|
|
19998
20080
|
/**
|
|
19999
20081
|
* `Undo` module is used to handle undo actions.
|
|
20000
20082
|
*/
|
|
20001
|
-
var UndoRedoCommands = /** @
|
|
20083
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
20002
20084
|
function UndoRedoCommands(parent, options) {
|
|
20003
20085
|
this.undoRedoStack = [];
|
|
20004
20086
|
this.parent = parent;
|
|
@@ -20195,7 +20277,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
20195
20277
|
* @hidden
|
|
20196
20278
|
* @deprecated
|
|
20197
20279
|
*/
|
|
20198
|
-
var MDLink = /** @
|
|
20280
|
+
var MDLink = /** @class */ (function () {
|
|
20199
20281
|
/**
|
|
20200
20282
|
* Constructor for creating the Formats plugin
|
|
20201
20283
|
*
|
|
@@ -20254,7 +20336,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
20254
20336
|
* @hidden
|
|
20255
20337
|
* @deprecated
|
|
20256
20338
|
*/
|
|
20257
|
-
var MDTable = /** @
|
|
20339
|
+
var MDTable = /** @class */ (function () {
|
|
20258
20340
|
/**
|
|
20259
20341
|
* Constructor for creating the Formats plugin
|
|
20260
20342
|
*
|
|
@@ -20484,7 +20566,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
20484
20566
|
* @hidden
|
|
20485
20567
|
* @deprecated
|
|
20486
20568
|
*/
|
|
20487
|
-
var ClearFormat = /** @
|
|
20569
|
+
var ClearFormat = /** @class */ (function () {
|
|
20488
20570
|
/**
|
|
20489
20571
|
* Constructor for creating the clear format plugin
|
|
20490
20572
|
*
|
|
@@ -20608,7 +20690,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
20608
20690
|
* @hidden
|
|
20609
20691
|
* @deprecated
|
|
20610
20692
|
*/
|
|
20611
|
-
var MDInsertText = /** @
|
|
20693
|
+
var MDInsertText = /** @class */ (function () {
|
|
20612
20694
|
/**
|
|
20613
20695
|
* Constructor for creating the insert text plugin
|
|
20614
20696
|
*
|
|
@@ -20666,7 +20748,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
|
|
|
20666
20748
|
* @hidden
|
|
20667
20749
|
* @deprecated
|
|
20668
20750
|
*/
|
|
20669
|
-
var MarkdownParser = /** @
|
|
20751
|
+
var MarkdownParser = /** @class */ (function () {
|
|
20670
20752
|
/**
|
|
20671
20753
|
* Constructor for creating the component
|
|
20672
20754
|
*
|
|
@@ -20771,26 +20853,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
20771
20853
|
return MarkdownParser;
|
|
20772
20854
|
}());
|
|
20773
20855
|
|
|
20774
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
20775
|
-
var extendStatics = function (d, b) {
|
|
20776
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20777
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20778
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20779
|
-
return extendStatics(d, b);
|
|
20780
|
-
};
|
|
20781
|
-
return function (d, b) {
|
|
20782
|
-
extendStatics(d, b);
|
|
20783
|
-
function __() { this.constructor = d; }
|
|
20784
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20785
|
-
};
|
|
20786
|
-
})();
|
|
20856
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
20857
|
+
var extendStatics = function (d, b) {
|
|
20858
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20859
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20860
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20861
|
+
return extendStatics(d, b);
|
|
20862
|
+
};
|
|
20863
|
+
return function (d, b) {
|
|
20864
|
+
extendStatics(d, b);
|
|
20865
|
+
function __() { this.constructor = d; }
|
|
20866
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20867
|
+
};
|
|
20868
|
+
})();
|
|
20787
20869
|
/**
|
|
20788
20870
|
* Markdown adapter
|
|
20789
20871
|
*
|
|
20790
20872
|
* @hidden
|
|
20791
20873
|
* @deprecated
|
|
20792
20874
|
*/
|
|
20793
|
-
var MarkdownFormatter = /** @
|
|
20875
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
20794
20876
|
__extends$3(MarkdownFormatter, _super);
|
|
20795
20877
|
function MarkdownFormatter(options) {
|
|
20796
20878
|
var _this = _super.call(this) || this;
|
|
@@ -20834,7 +20916,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
20834
20916
|
/**
|
|
20835
20917
|
* `MarkdownEditor` module is used to markdown editor
|
|
20836
20918
|
*/
|
|
20837
|
-
var MarkdownEditor = /** @
|
|
20919
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
20838
20920
|
function MarkdownEditor(parent, serviceLocator) {
|
|
20839
20921
|
this.parent = parent;
|
|
20840
20922
|
this.locator = serviceLocator;
|
|
@@ -21011,7 +21093,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
21011
21093
|
/**
|
|
21012
21094
|
* Utilities to handle the table cell selection
|
|
21013
21095
|
*/
|
|
21014
|
-
var TableSelection = /** @
|
|
21096
|
+
var TableSelection = /** @class */ (function () {
|
|
21015
21097
|
function TableSelection(root, currentDocument) {
|
|
21016
21098
|
this.BLOCK_TAGS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'li', 'pre', 'td', 'th', 'div', 'hr', 'section', 'figure'];
|
|
21017
21099
|
this.BASIC_FORMATS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
|
|
@@ -21246,7 +21328,7 @@ var markerClassName = {
|
|
|
21246
21328
|
* @hidden
|
|
21247
21329
|
* @deprecated
|
|
21248
21330
|
*/
|
|
21249
|
-
var DOMNode = /** @
|
|
21331
|
+
var DOMNode = /** @class */ (function () {
|
|
21250
21332
|
/**
|
|
21251
21333
|
* Constructor for creating the DOMNode plugin
|
|
21252
21334
|
*
|
|
@@ -22272,7 +22354,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
22272
22354
|
* @hidden
|
|
22273
22355
|
* @deprecated
|
|
22274
22356
|
*/
|
|
22275
|
-
var Lists = /** @
|
|
22357
|
+
var Lists = /** @class */ (function () {
|
|
22276
22358
|
/**
|
|
22277
22359
|
* Constructor for creating the Lists plugin
|
|
22278
22360
|
*
|
|
@@ -23278,7 +23360,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
23278
23360
|
*
|
|
23279
23361
|
* @hidden
|
|
23280
23362
|
*/
|
|
23281
|
-
var InsertMethods = /** @
|
|
23363
|
+
var InsertMethods = /** @class */ (function () {
|
|
23282
23364
|
function InsertMethods() {
|
|
23283
23365
|
}
|
|
23284
23366
|
/**
|
|
@@ -23355,7 +23437,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
23355
23437
|
* @hidden
|
|
23356
23438
|
* @deprecated
|
|
23357
23439
|
*/
|
|
23358
|
-
var NodeCutter = /** @
|
|
23440
|
+
var NodeCutter = /** @class */ (function () {
|
|
23359
23441
|
function NodeCutter() {
|
|
23360
23442
|
this.enterAction = 'P';
|
|
23361
23443
|
this.position = -1;
|
|
@@ -23398,7 +23480,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23398
23480
|
fragment = this.spliceEmptyNode(fragment, false);
|
|
23399
23481
|
if (fragment && fragment.childNodes.length > 0) {
|
|
23400
23482
|
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' && !(fragment.querySelectorAll('img').length > 0)
|
|
23401
|
-
&& this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
|
|
23483
|
+
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent !== ' ' && fragment.textContent.charCodeAt(0) !== 160) ? true : false;
|
|
23402
23484
|
if (!isEmpty) {
|
|
23403
23485
|
if (node) {
|
|
23404
23486
|
InsertMethods.AppendBefore(fragment, node);
|
|
@@ -23419,7 +23501,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23419
23501
|
fragment = this.spliceEmptyNode(fragment, true);
|
|
23420
23502
|
if (fragment && fragment.childNodes.length > 0) {
|
|
23421
23503
|
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG'
|
|
23422
|
-
&& this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
|
|
23504
|
+
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent !== ' ' && fragment.textContent.charCodeAt(0) !== 160) ? true : false;
|
|
23423
23505
|
if (!isEmpty) {
|
|
23424
23506
|
if (node) {
|
|
23425
23507
|
InsertMethods.AppendBefore(fragment, node, true);
|
|
@@ -23567,7 +23649,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23567
23649
|
* @hidden
|
|
23568
23650
|
* @deprecated
|
|
23569
23651
|
*/
|
|
23570
|
-
var Formats = /** @
|
|
23652
|
+
var Formats = /** @class */ (function () {
|
|
23571
23653
|
/**
|
|
23572
23654
|
* Constructor for creating the Formats plugin
|
|
23573
23655
|
*
|
|
@@ -23819,6 +23901,14 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
23819
23901
|
};
|
|
23820
23902
|
Formats.prototype.applyFormats = function (e) {
|
|
23821
23903
|
var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
|
|
23904
|
+
var tableCursor = this.parent.nodeSelection.processedTableImageCursor(range);
|
|
23905
|
+
if (tableCursor.start || tableCursor.end) {
|
|
23906
|
+
if (tableCursor.startName === 'TABLE' || tableCursor.endName === 'TABLE') {
|
|
23907
|
+
var tableNode = tableCursor.start ? tableCursor.startNode : tableCursor.endNode;
|
|
23908
|
+
this.applyTableSidesFormat(e, tableCursor.start, tableNode);
|
|
23909
|
+
return;
|
|
23910
|
+
}
|
|
23911
|
+
}
|
|
23822
23912
|
var isSelectAll = false;
|
|
23823
23913
|
if (this.parent.editableElement === range.endContainer &&
|
|
23824
23914
|
!isNullOrUndefined(this.parent.editableElement.children[range.endOffset - 1]) &&
|
|
@@ -24067,6 +24157,23 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
24067
24157
|
element.style.removeProperty(ignoreAttr[i]);
|
|
24068
24158
|
}
|
|
24069
24159
|
};
|
|
24160
|
+
Formats.prototype.applyTableSidesFormat = function (e, start, table) {
|
|
24161
|
+
var formatNode = createElement(e.subCommand);
|
|
24162
|
+
if (!(e.enterAction === 'BR')) {
|
|
24163
|
+
formatNode.appendChild(createElement('br'));
|
|
24164
|
+
}
|
|
24165
|
+
table.insertAdjacentElement(start ? 'beforebegin' : 'afterend', formatNode);
|
|
24166
|
+
this.parent.nodeSelection.setCursorPoint(this.parent.currentDocument, formatNode, 0);
|
|
24167
|
+
if (e.callBack) {
|
|
24168
|
+
e.callBack({
|
|
24169
|
+
requestType: e.subCommand,
|
|
24170
|
+
editorMode: 'HTML',
|
|
24171
|
+
event: e.event,
|
|
24172
|
+
range: this.parent.nodeSelection.getRange(this.parent.currentDocument),
|
|
24173
|
+
elements: this.parent.domNode.blockNodes()
|
|
24174
|
+
});
|
|
24175
|
+
}
|
|
24176
|
+
};
|
|
24070
24177
|
Formats.prototype.destroy = function () {
|
|
24071
24178
|
this.removeEventListener();
|
|
24072
24179
|
};
|
|
@@ -24079,7 +24186,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
24079
24186
|
* @hidden
|
|
24080
24187
|
* @deprecated
|
|
24081
24188
|
*/
|
|
24082
|
-
var InsertHtml = /** @
|
|
24189
|
+
var InsertHtml = /** @class */ (function () {
|
|
24083
24190
|
function InsertHtml() {
|
|
24084
24191
|
}
|
|
24085
24192
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
|
|
@@ -24176,7 +24283,12 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24176
24283
|
}
|
|
24177
24284
|
}
|
|
24178
24285
|
if (!isNullOrUndefined(sibNode) && !isNullOrUndefined(sibNode.parentNode)) {
|
|
24179
|
-
|
|
24286
|
+
if (docElement.contains(sibNode)) {
|
|
24287
|
+
InsertMethods.AppendBefore(node, sibNode, true);
|
|
24288
|
+
}
|
|
24289
|
+
else {
|
|
24290
|
+
range.insertNode(node);
|
|
24291
|
+
}
|
|
24180
24292
|
}
|
|
24181
24293
|
else {
|
|
24182
24294
|
var previousNode = null;
|
|
@@ -24464,26 +24576,99 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24464
24576
|
this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction);
|
|
24465
24577
|
}
|
|
24466
24578
|
this.alignCheck(editNode);
|
|
24467
|
-
|
|
24468
|
-
this.listCleanUp(currentRange);
|
|
24579
|
+
this.listCleanUp(nodeSelection, docElement);
|
|
24469
24580
|
};
|
|
24470
|
-
InsertHtml.listCleanUp = function (
|
|
24581
|
+
InsertHtml.listCleanUp = function (nodeSelection, docElement) {
|
|
24582
|
+
var range = nodeSelection.getRange(docElement);
|
|
24583
|
+
var startContainer = range.startContainer;
|
|
24584
|
+
var startOffset = range.startOffset;
|
|
24471
24585
|
if (range.startContainer.parentElement.closest('ol,ul') !== null && range.endContainer.parentElement.closest('ol,ul') !== null) {
|
|
24472
|
-
var
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24586
|
+
var haslistCleanUp = this.cleanUpListItems(range.startContainer.parentElement.closest('ol,ul'));
|
|
24587
|
+
var haslistContainerCleanUp = this.cleanUpListContainer(range.startContainer.parentElement.closest('ol,ul'));
|
|
24588
|
+
if (haslistCleanUp || haslistContainerCleanUp) {
|
|
24589
|
+
range.setStart(startContainer, startOffset);
|
|
24590
|
+
range.setEnd(startContainer, startOffset);
|
|
24591
|
+
}
|
|
24592
|
+
}
|
|
24593
|
+
};
|
|
24594
|
+
InsertHtml.cleanUpListItems = function (parentContainer) {
|
|
24595
|
+
var _this = this;
|
|
24596
|
+
var hasListCleanUp = false;
|
|
24597
|
+
var listItems = parentContainer.closest('ol, ul').querySelectorAll('li');
|
|
24598
|
+
if (listItems.length === 0) {
|
|
24599
|
+
return false;
|
|
24600
|
+
}
|
|
24601
|
+
var nearestListItem = null;
|
|
24602
|
+
listItems.forEach(function (listItem) {
|
|
24603
|
+
if (!isNullOrUndefined(listItem.firstChild) && (listItem.firstChild.nodeName === 'OL' || listItem.firstChild.nodeName === 'UL')) {
|
|
24604
|
+
listItem.style.listStyleType = 'none';
|
|
24605
|
+
}
|
|
24606
|
+
var parentElement = listItem.parentElement;
|
|
24607
|
+
if (!isNullOrUndefined(parentElement) && parentElement.nodeName !== 'OL' && parentElement.nodeName !== 'UL') {
|
|
24608
|
+
if (isNullOrUndefined(nearestListItem)) {
|
|
24609
|
+
nearestListItem = parentElement.closest('li');
|
|
24610
|
+
}
|
|
24611
|
+
if (!isNullOrUndefined(nearestListItem)) {
|
|
24612
|
+
var nextSibling = listItem.nextSibling;
|
|
24613
|
+
if (!isNullOrUndefined(nextSibling) && nextSibling.nodeName !== 'LI') {
|
|
24614
|
+
var startIndex = Array.prototype.indexOf.call(parentElement.childNodes, nextSibling);
|
|
24615
|
+
var clonedParent = parentElement.cloneNode(false);
|
|
24616
|
+
var totalChildren = parentElement.childNodes.length;
|
|
24617
|
+
for (var i = startIndex; i < totalChildren; i++) {
|
|
24618
|
+
clonedParent.appendChild(parentElement.childNodes[startIndex]);
|
|
24619
|
+
}
|
|
24620
|
+
if (clonedParent.childNodes.length > 0) {
|
|
24621
|
+
var newListItem = document.createElement('li');
|
|
24622
|
+
newListItem.appendChild(clonedParent);
|
|
24623
|
+
nearestListItem.insertAdjacentElement('afterend', newListItem);
|
|
24624
|
+
}
|
|
24625
|
+
else {
|
|
24626
|
+
clonedParent.remove();
|
|
24627
|
+
}
|
|
24483
24628
|
}
|
|
24484
|
-
|
|
24629
|
+
var closestList = parentElement.closest('ol, ul');
|
|
24630
|
+
nearestListItem.insertAdjacentElement('afterend', listItem);
|
|
24631
|
+
nearestListItem = nearestListItem.nextSibling;
|
|
24632
|
+
_this.removeEmptyElements(closestList);
|
|
24633
|
+
hasListCleanUp = true;
|
|
24634
|
+
}
|
|
24635
|
+
}
|
|
24636
|
+
var nestedLi = Array.from(listItem.children).find(function (child) {
|
|
24637
|
+
return child.tagName === 'LI' && (child.parentElement && child.parentElement.tagName !== 'OL' && child.parentElement.tagName !== 'UL');
|
|
24638
|
+
});
|
|
24639
|
+
if (nestedLi && listItem.parentNode) {
|
|
24640
|
+
listItem.parentNode.replaceChild(nestedLi, listItem);
|
|
24641
|
+
hasListCleanUp = true;
|
|
24485
24642
|
}
|
|
24643
|
+
});
|
|
24644
|
+
return hasListCleanUp;
|
|
24645
|
+
};
|
|
24646
|
+
InsertHtml.cleanUpListContainer = function (parentList) {
|
|
24647
|
+
var hasListContainerCleanUp = false;
|
|
24648
|
+
var nonLiElementCollection = [];
|
|
24649
|
+
var replacements = [];
|
|
24650
|
+
if (!isNullOrUndefined(parentList)) {
|
|
24651
|
+
parentList.childNodes.forEach(function (childNode) {
|
|
24652
|
+
if (childNode.nodeName.toLocaleUpperCase() !== 'LI') {
|
|
24653
|
+
nonLiElementCollection.push(childNode);
|
|
24654
|
+
}
|
|
24655
|
+
if ((childNode.nodeName.toLocaleUpperCase() === 'LI' || parentList.lastChild === childNode) && nonLiElementCollection.length > 0) {
|
|
24656
|
+
replacements.push({ elements: nonLiElementCollection.slice() });
|
|
24657
|
+
nonLiElementCollection = [];
|
|
24658
|
+
}
|
|
24659
|
+
});
|
|
24660
|
+
replacements.forEach(function (_a) {
|
|
24661
|
+
var elements = _a.elements;
|
|
24662
|
+
var newListItem = document.createElement('li');
|
|
24663
|
+
elements[0].parentNode.replaceChild(newListItem, elements[0]);
|
|
24664
|
+
elements.forEach(function (child) { return newListItem.appendChild(child); });
|
|
24665
|
+
if (newListItem.textContent && newListItem.textContent.trim() === '') {
|
|
24666
|
+
parentList.removeChild(newListItem);
|
|
24667
|
+
}
|
|
24668
|
+
hasListContainerCleanUp = true;
|
|
24669
|
+
});
|
|
24486
24670
|
}
|
|
24671
|
+
return hasListContainerCleanUp;
|
|
24487
24672
|
};
|
|
24488
24673
|
InsertHtml.placeCursorEnd = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
|
|
24489
24674
|
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? (isNullOrUndefined(lastSelectionNode.previousSibling) ? lastSelectionNode.parentNode
|
|
@@ -24699,7 +24884,8 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24699
24884
|
while (el && el.nodeType === 1) {
|
|
24700
24885
|
if (el.parentNode === editNode ||
|
|
24701
24886
|
(!isNullOrUndefined(el.parentNode.tagName) &&
|
|
24702
|
-
IGNORE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1
|
|
24887
|
+
(IGNORE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1
|
|
24888
|
+
|| ALLOWED_TABLE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1))) {
|
|
24703
24889
|
return el;
|
|
24704
24890
|
}
|
|
24705
24891
|
el = el.parentNode;
|
|
@@ -24784,7 +24970,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24784
24970
|
* @hidden
|
|
24785
24971
|
* @deprecated
|
|
24786
24972
|
*/
|
|
24787
|
-
var LinkCommand = /** @
|
|
24973
|
+
var LinkCommand = /** @class */ (function () {
|
|
24788
24974
|
/**
|
|
24789
24975
|
* Constructor for creating the Formats plugin
|
|
24790
24976
|
*
|
|
@@ -25109,7 +25295,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
25109
25295
|
* @hidden
|
|
25110
25296
|
* @deprecated
|
|
25111
25297
|
*/
|
|
25112
|
-
var Alignments = /** @
|
|
25298
|
+
var Alignments = /** @class */ (function () {
|
|
25113
25299
|
/**
|
|
25114
25300
|
* Constructor for creating the Formats plugin
|
|
25115
25301
|
*
|
|
@@ -25224,7 +25410,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
25224
25410
|
* @hidden
|
|
25225
25411
|
* @deprecated
|
|
25226
25412
|
*/
|
|
25227
|
-
var Indents = /** @
|
|
25413
|
+
var Indents = /** @class */ (function () {
|
|
25228
25414
|
/**
|
|
25229
25415
|
* Constructor for creating the Formats plugin
|
|
25230
25416
|
*
|
|
@@ -25371,7 +25557,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
|
|
|
25371
25557
|
* @hidden
|
|
25372
25558
|
* @deprecated
|
|
25373
25559
|
*/
|
|
25374
|
-
var ImageCommand = /** @
|
|
25560
|
+
var ImageCommand = /** @class */ (function () {
|
|
25375
25561
|
/**
|
|
25376
25562
|
* Constructor for creating the Formats plugin
|
|
25377
25563
|
*
|
|
@@ -25481,8 +25667,14 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25481
25667
|
(Browser.isIE ? selectedNode.previousSibling : selectedNode.previousElementSibling);
|
|
25482
25668
|
var onImageLoadEvent_1 = function () {
|
|
25483
25669
|
if (!isNullOrUndefined(_this.parent.currentDocument)) {
|
|
25484
|
-
imgElm_1.
|
|
25485
|
-
imgElm_1.
|
|
25670
|
+
var imgWidth = imgElm_1.getAttribute('width');
|
|
25671
|
+
var imgHeight = imgElm_1.getAttribute('height');
|
|
25672
|
+
if (isNullOrUndefined(imgWidth) || imgWidth === 'auto') {
|
|
25673
|
+
imgElm_1.setAttribute('width', imgElm_1.offsetWidth.toString());
|
|
25674
|
+
}
|
|
25675
|
+
if (isNullOrUndefined(imgHeight) || imgHeight === 'auto') {
|
|
25676
|
+
imgElm_1.setAttribute('height', imgElm_1.offsetHeight.toString());
|
|
25677
|
+
}
|
|
25486
25678
|
e.callBack({
|
|
25487
25679
|
requestType: (e.value === 'Replace') ? (e.item.subCommand = 'Replace', 'Replace') : 'Images',
|
|
25488
25680
|
editorMode: 'HTML',
|
|
@@ -25770,7 +25962,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25770
25962
|
* @hidden
|
|
25771
25963
|
* @deprecated
|
|
25772
25964
|
*/
|
|
25773
|
-
var AudioCommand = /** @
|
|
25965
|
+
var AudioCommand = /** @class */ (function () {
|
|
25774
25966
|
/**
|
|
25775
25967
|
* Constructor for creating the Audio plugin
|
|
25776
25968
|
*
|
|
@@ -25919,7 +26111,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
|
|
|
25919
26111
|
* @hidden
|
|
25920
26112
|
* @deprecated
|
|
25921
26113
|
*/
|
|
25922
|
-
var VideoCommand = /** @
|
|
26114
|
+
var VideoCommand = /** @class */ (function () {
|
|
25923
26115
|
/**
|
|
25924
26116
|
* Constructor for creating the Video plugin
|
|
25925
26117
|
*
|
|
@@ -26225,7 +26417,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
|
|
|
26225
26417
|
* @hidden
|
|
26226
26418
|
* @deprecated
|
|
26227
26419
|
*/
|
|
26228
|
-
var TableCommand = /** @
|
|
26420
|
+
var TableCommand = /** @class */ (function () {
|
|
26229
26421
|
/**
|
|
26230
26422
|
* Constructor for creating the Formats plugin
|
|
26231
26423
|
*
|
|
@@ -27282,7 +27474,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
27282
27474
|
};
|
|
27283
27475
|
return TableCommand;
|
|
27284
27476
|
}());
|
|
27285
|
-
var MinMax = /** @
|
|
27477
|
+
var MinMax = /** @class */ (function () {
|
|
27286
27478
|
function MinMax() {
|
|
27287
27479
|
}
|
|
27288
27480
|
return MinMax;
|
|
@@ -27291,7 +27483,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
27291
27483
|
/**
|
|
27292
27484
|
* `Selection` module is used to handle RTE Selections.
|
|
27293
27485
|
*/
|
|
27294
|
-
var SelectionCommands = /** @
|
|
27486
|
+
var SelectionCommands = /** @class */ (function () {
|
|
27295
27487
|
function SelectionCommands() {
|
|
27296
27488
|
}
|
|
27297
27489
|
/**
|
|
@@ -28308,7 +28500,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
28308
28500
|
* @hidden
|
|
28309
28501
|
* @deprecated
|
|
28310
28502
|
*/
|
|
28311
|
-
var SelectionBasedExec = /** @
|
|
28503
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
28312
28504
|
/**
|
|
28313
28505
|
* Constructor for creating the Formats plugin
|
|
28314
28506
|
*
|
|
@@ -28366,7 +28558,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
28366
28558
|
* @hidden
|
|
28367
28559
|
* @deprecated
|
|
28368
28560
|
*/
|
|
28369
|
-
var InsertHtmlExec = /** @
|
|
28561
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
28370
28562
|
/**
|
|
28371
28563
|
* Constructor for creating the Formats plugin
|
|
28372
28564
|
*
|
|
@@ -28421,7 +28613,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
28421
28613
|
/**
|
|
28422
28614
|
* `Clear Format` module is used to handle Clear Format.
|
|
28423
28615
|
*/
|
|
28424
|
-
var ClearFormat$1 = /** @
|
|
28616
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
28425
28617
|
function ClearFormat() {
|
|
28426
28618
|
}
|
|
28427
28619
|
/**
|
|
@@ -28683,7 +28875,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
28683
28875
|
* @hidden
|
|
28684
28876
|
* @deprecated
|
|
28685
28877
|
*/
|
|
28686
|
-
var ClearFormatExec = /** @
|
|
28878
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
28687
28879
|
/**
|
|
28688
28880
|
* Constructor for creating the Formats plugin
|
|
28689
28881
|
*
|
|
@@ -28737,7 +28929,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
28737
28929
|
/**
|
|
28738
28930
|
* `Undo` module is used to handle undo actions.
|
|
28739
28931
|
*/
|
|
28740
|
-
var UndoRedoManager = /** @
|
|
28932
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
28741
28933
|
function UndoRedoManager(parent, options) {
|
|
28742
28934
|
this.undoRedoStack = [];
|
|
28743
28935
|
this.parent = parent;
|
|
@@ -29003,7 +29195,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
29003
29195
|
* @hidden
|
|
29004
29196
|
* @deprecated
|
|
29005
29197
|
*/
|
|
29006
|
-
var MsWordPaste = /** @
|
|
29198
|
+
var MsWordPaste = /** @class */ (function () {
|
|
29007
29199
|
function MsWordPaste(parent) {
|
|
29008
29200
|
this.olData = [
|
|
29009
29201
|
'decimal',
|
|
@@ -29095,6 +29287,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29095
29287
|
e.callBack(elm.innerHTML, this.cropImageDimensions, source);
|
|
29096
29288
|
}
|
|
29097
29289
|
else {
|
|
29290
|
+
if (source === PASTE_SOURCE[2]) {
|
|
29291
|
+
this.handleOneNoteContent(elm);
|
|
29292
|
+
}
|
|
29098
29293
|
e.callBack(elm.innerHTML, null, source);
|
|
29099
29294
|
}
|
|
29100
29295
|
};
|
|
@@ -30089,6 +30284,18 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30089
30284
|
}
|
|
30090
30285
|
return 'html';
|
|
30091
30286
|
};
|
|
30287
|
+
MsWordPaste.prototype.handleOneNoteContent = function (element) {
|
|
30288
|
+
var allListElements = element.querySelectorAll('ul, ol');
|
|
30289
|
+
if (allListElements.length > 0) {
|
|
30290
|
+
for (var i = 0; i < allListElements.length; i++) {
|
|
30291
|
+
// Removing the ul and ol parent node for the p tag
|
|
30292
|
+
var currentList = allListElements[i];
|
|
30293
|
+
if (currentList.querySelectorAll('li').length === 0 && currentList.childNodes.length > 0) {
|
|
30294
|
+
InsertMethods.unwrap(currentList);
|
|
30295
|
+
}
|
|
30296
|
+
}
|
|
30297
|
+
}
|
|
30298
|
+
};
|
|
30092
30299
|
MsWordPaste.prototype.destroy = function () {
|
|
30093
30300
|
this.removeEventListener();
|
|
30094
30301
|
};
|
|
@@ -30101,7 +30308,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30101
30308
|
* @hidden
|
|
30102
30309
|
* @deprecated
|
|
30103
30310
|
*/
|
|
30104
|
-
var InsertTextExec = /** @
|
|
30311
|
+
var InsertTextExec = /** @class */ (function () {
|
|
30105
30312
|
/**
|
|
30106
30313
|
* Constructor for creating the InsertText plugin
|
|
30107
30314
|
*
|
|
@@ -30140,7 +30347,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
30140
30347
|
return InsertTextExec;
|
|
30141
30348
|
}());
|
|
30142
30349
|
|
|
30143
|
-
var EmojiPickerAction = /** @
|
|
30350
|
+
var EmojiPickerAction = /** @class */ (function () {
|
|
30144
30351
|
function EmojiPickerAction(parent) {
|
|
30145
30352
|
this.parent = parent;
|
|
30146
30353
|
this.addEventListener();
|
|
@@ -30208,7 +30415,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
|
|
|
30208
30415
|
return EmojiPickerAction;
|
|
30209
30416
|
}());
|
|
30210
30417
|
|
|
30211
|
-
var FormatPainterActions = /** @
|
|
30418
|
+
var FormatPainterActions = /** @class */ (function () {
|
|
30212
30419
|
function FormatPainterActions(parent, options) {
|
|
30213
30420
|
this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
|
|
30214
30421
|
this.parent = parent;
|
|
@@ -30853,7 +31060,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
|
|
|
30853
31060
|
* @hidden
|
|
30854
31061
|
* @deprecated
|
|
30855
31062
|
*/
|
|
30856
|
-
var EditorManager = /** @
|
|
31063
|
+
var EditorManager = /** @class */ (function () {
|
|
30857
31064
|
/**
|
|
30858
31065
|
* Constructor for creating the component
|
|
30859
31066
|
*
|
|
@@ -31202,26 +31409,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
31202
31409
|
return EditorManager;
|
|
31203
31410
|
}());
|
|
31204
31411
|
|
|
31205
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
31206
|
-
var extendStatics = function (d, b) {
|
|
31207
|
-
extendStatics = Object.setPrototypeOf ||
|
|
31208
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31209
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31210
|
-
return extendStatics(d, b);
|
|
31211
|
-
};
|
|
31212
|
-
return function (d, b) {
|
|
31213
|
-
extendStatics(d, b);
|
|
31214
|
-
function __() { this.constructor = d; }
|
|
31215
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31216
|
-
};
|
|
31217
|
-
})();
|
|
31412
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
31413
|
+
var extendStatics = function (d, b) {
|
|
31414
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31415
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31416
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31417
|
+
return extendStatics(d, b);
|
|
31418
|
+
};
|
|
31419
|
+
return function (d, b) {
|
|
31420
|
+
extendStatics(d, b);
|
|
31421
|
+
function __() { this.constructor = d; }
|
|
31422
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31423
|
+
};
|
|
31424
|
+
})();
|
|
31218
31425
|
/**
|
|
31219
31426
|
* HTML adapter
|
|
31220
31427
|
*
|
|
31221
31428
|
* @hidden
|
|
31222
31429
|
* @deprecated
|
|
31223
31430
|
*/
|
|
31224
|
-
var HTMLFormatter = /** @
|
|
31431
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
31225
31432
|
__extends$4(HTMLFormatter, _super);
|
|
31226
31433
|
function HTMLFormatter(options) {
|
|
31227
31434
|
var _this = _super.call(this) || this;
|
|
@@ -31262,7 +31469,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
31262
31469
|
/**
|
|
31263
31470
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
31264
31471
|
*/
|
|
31265
|
-
var HtmlToolbarStatus = /** @
|
|
31472
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
31266
31473
|
function HtmlToolbarStatus(parent) {
|
|
31267
31474
|
this.parent = parent;
|
|
31268
31475
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -31308,7 +31515,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
31308
31515
|
/**
|
|
31309
31516
|
* XhtmlValidation module called when set enableXhtml as true
|
|
31310
31517
|
*/
|
|
31311
|
-
var XhtmlValidation = /** @
|
|
31518
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
31312
31519
|
function XhtmlValidation(parent) {
|
|
31313
31520
|
this.parent = parent;
|
|
31314
31521
|
this.addEventListener();
|
|
@@ -31479,7 +31686,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
31479
31686
|
/**
|
|
31480
31687
|
* `HtmlEditor` module is used to HTML editor
|
|
31481
31688
|
*/
|
|
31482
|
-
var HtmlEditor = /** @
|
|
31689
|
+
var HtmlEditor = /** @class */ (function () {
|
|
31483
31690
|
function HtmlEditor(parent, serviceLocator) {
|
|
31484
31691
|
this.rangeCollection = [];
|
|
31485
31692
|
this.isImageDelete = false;
|
|
@@ -31593,7 +31800,11 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31593
31800
|
HtmlEditor.prototype.isTableClassAdded = function () {
|
|
31594
31801
|
var tableElement = this.parent.inputElement.querySelectorAll('table');
|
|
31595
31802
|
for (var i = 0; i < tableElement.length; i++) {
|
|
31596
|
-
|
|
31803
|
+
// e-rte-table class is added to the table element for styling.
|
|
31804
|
+
// e-rte-paste-table class is added for pasted table element from MS Word and other sources such as Web will not have any styles.
|
|
31805
|
+
// e-rte-custom-table class is added for custom table element will not have any styles.
|
|
31806
|
+
if (!tableElement[i].classList.contains('e-rte-table') && !tableElement[i].classList.contains('e-rte-paste-table')
|
|
31807
|
+
&& !tableElement[i].classList.contains('e-rte-custom-table')) {
|
|
31597
31808
|
tableElement[i].classList.add('e-rte-table');
|
|
31598
31809
|
}
|
|
31599
31810
|
}
|
|
@@ -32113,12 +32324,16 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32113
32324
|
}
|
|
32114
32325
|
var brNode = this.deleteRangeElement.querySelector('BR');
|
|
32115
32326
|
var brLastChildNode = this.deleteRangeElement.lastChild;
|
|
32327
|
+
var brParentNode = brLastChildNode.parentNode;
|
|
32116
32328
|
if (brNode && brNode.classList.contains('e-rte-image-remove-focus')) {
|
|
32117
32329
|
removeClass([brNode], ['e-rte-image-focus']);
|
|
32118
32330
|
return;
|
|
32119
32331
|
}
|
|
32120
32332
|
else if (brNode && brLastChildNode && brLastChildNode.nodeName === 'BR') {
|
|
32121
32333
|
detach(brLastChildNode);
|
|
32334
|
+
if (!isNullOrUndefined(brParentNode) && brParentNode.childNodes.length === 0) {
|
|
32335
|
+
detach(brParentNode);
|
|
32336
|
+
}
|
|
32122
32337
|
e.args.preventDefault();
|
|
32123
32338
|
}
|
|
32124
32339
|
if (!isNullOrUndefined(this.deleteRangeElement) && (this.deleteOldRangeElement.tagName !== 'OL' && this.deleteOldRangeElement.tagName !== 'UL')
|
|
@@ -32602,7 +32817,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32602
32817
|
/**
|
|
32603
32818
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
32604
32819
|
*/
|
|
32605
|
-
var PasteCleanup = /** @
|
|
32820
|
+
var PasteCleanup = /** @class */ (function () {
|
|
32606
32821
|
function PasteCleanup(parent, serviceLocator) {
|
|
32607
32822
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
32608
32823
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -32792,38 +33007,62 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32792
33007
|
}
|
|
32793
33008
|
};
|
|
32794
33009
|
PasteCleanup.prototype.splitBreakLine = function (value) {
|
|
32795
|
-
var enterSplitText = value.split('\n');
|
|
32796
|
-
var
|
|
33010
|
+
var enterSplitText = value.split('\r\n\r\n');
|
|
33011
|
+
var finalText = '';
|
|
32797
33012
|
var startNode = this.parent.enterKey === 'P' ? '<p>' : (this.parent.enterKey === 'DIV' ? '<div>' : '');
|
|
32798
33013
|
var endNode = this.parent.enterKey === 'P' ? '</p>' : (this.parent.enterKey === 'DIV' ? '</div>' : '<br>');
|
|
32799
33014
|
for (var i = 0; i < enterSplitText.length; i++) {
|
|
32800
|
-
|
|
32801
|
-
|
|
33015
|
+
var content = enterSplitText[i];
|
|
33016
|
+
var contentWithSpace = this.makeSpace(content);
|
|
33017
|
+
var contentWithLineBreak = contentWithSpace.replace(/\r\n|\n/g, '<br>');
|
|
33018
|
+
if (i === 0) {
|
|
33019
|
+
if (this.parent.enterKey === 'BR') {
|
|
33020
|
+
finalText += (contentWithLineBreak + endNode);
|
|
33021
|
+
}
|
|
33022
|
+
else {
|
|
33023
|
+
finalText += contentWithLineBreak; // In order to merge the content in current line. No P/Div tag is added.
|
|
33024
|
+
}
|
|
32802
33025
|
}
|
|
32803
33026
|
else {
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
|
|
32807
|
-
|
|
33027
|
+
if (this.parent.enterKey === 'BR') {
|
|
33028
|
+
if (i === enterSplitText.length - 1) {
|
|
33029
|
+
finalText += (contentWithLineBreak + endNode);
|
|
33030
|
+
}
|
|
33031
|
+
else {
|
|
33032
|
+
finalText += (contentWithLineBreak + endNode + endNode);
|
|
33033
|
+
}
|
|
33034
|
+
}
|
|
33035
|
+
else {
|
|
33036
|
+
finalText += startNode + contentWithLineBreak + endNode;
|
|
33037
|
+
}
|
|
32808
33038
|
}
|
|
32809
33039
|
}
|
|
32810
|
-
return
|
|
33040
|
+
return finalText;
|
|
32811
33041
|
};
|
|
32812
|
-
PasteCleanup.prototype.makeSpace = function (
|
|
32813
|
-
var
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
33042
|
+
PasteCleanup.prototype.makeSpace = function (text) {
|
|
33043
|
+
var spacedContent = '';
|
|
33044
|
+
if (text === '') {
|
|
33045
|
+
return text;
|
|
33046
|
+
}
|
|
33047
|
+
var lineBreakSplitText = text.split(' ');
|
|
33048
|
+
for (var i = 0; i < lineBreakSplitText.length; i++) {
|
|
33049
|
+
var currentText = lineBreakSplitText[i];
|
|
33050
|
+
if (currentText === '') {
|
|
33051
|
+
spacedContent += ' ';
|
|
33052
|
+
}
|
|
33053
|
+
else if (currentText === '\t') {
|
|
33054
|
+
spacedContent += ' ';
|
|
32820
33055
|
}
|
|
32821
33056
|
else {
|
|
32822
|
-
|
|
32823
|
-
|
|
33057
|
+
if (i > 0 && i < lineBreakSplitText.length) {
|
|
33058
|
+
spacedContent += ' ';
|
|
33059
|
+
}
|
|
33060
|
+
spacedContent += currentText;
|
|
32824
33061
|
}
|
|
32825
33062
|
}
|
|
32826
|
-
|
|
33063
|
+
spacedContent = spacedContent.replace(/\t/g, ' ');
|
|
33064
|
+
spacedContent = spacedContent.replace(/ /g, ' ');
|
|
33065
|
+
return spacedContent;
|
|
32827
33066
|
};
|
|
32828
33067
|
PasteCleanup.prototype.imgUploading = function (elm) {
|
|
32829
33068
|
var allImgElm = elm.querySelectorAll('.pasteContent_Img');
|
|
@@ -33408,6 +33647,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
33408
33647
|
var tableElement = element.querySelectorAll('table');
|
|
33409
33648
|
for (var i = 0; i < tableElement.length; i++) {
|
|
33410
33649
|
var isMSTeamsTable = tableElement[i].parentElement.nodeName === 'FIGURE';
|
|
33650
|
+
if (tableElement[i].classList.length > 0 && tableElement[i].classList.contains('e-rte-custom-table')) {
|
|
33651
|
+
continue; // Skip the custom table class
|
|
33652
|
+
}
|
|
33411
33653
|
if (this.parent.pasteCleanupSettings.keepFormat && source && !isMSTeamsTable) {
|
|
33412
33654
|
tableElement[i].classList.add('e-rte-paste-' + source + '-table');
|
|
33413
33655
|
}
|
|
@@ -33786,7 +34028,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
33786
34028
|
/**
|
|
33787
34029
|
* `Resize` module is used to resize the editor
|
|
33788
34030
|
*/
|
|
33789
|
-
var Resize = /** @
|
|
34031
|
+
var Resize = /** @class */ (function () {
|
|
33790
34032
|
function Resize(parent) {
|
|
33791
34033
|
this.parent = parent;
|
|
33792
34034
|
this.addEventListener();
|
|
@@ -33862,6 +34104,10 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33862
34104
|
this.parent.element.style.height = eventType.clientY - boundRect.top + 'px';
|
|
33863
34105
|
this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
|
|
33864
34106
|
}
|
|
34107
|
+
var rteContent = this.parent.element.querySelector('#' + this.parent.getID() + '_source-view');
|
|
34108
|
+
if (!isNullOrUndefined(rteContent)) {
|
|
34109
|
+
rteContent.style.height = this.parent.element.style.height;
|
|
34110
|
+
}
|
|
33865
34111
|
this.parent.refreshUI();
|
|
33866
34112
|
};
|
|
33867
34113
|
Resize.prototype.stopResize = function (e) {
|
|
@@ -33945,7 +34191,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33945
34191
|
/**
|
|
33946
34192
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
33947
34193
|
*/
|
|
33948
|
-
var FileManager = /** @
|
|
34194
|
+
var FileManager = /** @class */ (function () {
|
|
33949
34195
|
function FileManager(parent, locator) {
|
|
33950
34196
|
FileManager$1.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$2);
|
|
33951
34197
|
this.parent = parent;
|
|
@@ -34202,7 +34448,7 @@ var FileManager = /** @__PURE__ @class */ (function () {
|
|
|
34202
34448
|
/**
|
|
34203
34449
|
* `FullScreen` module is used to maximize and minimize screen
|
|
34204
34450
|
*/
|
|
34205
|
-
var FullScreen = /** @
|
|
34451
|
+
var FullScreen = /** @class */ (function () {
|
|
34206
34452
|
function FullScreen(parent) {
|
|
34207
34453
|
this.parent = parent;
|
|
34208
34454
|
this.addEventListener();
|
|
@@ -34424,7 +34670,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
34424
34670
|
}
|
|
34425
34671
|
}
|
|
34426
34672
|
|
|
34427
|
-
var FormatPainter = /** @
|
|
34673
|
+
var FormatPainter = /** @class */ (function () {
|
|
34428
34674
|
function FormatPainter(parent) {
|
|
34429
34675
|
this.isSticky = false;
|
|
34430
34676
|
this.isActive = false;
|
|
@@ -34581,7 +34827,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
|
|
|
34581
34827
|
return FormatPainter;
|
|
34582
34828
|
}());
|
|
34583
34829
|
|
|
34584
|
-
var EmojiPicker = /** @
|
|
34830
|
+
var EmojiPicker = /** @class */ (function () {
|
|
34585
34831
|
function EmojiPicker(parent, serviceLocator) {
|
|
34586
34832
|
this.parent = parent;
|
|
34587
34833
|
this.locator = serviceLocator;
|
|
@@ -35426,7 +35672,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
|
|
|
35426
35672
|
/**
|
|
35427
35673
|
* ImportExport module called when import and export content in RichTextEditor
|
|
35428
35674
|
*/
|
|
35429
|
-
var ImportExport = /** @
|
|
35675
|
+
var ImportExport = /** @class */ (function () {
|
|
35430
35676
|
function ImportExport(parent) {
|
|
35431
35677
|
this.parent = parent;
|
|
35432
35678
|
this.addEventListener();
|
|
@@ -35737,7 +35983,7 @@ var executeGroup = {
|
|
|
35737
35983
|
* @hidden
|
|
35738
35984
|
* @deprecated
|
|
35739
35985
|
*/
|
|
35740
|
-
var ServiceLocator = /** @
|
|
35986
|
+
var ServiceLocator = /** @class */ (function () {
|
|
35741
35987
|
function ServiceLocator() {
|
|
35742
35988
|
this.services = {};
|
|
35743
35989
|
}
|
|
@@ -35784,7 +36030,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
35784
36030
|
* @hidden
|
|
35785
36031
|
* @deprecated
|
|
35786
36032
|
*/
|
|
35787
|
-
var RendererFactory = /** @
|
|
36033
|
+
var RendererFactory = /** @class */ (function () {
|
|
35788
36034
|
function RendererFactory() {
|
|
35789
36035
|
this.rendererMap = {};
|
|
35790
36036
|
}
|
|
@@ -35827,29 +36073,29 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
35827
36073
|
return RendererFactory;
|
|
35828
36074
|
}());
|
|
35829
36075
|
|
|
35830
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
35831
|
-
var extendStatics = function (d, b) {
|
|
35832
|
-
extendStatics = Object.setPrototypeOf ||
|
|
35833
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35834
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35835
|
-
return extendStatics(d, b);
|
|
35836
|
-
};
|
|
35837
|
-
return function (d, b) {
|
|
35838
|
-
extendStatics(d, b);
|
|
35839
|
-
function __() { this.constructor = d; }
|
|
35840
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35841
|
-
};
|
|
35842
|
-
})();
|
|
35843
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35844
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35845
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35846
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
35847
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35848
|
-
};
|
|
36076
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
36077
|
+
var extendStatics = function (d, b) {
|
|
36078
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36079
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36080
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36081
|
+
return extendStatics(d, b);
|
|
36082
|
+
};
|
|
36083
|
+
return function (d, b) {
|
|
36084
|
+
extendStatics(d, b);
|
|
36085
|
+
function __() { this.constructor = d; }
|
|
36086
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36087
|
+
};
|
|
36088
|
+
})();
|
|
36089
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36090
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36091
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36092
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36093
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36094
|
+
};
|
|
35849
36095
|
/**
|
|
35850
36096
|
* Configures the toolbar settings of the RichTextEditor.
|
|
35851
36097
|
*/
|
|
35852
|
-
var ToolbarSettings = /** @
|
|
36098
|
+
var ToolbarSettings = /** @class */ (function (_super) {
|
|
35853
36099
|
__extends$5(ToolbarSettings, _super);
|
|
35854
36100
|
function ToolbarSettings() {
|
|
35855
36101
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35874,7 +36120,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35874
36120
|
/**
|
|
35875
36121
|
* Configures the importWord settings of the RichTextEditor.
|
|
35876
36122
|
*/
|
|
35877
|
-
var ImportWord = /** @
|
|
36123
|
+
var ImportWord = /** @class */ (function (_super) {
|
|
35878
36124
|
__extends$5(ImportWord, _super);
|
|
35879
36125
|
function ImportWord() {
|
|
35880
36126
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35887,7 +36133,7 @@ var ImportWord = /** @__PURE__ @class */ (function (_super) {
|
|
|
35887
36133
|
/**
|
|
35888
36134
|
* Configures the export word of the RichTextEditor.
|
|
35889
36135
|
*/
|
|
35890
|
-
var ExportWord = /** @
|
|
36136
|
+
var ExportWord = /** @class */ (function (_super) {
|
|
35891
36137
|
__extends$5(ExportWord, _super);
|
|
35892
36138
|
function ExportWord() {
|
|
35893
36139
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35906,7 +36152,7 @@ var ExportWord = /** @__PURE__ @class */ (function (_super) {
|
|
|
35906
36152
|
/**
|
|
35907
36153
|
* Configures the export settings of the RichTextEditor.
|
|
35908
36154
|
*/
|
|
35909
|
-
var ExportPdf = /** @
|
|
36155
|
+
var ExportPdf = /** @class */ (function (_super) {
|
|
35910
36156
|
__extends$5(ExportPdf, _super);
|
|
35911
36157
|
function ExportPdf() {
|
|
35912
36158
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35925,7 +36171,7 @@ var ExportPdf = /** @__PURE__ @class */ (function (_super) {
|
|
|
35925
36171
|
/**
|
|
35926
36172
|
* Configures the image settings of the RichTextEditor.
|
|
35927
36173
|
*/
|
|
35928
|
-
var ImageSettings = /** @
|
|
36174
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
35929
36175
|
__extends$5(ImageSettings, _super);
|
|
35930
36176
|
function ImageSettings() {
|
|
35931
36177
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35977,7 +36223,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35977
36223
|
/**
|
|
35978
36224
|
* Configures the audio settings of the RichTextEditor.
|
|
35979
36225
|
*/
|
|
35980
|
-
var AudioSettings = /** @
|
|
36226
|
+
var AudioSettings = /** @class */ (function (_super) {
|
|
35981
36227
|
__extends$5(AudioSettings, _super);
|
|
35982
36228
|
function AudioSettings() {
|
|
35983
36229
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36005,7 +36251,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36005
36251
|
/**
|
|
36006
36252
|
* Configures the video settings of the RichTextEditor.
|
|
36007
36253
|
*/
|
|
36008
|
-
var VideoSettings = /** @
|
|
36254
|
+
var VideoSettings = /** @class */ (function (_super) {
|
|
36009
36255
|
__extends$5(VideoSettings, _super);
|
|
36010
36256
|
function VideoSettings() {
|
|
36011
36257
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36057,7 +36303,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36057
36303
|
/**
|
|
36058
36304
|
* Configures the file manager settings of the RichTextEditor.
|
|
36059
36305
|
*/
|
|
36060
|
-
var FileManagerSettings = /** @
|
|
36306
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
36061
36307
|
__extends$5(FileManagerSettings, _super);
|
|
36062
36308
|
function FileManagerSettings() {
|
|
36063
36309
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36118,7 +36364,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36118
36364
|
], FileManagerSettings.prototype, "view", void 0);
|
|
36119
36365
|
return FileManagerSettings;
|
|
36120
36366
|
}(ChildProperty));
|
|
36121
|
-
var TableSettings = /** @
|
|
36367
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
36122
36368
|
__extends$5(TableSettings, _super);
|
|
36123
36369
|
function TableSettings() {
|
|
36124
36370
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36143,7 +36389,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36143
36389
|
/**
|
|
36144
36390
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
36145
36391
|
*/
|
|
36146
|
-
var QuickToolbarSettings = /** @
|
|
36392
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
36147
36393
|
__extends$5(QuickToolbarSettings, _super);
|
|
36148
36394
|
function QuickToolbarSettings() {
|
|
36149
36395
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36180,7 +36426,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36180
36426
|
/**
|
|
36181
36427
|
* Configure the format painter settings of the Rich Text Editor.
|
|
36182
36428
|
*/
|
|
36183
|
-
var FormatPainterSettings = /** @
|
|
36429
|
+
var FormatPainterSettings = /** @class */ (function (_super) {
|
|
36184
36430
|
__extends$5(FormatPainterSettings, _super);
|
|
36185
36431
|
function FormatPainterSettings() {
|
|
36186
36432
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36196,7 +36442,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36196
36442
|
/**
|
|
36197
36443
|
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
36198
36444
|
*/
|
|
36199
|
-
var EmojiSettings = /** @
|
|
36445
|
+
var EmojiSettings = /** @class */ (function (_super) {
|
|
36200
36446
|
__extends$5(EmojiSettings, _super);
|
|
36201
36447
|
function EmojiSettings() {
|
|
36202
36448
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36212,7 +36458,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36212
36458
|
/**
|
|
36213
36459
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
36214
36460
|
*/
|
|
36215
|
-
var PasteCleanupSettings = /** @
|
|
36461
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
36216
36462
|
__extends$5(PasteCleanupSettings, _super);
|
|
36217
36463
|
function PasteCleanupSettings() {
|
|
36218
36464
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36240,7 +36486,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36240
36486
|
/**
|
|
36241
36487
|
* Configures the font family settings of the RichTextEditor.
|
|
36242
36488
|
*/
|
|
36243
|
-
var FontFamily = /** @
|
|
36489
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
36244
36490
|
__extends$5(FontFamily, _super);
|
|
36245
36491
|
function FontFamily() {
|
|
36246
36492
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36259,7 +36505,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
36259
36505
|
/**
|
|
36260
36506
|
* Configures the font size settings of the RichTextEditor.
|
|
36261
36507
|
*/
|
|
36262
|
-
var FontSize = /** @
|
|
36508
|
+
var FontSize = /** @class */ (function (_super) {
|
|
36263
36509
|
__extends$5(FontSize, _super);
|
|
36264
36510
|
function FontSize() {
|
|
36265
36511
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36278,7 +36524,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
36278
36524
|
/**
|
|
36279
36525
|
* Configures the format settings of the RichTextEditor.
|
|
36280
36526
|
*/
|
|
36281
|
-
var Format = /** @
|
|
36527
|
+
var Format = /** @class */ (function (_super) {
|
|
36282
36528
|
__extends$5(Format, _super);
|
|
36283
36529
|
function Format() {
|
|
36284
36530
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36297,7 +36543,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
36297
36543
|
/**
|
|
36298
36544
|
* Configures the font Color settings of the RichTextEditor.
|
|
36299
36545
|
*/
|
|
36300
|
-
var FontColor = /** @
|
|
36546
|
+
var FontColor = /** @class */ (function (_super) {
|
|
36301
36547
|
__extends$5(FontColor, _super);
|
|
36302
36548
|
function FontColor() {
|
|
36303
36549
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36322,7 +36568,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
36322
36568
|
/**
|
|
36323
36569
|
* Configures the background Color settings of the RichTextEditor.
|
|
36324
36570
|
*/
|
|
36325
|
-
var BackgroundColor = /** @
|
|
36571
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
36326
36572
|
__extends$5(BackgroundColor, _super);
|
|
36327
36573
|
function BackgroundColor() {
|
|
36328
36574
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36347,7 +36593,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
36347
36593
|
/**
|
|
36348
36594
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
36349
36595
|
*/
|
|
36350
|
-
var NumberFormatList = /** @
|
|
36596
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
36351
36597
|
__extends$5(NumberFormatList, _super);
|
|
36352
36598
|
function NumberFormatList() {
|
|
36353
36599
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36360,7 +36606,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
36360
36606
|
/**
|
|
36361
36607
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
36362
36608
|
*/
|
|
36363
|
-
var BulletFormatList = /** @
|
|
36609
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
36364
36610
|
__extends$5(BulletFormatList, _super);
|
|
36365
36611
|
function BulletFormatList() {
|
|
36366
36612
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36371,29 +36617,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
36371
36617
|
return BulletFormatList;
|
|
36372
36618
|
}(ChildProperty));
|
|
36373
36619
|
|
|
36374
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
36375
|
-
var extendStatics = function (d, b) {
|
|
36376
|
-
extendStatics = Object.setPrototypeOf ||
|
|
36377
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36378
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36379
|
-
return extendStatics(d, b);
|
|
36380
|
-
};
|
|
36381
|
-
return function (d, b) {
|
|
36382
|
-
extendStatics(d, b);
|
|
36383
|
-
function __() { this.constructor = d; }
|
|
36384
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36385
|
-
};
|
|
36386
|
-
})();
|
|
36387
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36388
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36389
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36390
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36391
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36392
|
-
};
|
|
36620
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
36621
|
+
var extendStatics = function (d, b) {
|
|
36622
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36623
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36624
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36625
|
+
return extendStatics(d, b);
|
|
36626
|
+
};
|
|
36627
|
+
return function (d, b) {
|
|
36628
|
+
extendStatics(d, b);
|
|
36629
|
+
function __() { this.constructor = d; }
|
|
36630
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36631
|
+
};
|
|
36632
|
+
})();
|
|
36633
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36634
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36635
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36636
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36637
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36638
|
+
};
|
|
36393
36639
|
/**
|
|
36394
36640
|
* Objects used for configuring the iframe resources properties.
|
|
36395
36641
|
*/
|
|
36396
|
-
var Resources = /** @
|
|
36642
|
+
var Resources = /** @class */ (function (_super) {
|
|
36397
36643
|
__extends$6(Resources, _super);
|
|
36398
36644
|
function Resources() {
|
|
36399
36645
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36409,7 +36655,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
36409
36655
|
/**
|
|
36410
36656
|
* Configures the iframe settings of the RTE.
|
|
36411
36657
|
*/
|
|
36412
|
-
var IFrameSettings = /** @
|
|
36658
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
36413
36659
|
__extends$6(IFrameSettings, _super);
|
|
36414
36660
|
function IFrameSettings() {
|
|
36415
36661
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36432,29 +36678,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36432
36678
|
return IFrameSettings;
|
|
36433
36679
|
}(ChildProperty));
|
|
36434
36680
|
|
|
36435
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36436
|
-
var extendStatics = function (d, b) {
|
|
36437
|
-
extendStatics = Object.setPrototypeOf ||
|
|
36438
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36439
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36440
|
-
return extendStatics(d, b);
|
|
36441
|
-
};
|
|
36442
|
-
return function (d, b) {
|
|
36443
|
-
extendStatics(d, b);
|
|
36444
|
-
function __() { this.constructor = d; }
|
|
36445
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36446
|
-
};
|
|
36447
|
-
})();
|
|
36448
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36449
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36450
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36451
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36452
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36453
|
-
};
|
|
36681
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36682
|
+
var extendStatics = function (d, b) {
|
|
36683
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36684
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36685
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36686
|
+
return extendStatics(d, b);
|
|
36687
|
+
};
|
|
36688
|
+
return function (d, b) {
|
|
36689
|
+
extendStatics(d, b);
|
|
36690
|
+
function __() { this.constructor = d; }
|
|
36691
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36692
|
+
};
|
|
36693
|
+
})();
|
|
36694
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36695
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36696
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36697
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36698
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36699
|
+
};
|
|
36454
36700
|
/**
|
|
36455
36701
|
* Configures the inlineMode property of the RTE.
|
|
36456
36702
|
*/
|
|
36457
|
-
var InlineMode = /** @
|
|
36703
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
36458
36704
|
__extends$7(InlineMode, _super);
|
|
36459
36705
|
function InlineMode() {
|
|
36460
36706
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36471,7 +36717,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
36471
36717
|
/**
|
|
36472
36718
|
* `EnterKey` module is used to handle enter key press actions.
|
|
36473
36719
|
*/
|
|
36474
|
-
var EnterKeyAction = /** @
|
|
36720
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
36475
36721
|
function EnterKeyAction(parent) {
|
|
36476
36722
|
this.parent = parent;
|
|
36477
36723
|
this.addEventListener();
|
|
@@ -37147,36 +37393,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
37147
37393
|
return EnterKeyAction;
|
|
37148
37394
|
}());
|
|
37149
37395
|
|
|
37150
|
-
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
37151
|
-
var extendStatics = function (d, b) {
|
|
37152
|
-
extendStatics = Object.setPrototypeOf ||
|
|
37153
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
37154
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
37155
|
-
return extendStatics(d, b);
|
|
37156
|
-
};
|
|
37157
|
-
return function (d, b) {
|
|
37158
|
-
extendStatics(d, b);
|
|
37159
|
-
function __() { this.constructor = d; }
|
|
37160
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37161
|
-
};
|
|
37162
|
-
})();
|
|
37163
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
37164
|
-
__assign = Object.assign || function(t) {
|
|
37165
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37166
|
-
s = arguments[i];
|
|
37167
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37168
|
-
t[p] = s[p];
|
|
37169
|
-
}
|
|
37170
|
-
return t;
|
|
37171
|
-
};
|
|
37172
|
-
return __assign.apply(this, arguments);
|
|
37173
|
-
};
|
|
37174
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
37175
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37176
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
37177
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37178
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37179
|
-
};
|
|
37396
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
37397
|
+
var extendStatics = function (d, b) {
|
|
37398
|
+
extendStatics = Object.setPrototypeOf ||
|
|
37399
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
37400
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
37401
|
+
return extendStatics(d, b);
|
|
37402
|
+
};
|
|
37403
|
+
return function (d, b) {
|
|
37404
|
+
extendStatics(d, b);
|
|
37405
|
+
function __() { this.constructor = d; }
|
|
37406
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37407
|
+
};
|
|
37408
|
+
})();
|
|
37409
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
37410
|
+
__assign = Object.assign || function(t) {
|
|
37411
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37412
|
+
s = arguments[i];
|
|
37413
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37414
|
+
t[p] = s[p];
|
|
37415
|
+
}
|
|
37416
|
+
return t;
|
|
37417
|
+
};
|
|
37418
|
+
return __assign.apply(this, arguments);
|
|
37419
|
+
};
|
|
37420
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
37421
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37422
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
37423
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37424
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37425
|
+
};
|
|
37180
37426
|
/**
|
|
37181
37427
|
* Represents the Rich Text Editor component.
|
|
37182
37428
|
* ```html
|
|
@@ -37187,7 +37433,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
37187
37433
|
* </script>
|
|
37188
37434
|
* ```
|
|
37189
37435
|
*/
|
|
37190
|
-
var RichTextEditor = /** @
|
|
37436
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
37191
37437
|
__extends$8(RichTextEditor, _super);
|
|
37192
37438
|
function RichTextEditor(options, element) {
|
|
37193
37439
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -37899,7 +38145,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
37899
38145
|
}
|
|
37900
38146
|
var notFormatPainterCopy = isNullOrUndefined(e.action) ? true : (e.action !== 'format-copy' ? true : false);
|
|
37901
38147
|
if (this.formatter.getUndoRedoStack().length === 0 && notFormatPainterCopy &&
|
|
37902
|
-
!(e.altKey || e.shiftKey || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
38148
|
+
!(e.altKey || (e.shiftKey && e.which === 16) || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
37903
38149
|
this.formatter.saveData();
|
|
37904
38150
|
}
|
|
37905
38151
|
var preventingMention = false;
|
|
@@ -38953,7 +39199,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
38953
39199
|
var item = compiledTemplate[i];
|
|
38954
39200
|
append([item], appendElem);
|
|
38955
39201
|
}
|
|
38956
|
-
|
|
39202
|
+
var content = appendElem.innerHTML.trim();
|
|
39203
|
+
if (content.length > 0) {
|
|
39204
|
+
this.setProperties({ value: content });
|
|
39205
|
+
}
|
|
38957
39206
|
this.renderReactTemplates();
|
|
38958
39207
|
}
|
|
38959
39208
|
}
|
|
@@ -40098,5 +40347,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
40098
40347
|
return RichTextEditor;
|
|
40099
40348
|
}(Component));
|
|
40100
40349
|
|
|
40101
|
-
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 };
|
|
40350
|
+
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, ALLOWED_TABLE_BLOCK_TAGS, 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 };
|
|
40102
40351
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|