@syncfusion/ej2-richtexteditor 26.2.9 → 26.2.11-618955
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 +258 -205
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +346 -293
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +84 -84
- package/src/common/interface.d.ts +8 -8
- package/src/common/util.js +7 -0
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- 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 +2 -2
- package/src/editor-manager/plugin/formats.js +3 -3
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- 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 +3 -2
- package/src/editor-manager/plugin/inserthtml.js +22 -10
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- 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 +3 -3
- package/src/editor-manager/plugin/lists.js +2 -4
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +9 -4
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +19 -2
- 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 +3 -3
- 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/enter-key.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 +4 -3
- package/src/rich-text-editor/actions/html-editor.js +18 -3
- 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 +26 -27
- 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/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 +157 -157
- package/src/rich-text-editor/base/constant.js +157 -157
- 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 +50 -50
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +890 -890
- package/src/rich-text-editor/base/rich-text-editor.d.ts +61 -61
- package/src/rich-text-editor/base/rich-text-editor.js +63 -63
- 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 +26 -26
- 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/toolbar-settings-model.d.ts +760 -760
- 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 +1 -1
- 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 +6 -6
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -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/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +1 -1
- 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 +1 -1
- 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 +22 -22
- package/src/selection/selection.js +22 -22
- 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 +288 -288
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +289 -289
- package/styles/rich-text-editor/_bootstrap-definition.scss +347 -347
- package/styles/rich-text-editor/_bootstrap4-definition.scss +474 -474
- package/styles/rich-text-editor/_bootstrap5-definition.scss +276 -276
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +276 -276
- package/styles/rich-text-editor/_fabric-dark-definition.scss +273 -273
- package/styles/rich-text-editor/_fabric-definition.scss +271 -271
- package/styles/rich-text-editor/_fluent-definition.scss +277 -277
- package/styles/rich-text-editor/_fluent2-definition.scss +282 -282
- package/styles/rich-text-editor/_fusionnew-definition.scss +274 -274
- package/styles/rich-text-editor/_highcontrast-definition.scss +271 -271
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +271 -271
- package/styles/rich-text-editor/_layout.scss +2647 -2647
- package/styles/rich-text-editor/_material-dark-definition.scss +276 -276
- package/styles/rich-text-editor/_material-definition.scss +274 -274
- package/styles/rich-text-editor/_material3-definition.scss +276 -276
- package/styles/rich-text-editor/_tailwind-definition.scss +271 -271
- package/styles/rich-text-editor/_theme.scss +813 -813
- package/styles/rich-text-editor/icons/_bds.scss +368 -368
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +369 -369
- package/styles/rich-text-editor/icons/_bootstrap.scss +369 -369
- package/styles/rich-text-editor/icons/_bootstrap4.scss +369 -369
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +368 -368
- package/styles/rich-text-editor/icons/_bootstrap5.scss +368 -368
- package/styles/rich-text-editor/icons/_fabric-dark.scss +369 -369
- package/styles/rich-text-editor/icons/_fabric.scss +369 -369
- package/styles/rich-text-editor/icons/_fluent.scss +368 -368
- package/styles/rich-text-editor/icons/_fluent2.scss +365 -365
- package/styles/rich-text-editor/icons/_fusionnew.scss +353 -353
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +357 -357
- package/styles/rich-text-editor/icons/_highcontrast.scss +357 -357
- package/styles/rich-text-editor/icons/_material-dark.scss +369 -369
- package/styles/rich-text-editor/icons/_material.scss +369 -369
- package/styles/rich-text-editor/icons/_material3.scss +368 -368
- package/styles/rich-text-editor/icons/_tailwind.scss +368 -368
- 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/hotfix/26.1.35_Vol2.txt +0 -1
- package/tslint.json +0 -111
|
@@ -3600,7 +3600,7 @@ function updateDropDownFontFormatLocale(self) {
|
|
|
3600
3600
|
* @hidden
|
|
3601
3601
|
* @deprecated
|
|
3602
3602
|
*/
|
|
3603
|
-
var ContentRender = /** @
|
|
3603
|
+
var ContentRender = /** @class */ (function () {
|
|
3604
3604
|
/**
|
|
3605
3605
|
* Constructor for content renderer module
|
|
3606
3606
|
*
|
|
@@ -3691,7 +3691,7 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
3691
3691
|
* @hidden
|
|
3692
3692
|
* @deprecated
|
|
3693
3693
|
*/
|
|
3694
|
-
var Render = /** @
|
|
3694
|
+
var Render = /** @class */ (function () {
|
|
3695
3695
|
/**
|
|
3696
3696
|
* Constructor for render module
|
|
3697
3697
|
*
|
|
@@ -3795,7 +3795,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
3795
3795
|
* @hidden
|
|
3796
3796
|
* @deprecated
|
|
3797
3797
|
*/
|
|
3798
|
-
var IsFormatted = /** @
|
|
3798
|
+
var IsFormatted = /** @class */ (function () {
|
|
3799
3799
|
function IsFormatted() {
|
|
3800
3800
|
}
|
|
3801
3801
|
/**
|
|
@@ -4141,7 +4141,7 @@ var PASTE_SOURCE = ['word', 'excel', 'onenote'];
|
|
|
4141
4141
|
/**
|
|
4142
4142
|
* `Selection` module is used to handle RTE Selections.
|
|
4143
4143
|
*/
|
|
4144
|
-
var NodeSelection = /** @
|
|
4144
|
+
var NodeSelection = /** @class */ (function () {
|
|
4145
4145
|
function NodeSelection() {
|
|
4146
4146
|
this.startNodeName = [];
|
|
4147
4147
|
this.endNodeName = [];
|
|
@@ -4856,6 +4856,13 @@ function scrollToCursor(document, inputElement) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
}
|
|
4858
4858
|
}
|
|
4859
|
+
var scrollVal = inputElement.closest('div[style*="overflow-y: scroll"]');
|
|
4860
|
+
if (!isNullOrUndefined(scrollVal)) {
|
|
4861
|
+
var parentRect = scrollVal.getBoundingClientRect();
|
|
4862
|
+
if (cursorBottom > parentRect.bottom) {
|
|
4863
|
+
scrollVal.scrollTop += (cursorBottom - parentRect.bottom);
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4859
4866
|
}
|
|
4860
4867
|
/**
|
|
4861
4868
|
* Inserts items at a specific index in an array.
|
|
@@ -4905,7 +4912,7 @@ function removeClassWithAttr(elements, classes) {
|
|
|
4905
4912
|
* @deprecated
|
|
4906
4913
|
*/
|
|
4907
4914
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
4908
|
-
var ToolbarStatus = /** @
|
|
4915
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
4909
4916
|
function ToolbarStatus() {
|
|
4910
4917
|
}
|
|
4911
4918
|
/**
|
|
@@ -5297,7 +5304,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
5297
5304
|
* @hidden
|
|
5298
5305
|
* @deprecated
|
|
5299
5306
|
*/
|
|
5300
|
-
var ToolbarRenderer = /** @
|
|
5307
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
5301
5308
|
/**
|
|
5302
5309
|
* Constructor for toolbar renderer module
|
|
5303
5310
|
*
|
|
@@ -6020,7 +6027,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
6020
6027
|
/**
|
|
6021
6028
|
* `Link` module is used to handle undo actions.
|
|
6022
6029
|
*/
|
|
6023
|
-
var Link = /** @
|
|
6030
|
+
var Link = /** @class */ (function () {
|
|
6024
6031
|
function Link(parent, serviceLocator) {
|
|
6025
6032
|
this.parent = parent;
|
|
6026
6033
|
this.rteID = parent.element.id;
|
|
@@ -6736,7 +6743,7 @@ var imageResizeFactor = {
|
|
|
6736
6743
|
/**
|
|
6737
6744
|
* `Image` module is used to handle image actions.
|
|
6738
6745
|
*/
|
|
6739
|
-
var Image$1 = /** @
|
|
6746
|
+
var Image$1 = /** @class */ (function () {
|
|
6740
6747
|
function Image(parent, serviceLocator) {
|
|
6741
6748
|
this.isImgUploaded = false;
|
|
6742
6749
|
this.isAllowedTypes = true;
|
|
@@ -8512,7 +8519,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8512
8519
|
var altText;
|
|
8513
8520
|
var selectArgs;
|
|
8514
8521
|
var filesData;
|
|
8515
|
-
var
|
|
8522
|
+
var previousFileInfo = null;
|
|
8516
8523
|
this.uploadObj = new Uploader({
|
|
8517
8524
|
asyncSettings: { saveUrl: this.parent.insertImageSettings.saveUrl, removeUrl: this.parent.insertImageSettings.removeUrl },
|
|
8518
8525
|
dropArea: span, multiple: false, enableRtl: this.parent.enableRtl, cssClass: this.parent.getCssClass(),
|
|
@@ -8567,10 +8574,10 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8567
8574
|
e.detectImageSource = ImageInputSource.Uploaded;
|
|
8568
8575
|
_this.parent.trigger(imageUploadSuccess, e, function (e) {
|
|
8569
8576
|
if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
|
|
8570
|
-
var url = _this.parent.insertImageSettings.path + e.file.name;
|
|
8577
|
+
var url = _this.parent.insertImageSettings.path + (e).file.name;
|
|
8571
8578
|
// Update the URL of the previously uploaded image
|
|
8572
|
-
if (!isNullOrUndefined(
|
|
8573
|
-
|
|
8579
|
+
if (!isNullOrUndefined(previousFileInfo) && e.operation === 'upload') {
|
|
8580
|
+
_this.uploadObj.remove(previousFileInfo);
|
|
8574
8581
|
}
|
|
8575
8582
|
proxy.uploadUrl = {
|
|
8576
8583
|
url: url, selection: save, altText: altText, selectParent: selectParent,
|
|
@@ -8583,7 +8590,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8583
8590
|
}
|
|
8584
8591
|
};
|
|
8585
8592
|
proxy.inputUrl.setAttribute('disabled', 'true');
|
|
8586
|
-
|
|
8593
|
+
previousFileInfo = e.file;
|
|
8587
8594
|
}
|
|
8588
8595
|
if (e.operation === 'upload' && !isNullOrUndefined(_this.dialogObj)) {
|
|
8589
8596
|
_this.dialogObj.getButtons(0).element.removeAttribute('disabled');
|
|
@@ -9138,7 +9145,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
9138
9145
|
/**
|
|
9139
9146
|
* `Audio` module is used to handle audio actions.
|
|
9140
9147
|
*/
|
|
9141
|
-
var Audio = /** @
|
|
9148
|
+
var Audio = /** @class */ (function () {
|
|
9142
9149
|
function Audio(parent, serviceLocator) {
|
|
9143
9150
|
this.isAudioUploaded = false;
|
|
9144
9151
|
this.isAllowedTypes = true;
|
|
@@ -10026,7 +10033,7 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10026
10033
|
return Audio;
|
|
10027
10034
|
}());
|
|
10028
10035
|
|
|
10029
|
-
var Video = /** @
|
|
10036
|
+
var Video = /** @class */ (function () {
|
|
10030
10037
|
function Video(parent, serviceLocator) {
|
|
10031
10038
|
this.isVideoUploaded = false;
|
|
10032
10039
|
this.isAllowedTypes = true;
|
|
@@ -11647,25 +11654,25 @@ var DESTROY = 'destroy';
|
|
|
11647
11654
|
*/
|
|
11648
11655
|
var INTERNAL_DESTROY = 'internal_destroy';
|
|
11649
11656
|
|
|
11650
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11651
|
-
var extendStatics = function (d, b) {
|
|
11652
|
-
extendStatics = Object.setPrototypeOf ||
|
|
11653
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11654
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11655
|
-
return extendStatics(d, b);
|
|
11656
|
-
};
|
|
11657
|
-
return function (d, b) {
|
|
11658
|
-
extendStatics(d, b);
|
|
11659
|
-
function __() { this.constructor = d; }
|
|
11660
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11661
|
-
};
|
|
11662
|
-
})();
|
|
11663
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11664
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11665
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11666
|
-
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;
|
|
11667
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11668
|
-
};
|
|
11657
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11658
|
+
var extendStatics = function (d, b) {
|
|
11659
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11660
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11661
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11662
|
+
return extendStatics(d, b);
|
|
11663
|
+
};
|
|
11664
|
+
return function (d, b) {
|
|
11665
|
+
extendStatics(d, b);
|
|
11666
|
+
function __() { this.constructor = d; }
|
|
11667
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11668
|
+
};
|
|
11669
|
+
})();
|
|
11670
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11671
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11672
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11673
|
+
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;
|
|
11674
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11675
|
+
};
|
|
11669
11676
|
var keyCode = {
|
|
11670
11677
|
'backspace': 8,
|
|
11671
11678
|
'tab': 9,
|
|
@@ -11735,7 +11742,7 @@ var keyCode = {
|
|
|
11735
11742
|
* @hidden
|
|
11736
11743
|
* @deprecated
|
|
11737
11744
|
*/
|
|
11738
|
-
var KeyboardEvents = /** @
|
|
11745
|
+
var KeyboardEvents = /** @class */ (function (_super) {
|
|
11739
11746
|
__extends(KeyboardEvents, _super);
|
|
11740
11747
|
/**
|
|
11741
11748
|
* Initializes the KeyboardEvents
|
|
@@ -11881,7 +11888,7 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
|
|
|
11881
11888
|
* @hidden
|
|
11882
11889
|
* @deprecated
|
|
11883
11890
|
*/
|
|
11884
|
-
var ViewSource = /** @
|
|
11891
|
+
var ViewSource = /** @class */ (function () {
|
|
11885
11892
|
/**
|
|
11886
11893
|
* Constructor for view source module
|
|
11887
11894
|
*
|
|
@@ -12125,7 +12132,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
12125
12132
|
/**
|
|
12126
12133
|
* `Table` module is used to handle table actions.
|
|
12127
12134
|
*/
|
|
12128
|
-
var Table = /** @
|
|
12135
|
+
var Table = /** @class */ (function () {
|
|
12129
12136
|
function Table(parent, serviceLocator) {
|
|
12130
12137
|
this.ensureInsideTableList = true;
|
|
12131
12138
|
this.pageX = null;
|
|
@@ -14325,7 +14332,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
14325
14332
|
/**
|
|
14326
14333
|
* Dialog Renderer
|
|
14327
14334
|
*/
|
|
14328
|
-
var DialogRenderer = /** @
|
|
14335
|
+
var DialogRenderer = /** @class */ (function () {
|
|
14329
14336
|
function DialogRenderer(parent) {
|
|
14330
14337
|
this.parent = parent;
|
|
14331
14338
|
this.addEventListener();
|
|
@@ -14443,19 +14450,19 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14443
14450
|
return DialogRenderer;
|
|
14444
14451
|
}());
|
|
14445
14452
|
|
|
14446
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14447
|
-
var extendStatics = function (d, b) {
|
|
14448
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14449
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14450
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14451
|
-
return extendStatics(d, b);
|
|
14452
|
-
};
|
|
14453
|
-
return function (d, b) {
|
|
14454
|
-
extendStatics(d, b);
|
|
14455
|
-
function __() { this.constructor = d; }
|
|
14456
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14457
|
-
};
|
|
14458
|
-
})();
|
|
14453
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14454
|
+
var extendStatics = function (d, b) {
|
|
14455
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14456
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14457
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14458
|
+
return extendStatics(d, b);
|
|
14459
|
+
};
|
|
14460
|
+
return function (d, b) {
|
|
14461
|
+
extendStatics(d, b);
|
|
14462
|
+
function __() { this.constructor = d; }
|
|
14463
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14464
|
+
};
|
|
14465
|
+
})();
|
|
14459
14466
|
var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>\n @charset \"UTF-8\";\n body {\n font-family: \"Roboto\", sans-serif;\n font-size: 14px;\n }\n html, body{height: 100%;margin: 0;}\n body.e-cursor{cursor:default}\n span.e-selected-node\t{background-color: #939393;color: white;}\n span.e-selected-node.e-highlight {background-color: #1d9dd8;}\n body{color:#333;word-wrap:break-word;padding: 8px;box-sizing: border-box;}\n .e-rte-image, .e-rte-video {border: 0;cursor: pointer;display:\n block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-audio {border: 0;cursor: pointer;display:\n block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imginline, .e-rte-audio.e-audio-inline, .e-rte-video.e-video-inline {display: inline-block;float: none;\n margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));padding: 1px;vertical-align: bottom;}\n .e-rte-image.e-imgcenter, .e-rte-video.e-video-center {cursor: pointer;display: block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imgright, .e-rte-video.e-video-right { float: right; margin: 0 auto;margin-left: 5px;text-align: right;}\n .e-rte-image.e-imgleft, .e-rte-video.e-video-left {float: left;margin: 0 auto;margin-right: 5px;text-align: left;}\n .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}\n .e-img-caption.e-caption-inline {display: inline-block;float: none;\n margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));\n position: relativetext-align: center;vertical-align: bottom;}\n .e-rte-img-caption.e-imgcenter {display: contents; margin-left: auto; margin-right: auto;}\n .e-rte-img-caption.e-imgright {display: contents; margin-left: auto; margin-right: 0;}\n .e-rte-img-caption.e-imgleft {display: contents;margin-left: 0;margin-right: auto;}\n .e-img-caption.e-rte-img-caption.e-imgbreak {display: contents;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;\n margin: auto;opacity: .9;text-align: center;width: 100%;}\n .e-img-wrap {display: inline-block;margin: auto;padding: 0;text-align: center;width: 100%;}\n .e-imgleft, .e-video-left {float: left;margin: 0 5px 0 0;text-align: left;}\n .e-imgright, .e-video-right {float: right;margin: 0 0 0 5px;text-align: right;}\n .e-imgcenter, .e-video-center {cursor: pointer;display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-control img:not(.e-resize) {border: 2px solid transparent; z-index: 1000}\n .e-imginline , .e-audio-inline, .e-video-inline {display: inline-block;float: none;margin-left: 5px;margin-right: 5px;\n max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak, .e-audio-break, .e-video-break {border: 0;cursor: pointer;\n display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-img-focus:not(.e-resize), .e-audio-focus:not(.e-resize), .e-video-focus:not(.e-resize) {border: solid 2px #4a90e2;}\n img.e-img-focus::selection, audio.e-audio-focus::selection, .e-video-focus::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark, span.e-rte-videoboxmark { width: 10px; height: 10px; position: absolute; display: block;\n background: #4a90e2; border: 1px solid #fff; z-index: 1000;}\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark, .e-mob-rte.e-mob-span span.e-rte-videoboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-mob-rte span.e-rte-imageboxmark, .e-mob-rte span.e-rte-videoboxmark { background: #fff; border: 1px solid #4a90e2;\n border-radius: 15px; height: 20px; width: 20px; }\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark, .e-mob-rte.e-mob-span span.e-rte-videoboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-rte-content .e-content img.e-resize, .e-rte-content .e-content video.e-resize { z-index: 1000; }\n .e-rte-content { font-size: 14px; }\n .e-content { font-weight: normal; line-height: 1.5; font-size: 1em; }\n .e-img-caption .e-img-inner { outline: 0; }\n .e-rte-img-caption.e-imgleft .e-img-inner { float: left; text-align: left; }\n .e-rte-img-caption.e-imgright .e-img-inner { float: right; text-align: right; }\n .e-rte-img-caption.e-imgleft .e-img-wrap, .e-rte-img-caption.e-imgright .e-img-wrap { display: contents; }\n .e-img-caption a:focus-visible { outline: none; }\n .e-rte-img-caption .e-rte-image.e-imgright { margin-left: auto; margin-right: 0; }\n .e-rte-img-caption .e-rte-image.e-imgleft { margin: 0; }\n body{box-sizing: border-box;min-height: 100px;outline: 0 solid transparent;\n overflow-x: auto;padding: 16px;position: relative;text-align: inherit;z-index: 2;}\n p{margin: 0 0 10px;margin-bottom: 10px;}\n li{margin-bottom: 10px;}\n table{margin-bottom: 10px;}\n h1{ font-size: 2.857em; font-weight: 600; line-height: 1.2; margin: 10px 0; }\n h2{ font-size: 2.285em; font-weight: 600; line-height: 1.2; margin: 10px 0; }\n h3{ font-size: 2em; font-weight: 600; line-height: 1.2; margin: 10px 0; }\n h4{ font-size: 1.714em; font-weight: 600; line-height: 1.2; margin: 10px 0; }\n h5{ font-size: 1.428em; font-weight: 600; line-height: 1.2; margin: 10px 0; }\n h6{ font-size: 1.142em; line-height: 600; line-height: 1.5; margin: 10px 0; }\n blockquote{margin: 10px 0;margin-left: 0;padding-left: 5px;border-left: solid 2px #5c5c5c;}\n pre{background-color: inherit;border: 0;border-radius: 0;color: #333;\n font-size: inherit;line-height: inherit;margin: 0 0 10px;overflow: visible;padding: 0;\n white-space: pre-wrap;word-break: inherit;word-wrap: break-word;}\n strong, b{font-weight: 700;}\n a{text-decoration: none;user-select: auto;}\n a:hover{text-decoration: underline;};\n p:last-child, pre:last-child, blockquote:last-child{margin-bottom: 0;}\n h3+h4, h4+h5, h5+h6{margin-top: 00.6em;}\n ul:last-child{margin-bottom: 0;}\n table { border-collapse: collapse; empty-cells: show;}\n table td,table th {border: 1px solid #BDBDBD; height: 20px; padding: 2px 5px; vertical-align: middle;}\n table.e-alternate-border tbody tr:nth-child(2n) {background-color: #F5F5F5;}\n table th {background-color: #E0E0E0;}\n table.e-dashed-border td,table.e-dashed-border th { border: 1px dashed #BDBDBD} \n table .e-cell-select {border: 1px double #4a90e2;}\n table.e-cell-select {position: relative;}\n table.e-cell-select::after { content: \"\"; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 2px solid #4a90e2; pointer-events: none;}\n table td.e-cell-select.e-multi-cells-select, table th.e-cell-select.e-multi-cells-select {border: 1px solid #dee2e6; position: relative; }\n table td.e-cell-select.e-multi-cells-select::after, table th.e-cell-select.e-multi-cells-select::after {background-color: rgba(13, 110, 253, 0.08); content: \"\";\n position: absolute; top: 0; left: 0; width: 100%; height: 100%; bottom: 0; pointer-events: none; right: 0;}\n span.e-table-box { cursor: nwse-resize; display: block; height: 10px; position: absolute; width: 10px; }\n span.e-table-box.e-rmob {height: 14px;width: 14px;}\n .e-row-resize, .e-column-resize { background-color: transparent; background-repeat: repeat;\n bottom: 0;cursor: col-resize;height: 1px;overflow: visible;position: absolute;width: 1px; }\n .e-row-resize { cursor: row-resize; height: 1px;}\n .e-table-rhelper { cursor: col-resize; opacity: .87;position: absolute;}\n .e-table-rhelper.e-column-helper { width: 1px; }\n .e-table-rhelper.e-row-helper {height: 1px;}\n .e-reicon::before { border-bottom: 6px solid transparent; border-right: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block; height: 0;\n position: absolute; right: 4px; top: 4px; width: 20px; }\n .e-reicon::after { border-bottom: 6px solid transparent; border-left: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block;\n height: 0; left: 4px; position: absolute; top: 4px; width: 20px; z-index: 3; }\n .e-row-helper.e-reicon::after { top: 10px; transform: rotate(90deg); }\n .e-row-helper.e-reicon::before { left: 4px; top: -20px; transform: rotate(90deg); }\n span.e-table-box { background-color: #ffffff; border: 1px solid #BDBDBD; }\n span.e-table-box.e-rbox-select { background-color: #BDBDBD; border: 1px solid #BDBDBD; }\n .e-table-rhelper { background-color: #4a90e2;}\n .e-rtl { direction: rtl; }\n .e-rte-placeholder::before { content: attr(placeholder); opacity: 0.54; overflow: hidden; padding-top: 16px; position: absolute; text-align: start; top: 0; z-index: 1; }\n li ol, li ul { margin-block-start: 10px;}\n .e-resize-enabled, .e-count-enabled { padding-bottom: 0px; }\n td.e-multi-cells-select ::selection, th.e-multi-cells-select ::selection { background-color: transparent; }\n td.e-multi-cells-select, th.e-multi-cells-select { user-select: none !important; }\n </style>\n </head>";
|
|
14460
14467
|
/**
|
|
14461
14468
|
* Content module is used to render Rich Text Editor content
|
|
@@ -14463,7 +14470,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
14463
14470
|
* @hidden
|
|
14464
14471
|
* @deprecated
|
|
14465
14472
|
*/
|
|
14466
|
-
var IframeContentRender = /** @
|
|
14473
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
14467
14474
|
__extends$1(IframeContentRender, _super);
|
|
14468
14475
|
function IframeContentRender() {
|
|
14469
14476
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14538,7 +14545,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
14538
14545
|
* @hidden
|
|
14539
14546
|
* @deprecated
|
|
14540
14547
|
*/
|
|
14541
|
-
var MarkdownRender = /** @
|
|
14548
|
+
var MarkdownRender = /** @class */ (function () {
|
|
14542
14549
|
/**
|
|
14543
14550
|
* Constructor for content renderer module
|
|
14544
14551
|
*
|
|
@@ -14624,7 +14631,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
14624
14631
|
* @hidden
|
|
14625
14632
|
* @deprecated
|
|
14626
14633
|
*/
|
|
14627
|
-
var PopupRenderer = /** @
|
|
14634
|
+
var PopupRenderer = /** @class */ (function () {
|
|
14628
14635
|
/**
|
|
14629
14636
|
* Constructor for popup renderer module
|
|
14630
14637
|
*
|
|
@@ -14693,7 +14700,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14693
14700
|
/**
|
|
14694
14701
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
14695
14702
|
*/
|
|
14696
|
-
var BaseToolbar = /** @
|
|
14703
|
+
var BaseToolbar = /** @class */ (function () {
|
|
14697
14704
|
function BaseToolbar(parent, serviceLocator) {
|
|
14698
14705
|
this.tools = {};
|
|
14699
14706
|
this.parent = parent;
|
|
@@ -14923,7 +14930,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
14923
14930
|
/**
|
|
14924
14931
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
14925
14932
|
*/
|
|
14926
|
-
var DropDownButtons = /** @
|
|
14933
|
+
var DropDownButtons = /** @class */ (function () {
|
|
14927
14934
|
function DropDownButtons(parent, serviceLocator) {
|
|
14928
14935
|
this.parent = parent;
|
|
14929
14936
|
this.locator = serviceLocator;
|
|
@@ -15467,7 +15474,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
15467
15474
|
/**
|
|
15468
15475
|
* `ToolbarAction` module is used to toolbar click action
|
|
15469
15476
|
*/
|
|
15470
|
-
var ToolbarAction = /** @
|
|
15477
|
+
var ToolbarAction = /** @class */ (function () {
|
|
15471
15478
|
function ToolbarAction(parent) {
|
|
15472
15479
|
this.parent = parent;
|
|
15473
15480
|
this.addEventListener();
|
|
@@ -15539,7 +15546,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
15539
15546
|
/**
|
|
15540
15547
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
15541
15548
|
*/
|
|
15542
|
-
var ColorPickerInput = /** @
|
|
15549
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
15543
15550
|
function ColorPickerInput(parent, serviceLocator) {
|
|
15544
15551
|
this.tools = {};
|
|
15545
15552
|
this.parent = parent;
|
|
@@ -15794,7 +15801,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
15794
15801
|
/**
|
|
15795
15802
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
15796
15803
|
*/
|
|
15797
|
-
var Toolbar = /** @
|
|
15804
|
+
var Toolbar = /** @class */ (function () {
|
|
15798
15805
|
function Toolbar(parent, serviceLocator) {
|
|
15799
15806
|
this.tools = {};
|
|
15800
15807
|
this.parent = parent;
|
|
@@ -16420,7 +16427,7 @@ var Toolbar = /** @__PURE__ @class */ (function () {
|
|
|
16420
16427
|
/**
|
|
16421
16428
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
16422
16429
|
*/
|
|
16423
|
-
var BaseQuickToolbar = /** @
|
|
16430
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
16424
16431
|
function BaseQuickToolbar(parent, locator) {
|
|
16425
16432
|
this.parent = parent;
|
|
16426
16433
|
this.locator = locator;
|
|
@@ -16927,7 +16934,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
16927
16934
|
/**
|
|
16928
16935
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
16929
16936
|
*/
|
|
16930
|
-
var QuickToolbar = /** @
|
|
16937
|
+
var QuickToolbar = /** @class */ (function () {
|
|
16931
16938
|
function QuickToolbar(parent, locator) {
|
|
16932
16939
|
this.debounceTimeout = 1000;
|
|
16933
16940
|
this.parent = parent;
|
|
@@ -17539,7 +17546,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
17539
17546
|
/**
|
|
17540
17547
|
* `Count` module is used to handle Count actions.
|
|
17541
17548
|
*/
|
|
17542
|
-
var Count = /** @
|
|
17549
|
+
var Count = /** @class */ (function () {
|
|
17543
17550
|
function Count(parent, serviceLocator) {
|
|
17544
17551
|
this.parent = parent;
|
|
17545
17552
|
this.locator = serviceLocator;
|
|
@@ -17683,7 +17690,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
17683
17690
|
* @hidden
|
|
17684
17691
|
* @deprecated
|
|
17685
17692
|
*/
|
|
17686
|
-
var MarkdownSelection = /** @
|
|
17693
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
17687
17694
|
function MarkdownSelection() {
|
|
17688
17695
|
}
|
|
17689
17696
|
/**
|
|
@@ -17898,7 +17905,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
|
|
|
17898
17905
|
/**
|
|
17899
17906
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
17900
17907
|
*/
|
|
17901
|
-
var MarkdownToolbarStatus = /** @
|
|
17908
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
17902
17909
|
function MarkdownToolbarStatus(parent) {
|
|
17903
17910
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
17904
17911
|
this.selection = new MarkdownSelection();
|
|
@@ -18021,7 +18028,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
18021
18028
|
/**
|
|
18022
18029
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
18023
18030
|
*/
|
|
18024
|
-
var ExecCommandCallBack = /** @
|
|
18031
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
18025
18032
|
function ExecCommandCallBack(parent) {
|
|
18026
18033
|
this.parent = parent;
|
|
18027
18034
|
this.addEventListener();
|
|
@@ -18051,7 +18058,7 @@ var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
|
|
|
18051
18058
|
* @hidden
|
|
18052
18059
|
* @deprecated
|
|
18053
18060
|
*/
|
|
18054
|
-
var Formatter = /** @
|
|
18061
|
+
var Formatter = /** @class */ (function () {
|
|
18055
18062
|
function Formatter() {
|
|
18056
18063
|
}
|
|
18057
18064
|
/**
|
|
@@ -18360,7 +18367,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
|
|
|
18360
18367
|
*
|
|
18361
18368
|
* @hidden
|
|
18362
18369
|
*/
|
|
18363
|
-
var MDLists = /** @
|
|
18370
|
+
var MDLists = /** @class */ (function () {
|
|
18364
18371
|
/**
|
|
18365
18372
|
* Constructor for creating the Lists plugin
|
|
18366
18373
|
*
|
|
@@ -18840,7 +18847,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
18840
18847
|
* @hidden
|
|
18841
18848
|
* @deprecated
|
|
18842
18849
|
*/
|
|
18843
|
-
var MDFormats = /** @
|
|
18850
|
+
var MDFormats = /** @class */ (function () {
|
|
18844
18851
|
/**
|
|
18845
18852
|
* Constructor for creating the Formats plugin
|
|
18846
18853
|
*
|
|
@@ -19075,7 +19082,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
19075
19082
|
* @hidden
|
|
19076
19083
|
* @deprecated
|
|
19077
19084
|
*/
|
|
19078
|
-
var MDSelectionFormats = /** @
|
|
19085
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
19079
19086
|
function MDSelectionFormats(parent) {
|
|
19080
19087
|
extend(this, this, parent, true);
|
|
19081
19088
|
this.selection = this.parent.markdownSelection;
|
|
@@ -19412,7 +19419,7 @@ var MDSelectionFormats = /** @__PURE__ @class */ (function () {
|
|
|
19412
19419
|
/**
|
|
19413
19420
|
* `Undo` module is used to handle undo actions.
|
|
19414
19421
|
*/
|
|
19415
|
-
var UndoRedoCommands = /** @
|
|
19422
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
19416
19423
|
function UndoRedoCommands(parent, options) {
|
|
19417
19424
|
this.undoRedoStack = [];
|
|
19418
19425
|
this.parent = parent;
|
|
@@ -19609,7 +19616,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
19609
19616
|
* @hidden
|
|
19610
19617
|
* @deprecated
|
|
19611
19618
|
*/
|
|
19612
|
-
var MDLink = /** @
|
|
19619
|
+
var MDLink = /** @class */ (function () {
|
|
19613
19620
|
/**
|
|
19614
19621
|
* Constructor for creating the Formats plugin
|
|
19615
19622
|
*
|
|
@@ -19668,7 +19675,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
19668
19675
|
* @hidden
|
|
19669
19676
|
* @deprecated
|
|
19670
19677
|
*/
|
|
19671
|
-
var MDTable = /** @
|
|
19678
|
+
var MDTable = /** @class */ (function () {
|
|
19672
19679
|
/**
|
|
19673
19680
|
* Constructor for creating the Formats plugin
|
|
19674
19681
|
*
|
|
@@ -19898,7 +19905,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
19898
19905
|
* @hidden
|
|
19899
19906
|
* @deprecated
|
|
19900
19907
|
*/
|
|
19901
|
-
var ClearFormat = /** @
|
|
19908
|
+
var ClearFormat = /** @class */ (function () {
|
|
19902
19909
|
/**
|
|
19903
19910
|
* Constructor for creating the clear format plugin
|
|
19904
19911
|
*
|
|
@@ -20022,7 +20029,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
20022
20029
|
* @hidden
|
|
20023
20030
|
* @deprecated
|
|
20024
20031
|
*/
|
|
20025
|
-
var MDInsertText = /** @
|
|
20032
|
+
var MDInsertText = /** @class */ (function () {
|
|
20026
20033
|
/**
|
|
20027
20034
|
* Constructor for creating the insert text plugin
|
|
20028
20035
|
*
|
|
@@ -20080,7 +20087,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
|
|
|
20080
20087
|
* @hidden
|
|
20081
20088
|
* @deprecated
|
|
20082
20089
|
*/
|
|
20083
|
-
var MarkdownParser = /** @
|
|
20090
|
+
var MarkdownParser = /** @class */ (function () {
|
|
20084
20091
|
/**
|
|
20085
20092
|
* Constructor for creating the component
|
|
20086
20093
|
*
|
|
@@ -20185,26 +20192,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
20185
20192
|
return MarkdownParser;
|
|
20186
20193
|
}());
|
|
20187
20194
|
|
|
20188
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
20189
|
-
var extendStatics = function (d, b) {
|
|
20190
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20191
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20192
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20193
|
-
return extendStatics(d, b);
|
|
20194
|
-
};
|
|
20195
|
-
return function (d, b) {
|
|
20196
|
-
extendStatics(d, b);
|
|
20197
|
-
function __() { this.constructor = d; }
|
|
20198
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20199
|
-
};
|
|
20200
|
-
})();
|
|
20195
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
20196
|
+
var extendStatics = function (d, b) {
|
|
20197
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20198
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20199
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20200
|
+
return extendStatics(d, b);
|
|
20201
|
+
};
|
|
20202
|
+
return function (d, b) {
|
|
20203
|
+
extendStatics(d, b);
|
|
20204
|
+
function __() { this.constructor = d; }
|
|
20205
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20206
|
+
};
|
|
20207
|
+
})();
|
|
20201
20208
|
/**
|
|
20202
20209
|
* Markdown adapter
|
|
20203
20210
|
*
|
|
20204
20211
|
* @hidden
|
|
20205
20212
|
* @deprecated
|
|
20206
20213
|
*/
|
|
20207
|
-
var MarkdownFormatter = /** @
|
|
20214
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
20208
20215
|
__extends$2(MarkdownFormatter, _super);
|
|
20209
20216
|
function MarkdownFormatter(options) {
|
|
20210
20217
|
var _this = _super.call(this) || this;
|
|
@@ -20248,7 +20255,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
20248
20255
|
/**
|
|
20249
20256
|
* `MarkdownEditor` module is used to markdown editor
|
|
20250
20257
|
*/
|
|
20251
|
-
var MarkdownEditor = /** @
|
|
20258
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
20252
20259
|
function MarkdownEditor(parent, serviceLocator) {
|
|
20253
20260
|
this.parent = parent;
|
|
20254
20261
|
this.locator = serviceLocator;
|
|
@@ -20425,7 +20432,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
20425
20432
|
/**
|
|
20426
20433
|
* Utilities to handle the table cell selection
|
|
20427
20434
|
*/
|
|
20428
|
-
var TableSelection = /** @
|
|
20435
|
+
var TableSelection = /** @class */ (function () {
|
|
20429
20436
|
function TableSelection(root, currentDocument) {
|
|
20430
20437
|
this.BLOCK_TAGS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'li', 'pre', 'td', 'th', 'div', 'hr', 'section', 'figure'];
|
|
20431
20438
|
this.BASIC_FORMATS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
|
|
@@ -20660,7 +20667,7 @@ var markerClassName = {
|
|
|
20660
20667
|
* @hidden
|
|
20661
20668
|
* @deprecated
|
|
20662
20669
|
*/
|
|
20663
|
-
var DOMNode = /** @
|
|
20670
|
+
var DOMNode = /** @class */ (function () {
|
|
20664
20671
|
/**
|
|
20665
20672
|
* Constructor for creating the DOMNode plugin
|
|
20666
20673
|
*
|
|
@@ -21686,7 +21693,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
21686
21693
|
* @hidden
|
|
21687
21694
|
* @deprecated
|
|
21688
21695
|
*/
|
|
21689
|
-
var Lists = /** @
|
|
21696
|
+
var Lists = /** @class */ (function () {
|
|
21690
21697
|
/**
|
|
21691
21698
|
* Constructor for creating the Lists plugin
|
|
21692
21699
|
*
|
|
@@ -22010,8 +22017,6 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
22010
22017
|
this.saveSelection = this.parent.nodeSelection.save(range, this.parent.currentDocument);
|
|
22011
22018
|
}
|
|
22012
22019
|
var blockNodes = void 0;
|
|
22013
|
-
var startOffset = range.startOffset;
|
|
22014
|
-
var endOffset = range.endOffset;
|
|
22015
22020
|
var startNode = this.parent.domNode.getSelectedNode(range.startContainer, range.startOffset);
|
|
22016
22021
|
var endNode = this.parent.domNode.getSelectedNode(range.endContainer, range.endOffset);
|
|
22017
22022
|
if ((startNode === endNode && (startNode.nodeName === 'BR' || startNode.nodeName === '#text') &&
|
|
@@ -22691,7 +22696,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
22691
22696
|
*
|
|
22692
22697
|
* @hidden
|
|
22693
22698
|
*/
|
|
22694
|
-
var InsertMethods = /** @
|
|
22699
|
+
var InsertMethods = /** @class */ (function () {
|
|
22695
22700
|
function InsertMethods() {
|
|
22696
22701
|
}
|
|
22697
22702
|
/**
|
|
@@ -22768,7 +22773,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
22768
22773
|
* @hidden
|
|
22769
22774
|
* @deprecated
|
|
22770
22775
|
*/
|
|
22771
|
-
var NodeCutter = /** @
|
|
22776
|
+
var NodeCutter = /** @class */ (function () {
|
|
22772
22777
|
function NodeCutter() {
|
|
22773
22778
|
this.enterAction = 'P';
|
|
22774
22779
|
this.position = -1;
|
|
@@ -22980,7 +22985,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
22980
22985
|
* @hidden
|
|
22981
22986
|
* @deprecated
|
|
22982
22987
|
*/
|
|
22983
|
-
var Formats = /** @
|
|
22988
|
+
var Formats = /** @class */ (function () {
|
|
22984
22989
|
/**
|
|
22985
22990
|
* Constructor for creating the Formats plugin
|
|
22986
22991
|
*
|
|
@@ -23085,7 +23090,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
23085
23090
|
}
|
|
23086
23091
|
else {
|
|
23087
23092
|
var nodeCutter = new NodeCutter();
|
|
23088
|
-
|
|
23093
|
+
nodeCutter.SplitNode(range, startParent.parentElement, false).cloneNode(true);
|
|
23089
23094
|
this.paraFocus(startParent.parentElement === this.parent.editableElement ?
|
|
23090
23095
|
startParent : startParent.parentElement);
|
|
23091
23096
|
}
|
|
@@ -23492,7 +23497,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
23492
23497
|
* @hidden
|
|
23493
23498
|
* @deprecated
|
|
23494
23499
|
*/
|
|
23495
|
-
var InsertHtml = /** @
|
|
23500
|
+
var InsertHtml = /** @class */ (function () {
|
|
23496
23501
|
function InsertHtml() {
|
|
23497
23502
|
}
|
|
23498
23503
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
|
|
@@ -23739,7 +23744,8 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
23739
23744
|
preNode.parentNode.replaceChild(fragment, preNode);
|
|
23740
23745
|
}
|
|
23741
23746
|
else {
|
|
23742
|
-
var startContainerParent = editNode === range.startContainer ? range.startContainer
|
|
23747
|
+
var startContainerParent = editNode === range.startContainer ? range.startContainer
|
|
23748
|
+
: range.startContainer.parentNode;
|
|
23743
23749
|
// Get the index of the start container among its siblings
|
|
23744
23750
|
var startIndex = Array.prototype.indexOf.call(startContainerParent.childNodes, (Browser.userAgent.indexOf('Firefox') !== -1 && editNode === range.startContainer) ? range.startContainer.firstChild : range.startContainer);
|
|
23745
23751
|
range.deleteContents();
|
|
@@ -23950,6 +23956,12 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
23950
23956
|
currentNode.nextSibling.nodeName === 'BR') {
|
|
23951
23957
|
detach(currentNode.nextSibling);
|
|
23952
23958
|
}
|
|
23959
|
+
if (currentNode.parentElement.nodeName === 'LI' && currentNode.parentElement.textContent === '') {
|
|
23960
|
+
this.removeListfromPaste(range);
|
|
23961
|
+
range.insertNode(node);
|
|
23962
|
+
this.contentsDeleted = true;
|
|
23963
|
+
return;
|
|
23964
|
+
}
|
|
23953
23965
|
}
|
|
23954
23966
|
else if ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNullOrUndefined(currentNode.parentElement) &&
|
|
23955
23967
|
(currentNode.parentElement.nodeName === 'LI' || currentNode.parentElement.closest('LI') || (blockNode === editNode && currentNode.parentElement === blockNode)) &&
|
|
@@ -23960,13 +23972,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
23960
23972
|
detach(currentNode.nextSibling);
|
|
23961
23973
|
}
|
|
23962
23974
|
if (!range.collapsed) {
|
|
23963
|
-
|
|
23964
|
-
var value = range.startContainer;
|
|
23965
|
-
if (!isNullOrUndefined(value) && value.nodeName === 'LI' && !isNullOrUndefined(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
|
|
23966
|
-
value.parentElement.querySelectorAll('li').forEach(function (item) {
|
|
23967
|
-
item.remove();
|
|
23968
|
-
});
|
|
23969
|
-
}
|
|
23975
|
+
this.removeListfromPaste(range);
|
|
23970
23976
|
}
|
|
23971
23977
|
range.insertNode(node);
|
|
23972
23978
|
this.contentsDeleted = true;
|
|
@@ -24115,6 +24121,17 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24115
24121
|
}
|
|
24116
24122
|
}
|
|
24117
24123
|
};
|
|
24124
|
+
InsertHtml.removeListfromPaste = function (range) {
|
|
24125
|
+
range.deleteContents();
|
|
24126
|
+
var value = range.startContainer;
|
|
24127
|
+
if (!isNullOrUndefined(value) && value.nodeName === 'LI' && !isNullOrUndefined(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
|
|
24128
|
+
value.parentElement.querySelectorAll('li').forEach(function (item) {
|
|
24129
|
+
if (item.textContent.trim() === '') {
|
|
24130
|
+
item.remove();
|
|
24131
|
+
}
|
|
24132
|
+
});
|
|
24133
|
+
}
|
|
24134
|
+
};
|
|
24118
24135
|
/**
|
|
24119
24136
|
* Insert method
|
|
24120
24137
|
*
|
|
@@ -24136,7 +24153,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24136
24153
|
* @hidden
|
|
24137
24154
|
* @deprecated
|
|
24138
24155
|
*/
|
|
24139
|
-
var LinkCommand = /** @
|
|
24156
|
+
var LinkCommand = /** @class */ (function () {
|
|
24140
24157
|
/**
|
|
24141
24158
|
* Constructor for creating the Formats plugin
|
|
24142
24159
|
*
|
|
@@ -24461,7 +24478,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
24461
24478
|
* @hidden
|
|
24462
24479
|
* @deprecated
|
|
24463
24480
|
*/
|
|
24464
|
-
var Alignments = /** @
|
|
24481
|
+
var Alignments = /** @class */ (function () {
|
|
24465
24482
|
/**
|
|
24466
24483
|
* Constructor for creating the Formats plugin
|
|
24467
24484
|
*
|
|
@@ -24576,7 +24593,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
24576
24593
|
* @hidden
|
|
24577
24594
|
* @deprecated
|
|
24578
24595
|
*/
|
|
24579
|
-
var Indents = /** @
|
|
24596
|
+
var Indents = /** @class */ (function () {
|
|
24580
24597
|
/**
|
|
24581
24598
|
* Constructor for creating the Formats plugin
|
|
24582
24599
|
*
|
|
@@ -24723,7 +24740,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
|
|
|
24723
24740
|
* @hidden
|
|
24724
24741
|
* @deprecated
|
|
24725
24742
|
*/
|
|
24726
|
-
var ImageCommand = /** @
|
|
24743
|
+
var ImageCommand = /** @class */ (function () {
|
|
24727
24744
|
/**
|
|
24728
24745
|
* Constructor for creating the Formats plugin
|
|
24729
24746
|
*
|
|
@@ -25120,7 +25137,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25120
25137
|
* @hidden
|
|
25121
25138
|
* @deprecated
|
|
25122
25139
|
*/
|
|
25123
|
-
var AudioCommand = /** @
|
|
25140
|
+
var AudioCommand = /** @class */ (function () {
|
|
25124
25141
|
/**
|
|
25125
25142
|
* Constructor for creating the Audio plugin
|
|
25126
25143
|
*
|
|
@@ -25269,7 +25286,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
|
|
|
25269
25286
|
* @hidden
|
|
25270
25287
|
* @deprecated
|
|
25271
25288
|
*/
|
|
25272
|
-
var VideoCommand = /** @
|
|
25289
|
+
var VideoCommand = /** @class */ (function () {
|
|
25273
25290
|
/**
|
|
25274
25291
|
* Constructor for creating the Video plugin
|
|
25275
25292
|
*
|
|
@@ -25575,7 +25592,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
|
|
|
25575
25592
|
* @hidden
|
|
25576
25593
|
* @deprecated
|
|
25577
25594
|
*/
|
|
25578
|
-
var TableCommand = /** @
|
|
25595
|
+
var TableCommand = /** @class */ (function () {
|
|
25579
25596
|
/**
|
|
25580
25597
|
* Constructor for creating the Formats plugin
|
|
25581
25598
|
*
|
|
@@ -26104,7 +26121,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
26104
26121
|
detach(selectedCells[i]);
|
|
26105
26122
|
}
|
|
26106
26123
|
for (var i = 0; i < this.curTable.rows.length; i++) {
|
|
26107
|
-
if (this.curTable.rows[i].innerHTML === '') {
|
|
26124
|
+
if (this.curTable.rows[i].innerHTML.trim() === '') {
|
|
26108
26125
|
detach(this.curTable.rows[i]);
|
|
26109
26126
|
}
|
|
26110
26127
|
}
|
|
@@ -26621,7 +26638,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
26621
26638
|
};
|
|
26622
26639
|
return TableCommand;
|
|
26623
26640
|
}());
|
|
26624
|
-
var MinMax = /** @
|
|
26641
|
+
var MinMax = /** @class */ (function () {
|
|
26625
26642
|
function MinMax() {
|
|
26626
26643
|
}
|
|
26627
26644
|
return MinMax;
|
|
@@ -26630,7 +26647,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
26630
26647
|
/**
|
|
26631
26648
|
* `Selection` module is used to handle RTE Selections.
|
|
26632
26649
|
*/
|
|
26633
|
-
var SelectionCommands = /** @
|
|
26650
|
+
var SelectionCommands = /** @class */ (function () {
|
|
26634
26651
|
function SelectionCommands() {
|
|
26635
26652
|
}
|
|
26636
26653
|
/**
|
|
@@ -26868,8 +26885,25 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
26868
26885
|
if (!isNullOrUndefined(cursorNodes[0].parentElement) && IsFormatted.inlineTags.
|
|
26869
26886
|
indexOf((cursorNodes[0].parentElement).tagName.toLowerCase()) !== -1 && cursorNodes[0].textContent.includes('\u200B')) {
|
|
26870
26887
|
var element = this.GetFormatNode(format, value);
|
|
26888
|
+
var tempNode = cursorNodes[0];
|
|
26889
|
+
if (format === 'fontsize') {
|
|
26890
|
+
var currentFormatNode = cursorNodes[0];
|
|
26891
|
+
while (currentFormatNode) {
|
|
26892
|
+
var isSameTextContent = currentFormatNode.parentElement.textContent.trim()
|
|
26893
|
+
=== cursorNodes[0].textContent.trim();
|
|
26894
|
+
var previousElement = currentFormatNode.parentElement;
|
|
26895
|
+
if (!domNode.isBlockNode(previousElement) && isSameTextContent &&
|
|
26896
|
+
!(previousElement.nodeName === 'SPAN' && previousElement.classList.contains('e-img-inner'))) {
|
|
26897
|
+
currentFormatNode = previousElement;
|
|
26898
|
+
}
|
|
26899
|
+
else {
|
|
26900
|
+
break;
|
|
26901
|
+
}
|
|
26902
|
+
cursorNodes[0] = currentFormatNode;
|
|
26903
|
+
}
|
|
26904
|
+
}
|
|
26871
26905
|
this.applyStyles(cursorNodes, 0, element);
|
|
26872
|
-
return
|
|
26906
|
+
return tempNode;
|
|
26873
26907
|
}
|
|
26874
26908
|
cursorNode = this.getInsertNode(docElement, range, format, value).firstChild;
|
|
26875
26909
|
}
|
|
@@ -27628,7 +27662,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27628
27662
|
* @hidden
|
|
27629
27663
|
* @deprecated
|
|
27630
27664
|
*/
|
|
27631
|
-
var SelectionBasedExec = /** @
|
|
27665
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
27632
27666
|
/**
|
|
27633
27667
|
* Constructor for creating the Formats plugin
|
|
27634
27668
|
*
|
|
@@ -27686,7 +27720,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
27686
27720
|
* @hidden
|
|
27687
27721
|
* @deprecated
|
|
27688
27722
|
*/
|
|
27689
|
-
var InsertHtmlExec = /** @
|
|
27723
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
27690
27724
|
/**
|
|
27691
27725
|
* Constructor for creating the Formats plugin
|
|
27692
27726
|
*
|
|
@@ -27741,7 +27775,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
27741
27775
|
/**
|
|
27742
27776
|
* `Clear Format` module is used to handle Clear Format.
|
|
27743
27777
|
*/
|
|
27744
|
-
var ClearFormat$1 = /** @
|
|
27778
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
27745
27779
|
function ClearFormat() {
|
|
27746
27780
|
}
|
|
27747
27781
|
/**
|
|
@@ -27994,7 +28028,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
27994
28028
|
* @hidden
|
|
27995
28029
|
* @deprecated
|
|
27996
28030
|
*/
|
|
27997
|
-
var ClearFormatExec = /** @
|
|
28031
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
27998
28032
|
/**
|
|
27999
28033
|
* Constructor for creating the Formats plugin
|
|
28000
28034
|
*
|
|
@@ -28048,7 +28082,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
28048
28082
|
/**
|
|
28049
28083
|
* `Undo` module is used to handle undo actions.
|
|
28050
28084
|
*/
|
|
28051
|
-
var UndoRedoManager = /** @
|
|
28085
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
28052
28086
|
function UndoRedoManager(parent, options) {
|
|
28053
28087
|
this.undoRedoStack = [];
|
|
28054
28088
|
this.parent = parent;
|
|
@@ -28314,10 +28348,11 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
28314
28348
|
* @hidden
|
|
28315
28349
|
* @deprecated
|
|
28316
28350
|
*/
|
|
28317
|
-
var MsWordPaste = /** @
|
|
28351
|
+
var MsWordPaste = /** @class */ (function () {
|
|
28318
28352
|
function MsWordPaste(parent) {
|
|
28319
28353
|
this.olData = [
|
|
28320
28354
|
'decimal',
|
|
28355
|
+
'decimal-leading-zero',
|
|
28321
28356
|
'lower-alpha',
|
|
28322
28357
|
'lower-roman',
|
|
28323
28358
|
'upper-alpha',
|
|
@@ -28490,7 +28525,8 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
28490
28525
|
imgElem[i].getAttribute('v:shapes').toLowerCase().indexOf('image') < 0 &&
|
|
28491
28526
|
imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0 &&
|
|
28492
28527
|
imgElem[i].getAttribute('v:shapes').indexOf('_x0000_s') < 0 &&
|
|
28493
|
-
imgElem[i].getAttribute('v:shapes').indexOf('_x0000_i') < 0
|
|
28528
|
+
imgElem[i].getAttribute('v:shapes').indexOf('_x0000_i') < 0 &&
|
|
28529
|
+
imgElem[i].getAttribute('v:shapes').indexOf('img1') < 0) {
|
|
28494
28530
|
imgElem[i].classList.add('e-rte-image-unsupported');
|
|
28495
28531
|
}
|
|
28496
28532
|
imgElem[i].removeAttribute('v:shapes');
|
|
@@ -28500,7 +28536,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
28500
28536
|
var base64Src = [];
|
|
28501
28537
|
var imgName = [];
|
|
28502
28538
|
// eslint-disable-next-line
|
|
28503
|
-
var linkRegex = new RegExp(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi);
|
|
28539
|
+
var linkRegex = new RegExp(/([^\S]|^)(((https?\:\/\/)|(www\.)|(blob\:))(\S+))/gi);
|
|
28504
28540
|
if (imgElem.length > 0) {
|
|
28505
28541
|
for (var i = 0; i < imgElem.length; i++) {
|
|
28506
28542
|
imgSrc.push(imgElem[i].getAttribute('src'));
|
|
@@ -29000,7 +29036,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29000
29036
|
listStyleType = this.getlistStyleType(this.listContents[0], type);
|
|
29001
29037
|
if (type === 'ol' && (i === 0 || listNodes[i - 1] === null)) {
|
|
29002
29038
|
var startString = this.listContents[0].split('.')[0];
|
|
29003
|
-
var listTypes = ['A', 'a', 'I', 'i', 'α', '1', '1-']; // Add '1-' for rare list type.
|
|
29039
|
+
var listTypes = ['A', 'a', 'I', 'i', 'α', '1', '01', '1-']; // Add '1-' for rare list type.
|
|
29004
29040
|
if (listTypes.indexOf(startString) === -1) {
|
|
29005
29041
|
if (listStyleType === 'decimal') {
|
|
29006
29042
|
// Bug in getlistStyleType() list style stype is returned as decimal for nested list with start attribute
|
|
@@ -29089,6 +29125,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29089
29125
|
case (charCode > 96 && charCode < 123):
|
|
29090
29126
|
currentListClass = 'lower-alpha';
|
|
29091
29127
|
break;
|
|
29128
|
+
case (listContent.split('.')[0].length > 1 && listContent.split('.')[0][0] === '0' && !isNaN(Number(listContent.split('.')[0]))):
|
|
29129
|
+
currentListClass = 'decimal-leading-zero';
|
|
29130
|
+
break;
|
|
29092
29131
|
default:
|
|
29093
29132
|
currentListClass = 'decimal';
|
|
29094
29133
|
break;
|
|
@@ -29387,7 +29426,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29387
29426
|
* @hidden
|
|
29388
29427
|
* @deprecated
|
|
29389
29428
|
*/
|
|
29390
|
-
var InsertTextExec = /** @
|
|
29429
|
+
var InsertTextExec = /** @class */ (function () {
|
|
29391
29430
|
/**
|
|
29392
29431
|
* Constructor for creating the InsertText plugin
|
|
29393
29432
|
*
|
|
@@ -29426,7 +29465,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
29426
29465
|
return InsertTextExec;
|
|
29427
29466
|
}());
|
|
29428
29467
|
|
|
29429
|
-
var EmojiPickerAction = /** @
|
|
29468
|
+
var EmojiPickerAction = /** @class */ (function () {
|
|
29430
29469
|
function EmojiPickerAction(parent) {
|
|
29431
29470
|
this.parent = parent;
|
|
29432
29471
|
this.addEventListener();
|
|
@@ -29494,7 +29533,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
|
|
|
29494
29533
|
return EmojiPickerAction;
|
|
29495
29534
|
}());
|
|
29496
29535
|
|
|
29497
|
-
var FormatPainterActions = /** @
|
|
29536
|
+
var FormatPainterActions = /** @class */ (function () {
|
|
29498
29537
|
function FormatPainterActions(parent, options) {
|
|
29499
29538
|
this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
|
|
29500
29539
|
this.parent = parent;
|
|
@@ -30139,7 +30178,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
|
|
|
30139
30178
|
* @hidden
|
|
30140
30179
|
* @deprecated
|
|
30141
30180
|
*/
|
|
30142
|
-
var EditorManager = /** @
|
|
30181
|
+
var EditorManager = /** @class */ (function () {
|
|
30143
30182
|
/**
|
|
30144
30183
|
* Constructor for creating the component
|
|
30145
30184
|
*
|
|
@@ -30465,26 +30504,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
30465
30504
|
return EditorManager;
|
|
30466
30505
|
}());
|
|
30467
30506
|
|
|
30468
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
30469
|
-
var extendStatics = function (d, b) {
|
|
30470
|
-
extendStatics = Object.setPrototypeOf ||
|
|
30471
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30472
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
30473
|
-
return extendStatics(d, b);
|
|
30474
|
-
};
|
|
30475
|
-
return function (d, b) {
|
|
30476
|
-
extendStatics(d, b);
|
|
30477
|
-
function __() { this.constructor = d; }
|
|
30478
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30479
|
-
};
|
|
30480
|
-
})();
|
|
30507
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
30508
|
+
var extendStatics = function (d, b) {
|
|
30509
|
+
extendStatics = Object.setPrototypeOf ||
|
|
30510
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30511
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
30512
|
+
return extendStatics(d, b);
|
|
30513
|
+
};
|
|
30514
|
+
return function (d, b) {
|
|
30515
|
+
extendStatics(d, b);
|
|
30516
|
+
function __() { this.constructor = d; }
|
|
30517
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30518
|
+
};
|
|
30519
|
+
})();
|
|
30481
30520
|
/**
|
|
30482
30521
|
* HTML adapter
|
|
30483
30522
|
*
|
|
30484
30523
|
* @hidden
|
|
30485
30524
|
* @deprecated
|
|
30486
30525
|
*/
|
|
30487
|
-
var HTMLFormatter = /** @
|
|
30526
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
30488
30527
|
__extends$3(HTMLFormatter, _super);
|
|
30489
30528
|
function HTMLFormatter(options) {
|
|
30490
30529
|
var _this = _super.call(this) || this;
|
|
@@ -30525,7 +30564,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
30525
30564
|
/**
|
|
30526
30565
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
30527
30566
|
*/
|
|
30528
|
-
var HtmlToolbarStatus = /** @
|
|
30567
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
30529
30568
|
function HtmlToolbarStatus(parent) {
|
|
30530
30569
|
this.parent = parent;
|
|
30531
30570
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -30571,7 +30610,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
30571
30610
|
/**
|
|
30572
30611
|
* XhtmlValidation module called when set enableXhtml as true
|
|
30573
30612
|
*/
|
|
30574
|
-
var XhtmlValidation = /** @
|
|
30613
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
30575
30614
|
function XhtmlValidation(parent) {
|
|
30576
30615
|
this.parent = parent;
|
|
30577
30616
|
this.addEventListener();
|
|
@@ -30742,7 +30781,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
30742
30781
|
/**
|
|
30743
30782
|
* `HtmlEditor` module is used to HTML editor
|
|
30744
30783
|
*/
|
|
30745
|
-
var HtmlEditor = /** @
|
|
30784
|
+
var HtmlEditor = /** @class */ (function () {
|
|
30746
30785
|
function HtmlEditor(parent, serviceLocator) {
|
|
30747
30786
|
this.rangeCollection = [];
|
|
30748
30787
|
this.isImageDelete = false;
|
|
@@ -30752,6 +30791,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
30752
30791
|
this.xhtmlValidation = new XhtmlValidation(parent);
|
|
30753
30792
|
this.addEventListener();
|
|
30754
30793
|
this.isDestroyed = false;
|
|
30794
|
+
this.isCopyAll = false;
|
|
30755
30795
|
}
|
|
30756
30796
|
/**
|
|
30757
30797
|
* Destroys the Markdown.
|
|
@@ -30770,6 +30810,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
30770
30810
|
this.clickTimeout = null;
|
|
30771
30811
|
}
|
|
30772
30812
|
this.removeEventListener();
|
|
30813
|
+
this.isCopyAll = null;
|
|
30773
30814
|
this.locator = null;
|
|
30774
30815
|
this.contentRenderer = null;
|
|
30775
30816
|
this.renderFactory = null;
|
|
@@ -30958,6 +30999,9 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
30958
30999
|
mentionStartNode.textContent.charCodeAt(0) === 8203 &&
|
|
30959
31000
|
!isNullOrUndefined(mentionStartNode.previousSibling) && mentionStartNode.previousSibling.contentEditable === 'false';
|
|
30960
31001
|
}
|
|
31002
|
+
if (this.isCopyAll) {
|
|
31003
|
+
return;
|
|
31004
|
+
}
|
|
30961
31005
|
var pointer;
|
|
30962
31006
|
var isRootParent = false;
|
|
30963
31007
|
if (restrictKeys.indexOf(args.keyCode) < 0 && !args.shiftKey && !args.ctrlKey && !args.altKey && !isEmptyNode && !isMention) {
|
|
@@ -31054,6 +31098,12 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31054
31098
|
};
|
|
31055
31099
|
HtmlEditor.prototype.onKeyDown = function (e) {
|
|
31056
31100
|
var _this = this;
|
|
31101
|
+
if (e.args.ctrlKey && e.args.keyCode === 65) {
|
|
31102
|
+
this.isCopyAll = true;
|
|
31103
|
+
}
|
|
31104
|
+
else {
|
|
31105
|
+
this.isCopyAll = false;
|
|
31106
|
+
}
|
|
31057
31107
|
var currentRange;
|
|
31058
31108
|
var args = e.args;
|
|
31059
31109
|
if (this.parent.inputElement.querySelectorAll('.e-cell-select').length > 1 && (args.keyCode === 8 || args.keyCode === 32 || args.keyCode === 13)) {
|
|
@@ -31248,6 +31298,10 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31248
31298
|
else {
|
|
31249
31299
|
this.oldRangeElement = this.rangeElement.previousElementSibling;
|
|
31250
31300
|
}
|
|
31301
|
+
var findBlockElement = this.parent.formatter.editorManager.domNode.blockNodes();
|
|
31302
|
+
if (!isNullOrUndefined(findBlockElement[0]) && currentRange.collapsed && currentRange.startOffset === 0 && currentRange.endOffset === 0 && findBlockElement[0].style.marginLeft !== '') {
|
|
31303
|
+
findBlockElement[0].style.marginLeft = (parseInt(findBlockElement[0].style.marginLeft, 10) <= 20) ? '' : (parseInt(findBlockElement[0].style.marginLeft, 10) - 20 + 'px');
|
|
31304
|
+
}
|
|
31251
31305
|
if (isNullOrUndefined(this.oldRangeElement)) {
|
|
31252
31306
|
return;
|
|
31253
31307
|
}
|
|
@@ -31828,7 +31882,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31828
31882
|
/**
|
|
31829
31883
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
31830
31884
|
*/
|
|
31831
|
-
var PasteCleanup = /** @
|
|
31885
|
+
var PasteCleanup = /** @class */ (function () {
|
|
31832
31886
|
function PasteCleanup(parent, serviceLocator) {
|
|
31833
31887
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
31834
31888
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -32145,9 +32199,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32145
32199
|
dropArea: this.parent.inputElement,
|
|
32146
32200
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
32147
32201
|
success: function (e) {
|
|
32148
|
-
_this.
|
|
32149
|
-
_this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
|
|
32150
|
-
}, 900);
|
|
32202
|
+
_this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
|
|
32151
32203
|
},
|
|
32152
32204
|
uploading: function (e) {
|
|
32153
32205
|
if (!_this.parent.isServerRendered) {
|
|
@@ -32229,30 +32281,31 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32229
32281
|
this.parent.inputElement.contentEditable = 'true';
|
|
32230
32282
|
e.element = imgElem;
|
|
32231
32283
|
e.detectImageSource = ImageInputSource.Pasted;
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
}
|
|
32242
|
-
else if (element.statusCode === '5') {
|
|
32243
|
-
_this.parent.trigger(imageRemoving, e, function (e) {
|
|
32244
|
-
if (!isNullOrUndefined(e.element.src)) {
|
|
32245
|
-
e.element.src = '';
|
|
32246
|
-
}
|
|
32247
|
-
});
|
|
32248
|
-
}
|
|
32249
|
-
});
|
|
32250
|
-
popupObj.close();
|
|
32251
|
-
imgElem.style.opacity = '1';
|
|
32252
|
-
if (uploadObj && document.body.contains(uploadObj.element)) {
|
|
32253
|
-
uploadObj.destroy();
|
|
32284
|
+
var element = e.file;
|
|
32285
|
+
if (element.statusCode === '2') {
|
|
32286
|
+
this.parent.trigger(imageUploadSuccess, e, function (e) {
|
|
32287
|
+
if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
|
|
32288
|
+
var url = _this.parent.insertImageSettings.path + e.file.name;
|
|
32289
|
+
imgElem.src = url;
|
|
32290
|
+
imgElem.setAttribute('alt', e.file.name);
|
|
32291
|
+
}
|
|
32292
|
+
});
|
|
32254
32293
|
}
|
|
32255
|
-
|
|
32294
|
+
else if (element.statusCode === '5') {
|
|
32295
|
+
this.parent.trigger(imageRemoving, e, function (e) {
|
|
32296
|
+
if (!isNullOrUndefined(e.element.src)) {
|
|
32297
|
+
e.element.src = '';
|
|
32298
|
+
}
|
|
32299
|
+
});
|
|
32300
|
+
}
|
|
32301
|
+
this.popupCloseTime = setTimeout(function () {
|
|
32302
|
+
popupObj.close();
|
|
32303
|
+
imgElem.style.opacity = '1';
|
|
32304
|
+
this.toolbarEnableDisable(false);
|
|
32305
|
+
if (uploadObj && document.body.contains(uploadObj.element)) {
|
|
32306
|
+
uploadObj.destroy();
|
|
32307
|
+
}
|
|
32308
|
+
}.bind(this), 1500);
|
|
32256
32309
|
};
|
|
32257
32310
|
PasteCleanup.prototype.refreshPopup = function (imageElement, popupObj) {
|
|
32258
32311
|
var imgPosition = this.parent.iframeSettings.enable ? this.parent.element.offsetTop +
|
|
@@ -33012,7 +33065,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
33012
33065
|
/**
|
|
33013
33066
|
* `Resize` module is used to resize the editor
|
|
33014
33067
|
*/
|
|
33015
|
-
var Resize = /** @
|
|
33068
|
+
var Resize = /** @class */ (function () {
|
|
33016
33069
|
function Resize(parent) {
|
|
33017
33070
|
this.parent = parent;
|
|
33018
33071
|
this.addEventListener();
|
|
@@ -33158,7 +33211,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33158
33211
|
/**
|
|
33159
33212
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
33160
33213
|
*/
|
|
33161
|
-
var FileManager = /** @
|
|
33214
|
+
var FileManager = /** @class */ (function () {
|
|
33162
33215
|
function FileManager(parent, locator) {
|
|
33163
33216
|
FileManager$1.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$2);
|
|
33164
33217
|
this.parent = parent;
|
|
@@ -33410,7 +33463,7 @@ var FileManager = /** @__PURE__ @class */ (function () {
|
|
|
33410
33463
|
/**
|
|
33411
33464
|
* `FullScreen` module is used to maximize and minimize screen
|
|
33412
33465
|
*/
|
|
33413
|
-
var FullScreen = /** @
|
|
33466
|
+
var FullScreen = /** @class */ (function () {
|
|
33414
33467
|
function FullScreen(parent) {
|
|
33415
33468
|
this.parent = parent;
|
|
33416
33469
|
this.addEventListener();
|
|
@@ -33637,7 +33690,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
33637
33690
|
}
|
|
33638
33691
|
}
|
|
33639
33692
|
|
|
33640
|
-
var FormatPainter = /** @
|
|
33693
|
+
var FormatPainter = /** @class */ (function () {
|
|
33641
33694
|
function FormatPainter(parent) {
|
|
33642
33695
|
this.isSticky = false;
|
|
33643
33696
|
this.isActive = false;
|
|
@@ -33794,7 +33847,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
|
|
|
33794
33847
|
return FormatPainter;
|
|
33795
33848
|
}());
|
|
33796
33849
|
|
|
33797
|
-
var EmojiPicker = /** @
|
|
33850
|
+
var EmojiPicker = /** @class */ (function () {
|
|
33798
33851
|
function EmojiPicker(parent, serviceLocator) {
|
|
33799
33852
|
this.parent = parent;
|
|
33800
33853
|
this.locator = serviceLocator;
|
|
@@ -34832,7 +34885,7 @@ var executeGroup = {
|
|
|
34832
34885
|
* @hidden
|
|
34833
34886
|
* @deprecated
|
|
34834
34887
|
*/
|
|
34835
|
-
var ServiceLocator = /** @
|
|
34888
|
+
var ServiceLocator = /** @class */ (function () {
|
|
34836
34889
|
function ServiceLocator() {
|
|
34837
34890
|
this.services = {};
|
|
34838
34891
|
}
|
|
@@ -34879,7 +34932,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
34879
34932
|
* @hidden
|
|
34880
34933
|
* @deprecated
|
|
34881
34934
|
*/
|
|
34882
|
-
var RendererFactory = /** @
|
|
34935
|
+
var RendererFactory = /** @class */ (function () {
|
|
34883
34936
|
function RendererFactory() {
|
|
34884
34937
|
this.rendererMap = {};
|
|
34885
34938
|
}
|
|
@@ -34922,29 +34975,29 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
34922
34975
|
return RendererFactory;
|
|
34923
34976
|
}());
|
|
34924
34977
|
|
|
34925
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
34926
|
-
var extendStatics = function (d, b) {
|
|
34927
|
-
extendStatics = Object.setPrototypeOf ||
|
|
34928
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
34929
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34930
|
-
return extendStatics(d, b);
|
|
34931
|
-
};
|
|
34932
|
-
return function (d, b) {
|
|
34933
|
-
extendStatics(d, b);
|
|
34934
|
-
function __() { this.constructor = d; }
|
|
34935
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34936
|
-
};
|
|
34937
|
-
})();
|
|
34938
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
34939
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34940
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
34941
|
-
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;
|
|
34942
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
34943
|
-
};
|
|
34978
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
34979
|
+
var extendStatics = function (d, b) {
|
|
34980
|
+
extendStatics = Object.setPrototypeOf ||
|
|
34981
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
34982
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34983
|
+
return extendStatics(d, b);
|
|
34984
|
+
};
|
|
34985
|
+
return function (d, b) {
|
|
34986
|
+
extendStatics(d, b);
|
|
34987
|
+
function __() { this.constructor = d; }
|
|
34988
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34989
|
+
};
|
|
34990
|
+
})();
|
|
34991
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
34992
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34993
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
34994
|
+
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;
|
|
34995
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
34996
|
+
};
|
|
34944
34997
|
/**
|
|
34945
34998
|
* Configures the toolbar settings of the RichTextEditor.
|
|
34946
34999
|
*/
|
|
34947
|
-
var ToolbarSettings = /** @
|
|
35000
|
+
var ToolbarSettings = /** @class */ (function (_super) {
|
|
34948
35001
|
__extends$4(ToolbarSettings, _super);
|
|
34949
35002
|
function ToolbarSettings() {
|
|
34950
35003
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -34969,7 +35022,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
34969
35022
|
/**
|
|
34970
35023
|
* Configures the image settings of the RichTextEditor.
|
|
34971
35024
|
*/
|
|
34972
|
-
var ImageSettings = /** @
|
|
35025
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
34973
35026
|
__extends$4(ImageSettings, _super);
|
|
34974
35027
|
function ImageSettings() {
|
|
34975
35028
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35021,7 +35074,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35021
35074
|
/**
|
|
35022
35075
|
* Configures the audio settings of the RichTextEditor.
|
|
35023
35076
|
*/
|
|
35024
|
-
var AudioSettings = /** @
|
|
35077
|
+
var AudioSettings = /** @class */ (function (_super) {
|
|
35025
35078
|
__extends$4(AudioSettings, _super);
|
|
35026
35079
|
function AudioSettings() {
|
|
35027
35080
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35049,7 +35102,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35049
35102
|
/**
|
|
35050
35103
|
* Configures the video settings of the RichTextEditor.
|
|
35051
35104
|
*/
|
|
35052
|
-
var VideoSettings = /** @
|
|
35105
|
+
var VideoSettings = /** @class */ (function (_super) {
|
|
35053
35106
|
__extends$4(VideoSettings, _super);
|
|
35054
35107
|
function VideoSettings() {
|
|
35055
35108
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35101,7 +35154,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35101
35154
|
/**
|
|
35102
35155
|
* Configures the file manager settings of the RichTextEditor.
|
|
35103
35156
|
*/
|
|
35104
|
-
var FileManagerSettings = /** @
|
|
35157
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
35105
35158
|
__extends$4(FileManagerSettings, _super);
|
|
35106
35159
|
function FileManagerSettings() {
|
|
35107
35160
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35162,7 +35215,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35162
35215
|
], FileManagerSettings.prototype, "view", void 0);
|
|
35163
35216
|
return FileManagerSettings;
|
|
35164
35217
|
}(ChildProperty));
|
|
35165
|
-
var TableSettings = /** @
|
|
35218
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
35166
35219
|
__extends$4(TableSettings, _super);
|
|
35167
35220
|
function TableSettings() {
|
|
35168
35221
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35187,7 +35240,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35187
35240
|
/**
|
|
35188
35241
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
35189
35242
|
*/
|
|
35190
|
-
var QuickToolbarSettings = /** @
|
|
35243
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
35191
35244
|
__extends$4(QuickToolbarSettings, _super);
|
|
35192
35245
|
function QuickToolbarSettings() {
|
|
35193
35246
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35224,7 +35277,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35224
35277
|
/**
|
|
35225
35278
|
* Configure the format painter settings of the Rich Text Editor.
|
|
35226
35279
|
*/
|
|
35227
|
-
var FormatPainterSettings = /** @
|
|
35280
|
+
var FormatPainterSettings = /** @class */ (function (_super) {
|
|
35228
35281
|
__extends$4(FormatPainterSettings, _super);
|
|
35229
35282
|
function FormatPainterSettings() {
|
|
35230
35283
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35240,7 +35293,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35240
35293
|
/**
|
|
35241
35294
|
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
35242
35295
|
*/
|
|
35243
|
-
var EmojiSettings = /** @
|
|
35296
|
+
var EmojiSettings = /** @class */ (function (_super) {
|
|
35244
35297
|
__extends$4(EmojiSettings, _super);
|
|
35245
35298
|
function EmojiSettings() {
|
|
35246
35299
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35256,7 +35309,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35256
35309
|
/**
|
|
35257
35310
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
35258
35311
|
*/
|
|
35259
|
-
var PasteCleanupSettings = /** @
|
|
35312
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
35260
35313
|
__extends$4(PasteCleanupSettings, _super);
|
|
35261
35314
|
function PasteCleanupSettings() {
|
|
35262
35315
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35284,7 +35337,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35284
35337
|
/**
|
|
35285
35338
|
* Configures the font family settings of the RichTextEditor.
|
|
35286
35339
|
*/
|
|
35287
|
-
var FontFamily = /** @
|
|
35340
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
35288
35341
|
__extends$4(FontFamily, _super);
|
|
35289
35342
|
function FontFamily() {
|
|
35290
35343
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35303,7 +35356,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
35303
35356
|
/**
|
|
35304
35357
|
* Configures the font size settings of the RichTextEditor.
|
|
35305
35358
|
*/
|
|
35306
|
-
var FontSize = /** @
|
|
35359
|
+
var FontSize = /** @class */ (function (_super) {
|
|
35307
35360
|
__extends$4(FontSize, _super);
|
|
35308
35361
|
function FontSize() {
|
|
35309
35362
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35322,7 +35375,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
35322
35375
|
/**
|
|
35323
35376
|
* Configures the format settings of the RichTextEditor.
|
|
35324
35377
|
*/
|
|
35325
|
-
var Format = /** @
|
|
35378
|
+
var Format = /** @class */ (function (_super) {
|
|
35326
35379
|
__extends$4(Format, _super);
|
|
35327
35380
|
function Format() {
|
|
35328
35381
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35341,7 +35394,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
35341
35394
|
/**
|
|
35342
35395
|
* Configures the font Color settings of the RichTextEditor.
|
|
35343
35396
|
*/
|
|
35344
|
-
var FontColor = /** @
|
|
35397
|
+
var FontColor = /** @class */ (function (_super) {
|
|
35345
35398
|
__extends$4(FontColor, _super);
|
|
35346
35399
|
function FontColor() {
|
|
35347
35400
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35366,7 +35419,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
35366
35419
|
/**
|
|
35367
35420
|
* Configures the background Color settings of the RichTextEditor.
|
|
35368
35421
|
*/
|
|
35369
|
-
var BackgroundColor = /** @
|
|
35422
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
35370
35423
|
__extends$4(BackgroundColor, _super);
|
|
35371
35424
|
function BackgroundColor() {
|
|
35372
35425
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35391,7 +35444,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
35391
35444
|
/**
|
|
35392
35445
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
35393
35446
|
*/
|
|
35394
|
-
var NumberFormatList = /** @
|
|
35447
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
35395
35448
|
__extends$4(NumberFormatList, _super);
|
|
35396
35449
|
function NumberFormatList() {
|
|
35397
35450
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35404,7 +35457,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
35404
35457
|
/**
|
|
35405
35458
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
35406
35459
|
*/
|
|
35407
|
-
var BulletFormatList = /** @
|
|
35460
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
35408
35461
|
__extends$4(BulletFormatList, _super);
|
|
35409
35462
|
function BulletFormatList() {
|
|
35410
35463
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35415,29 +35468,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
35415
35468
|
return BulletFormatList;
|
|
35416
35469
|
}(ChildProperty));
|
|
35417
35470
|
|
|
35418
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
35419
|
-
var extendStatics = function (d, b) {
|
|
35420
|
-
extendStatics = Object.setPrototypeOf ||
|
|
35421
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35422
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35423
|
-
return extendStatics(d, b);
|
|
35424
|
-
};
|
|
35425
|
-
return function (d, b) {
|
|
35426
|
-
extendStatics(d, b);
|
|
35427
|
-
function __() { this.constructor = d; }
|
|
35428
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35429
|
-
};
|
|
35430
|
-
})();
|
|
35431
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35432
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35433
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35434
|
-
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;
|
|
35435
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35436
|
-
};
|
|
35471
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
35472
|
+
var extendStatics = function (d, b) {
|
|
35473
|
+
extendStatics = Object.setPrototypeOf ||
|
|
35474
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35475
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35476
|
+
return extendStatics(d, b);
|
|
35477
|
+
};
|
|
35478
|
+
return function (d, b) {
|
|
35479
|
+
extendStatics(d, b);
|
|
35480
|
+
function __() { this.constructor = d; }
|
|
35481
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35482
|
+
};
|
|
35483
|
+
})();
|
|
35484
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35485
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35486
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35487
|
+
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;
|
|
35488
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35489
|
+
};
|
|
35437
35490
|
/**
|
|
35438
35491
|
* Objects used for configuring the iframe resources properties.
|
|
35439
35492
|
*/
|
|
35440
|
-
var Resources = /** @
|
|
35493
|
+
var Resources = /** @class */ (function (_super) {
|
|
35441
35494
|
__extends$5(Resources, _super);
|
|
35442
35495
|
function Resources() {
|
|
35443
35496
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35453,7 +35506,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
35453
35506
|
/**
|
|
35454
35507
|
* Configures the iframe settings of the RTE.
|
|
35455
35508
|
*/
|
|
35456
|
-
var IFrameSettings = /** @
|
|
35509
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
35457
35510
|
__extends$5(IFrameSettings, _super);
|
|
35458
35511
|
function IFrameSettings() {
|
|
35459
35512
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35470,29 +35523,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35470
35523
|
return IFrameSettings;
|
|
35471
35524
|
}(ChildProperty));
|
|
35472
35525
|
|
|
35473
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
35474
|
-
var extendStatics = function (d, b) {
|
|
35475
|
-
extendStatics = Object.setPrototypeOf ||
|
|
35476
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35477
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35478
|
-
return extendStatics(d, b);
|
|
35479
|
-
};
|
|
35480
|
-
return function (d, b) {
|
|
35481
|
-
extendStatics(d, b);
|
|
35482
|
-
function __() { this.constructor = d; }
|
|
35483
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35484
|
-
};
|
|
35485
|
-
})();
|
|
35486
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35487
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35488
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35489
|
-
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;
|
|
35490
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35491
|
-
};
|
|
35526
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
35527
|
+
var extendStatics = function (d, b) {
|
|
35528
|
+
extendStatics = Object.setPrototypeOf ||
|
|
35529
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35530
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35531
|
+
return extendStatics(d, b);
|
|
35532
|
+
};
|
|
35533
|
+
return function (d, b) {
|
|
35534
|
+
extendStatics(d, b);
|
|
35535
|
+
function __() { this.constructor = d; }
|
|
35536
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35537
|
+
};
|
|
35538
|
+
})();
|
|
35539
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35540
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35541
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35542
|
+
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;
|
|
35543
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35544
|
+
};
|
|
35492
35545
|
/**
|
|
35493
35546
|
* Configures the inlineMode property of the RTE.
|
|
35494
35547
|
*/
|
|
35495
|
-
var InlineMode = /** @
|
|
35548
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
35496
35549
|
__extends$6(InlineMode, _super);
|
|
35497
35550
|
function InlineMode() {
|
|
35498
35551
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35509,7 +35562,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
35509
35562
|
/**
|
|
35510
35563
|
* `EnterKey` module is used to handle enter key press actions.
|
|
35511
35564
|
*/
|
|
35512
|
-
var EnterKeyAction = /** @
|
|
35565
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
35513
35566
|
function EnterKeyAction(parent) {
|
|
35514
35567
|
this.parent = parent;
|
|
35515
35568
|
this.addEventListener();
|
|
@@ -36013,7 +36066,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
36013
36066
|
this.range.insertNode(brElm);
|
|
36014
36067
|
}
|
|
36015
36068
|
}
|
|
36016
|
-
if (isEmptyBrInserted || (!isNullOrUndefined(brElm.nextElementSibling) && brElm.nextElementSibling.tagName === 'BR') || (!isNullOrUndefined(brElm.nextSibling) && brElm.nextSibling.textContent.length > 0)) {
|
|
36069
|
+
if (isEmptyBrInserted || (!isNullOrUndefined(brElm.nextElementSibling) && brElm.nextElementSibling.tagName === 'BR') || (!isNullOrUndefined(brElm.nextSibling) && (brElm.nextSibling.textContent.length > 0 || (brElm.nextSibling.nodeName === '#text' && brElm.nextSibling.textContent.trim().length === 0 && !isNullOrUndefined(brElm.nextSibling.nextSibling) && brElm.nextSibling.nextSibling.textContent.trim().length > 0)))) {
|
|
36017
36070
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), !isNullOrUndefined(brElm.nextSibling) && isFocusTextNode ? brElm.nextSibling : brElm, 0);
|
|
36018
36071
|
isEmptyBrInserted = false;
|
|
36019
36072
|
}
|
|
@@ -36178,36 +36231,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
36178
36231
|
return EnterKeyAction;
|
|
36179
36232
|
}());
|
|
36180
36233
|
|
|
36181
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36182
|
-
var extendStatics = function (d, b) {
|
|
36183
|
-
extendStatics = Object.setPrototypeOf ||
|
|
36184
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36185
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36186
|
-
return extendStatics(d, b);
|
|
36187
|
-
};
|
|
36188
|
-
return function (d, b) {
|
|
36189
|
-
extendStatics(d, b);
|
|
36190
|
-
function __() { this.constructor = d; }
|
|
36191
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36192
|
-
};
|
|
36193
|
-
})();
|
|
36194
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
36195
|
-
__assign = Object.assign || function(t) {
|
|
36196
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
36197
|
-
s = arguments[i];
|
|
36198
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
36199
|
-
t[p] = s[p];
|
|
36200
|
-
}
|
|
36201
|
-
return t;
|
|
36202
|
-
};
|
|
36203
|
-
return __assign.apply(this, arguments);
|
|
36204
|
-
};
|
|
36205
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36206
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36207
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36208
|
-
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;
|
|
36209
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36210
|
-
};
|
|
36234
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36235
|
+
var extendStatics = function (d, b) {
|
|
36236
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36237
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36238
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36239
|
+
return extendStatics(d, b);
|
|
36240
|
+
};
|
|
36241
|
+
return function (d, b) {
|
|
36242
|
+
extendStatics(d, b);
|
|
36243
|
+
function __() { this.constructor = d; }
|
|
36244
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36245
|
+
};
|
|
36246
|
+
})();
|
|
36247
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
36248
|
+
__assign = Object.assign || function(t) {
|
|
36249
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
36250
|
+
s = arguments[i];
|
|
36251
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
36252
|
+
t[p] = s[p];
|
|
36253
|
+
}
|
|
36254
|
+
return t;
|
|
36255
|
+
};
|
|
36256
|
+
return __assign.apply(this, arguments);
|
|
36257
|
+
};
|
|
36258
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36259
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36260
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36261
|
+
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;
|
|
36262
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36263
|
+
};
|
|
36211
36264
|
/**
|
|
36212
36265
|
* Represents the Rich Text Editor component.
|
|
36213
36266
|
* ```html
|
|
@@ -36218,7 +36271,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
36218
36271
|
* </script>
|
|
36219
36272
|
* ```
|
|
36220
36273
|
*/
|
|
36221
|
-
var RichTextEditor = /** @
|
|
36274
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
36222
36275
|
__extends$7(RichTextEditor, _super);
|
|
36223
36276
|
function RichTextEditor(options, element) {
|
|
36224
36277
|
var _this = _super.call(this, options, element) || this;
|