@syncfusion/ej2-richtexteditor 27.1.55 → 27.1.57-637882
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 +994 -749
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +622 -364
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/ej2-richtexteditor-component.sln +30 -0
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +85 -85
- package/src/common/editor-styles.js +1 -1
- package/src/common/interface.d.ts +10 -8
- package/src/common/util.js +2 -1
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/constant.d.ts +4 -0
- package/src/editor-manager/base/constant.js +4 -0
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +3 -3
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +36 -36
- package/src/editor-manager/plugin/dom-node.js +36 -36
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +27 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +11 -5
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +4 -2
- package/src/editor-manager/plugin/inserthtml.js +98 -19
- package/src/editor-manager/plugin/isformatted.d.ts +9 -9
- package/src/editor-manager/plugin/isformatted.js +9 -9
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +8 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +1 -1
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +10 -2
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +21 -5
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +49 -22
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/resize.js +4 -0
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +158 -158
- package/src/rich-text-editor/base/constant.js +158 -158
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +51 -51
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +958 -958
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +68 -65
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/default-locale.js +5 -5
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +38 -38
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/slash-menu-settings-model.d.ts +25 -25
- package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +807 -807
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +8 -2
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +65 -23
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/slash-menu.js +9 -0
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +5 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +8 -2
- package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
- package/src/rich-text-editor/renderer/view-source.js +5 -5
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +24 -23
- package/src/selection/selection.js +37 -34
- package/styles/_all.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +290 -290
- package/styles/rich-text-editor/_bigger.scss +610 -610
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -291
- package/styles/rich-text-editor/_bootstrap-definition.scss +349 -349
- package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -476
- package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -278
- package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -278
- package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -275
- package/styles/rich-text-editor/_fabric-definition.scss +273 -273
- package/styles/rich-text-editor/_fluent-definition.scss +279 -279
- package/styles/rich-text-editor/_fluent2-definition.scss +287 -287
- package/styles/rich-text-editor/_fusionnew-definition.scss +276 -276
- package/styles/rich-text-editor/_highcontrast-definition.scss +274 -274
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -273
- package/styles/rich-text-editor/_layout.scss +2180 -2180
- package/styles/rich-text-editor/_material-dark-definition.scss +278 -278
- package/styles/rich-text-editor/_material-definition.scss +276 -276
- package/styles/rich-text-editor/_material3-definition.scss +278 -278
- package/styles/rich-text-editor/_tailwind-definition.scss +273 -273
- package/styles/rich-text-editor/_theme.scss +844 -844
- package/styles/rich-text-editor/icons/_bds.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -373
- package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -372
- package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -372
- package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_fabric.scss +373 -373
- package/styles/rich-text-editor/icons/_fluent.scss +372 -372
- package/styles/rich-text-editor/icons/_fluent2.scss +369 -369
- package/styles/rich-text-editor/icons/_fusionnew.scss +357 -357
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -361
- package/styles/rich-text-editor/icons/_highcontrast.scss +373 -373
- package/styles/rich-text-editor/icons/_material-dark.scss +373 -373
- package/styles/rich-text-editor/icons/_material.scss +373 -373
- package/styles/rich-text-editor/icons/_material3.scss +372 -372
- package/styles/rich-text-editor/icons/_tailwind.scss +372 -372
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- package/dist/ej2-richtexteditor.min.js +0 -10
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -3048,11 +3048,11 @@ var formatsLocale = [
|
|
|
3048
3048
|
var numberFormatListLocale = [
|
|
3049
3049
|
{ locale: 'numberFormatListNone', value: 'none' },
|
|
3050
3050
|
{ locale: 'numberFormatListNumber', value: 'decimal' },
|
|
3051
|
-
{ locale: 'numberFormatListLowerAlpha', value: '
|
|
3052
|
-
{ locale: 'numberFormatListUpperAlpha', value: '
|
|
3053
|
-
{ locale: 'numberFormatListLowerRoman', value: '
|
|
3054
|
-
{ locale: 'numberFormatListUpperRoman', value: '
|
|
3055
|
-
{ locale: 'numberFormatListLowerGreek', value: '
|
|
3051
|
+
{ locale: 'numberFormatListLowerAlpha', value: 'lowerAlpha' },
|
|
3052
|
+
{ locale: 'numberFormatListUpperAlpha', value: 'upperAlpha' },
|
|
3053
|
+
{ locale: 'numberFormatListLowerRoman', value: 'lowerRoman' },
|
|
3054
|
+
{ locale: 'numberFormatListUpperRoman', value: 'upperRoman' },
|
|
3055
|
+
{ locale: 'numberFormatListLowerGreek', value: 'lowerGreek' }
|
|
3056
3056
|
];
|
|
3057
3057
|
var bulletFormatListLocale = [
|
|
3058
3058
|
{ locale: 'bulletFormatListNone', value: 'none' },
|
|
@@ -3690,7 +3690,7 @@ function updateDropDownFontFormatLocale(self) {
|
|
|
3690
3690
|
* @hidden
|
|
3691
3691
|
* @deprecated
|
|
3692
3692
|
*/
|
|
3693
|
-
var ContentRender = /** @
|
|
3693
|
+
var ContentRender = /** @class */ (function () {
|
|
3694
3694
|
/**
|
|
3695
3695
|
* Constructor for content renderer module
|
|
3696
3696
|
*
|
|
@@ -3787,7 +3787,7 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
3787
3787
|
* @hidden
|
|
3788
3788
|
* @deprecated
|
|
3789
3789
|
*/
|
|
3790
|
-
var Render = /** @
|
|
3790
|
+
var Render = /** @class */ (function () {
|
|
3791
3791
|
/**
|
|
3792
3792
|
* Constructor for render module
|
|
3793
3793
|
*
|
|
@@ -3886,7 +3886,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
3886
3886
|
* @hidden
|
|
3887
3887
|
* @deprecated
|
|
3888
3888
|
*/
|
|
3889
|
-
var IsFormatted = /** @
|
|
3889
|
+
var IsFormatted = /** @class */ (function () {
|
|
3890
3890
|
function IsFormatted() {
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
@@ -4247,11 +4247,15 @@ var SELF_CLOSING_TAGS = ['area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'p
|
|
|
4247
4247
|
* @hidden
|
|
4248
4248
|
*/
|
|
4249
4249
|
var PASTE_SOURCE = ['word', 'excel', 'onenote'];
|
|
4250
|
+
/**
|
|
4251
|
+
* @hidden
|
|
4252
|
+
*/
|
|
4253
|
+
var ALLOWED_TABLE_BLOCK_TAGS = ['article', 'aside', 'blockquote', 'body', 'canvas', 'details', 'div', 'fieldset', 'figure', 'footer', 'form', 'header', 'li', 'main', 'nav', 'noscript', 'section'];
|
|
4250
4254
|
|
|
4251
4255
|
/**
|
|
4252
4256
|
* `Selection` module is used to handle RTE Selections.
|
|
4253
4257
|
*/
|
|
4254
|
-
var NodeSelection = /** @
|
|
4258
|
+
var NodeSelection = /** @class */ (function () {
|
|
4255
4259
|
function NodeSelection(editElement) {
|
|
4256
4260
|
this.startNodeName = [];
|
|
4257
4261
|
this.endNodeName = [];
|
|
@@ -4375,7 +4379,8 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4375
4379
|
var tableCursor = this.processedTableImageCursor(range);
|
|
4376
4380
|
if (tableCursor.start || tableCursor.end) {
|
|
4377
4381
|
if (tableCursor.startName === 'TABLE' || tableCursor.endName === 'TABLE') {
|
|
4378
|
-
|
|
4382
|
+
var tableNode = tableCursor.start ? tableCursor.startNode : tableCursor.endNode;
|
|
4383
|
+
return [tableNode];
|
|
4379
4384
|
}
|
|
4380
4385
|
}
|
|
4381
4386
|
if ((startNode === endNode || (startNode.nodeName === 'BR' && startNode === range.endContainer.childNodes[range.endOffset])) &&
|
|
@@ -4701,34 +4706,36 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
|
|
|
4701
4706
|
var customHandlerElements = ['TABLE'];
|
|
4702
4707
|
var startContainer = range.startContainer;
|
|
4703
4708
|
var startOffset = range.startOffset;
|
|
4709
|
+
var startNode = startContainer.childNodes[startOffset];
|
|
4704
4710
|
var isCursorAtStart = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4705
|
-
startContainer.isContentEditable &&
|
|
4706
|
-
(customHandlerElements.indexOf(
|
|
4711
|
+
startContainer.isContentEditable && startNode &&
|
|
4712
|
+
(customHandlerElements.indexOf(startNode.nodeName) > -1);
|
|
4707
4713
|
if (isCursorAtStart) {
|
|
4708
|
-
return { start: isCursorAtStart, startNodeName:
|
|
4714
|
+
return { start: isCursorAtStart, startNodeName: startNode.nodeName, startNode: startNode };
|
|
4709
4715
|
}
|
|
4710
4716
|
else {
|
|
4711
|
-
return { start: false, startNodeName: '' };
|
|
4717
|
+
return { start: false, startNodeName: '', startNode: undefined };
|
|
4712
4718
|
}
|
|
4713
4719
|
};
|
|
4714
4720
|
NodeSelection.prototype.isTableOrImageEnd = function (range) {
|
|
4715
4721
|
var customHandlerElements = ['TABLE'];
|
|
4716
4722
|
var startContainer = range.startContainer;
|
|
4717
4723
|
var startOffset = range.startOffset;
|
|
4724
|
+
var endNode = startContainer.childNodes[startOffset - 1];
|
|
4718
4725
|
var isCursorAtEnd = range.collapsed && (startContainer.nodeType === 1) &&
|
|
4719
|
-
startContainer.isContentEditable &&
|
|
4720
|
-
(customHandlerElements.indexOf(
|
|
4726
|
+
startContainer.isContentEditable && endNode &&
|
|
4727
|
+
(customHandlerElements.indexOf(endNode.nodeName) > -1);
|
|
4721
4728
|
if (isCursorAtEnd) {
|
|
4722
|
-
return { end: isCursorAtEnd, endNodeName:
|
|
4729
|
+
return { end: isCursorAtEnd, endNodeName: endNode.nodeName, endNode: endNode };
|
|
4723
4730
|
}
|
|
4724
4731
|
else {
|
|
4725
|
-
return { end: false, endNodeName: '' };
|
|
4732
|
+
return { end: false, endNodeName: '', endNode: undefined };
|
|
4726
4733
|
}
|
|
4727
4734
|
};
|
|
4728
4735
|
NodeSelection.prototype.processedTableImageCursor = function (range) {
|
|
4729
|
-
var _a = this.isTableOrImageStart(range), start = _a.start, startNodeName = _a.startNodeName;
|
|
4730
|
-
var _b = this.isTableOrImageEnd(range), end = _b.end, endNodeName = _b.endNodeName;
|
|
4731
|
-
return { start: start, startName: startNodeName, end: end, endName: endNodeName };
|
|
4736
|
+
var _a = this.isTableOrImageStart(range), start = _a.start, startNodeName = _a.startNodeName, startNode = _a.startNode;
|
|
4737
|
+
var _b = this.isTableOrImageEnd(range), end = _b.end, endNodeName = _b.endNodeName, endNode = _b.endNode;
|
|
4738
|
+
return { start: start, startName: startNodeName, end: end, endName: endNodeName, startNode: startNode, endNode: endNode };
|
|
4732
4739
|
};
|
|
4733
4740
|
return NodeSelection;
|
|
4734
4741
|
}());
|
|
@@ -4816,7 +4823,8 @@ function updateTextNode$1(value, enterAction) {
|
|
|
4816
4823
|
}
|
|
4817
4824
|
var tableElm = resultElm.querySelectorAll('table');
|
|
4818
4825
|
for (var i = 0; i < tableElm.length; i++) {
|
|
4819
|
-
if (tableElm[i].classList.length > 0 && !tableElm[i].classList.contains('e-rte-table')
|
|
4826
|
+
if (tableElm[i].classList.length > 0 && !tableElm[i].classList.contains('e-rte-table') &&
|
|
4827
|
+
!tableElm[i].classList.contains('e-rte-custom-table')) {
|
|
4820
4828
|
tableElm[i].classList.add('e-rte-paste-table');
|
|
4821
4829
|
if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
|
|
4822
4830
|
tableElm[i].classList.remove('e-rte-paste-word-table');
|
|
@@ -5066,7 +5074,7 @@ function removeClassWithAttr(elements, classes) {
|
|
|
5066
5074
|
* @deprecated
|
|
5067
5075
|
*/
|
|
5068
5076
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
5069
|
-
var ToolbarStatus = /** @
|
|
5077
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
5070
5078
|
function ToolbarStatus() {
|
|
5071
5079
|
}
|
|
5072
5080
|
/**
|
|
@@ -5464,7 +5472,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
5464
5472
|
* @hidden
|
|
5465
5473
|
* @deprecated
|
|
5466
5474
|
*/
|
|
5467
|
-
var ToolbarRenderer = /** @
|
|
5475
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
5468
5476
|
/**
|
|
5469
5477
|
* Constructor for toolbar renderer module
|
|
5470
5478
|
*
|
|
@@ -6210,7 +6218,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
6210
6218
|
/**
|
|
6211
6219
|
* `Link` module is used to handle undo actions.
|
|
6212
6220
|
*/
|
|
6213
|
-
var Link = /** @
|
|
6221
|
+
var Link = /** @class */ (function () {
|
|
6214
6222
|
function Link(parent, serviceLocator) {
|
|
6215
6223
|
this.parent = parent;
|
|
6216
6224
|
this.rteID = parent.element.id;
|
|
@@ -6628,6 +6636,9 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
6628
6636
|
if (document.body.contains(proxy.dialogObj.element)) {
|
|
6629
6637
|
this.selfLink.dialogObj.hide({ returnValue: false });
|
|
6630
6638
|
}
|
|
6639
|
+
if (this.selfLink.dialogObj !== null) {
|
|
6640
|
+
return;
|
|
6641
|
+
}
|
|
6631
6642
|
if (isIDevice$1() && proxy.parent.iframeSettings.enable) {
|
|
6632
6643
|
select('iframe', proxy.parent.element).contentWindow.focus();
|
|
6633
6644
|
}
|
|
@@ -6942,7 +6953,7 @@ var mentionRestrictKeys = [
|
|
|
6942
6953
|
/**
|
|
6943
6954
|
* `Image` module is used to handle image actions.
|
|
6944
6955
|
*/
|
|
6945
|
-
var Image$1 = /** @
|
|
6956
|
+
var Image$1 = /** @class */ (function () {
|
|
6946
6957
|
function Image(parent, serviceLocator) {
|
|
6947
6958
|
this.isImgUploaded = false;
|
|
6948
6959
|
this.isAllowedTypes = true;
|
|
@@ -7138,8 +7149,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7138
7149
|
if (this.parent.formatter.getUndoRedoStack().length === 0) {
|
|
7139
7150
|
this.parent.formatter.saveData();
|
|
7140
7151
|
}
|
|
7141
|
-
|
|
7142
|
-
|
|
7152
|
+
if (this.parent.iframeSettings.enable) {
|
|
7153
|
+
this.pageX = e.screenX;
|
|
7154
|
+
this.pageY = e.screenY;
|
|
7155
|
+
}
|
|
7156
|
+
else {
|
|
7157
|
+
this.pageX = this.getPointX(e);
|
|
7158
|
+
this.pageY = this.getPointY(e);
|
|
7159
|
+
}
|
|
7143
7160
|
e.preventDefault();
|
|
7144
7161
|
e.stopImmediatePropagation();
|
|
7145
7162
|
this.resizeBtnInit();
|
|
@@ -7404,25 +7421,43 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7404
7421
|
return;
|
|
7405
7422
|
}
|
|
7406
7423
|
if (this.resizeBtnStat.botRight || this.resizeBtnStat.botLeft || this.resizeBtnStat.topRight || this.resizeBtnStat.topLeft) {
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7424
|
+
if (this.parent.iframeSettings.enable) {
|
|
7425
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7426
|
+
var currentScreenX = e.screenX;
|
|
7427
|
+
var currentScreenY = e.screenY;
|
|
7428
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7429
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7430
|
+
var deltaX = currentScreenX - this.pageX;
|
|
7431
|
+
var deltaY = currentScreenY - this.pageY;
|
|
7432
|
+
var width = deltaX * resizeFactor[0] + currentWidth;
|
|
7433
|
+
var height = deltaY * resizeFactor[1] + currentHeight;
|
|
7434
|
+
var dimensions = this.adjustDimensions(width, height, deltaX, deltaY, this.aspectRatio);
|
|
7435
|
+
this.pageX = currentScreenX;
|
|
7436
|
+
this.pageY = currentScreenY;
|
|
7437
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7438
|
+
this.parent.autoResize();
|
|
7439
|
+
}
|
|
7440
|
+
else {
|
|
7441
|
+
var pageX = this.getPointX(e);
|
|
7442
|
+
var pageY = this.getPointY(e);
|
|
7443
|
+
var resizeFactor = this.getResizeFactor(this.currentResizeHandler);
|
|
7444
|
+
var diffX = (pageX - this.pageX);
|
|
7445
|
+
var diffY = (pageY - this.pageY);
|
|
7446
|
+
var currentWidth = this.imgEle.clientWidth;
|
|
7447
|
+
var currentHeight = this.imgEle.clientHeight;
|
|
7448
|
+
var width = diffX * resizeFactor[0] + currentWidth;
|
|
7449
|
+
var height = diffY * resizeFactor[1] + currentHeight;
|
|
7450
|
+
var dimensions = this.adjustDimensions(width, height, diffX, diffY, this.aspectRatio);
|
|
7451
|
+
this.pageX = pageX;
|
|
7452
|
+
this.pageY = pageY;
|
|
7453
|
+
this.imgDupMouseMove(dimensions.width + 'px', dimensions.height + 'px', e);
|
|
7454
|
+
}
|
|
7420
7455
|
}
|
|
7421
7456
|
};
|
|
7422
7457
|
Image.prototype.adjustDimensions = function (width, height, diffX, diffY, aspectRatio) {
|
|
7423
7458
|
width = (width < 16) ? 16 : width;
|
|
7424
7459
|
height = (height < 16) ? 16 : height;
|
|
7425
|
-
var isWidthPrimary =
|
|
7460
|
+
var isWidthPrimary = width > height;
|
|
7426
7461
|
var dimensions = this.adjustDimensionsByAspectRatio(width, height, aspectRatio, isWidthPrimary);
|
|
7427
7462
|
return dimensions;
|
|
7428
7463
|
};
|
|
@@ -7842,7 +7877,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
7842
7877
|
_this.parent.formatter.editorManager.nodeSelection.Clear(_this.contentModule.getDocument());
|
|
7843
7878
|
_this.parent.formatter.editorManager.nodeSelection.setSelectionContents(_this.contentModule.getDocument(), target);
|
|
7844
7879
|
_this.quickToolObj.imageQTBar.showPopup(args.pageX, pageY, target);
|
|
7845
|
-
_this.
|
|
7880
|
+
if (_this.parent.insertImageSettings.resize === true) {
|
|
7881
|
+
_this.resizeStart(e.args, target);
|
|
7882
|
+
}
|
|
7846
7883
|
}, 400);
|
|
7847
7884
|
}
|
|
7848
7885
|
else {
|
|
@@ -8519,6 +8556,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8519
8556
|
proxy.uploadUrl.cssClass = (proxy.parent.insertImageSettings.display === 'inline' ?
|
|
8520
8557
|
CLS_IMGINLINE : CLS_IMGBREAK);
|
|
8521
8558
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8559
|
+
if (proxy.dialogObj !== null) {
|
|
8560
|
+
return;
|
|
8561
|
+
}
|
|
8522
8562
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
8523
8563
|
proxy.uploadUrl.url = '';
|
|
8524
8564
|
if (proxy.contentModule.getEditPanel().querySelector('.e-img-resize')) {
|
|
@@ -8549,8 +8589,11 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8549
8589
|
maxHeight: proxy.parent.insertImageSettings.maxHeight
|
|
8550
8590
|
}
|
|
8551
8591
|
};
|
|
8552
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8553
8592
|
proxy.dialogObj.hide({ returnValue: false });
|
|
8593
|
+
if (proxy.dialogObj !== null) {
|
|
8594
|
+
return;
|
|
8595
|
+
}
|
|
8596
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8554
8597
|
}
|
|
8555
8598
|
};
|
|
8556
8599
|
Image.prototype.imgsizeInput = function (e) {
|
|
@@ -8726,9 +8769,17 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8726
8769
|
}
|
|
8727
8770
|
};
|
|
8728
8771
|
proxy.inputUrl.setAttribute('disabled', 'true');
|
|
8729
|
-
if (isNullOrUndefined(
|
|
8730
|
-
|
|
8731
|
-
|
|
8772
|
+
if (!isNullOrUndefined(_this.dialogObj)) {
|
|
8773
|
+
var button = _this.dialogObj.getButtons(0);
|
|
8774
|
+
if (!isNullOrUndefined(button)) {
|
|
8775
|
+
if (isNullOrUndefined(proxy.parent.insertImageSettings.saveUrl) && _this.isAllowedTypes
|
|
8776
|
+
&& selectArgs.filesData[0].size <= _this.uploadObj.maxFileSize) {
|
|
8777
|
+
button.element.removeAttribute('disabled');
|
|
8778
|
+
}
|
|
8779
|
+
else {
|
|
8780
|
+
button.element.setAttribute('disabled', 'true');
|
|
8781
|
+
}
|
|
8782
|
+
}
|
|
8732
8783
|
}
|
|
8733
8784
|
});
|
|
8734
8785
|
reader_1.readAsDataURL(selectArgs.filesData[0].rawFile);
|
|
@@ -9316,7 +9367,9 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
9316
9367
|
if (imageElement) {
|
|
9317
9368
|
this.showImageQTbarTime = setTimeout(function () {
|
|
9318
9369
|
_this.showImageQuickToolbar(args);
|
|
9319
|
-
_this.
|
|
9370
|
+
if (_this.parent.insertImageSettings.resize) {
|
|
9371
|
+
_this.resizeStart(e.args, imageElement);
|
|
9372
|
+
}
|
|
9320
9373
|
}, 0);
|
|
9321
9374
|
}
|
|
9322
9375
|
};
|
|
@@ -9378,7 +9431,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
9378
9431
|
/**
|
|
9379
9432
|
* `Audio` module is used to handle audio actions.
|
|
9380
9433
|
*/
|
|
9381
|
-
var Audio = /** @
|
|
9434
|
+
var Audio = /** @class */ (function () {
|
|
9382
9435
|
function Audio(parent, serviceLocator) {
|
|
9383
9436
|
this.isAudioUploaded = false;
|
|
9384
9437
|
this.isAllowedTypes = true;
|
|
@@ -10209,6 +10262,9 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10209
10262
|
proxy.uploadUrl.cssClass = (proxy.parent.insertAudioSettings.layoutOption === 'Inline' ?
|
|
10210
10263
|
CLS_AUDIOINLINE : CLS_AUDIOBREAK);
|
|
10211
10264
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10265
|
+
if (proxy.dialogObj !== null) {
|
|
10266
|
+
return;
|
|
10267
|
+
}
|
|
10212
10268
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
10213
10269
|
proxy.uploadUrl.url = '';
|
|
10214
10270
|
}
|
|
@@ -10227,8 +10283,11 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10227
10283
|
url: url, selection: this.selection, fileName: name_1,
|
|
10228
10284
|
selectParent: this.selectParent
|
|
10229
10285
|
};
|
|
10230
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10231
10286
|
proxy.dialogObj.hide({ returnValue: false });
|
|
10287
|
+
if (proxy.dialogObj !== null) {
|
|
10288
|
+
return;
|
|
10289
|
+
}
|
|
10290
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
10232
10291
|
}
|
|
10233
10292
|
};
|
|
10234
10293
|
/* eslint-disable */
|
|
@@ -10266,7 +10325,7 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
10266
10325
|
return Audio;
|
|
10267
10326
|
}());
|
|
10268
10327
|
|
|
10269
|
-
var Video = /** @
|
|
10328
|
+
var Video = /** @class */ (function () {
|
|
10270
10329
|
function Video(parent, serviceLocator) {
|
|
10271
10330
|
this.isVideoUploaded = false;
|
|
10272
10331
|
this.isAllowedTypes = true;
|
|
@@ -11702,6 +11761,9 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11702
11761
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11703
11762
|
};
|
|
11704
11763
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11764
|
+
if (proxy.dialogObj !== null) {
|
|
11765
|
+
return;
|
|
11766
|
+
}
|
|
11705
11767
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
|
|
11706
11768
|
proxy.uploadUrl.url = '';
|
|
11707
11769
|
}
|
|
@@ -11728,8 +11790,11 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
11728
11790
|
maxHeight: proxy.parent.insertVideoSettings.maxHeight
|
|
11729
11791
|
}
|
|
11730
11792
|
};
|
|
11731
|
-
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11732
11793
|
proxy.dialogObj.hide({ returnValue: false });
|
|
11794
|
+
if (proxy.dialogObj !== null) {
|
|
11795
|
+
return;
|
|
11796
|
+
}
|
|
11797
|
+
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
11733
11798
|
}
|
|
11734
11799
|
};
|
|
11735
11800
|
/* eslint-disable */
|
|
@@ -11885,25 +11950,25 @@ var DESTROY = 'destroy';
|
|
|
11885
11950
|
*/
|
|
11886
11951
|
var INTERNAL_DESTROY = 'internal_destroy';
|
|
11887
11952
|
|
|
11888
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11889
|
-
var extendStatics = function (d, b) {
|
|
11890
|
-
extendStatics = Object.setPrototypeOf ||
|
|
11891
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11892
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11893
|
-
return extendStatics(d, b);
|
|
11894
|
-
};
|
|
11895
|
-
return function (d, b) {
|
|
11896
|
-
extendStatics(d, b);
|
|
11897
|
-
function __() { this.constructor = d; }
|
|
11898
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11899
|
-
};
|
|
11900
|
-
})();
|
|
11901
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11902
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11903
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11904
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11905
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11906
|
-
};
|
|
11953
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11954
|
+
var extendStatics = function (d, b) {
|
|
11955
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11956
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11957
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11958
|
+
return extendStatics(d, b);
|
|
11959
|
+
};
|
|
11960
|
+
return function (d, b) {
|
|
11961
|
+
extendStatics(d, b);
|
|
11962
|
+
function __() { this.constructor = d; }
|
|
11963
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11964
|
+
};
|
|
11965
|
+
})();
|
|
11966
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11967
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11968
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11969
|
+
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;
|
|
11970
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11971
|
+
};
|
|
11907
11972
|
var keyCode = {
|
|
11908
11973
|
'backspace': 8,
|
|
11909
11974
|
'tab': 9,
|
|
@@ -11974,7 +12039,7 @@ var keyCode = {
|
|
|
11974
12039
|
* @hidden
|
|
11975
12040
|
* @deprecated
|
|
11976
12041
|
*/
|
|
11977
|
-
var KeyboardEvents = /** @
|
|
12042
|
+
var KeyboardEvents = /** @class */ (function (_super) {
|
|
11978
12043
|
__extends(KeyboardEvents, _super);
|
|
11979
12044
|
/**
|
|
11980
12045
|
* Initializes the KeyboardEvents
|
|
@@ -12120,7 +12185,7 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
|
|
|
12120
12185
|
* @hidden
|
|
12121
12186
|
* @deprecated
|
|
12122
12187
|
*/
|
|
12123
|
-
var ViewSource = /** @
|
|
12188
|
+
var ViewSource = /** @class */ (function () {
|
|
12124
12189
|
/**
|
|
12125
12190
|
* Constructor for view source module
|
|
12126
12191
|
*
|
|
@@ -12359,7 +12424,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
12359
12424
|
/**
|
|
12360
12425
|
* `Table` module is used to handle table actions.
|
|
12361
12426
|
*/
|
|
12362
|
-
var Table = /** @
|
|
12427
|
+
var Table = /** @class */ (function () {
|
|
12363
12428
|
function Table(parent, serviceLocator) {
|
|
12364
12429
|
this.ensureInsideTableList = true;
|
|
12365
12430
|
this.pageX = null;
|
|
@@ -13416,7 +13481,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13416
13481
|
return;
|
|
13417
13482
|
}
|
|
13418
13483
|
var target = e.target || e.targetTouches[0].target;
|
|
13419
|
-
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table');
|
|
13484
|
+
var closestTable = closest(target, 'table.e-rte-table, table.e-rte-paste-table, table.e-rte-custom-table');
|
|
13420
13485
|
var isResizing = this.parent.contentModule.getEditPanel().querySelectorAll('.e-table-box.e-rbox-select, .e-table-rhelper.e-column-helper, .e-table-rhelper.e-row-helper').length > 0;
|
|
13421
13486
|
if (!isResizing && !isNullOrUndefined(this.curTable) && !isNullOrUndefined(closestTable) && closestTable !== this.curTable &&
|
|
13422
13487
|
this.parent.contentModule.getEditPanel().contains(closestTable)) {
|
|
@@ -13767,7 +13832,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13767
13832
|
else {
|
|
13768
13833
|
var tableReBox = _this.contentModule.getEditPanel().querySelector('.e-table-box');
|
|
13769
13834
|
var tableWidth = parseInt(getComputedStyle(_this.curTable).width, 10);
|
|
13770
|
-
var tableHeight = parseInt(
|
|
13835
|
+
var tableHeight = !isNaN(parseInt(_this.curTable.style.height, 10)) ?
|
|
13836
|
+
parseInt(_this.curTable.style.height, 10) : parseInt(getComputedStyle(_this.curTable).height, 10);
|
|
13771
13837
|
var paddingSize = +getComputedStyle(_this.contentModule.getEditPanel()).paddingRight.match(/\d/g).join('');
|
|
13772
13838
|
var rteWidth = _this.contentModule.getEditPanel().offsetWidth -
|
|
13773
13839
|
(_this.contentModule.getEditPanel().offsetWidth -
|
|
@@ -13912,7 +13978,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
13912
13978
|
_this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
13913
13979
|
if (!isNullOrUndefined(tableReBox)) {
|
|
13914
13980
|
tableReBox.classList.add('e-rbox-select');
|
|
13915
|
-
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top +
|
|
13981
|
+
tableReBox.style.cssText = 'top: ' + (_this.calcPos(_this.curTable).top + parseInt(getComputedStyle(_this.curTable).height, 10) - 4) +
|
|
13916
13982
|
'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
|
|
13917
13983
|
}
|
|
13918
13984
|
if (_this.curTable.closest('li')) {
|
|
@@ -14552,7 +14618,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
14552
14618
|
/**
|
|
14553
14619
|
* Dialog Renderer
|
|
14554
14620
|
*/
|
|
14555
|
-
var DialogRenderer = /** @
|
|
14621
|
+
var DialogRenderer = /** @class */ (function () {
|
|
14556
14622
|
function DialogRenderer(parent) {
|
|
14557
14623
|
this.parent = parent;
|
|
14558
14624
|
this.addEventListener();
|
|
@@ -14670,21 +14736,21 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14670
14736
|
return DialogRenderer;
|
|
14671
14737
|
}());
|
|
14672
14738
|
|
|
14673
|
-
var IFRAME_EDITOR_STYLES = "\n@charset \"UTF-8\";\n\nhtml {\n height: auto;\n}\n\nhtml, body {\n margin: 0;\n}\n\nbody {\n color: #333;\n word-wrap: break-word;\n}\n\n.e-content {\n background: unset;\n box-sizing: border-box;\n min-height: 100px;\n outline: 0 solid transparent;\n padding: 16px;\n position: relative;\n overflow-x: auto;\n font-weight: normal;\n line-height: 1.5;\n font-size: 14px;\n text-align: inherit;\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\", \"-apple-system\", \"BlinkMacSystemFont\";\n}\n\n.e-content p {\n margin: 0 0 10px;\n margin-bottom: 10px;\n}\n\n.e-content h1 {\n font-size: 2.857em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h2 {\n font-size: 2.285em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h3 {\n font-size: 2em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h4 {\n font-size: 1.714em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h5 {\n font-size: 1.428em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h6 {\n font-size: 1.142em;\n font-weight: 600;\n line-height: 1.5;\n margin: 10px 0;\n}\n\n.e-content blockquote {\n margin: 10px 0;\n padding-left: 12px;\n border-left: 2px solid #5c5c5c;\n}\n\n.e-rtl.e-content blockquote {\n padding-left: 0;\n padding-right: 12px;\n}\n\n.e-content pre {\n border: 0;\n border-radius: 0;\n color: #333;\n font-size: inherit;\n line-height: inherit;\n margin: 0 0 10px;\n overflow: visible;\n padding: 0;\n white-space: pre-wrap;\n word-break: inherit;\n word-wrap: break-word;\n}\n\n.e-content code {\n background: #9d9d9d26;\n color: #ed484c;\n}\n\n.e-content strong,\n.e-content b {\n font-weight: bold;\n}\n\n.e-content a {\n text-decoration: none;\n user-select: auto;\n}\n\n.e-content a:hover {\n text-decoration: underline;\n}\n\n.e-content li {\n margin-bottom: 10px;\n}\n\n.e-content li ol,\n.e-content li ul {\n margin-block-start: 10px;\n}\n\n.e-content ul {\n list-style-type: disc;\n}\n\n.e-content ul ul,\n.e-content ol ul {\n list-style-type: circle;\n}\n\n.e-content ul ul ul,\n.e-content ol ul ul,\n.e-content ul ol ul,\n.e-content ol ol ul {\n list-style-type: square;\n}\n\n.e-rte-image,\n.e-rte-video {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-content p:last-child,\n.e-content pre:last-child,\n.e-content blockquote:last-child {\n margin-bottom: 0;\n}\n\n.e-content h3 + h4,\n.e-content h4 + h5,\n.e-content h5 + h6 {\n margin-top: 0.6em;\n}\n\n.e-content ul:last-child {\n margin-bottom: 0;\n}\n\n.e-content table {\n margin-bottom: 10px;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n.e-content table.e-cell-select {\n position: relative;\n}\n\n.e-content table.e-cell-select::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid #4a90e2;\n pointer-events: none;\n}\n\ntable .e-cell-select {\n border: 1px double #4a90e2 !important;\n}\n\n.e-content table.e-rte-table th {\n background-color: #E0E0E0;\n}\n\n.e-rte-table td,\n.e-rte-table th {\n border: 1px solid #BDBDBD;\n height: 20px;\n min-width: 20px;\n padding: 2px 5px;\n box-sizing: border-box;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select,\n.e-rte-table th.e-cell-select.e-multi-cells-select {\n position: relative;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select::after,\n.e-rte-table th.e-cell-select.e-multi-cells-select::after {\n background-color: rgba(13, 110, 253, 0.08);\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n bottom: 0;\n pointer-events: none;\n right: 0;\n}\n\ntable td.e-multi-cells-select ::selection,\ntable th.e-multi-cells-select ::selection {\n background-color: transparent;\n}\n\ntd.e-multi-cells-select,\nth.e-multi-cells-select {\n user-select: none !important;\n}\n\n.e-rte-table.e-dashed-border td,\n.e-rte-table.e-dashed-border th {\n border-style: dashed;\n}\n\n.e-rte-table .e-alternate-border tbody tr:nth-child(2n) {\n background-color: #F5F5F5;\n}\n\n.e-rte-audio {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imginline,\n.e-rte-audio.e-audio-inline,\n.e-rte-video.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n padding: 1px;\n vertical-align: bottom;\n}\n\n.e-rte-image.e-imgcenter,\n.e-rte-video.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imgright,\n.e-rte-video.e-video-right {\n float: right;\n margin: 0 auto;\n margin-left: 5px;\n text-align: right;\n}\n\n.e-rte-image.e-imgleft,\n.e-rte-video.e-video-left {\n float: left;\n margin: 0 auto;\n margin-right: 5px;\n text-align: left;\n}\n\n.e-img-caption {\n display: inline-block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-img-caption.e-caption-inline {\n display: inline-block;\n float: none;\n margin: 5px auto;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n position: relative;\n text-align: center;\n vertical-align: bottom;\n}\n\n.e-rte-img-caption.e-imgcenter {\n display: contents;\n margin-left: auto;\n margin-right: auto;\n}\n\n.e-rte-img-caption.e-imgright {\n display: contents;\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption.e-imgleft {\n display: contents;\n margin-left: 0;\n margin-right: auto;\n}\n\n.e-img-caption.e-rte-img-caption.e-imgbreak {\n display: contents;\n}\n\n.e-img-inner {\n box-sizing: border-box;\n display: block;\n font-size: 16px;\n font-weight: initial;\n margin: auto;\n opacity: .9;\n text-align: center;\n width: 100%;\n}\n\n.e-img-wrap {\n display: inline-block;\n margin: auto;\n padding: 0;\n text-align: center;\n width: 100%;\n}\n\n.e-imgleft,\n.e-video-left {\n float: left;\n margin: 0 5px 0 0;\n text-align: left;\n}\n\n.e-imgright,\n.e-video-right {\n float: right;\n margin: 0 0 0 5px;\n text-align: right;\n}\n\n.e-imgcenter,\n.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-control img:not(.e-resize) {\n border: 2px solid transparent;\n z-index: 1000\n}\n\n.e-imginline,\n.e-audio-inline,\n.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n vertical-align: bottom;\n}\n\n.e-imgbreak,\n.e-audio-break,\n.e-video-break {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-img-focus:not(.e-resize),\n.e-audio-focus:not(.e-resize),\n.e-video-focus:not(.e-resize) {\n border: solid 2px #4a90e2;\n}\n\nimg.e-img-focus::selection,\naudio.e-audio-focus::selection,\n.e-video-focus::selection {\n background: transparent;\n color: transparent;\n}\n\nspan.e-rte-imageboxmark,\nspan.e-rte-videoboxmark {\n width: 10px;\n height: 10px;\n position: absolute;\n display: block;\n background: #4a90e2;\n border: 1px solid #fff;\n z-index: 1000;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-mob-rte span.e-rte-imageboxmark,\n.e-mob-rte span.e-rte-videoboxmark {\n background: #fff;\n border: 1px solid #4a90e2;\n border-radius: 15px;\n height: 20px;\n width: 20px;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-content img.e-resize,\n.e-content video.e-resize {\n z-index: 1000;\n}\n\n.e-img-caption .e-img-inner {\n outline: 0;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-inner {\n float: left;\n text-align: left;\n}\n\n.e-rte-img-caption.e-imgright .e-img-inner {\n float: right;\n text-align: right;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-wrap,\n.e-rte-img-caption.e-imgright .e-img-wrap {\n display: contents;\n}\n\n.e-img-caption a:focus-visible {\n outline: none;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgright {\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgleft {\n margin: 0;\n}\n\nspan.e-table-box {\n cursor: nwse-resize;\n display: block;\n height: 10px;\n position: absolute;\n width: 10px;\n background-color: #ffffff;\n border: 1px solid #BDBDBD;\n}\n\nspan.e-table-box.e-rmob {\n height: 14px;\n width: 14px;\n background-color: #BDBDBD;\n border: 1px solid #BDBDBD;\n}\n\n.e-row-resize,\n.e-column-resize {\n background-color: transparent;\n background-repeat: repeat;\n bottom: 0;\n cursor: col-resize;\n height: 1px;\n overflow: visible;\n position: absolute;\n width: 1px;\n}\n\n.e-row-resize {\n cursor: row-resize;\n height: 1px;\n}\n\n.e-table-rhelper {\n cursor: col-resize;\n opacity: .87;\n position: absolute;\n}\n\n.e-table-rhelper.e-column-helper {\n width: 1px;\n}\n\n.e-table-rhelper.e-row-helper {\n height: 1px;\n}\n\n.e-reicon::before {\n border-bottom: 6px solid transparent;\n border-right: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n position: absolute;\n right: 4px;\n top: 4px;\n width: 20px;\n}\n\n.e-reicon::after {\n border-bottom: 6px solid transparent;\n border-left: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n left: 4px;\n position: absolute;\n top: 4px;\n width: 20px;\n z-index: 3;\n}\n\n.e-row-helper.e-reicon::after {\n top: 10px;\n transform: rotate(90deg);\n}\n\n.e-row-helper.e-reicon::before {\n left: 4px;\n top: -20px;\n transform: rotate(90deg);\n}\n\n\n.e-table-rhelper {\n background-color: #4a90e2;\n}\n\n.e-rtl {\n direction: rtl;\n}\n\n.e-rte-placeholder::before {\n content: attr(placeholder);\n opacity: 0.54;\n overflow: hidden;\n padding-top: 16px;\n position: absolute;\n text-align: start;\n top: 0;\n z-index: 1;\n}\n\n.e-resize-enabled,\n.e-count-enabled {\n padding-bottom: 0px;\n}\n";
|
|
14739
|
+
var IFRAME_EDITOR_STYLES = "\n@charset \"UTF-8\";\n\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: auto;\n}\n\nhtml, body {\n margin: 0;\n}\n\nbody {\n color: #333;\n word-wrap: break-word;\n}\n\n.e-content {\n background: unset;\n min-height: 100px;\n outline: 0 solid transparent;\n padding: 16px;\n position: relative;\n overflow-x: auto;\n font-weight: normal;\n line-height: 1.5;\n font-size: 14px;\n text-align: inherit;\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\", \"-apple-system\", \"BlinkMacSystemFont\";\n}\n\n.e-content p {\n margin: 0 0 10px;\n margin-bottom: 10px;\n}\n\n.e-content h1 {\n font-size: 2.857em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h2 {\n font-size: 2.285em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h3 {\n font-size: 2em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h4 {\n font-size: 1.714em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h5 {\n font-size: 1.428em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h6 {\n font-size: 1.142em;\n font-weight: 600;\n line-height: 1.5;\n margin: 10px 0;\n}\n\n.e-content blockquote {\n margin: 10px 0;\n padding-left: 12px;\n border-left: 2px solid #5c5c5c;\n}\n\n.e-rtl.e-content blockquote {\n padding-left: 0;\n padding-right: 12px;\n}\n\n.e-content pre {\n border: 0;\n border-radius: 0;\n color: #333;\n font-size: inherit;\n line-height: inherit;\n margin: 0 0 10px;\n overflow: visible;\n padding: 0;\n white-space: pre-wrap;\n word-break: inherit;\n word-wrap: break-word;\n}\n\n.e-content code {\n background: #9d9d9d26;\n color: #ed484c;\n}\n\n.e-content strong,\n.e-content b {\n font-weight: bold;\n}\n\n.e-content a {\n text-decoration: none;\n user-select: auto;\n}\n\n.e-content a:hover {\n text-decoration: underline;\n}\n\n.e-content li {\n margin-bottom: 10px;\n}\n\n.e-content li ol,\n.e-content li ul {\n margin-block-start: 10px;\n}\n\n.e-content ul {\n list-style-type: disc;\n}\n\n.e-content ul ul,\n.e-content ol ul {\n list-style-type: circle;\n}\n\n.e-content ul ul ul,\n.e-content ol ul ul,\n.e-content ul ol ul,\n.e-content ol ol ul {\n list-style-type: square;\n}\n\n.e-content p:last-child,\n.e-content pre:last-child,\n.e-content blockquote:last-child {\n margin-bottom: 0;\n}\n\n.e-content h3 + h4,\n.e-content h4 + h5,\n.e-content h5 + h6 {\n margin-top: 0.6em;\n}\n\n.e-content ul:last-child {\n margin-bottom: 0;\n}\n\n.e-content table {\n margin-bottom: 10px;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n.e-content table.e-cell-select {\n position: relative;\n}\n\n.e-content table.e-cell-select::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid #4a90e2;\n pointer-events: none;\n}\n\ntable .e-cell-select {\n border: 1px double #4a90e2 !important;\n}\n\n.e-content table.e-rte-table th {\n background-color: #E0E0E0;\n}\n\n.e-rte-table td,\n.e-rte-table th {\n border: 1px solid #BDBDBD;\n height: 20px;\n min-width: 20px;\n padding: 2px 5px;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select,\n.e-rte-table th.e-cell-select.e-multi-cells-select {\n position: relative;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select::after,\n.e-rte-table th.e-cell-select.e-multi-cells-select::after {\n background-color: rgba(13, 110, 253, 0.08);\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n bottom: 0;\n pointer-events: none;\n right: 0;\n}\n\ntable td.e-multi-cells-select ::selection,\ntable th.e-multi-cells-select ::selection {\n background-color: transparent;\n}\n\ntd.e-multi-cells-select,\nth.e-multi-cells-select {\n user-select: none !important;\n}\n\n.e-rte-table.e-dashed-border td,\n.e-rte-table.e-dashed-border th {\n border-style: dashed;\n}\n\n.e-rte-table .e-alternate-border tbody tr:nth-child(2n) {\n background-color: #F5F5F5;\n}\n\n.e-rte-image,\n.e-rte-audio,\n.e-rte-video {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imginline,\n.e-rte-audio.e-audio-inline,\n.e-rte-video.e-video-inline {\n margin-left: 5px;\n margin-right: 5px;\n display: inline-block;\n float: none;\n max-width: 100%;\n padding: 1px;\n vertical-align: bottom;\n}\n\n.e-rte-image.e-imgcenter,\n.e-rte-video.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imgright,\n.e-rte-video.e-video-right {\n float: right;\n margin: 0 auto;\n margin-left: 5px;\n text-align: right;\n}\n\n.e-rte-image.e-imgleft,\n.e-rte-video.e-video-left {\n float: left;\n margin: 0 auto;\n margin-right: 5px;\n text-align: left;\n}\n\n.e-rte-img-caption {\n display: inline-block;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-img-caption.e-caption-inline {\n display: inline-block;\n margin: 5px auto;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n position: relative;\n text-align: center;\n vertical-align: bottom;\n}\n\n.e-rte-img-caption.e-imgcenter {\n display: contents;\n margin-left: auto;\n margin-right: auto;\n}\n\n.e-rte-img-caption.e-imgright {\n display: contents;\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption.e-imgleft {\n display: contents;\n margin-left: 0;\n margin-right: auto;\n}\n\n.e-img-caption.e-rte-img-caption.e-imgbreak {\n display: contents;\n}\n\n.e-rte-img-caption .e-img-inner {\n display: block;\n font-size: 16px;\n font-weight: initial;\n margin: auto;\n opacity: .9;\n position: relative;\n text-align: center;\n width: 100%;\n}\n\n.e-img-wrap {\n display: inline-block;\n margin: auto;\n padding: 0;\n text-align: center;\n width: 100%;\n}\n\n.e-imgleft,\n.e-video-left {\n float: left;\n margin: 0 5px 0 0;\n text-align: left;\n}\n\n.e-imgright,\n.e-video-right {\n float: right;\n margin: 0 0 0 5px;\n text-align: right;\n}\n\n.e-imgcenter,\n.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-control img:not(.e-resize) {\n border: 2px solid transparent;\n z-index: 1000\n}\n\n.e-imginline,\n.e-audio-inline,\n.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n vertical-align: bottom;\n}\n\n.e-imgbreak,\n.e-audio-break,\n.e-video-break {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-img-focus:not(.e-resize),\n.e-audio-focus:not(.e-resize),\n.e-video-focus:not(.e-resize) {\n border: solid 2px #4a90e2;\n}\n\nimg.e-img-focus::selection,\naudio.e-audio-focus::selection,\n.e-video-focus::selection {\n background: transparent;\n color: transparent;\n}\n\nspan.e-rte-imageboxmark,\nspan.e-rte-videoboxmark {\n width: 10px;\n height: 10px;\n position: absolute;\n display: block;\n background: #4a90e2;\n border: 1px solid #fff;\n z-index: 1000;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-mob-rte span.e-rte-imageboxmark,\n.e-mob-rte span.e-rte-videoboxmark {\n background: #fff;\n border: 1px solid #4a90e2;\n border-radius: 15px;\n height: 20px;\n width: 20px;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-content img.e-resize,\n.e-content video.e-resize {\n z-index: 1000;\n}\n\n.e-img-caption .e-img-inner {\n outline: 0;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-inner {\n float: left;\n text-align: left;\n}\n\n.e-rte-img-caption.e-imgright .e-img-inner {\n float: right;\n text-align: right;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-wrap,\n.e-rte-img-caption.e-imgright .e-img-wrap {\n display: contents;\n}\n\n.e-img-caption a:focus-visible {\n outline: none;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgright {\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgleft {\n margin: 0;\n}\n\nspan.e-table-box {\n cursor: nwse-resize;\n display: block;\n height: 10px;\n position: absolute;\n width: 10px;\n background-color: #ffffff;\n border: 1px solid #BDBDBD;\n}\n\nspan.e-table-box.e-rmob {\n height: 14px;\n width: 14px;\n background-color: #BDBDBD;\n border: 1px solid #BDBDBD;\n}\n\n.e-row-resize,\n.e-column-resize {\n background-color: transparent;\n background-repeat: repeat;\n bottom: 0;\n cursor: col-resize;\n height: 1px;\n overflow: visible;\n position: absolute;\n width: 1px;\n}\n\n.e-row-resize {\n cursor: row-resize;\n height: 1px;\n}\n\n.e-table-rhelper {\n cursor: col-resize;\n opacity: .87;\n position: absolute;\n}\n\n.e-table-rhelper.e-column-helper {\n width: 1px;\n}\n\n.e-table-rhelper.e-row-helper {\n height: 1px;\n}\n\n.e-reicon::before {\n border-bottom: 6px solid transparent;\n border-right: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n position: absolute;\n right: 4px;\n top: 4px;\n width: 20px;\n}\n\n.e-reicon::after {\n border-bottom: 6px solid transparent;\n border-left: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n left: 4px;\n position: absolute;\n top: 4px;\n width: 20px;\n z-index: 3;\n}\n\n.e-row-helper.e-reicon::after {\n top: 10px;\n transform: rotate(90deg);\n}\n\n.e-row-helper.e-reicon::before {\n left: 4px;\n top: -20px;\n transform: rotate(90deg);\n}\n\n\n.e-table-rhelper {\n background-color: #4a90e2;\n}\n\n.e-rtl {\n direction: rtl;\n}\n\n.e-rte-placeholder::before {\n content: attr(placeholder);\n opacity: 0.54;\n overflow: hidden;\n padding-top: 16px;\n position: absolute;\n text-align: start;\n top: 0;\n z-index: 1;\n}\n\n.e-resize-enabled,\n.e-count-enabled {\n padding-bottom: 0px;\n}\n";
|
|
14674
14740
|
|
|
14675
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14676
|
-
var extendStatics = function (d, b) {
|
|
14677
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14678
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14679
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14680
|
-
return extendStatics(d, b);
|
|
14681
|
-
};
|
|
14682
|
-
return function (d, b) {
|
|
14683
|
-
extendStatics(d, b);
|
|
14684
|
-
function __() { this.constructor = d; }
|
|
14685
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14686
|
-
};
|
|
14687
|
-
})();
|
|
14741
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
14742
|
+
var extendStatics = function (d, b) {
|
|
14743
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14744
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14745
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14746
|
+
return extendStatics(d, b);
|
|
14747
|
+
};
|
|
14748
|
+
return function (d, b) {
|
|
14749
|
+
extendStatics(d, b);
|
|
14750
|
+
function __() { this.constructor = d; }
|
|
14751
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14752
|
+
};
|
|
14753
|
+
})();
|
|
14688
14754
|
var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>" +
|
|
14689
14755
|
IFRAME_EDITOR_STYLES.replace(/[\n\t]/g, '') + "\n </style>\n </head>\n";
|
|
14690
14756
|
/**
|
|
@@ -14693,7 +14759,7 @@ var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n
|
|
|
14693
14759
|
* @hidden
|
|
14694
14760
|
* @deprecated
|
|
14695
14761
|
*/
|
|
14696
|
-
var IframeContentRender = /** @
|
|
14762
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
14697
14763
|
__extends$1(IframeContentRender, _super);
|
|
14698
14764
|
function IframeContentRender() {
|
|
14699
14765
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14801,7 +14867,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
14801
14867
|
* @hidden
|
|
14802
14868
|
* @deprecated
|
|
14803
14869
|
*/
|
|
14804
|
-
var MarkdownRender = /** @
|
|
14870
|
+
var MarkdownRender = /** @class */ (function () {
|
|
14805
14871
|
/**
|
|
14806
14872
|
* Constructor for content renderer module
|
|
14807
14873
|
*
|
|
@@ -14887,7 +14953,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
14887
14953
|
* @hidden
|
|
14888
14954
|
* @deprecated
|
|
14889
14955
|
*/
|
|
14890
|
-
var PopupRenderer = /** @
|
|
14956
|
+
var PopupRenderer = /** @class */ (function () {
|
|
14891
14957
|
/**
|
|
14892
14958
|
* Constructor for popup renderer module
|
|
14893
14959
|
*
|
|
@@ -14953,29 +15019,29 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
14953
15019
|
return PopupRenderer;
|
|
14954
15020
|
}());
|
|
14955
15021
|
|
|
14956
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
14957
|
-
var extendStatics = function (d, b) {
|
|
14958
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14959
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14960
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14961
|
-
return extendStatics(d, b);
|
|
14962
|
-
};
|
|
14963
|
-
return function (d, b) {
|
|
14964
|
-
extendStatics(d, b);
|
|
14965
|
-
function __() { this.constructor = d; }
|
|
14966
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14967
|
-
};
|
|
14968
|
-
})();
|
|
14969
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14970
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14971
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14972
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14973
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14974
|
-
};
|
|
15022
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
15023
|
+
var extendStatics = function (d, b) {
|
|
15024
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15025
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15026
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15027
|
+
return extendStatics(d, b);
|
|
15028
|
+
};
|
|
15029
|
+
return function (d, b) {
|
|
15030
|
+
extendStatics(d, b);
|
|
15031
|
+
function __() { this.constructor = d; }
|
|
15032
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15033
|
+
};
|
|
15034
|
+
})();
|
|
15035
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15036
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15037
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15038
|
+
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;
|
|
15039
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15040
|
+
};
|
|
14975
15041
|
/**
|
|
14976
15042
|
* Configures the slash menu settings of the RichTextEditor.
|
|
14977
15043
|
*/
|
|
14978
|
-
var SlashMenuSettings = /** @
|
|
15044
|
+
var SlashMenuSettings = /** @class */ (function (_super) {
|
|
14979
15045
|
__extends$2(SlashMenuSettings, _super);
|
|
14980
15046
|
function SlashMenuSettings() {
|
|
14981
15047
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -15095,7 +15161,7 @@ var injectibleSlashMenuDataModel = [
|
|
|
15095
15161
|
}
|
|
15096
15162
|
];
|
|
15097
15163
|
|
|
15098
|
-
var SlashMenu = /** @
|
|
15164
|
+
var SlashMenu = /** @class */ (function () {
|
|
15099
15165
|
function SlashMenu(options, serviceLocator) {
|
|
15100
15166
|
this.parent = options;
|
|
15101
15167
|
this.currentDocument = this.parent.element.ownerDocument;
|
|
@@ -15241,6 +15307,15 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
|
|
|
15241
15307
|
break;
|
|
15242
15308
|
}
|
|
15243
15309
|
}
|
|
15310
|
+
else {
|
|
15311
|
+
if (_this.parent.inputElement.classList.contains('e-mention')) {
|
|
15312
|
+
var slashMenuPopup = _this.parent.inputElement.ownerDocument.getElementById(_this.parent.inputElement.id + '_slash_menu_popup');
|
|
15313
|
+
var isSlashMenuPopupOpen = slashMenuPopup && slashMenuPopup.classList.contains('e-popup-open');
|
|
15314
|
+
if (isSlashMenuPopupOpen) {
|
|
15315
|
+
_this.mention.hidePopup();
|
|
15316
|
+
}
|
|
15317
|
+
}
|
|
15318
|
+
}
|
|
15244
15319
|
}
|
|
15245
15320
|
});
|
|
15246
15321
|
};
|
|
@@ -15296,7 +15371,7 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
|
|
|
15296
15371
|
/**
|
|
15297
15372
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
15298
15373
|
*/
|
|
15299
|
-
var BaseToolbar = /** @
|
|
15374
|
+
var BaseToolbar = /** @class */ (function () {
|
|
15300
15375
|
function BaseToolbar(parent, serviceLocator) {
|
|
15301
15376
|
this.tools = {};
|
|
15302
15377
|
this.parent = parent;
|
|
@@ -15526,7 +15601,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
15526
15601
|
/**
|
|
15527
15602
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
15528
15603
|
*/
|
|
15529
|
-
var DropDownButtons = /** @
|
|
15604
|
+
var DropDownButtons = /** @class */ (function () {
|
|
15530
15605
|
function DropDownButtons(parent, serviceLocator) {
|
|
15531
15606
|
this.parent = parent;
|
|
15532
15607
|
this.locator = serviceLocator;
|
|
@@ -16061,7 +16136,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
16061
16136
|
/**
|
|
16062
16137
|
* `ToolbarAction` module is used to toolbar click action
|
|
16063
16138
|
*/
|
|
16064
|
-
var ToolbarAction = /** @
|
|
16139
|
+
var ToolbarAction = /** @class */ (function () {
|
|
16065
16140
|
function ToolbarAction(parent) {
|
|
16066
16141
|
this.parent = parent;
|
|
16067
16142
|
this.addEventListener();
|
|
@@ -16133,7 +16208,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
16133
16208
|
/**
|
|
16134
16209
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
16135
16210
|
*/
|
|
16136
|
-
var ColorPickerInput = /** @
|
|
16211
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
16137
16212
|
function ColorPickerInput(parent, serviceLocator) {
|
|
16138
16213
|
this.tools = {};
|
|
16139
16214
|
this.parent = parent;
|
|
@@ -16388,7 +16463,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
16388
16463
|
/**
|
|
16389
16464
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
16390
16465
|
*/
|
|
16391
|
-
var Toolbar = /** @
|
|
16466
|
+
var Toolbar = /** @class */ (function () {
|
|
16392
16467
|
function Toolbar(parent, serviceLocator) {
|
|
16393
16468
|
this.tools = {};
|
|
16394
16469
|
this.parent = parent;
|
|
@@ -17003,7 +17078,7 @@ var Toolbar = /** @__PURE__ @class */ (function () {
|
|
|
17003
17078
|
/**
|
|
17004
17079
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
17005
17080
|
*/
|
|
17006
|
-
var BaseQuickToolbar = /** @
|
|
17081
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
17007
17082
|
function BaseQuickToolbar(parent, locator) {
|
|
17008
17083
|
this.parent = parent;
|
|
17009
17084
|
this.locator = locator;
|
|
@@ -17507,7 +17582,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
17507
17582
|
/**
|
|
17508
17583
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
17509
17584
|
*/
|
|
17510
|
-
var QuickToolbar = /** @
|
|
17585
|
+
var QuickToolbar = /** @class */ (function () {
|
|
17511
17586
|
function QuickToolbar(parent, locator) {
|
|
17512
17587
|
this.debounceTimeout = 1000;
|
|
17513
17588
|
this.parent = parent;
|
|
@@ -18119,7 +18194,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
18119
18194
|
/**
|
|
18120
18195
|
* `Count` module is used to handle Count actions.
|
|
18121
18196
|
*/
|
|
18122
|
-
var Count = /** @
|
|
18197
|
+
var Count = /** @class */ (function () {
|
|
18123
18198
|
function Count(parent, serviceLocator) {
|
|
18124
18199
|
this.parent = parent;
|
|
18125
18200
|
this.locator = serviceLocator;
|
|
@@ -18263,7 +18338,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
18263
18338
|
* @hidden
|
|
18264
18339
|
* @deprecated
|
|
18265
18340
|
*/
|
|
18266
|
-
var MarkdownSelection = /** @
|
|
18341
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
18267
18342
|
function MarkdownSelection() {
|
|
18268
18343
|
}
|
|
18269
18344
|
/**
|
|
@@ -18478,7 +18553,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
|
|
|
18478
18553
|
/**
|
|
18479
18554
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
18480
18555
|
*/
|
|
18481
|
-
var MarkdownToolbarStatus = /** @
|
|
18556
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
18482
18557
|
function MarkdownToolbarStatus(parent) {
|
|
18483
18558
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
18484
18559
|
this.selection = new MarkdownSelection();
|
|
@@ -18601,7 +18676,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
18601
18676
|
/**
|
|
18602
18677
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
18603
18678
|
*/
|
|
18604
|
-
var ExecCommandCallBack = /** @
|
|
18679
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
18605
18680
|
function ExecCommandCallBack(parent) {
|
|
18606
18681
|
this.parent = parent;
|
|
18607
18682
|
this.addEventListener();
|
|
@@ -18631,7 +18706,7 @@ var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
|
|
|
18631
18706
|
* @hidden
|
|
18632
18707
|
* @deprecated
|
|
18633
18708
|
*/
|
|
18634
|
-
var Formatter = /** @
|
|
18709
|
+
var Formatter = /** @class */ (function () {
|
|
18635
18710
|
function Formatter() {
|
|
18636
18711
|
}
|
|
18637
18712
|
/**
|
|
@@ -18946,7 +19021,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
|
|
|
18946
19021
|
*
|
|
18947
19022
|
* @hidden
|
|
18948
19023
|
*/
|
|
18949
|
-
var MDLists = /** @
|
|
19024
|
+
var MDLists = /** @class */ (function () {
|
|
18950
19025
|
/**
|
|
18951
19026
|
* Constructor for creating the Lists plugin
|
|
18952
19027
|
*
|
|
@@ -19426,7 +19501,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
19426
19501
|
* @hidden
|
|
19427
19502
|
* @deprecated
|
|
19428
19503
|
*/
|
|
19429
|
-
var MDFormats = /** @
|
|
19504
|
+
var MDFormats = /** @class */ (function () {
|
|
19430
19505
|
/**
|
|
19431
19506
|
* Constructor for creating the Formats plugin
|
|
19432
19507
|
*
|
|
@@ -19661,7 +19736,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
19661
19736
|
* @hidden
|
|
19662
19737
|
* @deprecated
|
|
19663
19738
|
*/
|
|
19664
|
-
var MDSelectionFormats = /** @
|
|
19739
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
19665
19740
|
function MDSelectionFormats(parent) {
|
|
19666
19741
|
extend(this, this, parent, true);
|
|
19667
19742
|
this.selection = this.parent.markdownSelection;
|
|
@@ -19998,7 +20073,7 @@ var MDSelectionFormats = /** @__PURE__ @class */ (function () {
|
|
|
19998
20073
|
/**
|
|
19999
20074
|
* `Undo` module is used to handle undo actions.
|
|
20000
20075
|
*/
|
|
20001
|
-
var UndoRedoCommands = /** @
|
|
20076
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
20002
20077
|
function UndoRedoCommands(parent, options) {
|
|
20003
20078
|
this.undoRedoStack = [];
|
|
20004
20079
|
this.parent = parent;
|
|
@@ -20195,7 +20270,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
20195
20270
|
* @hidden
|
|
20196
20271
|
* @deprecated
|
|
20197
20272
|
*/
|
|
20198
|
-
var MDLink = /** @
|
|
20273
|
+
var MDLink = /** @class */ (function () {
|
|
20199
20274
|
/**
|
|
20200
20275
|
* Constructor for creating the Formats plugin
|
|
20201
20276
|
*
|
|
@@ -20254,7 +20329,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
20254
20329
|
* @hidden
|
|
20255
20330
|
* @deprecated
|
|
20256
20331
|
*/
|
|
20257
|
-
var MDTable = /** @
|
|
20332
|
+
var MDTable = /** @class */ (function () {
|
|
20258
20333
|
/**
|
|
20259
20334
|
* Constructor for creating the Formats plugin
|
|
20260
20335
|
*
|
|
@@ -20484,7 +20559,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
20484
20559
|
* @hidden
|
|
20485
20560
|
* @deprecated
|
|
20486
20561
|
*/
|
|
20487
|
-
var ClearFormat = /** @
|
|
20562
|
+
var ClearFormat = /** @class */ (function () {
|
|
20488
20563
|
/**
|
|
20489
20564
|
* Constructor for creating the clear format plugin
|
|
20490
20565
|
*
|
|
@@ -20608,7 +20683,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
20608
20683
|
* @hidden
|
|
20609
20684
|
* @deprecated
|
|
20610
20685
|
*/
|
|
20611
|
-
var MDInsertText = /** @
|
|
20686
|
+
var MDInsertText = /** @class */ (function () {
|
|
20612
20687
|
/**
|
|
20613
20688
|
* Constructor for creating the insert text plugin
|
|
20614
20689
|
*
|
|
@@ -20666,7 +20741,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
|
|
|
20666
20741
|
* @hidden
|
|
20667
20742
|
* @deprecated
|
|
20668
20743
|
*/
|
|
20669
|
-
var MarkdownParser = /** @
|
|
20744
|
+
var MarkdownParser = /** @class */ (function () {
|
|
20670
20745
|
/**
|
|
20671
20746
|
* Constructor for creating the component
|
|
20672
20747
|
*
|
|
@@ -20771,26 +20846,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
20771
20846
|
return MarkdownParser;
|
|
20772
20847
|
}());
|
|
20773
20848
|
|
|
20774
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
20775
|
-
var extendStatics = function (d, b) {
|
|
20776
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20777
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20778
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20779
|
-
return extendStatics(d, b);
|
|
20780
|
-
};
|
|
20781
|
-
return function (d, b) {
|
|
20782
|
-
extendStatics(d, b);
|
|
20783
|
-
function __() { this.constructor = d; }
|
|
20784
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20785
|
-
};
|
|
20786
|
-
})();
|
|
20849
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
20850
|
+
var extendStatics = function (d, b) {
|
|
20851
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20852
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20853
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20854
|
+
return extendStatics(d, b);
|
|
20855
|
+
};
|
|
20856
|
+
return function (d, b) {
|
|
20857
|
+
extendStatics(d, b);
|
|
20858
|
+
function __() { this.constructor = d; }
|
|
20859
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20860
|
+
};
|
|
20861
|
+
})();
|
|
20787
20862
|
/**
|
|
20788
20863
|
* Markdown adapter
|
|
20789
20864
|
*
|
|
20790
20865
|
* @hidden
|
|
20791
20866
|
* @deprecated
|
|
20792
20867
|
*/
|
|
20793
|
-
var MarkdownFormatter = /** @
|
|
20868
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
20794
20869
|
__extends$3(MarkdownFormatter, _super);
|
|
20795
20870
|
function MarkdownFormatter(options) {
|
|
20796
20871
|
var _this = _super.call(this) || this;
|
|
@@ -20834,7 +20909,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
20834
20909
|
/**
|
|
20835
20910
|
* `MarkdownEditor` module is used to markdown editor
|
|
20836
20911
|
*/
|
|
20837
|
-
var MarkdownEditor = /** @
|
|
20912
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
20838
20913
|
function MarkdownEditor(parent, serviceLocator) {
|
|
20839
20914
|
this.parent = parent;
|
|
20840
20915
|
this.locator = serviceLocator;
|
|
@@ -21011,7 +21086,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
|
|
|
21011
21086
|
/**
|
|
21012
21087
|
* Utilities to handle the table cell selection
|
|
21013
21088
|
*/
|
|
21014
|
-
var TableSelection = /** @
|
|
21089
|
+
var TableSelection = /** @class */ (function () {
|
|
21015
21090
|
function TableSelection(root, currentDocument) {
|
|
21016
21091
|
this.BLOCK_TAGS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'li', 'pre', 'td', 'th', 'div', 'hr', 'section', 'figure'];
|
|
21017
21092
|
this.BASIC_FORMATS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
|
|
@@ -21246,7 +21321,7 @@ var markerClassName = {
|
|
|
21246
21321
|
* @hidden
|
|
21247
21322
|
* @deprecated
|
|
21248
21323
|
*/
|
|
21249
|
-
var DOMNode = /** @
|
|
21324
|
+
var DOMNode = /** @class */ (function () {
|
|
21250
21325
|
/**
|
|
21251
21326
|
* Constructor for creating the DOMNode plugin
|
|
21252
21327
|
*
|
|
@@ -22272,7 +22347,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
22272
22347
|
* @hidden
|
|
22273
22348
|
* @deprecated
|
|
22274
22349
|
*/
|
|
22275
|
-
var Lists = /** @
|
|
22350
|
+
var Lists = /** @class */ (function () {
|
|
22276
22351
|
/**
|
|
22277
22352
|
* Constructor for creating the Lists plugin
|
|
22278
22353
|
*
|
|
@@ -23278,7 +23353,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
23278
23353
|
*
|
|
23279
23354
|
* @hidden
|
|
23280
23355
|
*/
|
|
23281
|
-
var InsertMethods = /** @
|
|
23356
|
+
var InsertMethods = /** @class */ (function () {
|
|
23282
23357
|
function InsertMethods() {
|
|
23283
23358
|
}
|
|
23284
23359
|
/**
|
|
@@ -23355,7 +23430,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
23355
23430
|
* @hidden
|
|
23356
23431
|
* @deprecated
|
|
23357
23432
|
*/
|
|
23358
|
-
var NodeCutter = /** @
|
|
23433
|
+
var NodeCutter = /** @class */ (function () {
|
|
23359
23434
|
function NodeCutter() {
|
|
23360
23435
|
this.enterAction = 'P';
|
|
23361
23436
|
this.position = -1;
|
|
@@ -23398,7 +23473,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23398
23473
|
fragment = this.spliceEmptyNode(fragment, false);
|
|
23399
23474
|
if (fragment && fragment.childNodes.length > 0) {
|
|
23400
23475
|
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' && !(fragment.querySelectorAll('img').length > 0)
|
|
23401
|
-
&& this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
|
|
23476
|
+
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent.charCodeAt(0) !== 32 && fragment.textContent.charCodeAt(0) !== 160) ? true : false;
|
|
23402
23477
|
if (!isEmpty) {
|
|
23403
23478
|
if (node) {
|
|
23404
23479
|
InsertMethods.AppendBefore(fragment, node);
|
|
@@ -23419,7 +23494,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23419
23494
|
fragment = this.spliceEmptyNode(fragment, true);
|
|
23420
23495
|
if (fragment && fragment.childNodes.length > 0) {
|
|
23421
23496
|
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG'
|
|
23422
|
-
&& this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
|
|
23497
|
+
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent.charCodeAt(0) !== 32 && fragment.textContent.charCodeAt(0) !== 160) ? true : false;
|
|
23423
23498
|
if (!isEmpty) {
|
|
23424
23499
|
if (node) {
|
|
23425
23500
|
InsertMethods.AppendBefore(fragment, node, true);
|
|
@@ -23567,7 +23642,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23567
23642
|
* @hidden
|
|
23568
23643
|
* @deprecated
|
|
23569
23644
|
*/
|
|
23570
|
-
var Formats = /** @
|
|
23645
|
+
var Formats = /** @class */ (function () {
|
|
23571
23646
|
/**
|
|
23572
23647
|
* Constructor for creating the Formats plugin
|
|
23573
23648
|
*
|
|
@@ -23819,6 +23894,14 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
23819
23894
|
};
|
|
23820
23895
|
Formats.prototype.applyFormats = function (e) {
|
|
23821
23896
|
var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
|
|
23897
|
+
var tableCursor = this.parent.nodeSelection.processedTableImageCursor(range);
|
|
23898
|
+
if (tableCursor.start || tableCursor.end) {
|
|
23899
|
+
if (tableCursor.startName === 'TABLE' || tableCursor.endName === 'TABLE') {
|
|
23900
|
+
var tableNode = tableCursor.start ? tableCursor.startNode : tableCursor.endNode;
|
|
23901
|
+
this.applyTableSidesFormat(e, tableCursor.start, tableNode);
|
|
23902
|
+
return;
|
|
23903
|
+
}
|
|
23904
|
+
}
|
|
23822
23905
|
var isSelectAll = false;
|
|
23823
23906
|
if (this.parent.editableElement === range.endContainer &&
|
|
23824
23907
|
!isNullOrUndefined(this.parent.editableElement.children[range.endOffset - 1]) &&
|
|
@@ -24067,6 +24150,23 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
24067
24150
|
element.style.removeProperty(ignoreAttr[i]);
|
|
24068
24151
|
}
|
|
24069
24152
|
};
|
|
24153
|
+
Formats.prototype.applyTableSidesFormat = function (e, start, table) {
|
|
24154
|
+
var formatNode = createElement(e.subCommand);
|
|
24155
|
+
if (!(e.enterAction === 'BR')) {
|
|
24156
|
+
formatNode.appendChild(createElement('br'));
|
|
24157
|
+
}
|
|
24158
|
+
table.insertAdjacentElement(start ? 'beforebegin' : 'afterend', formatNode);
|
|
24159
|
+
this.parent.nodeSelection.setCursorPoint(this.parent.currentDocument, formatNode, 0);
|
|
24160
|
+
if (e.callBack) {
|
|
24161
|
+
e.callBack({
|
|
24162
|
+
requestType: e.subCommand,
|
|
24163
|
+
editorMode: 'HTML',
|
|
24164
|
+
event: e.event,
|
|
24165
|
+
range: this.parent.nodeSelection.getRange(this.parent.currentDocument),
|
|
24166
|
+
elements: this.parent.domNode.blockNodes()
|
|
24167
|
+
});
|
|
24168
|
+
}
|
|
24169
|
+
};
|
|
24070
24170
|
Formats.prototype.destroy = function () {
|
|
24071
24171
|
this.removeEventListener();
|
|
24072
24172
|
};
|
|
@@ -24079,7 +24179,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
24079
24179
|
* @hidden
|
|
24080
24180
|
* @deprecated
|
|
24081
24181
|
*/
|
|
24082
|
-
var InsertHtml = /** @
|
|
24182
|
+
var InsertHtml = /** @class */ (function () {
|
|
24083
24183
|
function InsertHtml() {
|
|
24084
24184
|
}
|
|
24085
24185
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
|
|
@@ -24176,7 +24276,12 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24176
24276
|
}
|
|
24177
24277
|
}
|
|
24178
24278
|
if (!isNullOrUndefined(sibNode) && !isNullOrUndefined(sibNode.parentNode)) {
|
|
24179
|
-
|
|
24279
|
+
if (docElement.contains(sibNode)) {
|
|
24280
|
+
InsertMethods.AppendBefore(node, sibNode, true);
|
|
24281
|
+
}
|
|
24282
|
+
else {
|
|
24283
|
+
range.insertNode(node);
|
|
24284
|
+
}
|
|
24180
24285
|
}
|
|
24181
24286
|
else {
|
|
24182
24287
|
var previousNode = null;
|
|
@@ -24464,26 +24569,99 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24464
24569
|
this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction);
|
|
24465
24570
|
}
|
|
24466
24571
|
this.alignCheck(editNode);
|
|
24467
|
-
|
|
24468
|
-
this.listCleanUp(currentRange);
|
|
24572
|
+
this.listCleanUp(nodeSelection, docElement);
|
|
24469
24573
|
};
|
|
24470
|
-
InsertHtml.listCleanUp = function (
|
|
24574
|
+
InsertHtml.listCleanUp = function (nodeSelection, docElement) {
|
|
24575
|
+
var range = nodeSelection.getRange(docElement);
|
|
24576
|
+
var startContainer = range.startContainer;
|
|
24577
|
+
var startOffset = range.startOffset;
|
|
24471
24578
|
if (range.startContainer.parentElement.closest('ol,ul') !== null && range.endContainer.parentElement.closest('ol,ul') !== null) {
|
|
24472
|
-
var
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24579
|
+
var haslistCleanUp = this.cleanUpListItems(range.startContainer.parentElement.closest('ol,ul'));
|
|
24580
|
+
var haslistContainerCleanUp = this.cleanUpListContainer(range.startContainer.parentElement.closest('ol,ul'));
|
|
24581
|
+
if (haslistCleanUp || haslistContainerCleanUp) {
|
|
24582
|
+
range.setStart(startContainer, startOffset);
|
|
24583
|
+
range.setEnd(startContainer, startOffset);
|
|
24584
|
+
}
|
|
24585
|
+
}
|
|
24586
|
+
};
|
|
24587
|
+
InsertHtml.cleanUpListItems = function (parentContainer) {
|
|
24588
|
+
var _this = this;
|
|
24589
|
+
var hasListCleanUp = false;
|
|
24590
|
+
var listItems = parentContainer.closest('ol, ul').querySelectorAll('li');
|
|
24591
|
+
if (listItems.length === 0) {
|
|
24592
|
+
return false;
|
|
24593
|
+
}
|
|
24594
|
+
var nearestListItem = null;
|
|
24595
|
+
listItems.forEach(function (listItem) {
|
|
24596
|
+
if (!isNullOrUndefined(listItem.firstChild) && (listItem.firstChild.nodeName === 'OL' || listItem.firstChild.nodeName === 'UL')) {
|
|
24597
|
+
listItem.style.listStyleType = 'none';
|
|
24598
|
+
}
|
|
24599
|
+
var parentElement = listItem.parentElement;
|
|
24600
|
+
if (!isNullOrUndefined(parentElement) && parentElement.nodeName !== 'OL' && parentElement.nodeName !== 'UL') {
|
|
24601
|
+
if (isNullOrUndefined(nearestListItem)) {
|
|
24602
|
+
nearestListItem = parentElement.closest('li');
|
|
24603
|
+
}
|
|
24604
|
+
if (!isNullOrUndefined(nearestListItem)) {
|
|
24605
|
+
var nextSibling = listItem.nextSibling;
|
|
24606
|
+
if (!isNullOrUndefined(nextSibling) && nextSibling.nodeName !== 'LI') {
|
|
24607
|
+
var startIndex = Array.prototype.indexOf.call(parentElement.childNodes, nextSibling);
|
|
24608
|
+
var clonedParent = parentElement.cloneNode(false);
|
|
24609
|
+
var totalChildren = parentElement.childNodes.length;
|
|
24610
|
+
for (var i = startIndex; i < totalChildren; i++) {
|
|
24611
|
+
clonedParent.appendChild(parentElement.childNodes[startIndex]);
|
|
24612
|
+
}
|
|
24613
|
+
if (clonedParent.childNodes.length > 0) {
|
|
24614
|
+
var newListItem = document.createElement('li');
|
|
24615
|
+
newListItem.appendChild(clonedParent);
|
|
24616
|
+
nearestListItem.insertAdjacentElement('afterend', newListItem);
|
|
24617
|
+
}
|
|
24618
|
+
else {
|
|
24619
|
+
clonedParent.remove();
|
|
24620
|
+
}
|
|
24483
24621
|
}
|
|
24484
|
-
|
|
24622
|
+
var closestList = parentElement.closest('ol, ul');
|
|
24623
|
+
nearestListItem.insertAdjacentElement('afterend', listItem);
|
|
24624
|
+
nearestListItem = nearestListItem.nextSibling;
|
|
24625
|
+
_this.removeEmptyElements(closestList);
|
|
24626
|
+
hasListCleanUp = true;
|
|
24627
|
+
}
|
|
24485
24628
|
}
|
|
24629
|
+
var nestedLi = Array.from(listItem.children).find(function (child) {
|
|
24630
|
+
return child.tagName === 'LI' && (child.parentElement && child.parentElement.tagName !== 'OL' && child.parentElement.tagName !== 'UL');
|
|
24631
|
+
});
|
|
24632
|
+
if (nestedLi && listItem.parentNode) {
|
|
24633
|
+
listItem.parentNode.replaceChild(nestedLi, listItem);
|
|
24634
|
+
hasListCleanUp = true;
|
|
24635
|
+
}
|
|
24636
|
+
});
|
|
24637
|
+
return hasListCleanUp;
|
|
24638
|
+
};
|
|
24639
|
+
InsertHtml.cleanUpListContainer = function (parentList) {
|
|
24640
|
+
var hasListContainerCleanUp = false;
|
|
24641
|
+
var nonLiElementCollection = [];
|
|
24642
|
+
var replacements = [];
|
|
24643
|
+
if (!isNullOrUndefined(parentList)) {
|
|
24644
|
+
parentList.childNodes.forEach(function (childNode) {
|
|
24645
|
+
if (childNode.nodeName.toLocaleUpperCase() !== 'LI') {
|
|
24646
|
+
nonLiElementCollection.push(childNode);
|
|
24647
|
+
}
|
|
24648
|
+
if ((childNode.nodeName.toLocaleUpperCase() === 'LI' || parentList.lastChild === childNode) && nonLiElementCollection.length > 0) {
|
|
24649
|
+
replacements.push({ elements: nonLiElementCollection.slice() });
|
|
24650
|
+
nonLiElementCollection = [];
|
|
24651
|
+
}
|
|
24652
|
+
});
|
|
24653
|
+
replacements.forEach(function (_a) {
|
|
24654
|
+
var elements = _a.elements;
|
|
24655
|
+
var newListItem = document.createElement('li');
|
|
24656
|
+
elements[0].parentNode.replaceChild(newListItem, elements[0]);
|
|
24657
|
+
elements.forEach(function (child) { return newListItem.appendChild(child); });
|
|
24658
|
+
if (newListItem.textContent && newListItem.textContent.trim() === '') {
|
|
24659
|
+
parentList.removeChild(newListItem);
|
|
24660
|
+
}
|
|
24661
|
+
hasListContainerCleanUp = true;
|
|
24662
|
+
});
|
|
24486
24663
|
}
|
|
24664
|
+
return hasListContainerCleanUp;
|
|
24487
24665
|
};
|
|
24488
24666
|
InsertHtml.placeCursorEnd = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
|
|
24489
24667
|
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? (isNullOrUndefined(lastSelectionNode.previousSibling) ? lastSelectionNode.parentNode
|
|
@@ -24699,7 +24877,8 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24699
24877
|
while (el && el.nodeType === 1) {
|
|
24700
24878
|
if (el.parentNode === editNode ||
|
|
24701
24879
|
(!isNullOrUndefined(el.parentNode.tagName) &&
|
|
24702
|
-
IGNORE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1
|
|
24880
|
+
(IGNORE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1
|
|
24881
|
+
|| ALLOWED_TABLE_BLOCK_TAGS.indexOf(el.parentNode.tagName.toLocaleLowerCase()) !== -1))) {
|
|
24703
24882
|
return el;
|
|
24704
24883
|
}
|
|
24705
24884
|
el = el.parentNode;
|
|
@@ -24784,7 +24963,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24784
24963
|
* @hidden
|
|
24785
24964
|
* @deprecated
|
|
24786
24965
|
*/
|
|
24787
|
-
var LinkCommand = /** @
|
|
24966
|
+
var LinkCommand = /** @class */ (function () {
|
|
24788
24967
|
/**
|
|
24789
24968
|
* Constructor for creating the Formats plugin
|
|
24790
24969
|
*
|
|
@@ -25109,7 +25288,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
25109
25288
|
* @hidden
|
|
25110
25289
|
* @deprecated
|
|
25111
25290
|
*/
|
|
25112
|
-
var Alignments = /** @
|
|
25291
|
+
var Alignments = /** @class */ (function () {
|
|
25113
25292
|
/**
|
|
25114
25293
|
* Constructor for creating the Formats plugin
|
|
25115
25294
|
*
|
|
@@ -25224,7 +25403,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
25224
25403
|
* @hidden
|
|
25225
25404
|
* @deprecated
|
|
25226
25405
|
*/
|
|
25227
|
-
var Indents = /** @
|
|
25406
|
+
var Indents = /** @class */ (function () {
|
|
25228
25407
|
/**
|
|
25229
25408
|
* Constructor for creating the Formats plugin
|
|
25230
25409
|
*
|
|
@@ -25371,7 +25550,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
|
|
|
25371
25550
|
* @hidden
|
|
25372
25551
|
* @deprecated
|
|
25373
25552
|
*/
|
|
25374
|
-
var ImageCommand = /** @
|
|
25553
|
+
var ImageCommand = /** @class */ (function () {
|
|
25375
25554
|
/**
|
|
25376
25555
|
* Constructor for creating the Formats plugin
|
|
25377
25556
|
*
|
|
@@ -25481,8 +25660,14 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25481
25660
|
(Browser.isIE ? selectedNode.previousSibling : selectedNode.previousElementSibling);
|
|
25482
25661
|
var onImageLoadEvent_1 = function () {
|
|
25483
25662
|
if (!isNullOrUndefined(_this.parent.currentDocument)) {
|
|
25484
|
-
imgElm_1.
|
|
25485
|
-
imgElm_1.
|
|
25663
|
+
var imgWidth = imgElm_1.getAttribute('width');
|
|
25664
|
+
var imgHeight = imgElm_1.getAttribute('height');
|
|
25665
|
+
if (isNullOrUndefined(imgWidth) || imgWidth === 'auto') {
|
|
25666
|
+
imgElm_1.setAttribute('width', imgElm_1.offsetWidth.toString());
|
|
25667
|
+
}
|
|
25668
|
+
if (isNullOrUndefined(imgHeight) || imgHeight === 'auto') {
|
|
25669
|
+
imgElm_1.setAttribute('height', imgElm_1.offsetHeight.toString());
|
|
25670
|
+
}
|
|
25486
25671
|
e.callBack({
|
|
25487
25672
|
requestType: (e.value === 'Replace') ? (e.item.subCommand = 'Replace', 'Replace') : 'Images',
|
|
25488
25673
|
editorMode: 'HTML',
|
|
@@ -25770,7 +25955,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
25770
25955
|
* @hidden
|
|
25771
25956
|
* @deprecated
|
|
25772
25957
|
*/
|
|
25773
|
-
var AudioCommand = /** @
|
|
25958
|
+
var AudioCommand = /** @class */ (function () {
|
|
25774
25959
|
/**
|
|
25775
25960
|
* Constructor for creating the Audio plugin
|
|
25776
25961
|
*
|
|
@@ -25919,7 +26104,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
|
|
|
25919
26104
|
* @hidden
|
|
25920
26105
|
* @deprecated
|
|
25921
26106
|
*/
|
|
25922
|
-
var VideoCommand = /** @
|
|
26107
|
+
var VideoCommand = /** @class */ (function () {
|
|
25923
26108
|
/**
|
|
25924
26109
|
* Constructor for creating the Video plugin
|
|
25925
26110
|
*
|
|
@@ -26225,7 +26410,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
|
|
|
26225
26410
|
* @hidden
|
|
26226
26411
|
* @deprecated
|
|
26227
26412
|
*/
|
|
26228
|
-
var TableCommand = /** @
|
|
26413
|
+
var TableCommand = /** @class */ (function () {
|
|
26229
26414
|
/**
|
|
26230
26415
|
* Constructor for creating the Formats plugin
|
|
26231
26416
|
*
|
|
@@ -27282,7 +27467,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
27282
27467
|
};
|
|
27283
27468
|
return TableCommand;
|
|
27284
27469
|
}());
|
|
27285
|
-
var MinMax = /** @
|
|
27470
|
+
var MinMax = /** @class */ (function () {
|
|
27286
27471
|
function MinMax() {
|
|
27287
27472
|
}
|
|
27288
27473
|
return MinMax;
|
|
@@ -27291,7 +27476,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
27291
27476
|
/**
|
|
27292
27477
|
* `Selection` module is used to handle RTE Selections.
|
|
27293
27478
|
*/
|
|
27294
|
-
var SelectionCommands = /** @
|
|
27479
|
+
var SelectionCommands = /** @class */ (function () {
|
|
27295
27480
|
function SelectionCommands() {
|
|
27296
27481
|
}
|
|
27297
27482
|
/**
|
|
@@ -28308,7 +28493,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
28308
28493
|
* @hidden
|
|
28309
28494
|
* @deprecated
|
|
28310
28495
|
*/
|
|
28311
|
-
var SelectionBasedExec = /** @
|
|
28496
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
28312
28497
|
/**
|
|
28313
28498
|
* Constructor for creating the Formats plugin
|
|
28314
28499
|
*
|
|
@@ -28366,7 +28551,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
28366
28551
|
* @hidden
|
|
28367
28552
|
* @deprecated
|
|
28368
28553
|
*/
|
|
28369
|
-
var InsertHtmlExec = /** @
|
|
28554
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
28370
28555
|
/**
|
|
28371
28556
|
* Constructor for creating the Formats plugin
|
|
28372
28557
|
*
|
|
@@ -28421,7 +28606,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
28421
28606
|
/**
|
|
28422
28607
|
* `Clear Format` module is used to handle Clear Format.
|
|
28423
28608
|
*/
|
|
28424
|
-
var ClearFormat$1 = /** @
|
|
28609
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
28425
28610
|
function ClearFormat() {
|
|
28426
28611
|
}
|
|
28427
28612
|
/**
|
|
@@ -28683,7 +28868,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
28683
28868
|
* @hidden
|
|
28684
28869
|
* @deprecated
|
|
28685
28870
|
*/
|
|
28686
|
-
var ClearFormatExec = /** @
|
|
28871
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
28687
28872
|
/**
|
|
28688
28873
|
* Constructor for creating the Formats plugin
|
|
28689
28874
|
*
|
|
@@ -28737,7 +28922,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
28737
28922
|
/**
|
|
28738
28923
|
* `Undo` module is used to handle undo actions.
|
|
28739
28924
|
*/
|
|
28740
|
-
var UndoRedoManager = /** @
|
|
28925
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
28741
28926
|
function UndoRedoManager(parent, options) {
|
|
28742
28927
|
this.undoRedoStack = [];
|
|
28743
28928
|
this.parent = parent;
|
|
@@ -29003,7 +29188,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
29003
29188
|
* @hidden
|
|
29004
29189
|
* @deprecated
|
|
29005
29190
|
*/
|
|
29006
|
-
var MsWordPaste = /** @
|
|
29191
|
+
var MsWordPaste = /** @class */ (function () {
|
|
29007
29192
|
function MsWordPaste(parent) {
|
|
29008
29193
|
this.olData = [
|
|
29009
29194
|
'decimal',
|
|
@@ -29095,6 +29280,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29095
29280
|
e.callBack(elm.innerHTML, this.cropImageDimensions, source);
|
|
29096
29281
|
}
|
|
29097
29282
|
else {
|
|
29283
|
+
if (source === PASTE_SOURCE[2]) {
|
|
29284
|
+
this.handleOneNoteContent(elm);
|
|
29285
|
+
}
|
|
29098
29286
|
e.callBack(elm.innerHTML, null, source);
|
|
29099
29287
|
}
|
|
29100
29288
|
};
|
|
@@ -30089,6 +30277,18 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30089
30277
|
}
|
|
30090
30278
|
return 'html';
|
|
30091
30279
|
};
|
|
30280
|
+
MsWordPaste.prototype.handleOneNoteContent = function (element) {
|
|
30281
|
+
var allListElements = element.querySelectorAll('ul, ol');
|
|
30282
|
+
if (allListElements.length > 0) {
|
|
30283
|
+
for (var i = 0; i < allListElements.length; i++) {
|
|
30284
|
+
// Removing the ul and ol parent node for the p tag
|
|
30285
|
+
var currentList = allListElements[i];
|
|
30286
|
+
if (currentList.querySelectorAll('li').length === 0 && currentList.childNodes.length > 0) {
|
|
30287
|
+
InsertMethods.unwrap(currentList);
|
|
30288
|
+
}
|
|
30289
|
+
}
|
|
30290
|
+
}
|
|
30291
|
+
};
|
|
30092
30292
|
MsWordPaste.prototype.destroy = function () {
|
|
30093
30293
|
this.removeEventListener();
|
|
30094
30294
|
};
|
|
@@ -30101,7 +30301,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30101
30301
|
* @hidden
|
|
30102
30302
|
* @deprecated
|
|
30103
30303
|
*/
|
|
30104
|
-
var InsertTextExec = /** @
|
|
30304
|
+
var InsertTextExec = /** @class */ (function () {
|
|
30105
30305
|
/**
|
|
30106
30306
|
* Constructor for creating the InsertText plugin
|
|
30107
30307
|
*
|
|
@@ -30140,7 +30340,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
30140
30340
|
return InsertTextExec;
|
|
30141
30341
|
}());
|
|
30142
30342
|
|
|
30143
|
-
var EmojiPickerAction = /** @
|
|
30343
|
+
var EmojiPickerAction = /** @class */ (function () {
|
|
30144
30344
|
function EmojiPickerAction(parent) {
|
|
30145
30345
|
this.parent = parent;
|
|
30146
30346
|
this.addEventListener();
|
|
@@ -30208,7 +30408,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
|
|
|
30208
30408
|
return EmojiPickerAction;
|
|
30209
30409
|
}());
|
|
30210
30410
|
|
|
30211
|
-
var FormatPainterActions = /** @
|
|
30411
|
+
var FormatPainterActions = /** @class */ (function () {
|
|
30212
30412
|
function FormatPainterActions(parent, options) {
|
|
30213
30413
|
this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
|
|
30214
30414
|
this.parent = parent;
|
|
@@ -30853,7 +31053,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
|
|
|
30853
31053
|
* @hidden
|
|
30854
31054
|
* @deprecated
|
|
30855
31055
|
*/
|
|
30856
|
-
var EditorManager = /** @
|
|
31056
|
+
var EditorManager = /** @class */ (function () {
|
|
30857
31057
|
/**
|
|
30858
31058
|
* Constructor for creating the component
|
|
30859
31059
|
*
|
|
@@ -31202,26 +31402,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
31202
31402
|
return EditorManager;
|
|
31203
31403
|
}());
|
|
31204
31404
|
|
|
31205
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
31206
|
-
var extendStatics = function (d, b) {
|
|
31207
|
-
extendStatics = Object.setPrototypeOf ||
|
|
31208
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31209
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31210
|
-
return extendStatics(d, b);
|
|
31211
|
-
};
|
|
31212
|
-
return function (d, b) {
|
|
31213
|
-
extendStatics(d, b);
|
|
31214
|
-
function __() { this.constructor = d; }
|
|
31215
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31216
|
-
};
|
|
31217
|
-
})();
|
|
31405
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
31406
|
+
var extendStatics = function (d, b) {
|
|
31407
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31408
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31409
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31410
|
+
return extendStatics(d, b);
|
|
31411
|
+
};
|
|
31412
|
+
return function (d, b) {
|
|
31413
|
+
extendStatics(d, b);
|
|
31414
|
+
function __() { this.constructor = d; }
|
|
31415
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31416
|
+
};
|
|
31417
|
+
})();
|
|
31218
31418
|
/**
|
|
31219
31419
|
* HTML adapter
|
|
31220
31420
|
*
|
|
31221
31421
|
* @hidden
|
|
31222
31422
|
* @deprecated
|
|
31223
31423
|
*/
|
|
31224
|
-
var HTMLFormatter = /** @
|
|
31424
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
31225
31425
|
__extends$4(HTMLFormatter, _super);
|
|
31226
31426
|
function HTMLFormatter(options) {
|
|
31227
31427
|
var _this = _super.call(this) || this;
|
|
@@ -31262,7 +31462,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
31262
31462
|
/**
|
|
31263
31463
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
31264
31464
|
*/
|
|
31265
|
-
var HtmlToolbarStatus = /** @
|
|
31465
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
31266
31466
|
function HtmlToolbarStatus(parent) {
|
|
31267
31467
|
this.parent = parent;
|
|
31268
31468
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -31308,7 +31508,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
31308
31508
|
/**
|
|
31309
31509
|
* XhtmlValidation module called when set enableXhtml as true
|
|
31310
31510
|
*/
|
|
31311
|
-
var XhtmlValidation = /** @
|
|
31511
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
31312
31512
|
function XhtmlValidation(parent) {
|
|
31313
31513
|
this.parent = parent;
|
|
31314
31514
|
this.addEventListener();
|
|
@@ -31479,7 +31679,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
31479
31679
|
/**
|
|
31480
31680
|
* `HtmlEditor` module is used to HTML editor
|
|
31481
31681
|
*/
|
|
31482
|
-
var HtmlEditor = /** @
|
|
31682
|
+
var HtmlEditor = /** @class */ (function () {
|
|
31483
31683
|
function HtmlEditor(parent, serviceLocator) {
|
|
31484
31684
|
this.rangeCollection = [];
|
|
31485
31685
|
this.isImageDelete = false;
|
|
@@ -31593,7 +31793,11 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31593
31793
|
HtmlEditor.prototype.isTableClassAdded = function () {
|
|
31594
31794
|
var tableElement = this.parent.inputElement.querySelectorAll('table');
|
|
31595
31795
|
for (var i = 0; i < tableElement.length; i++) {
|
|
31596
|
-
|
|
31796
|
+
// e-rte-table class is added to the table element for styling.
|
|
31797
|
+
// e-rte-paste-table class is added for pasted table element from MS Word and other sources such as Web will not have any styles.
|
|
31798
|
+
// e-rte-custom-table class is added for custom table element will not have any styles.
|
|
31799
|
+
if (!tableElement[i].classList.contains('e-rte-table') && !tableElement[i].classList.contains('e-rte-paste-table')
|
|
31800
|
+
&& !tableElement[i].classList.contains('e-rte-custom-table')) {
|
|
31597
31801
|
tableElement[i].classList.add('e-rte-table');
|
|
31598
31802
|
}
|
|
31599
31803
|
}
|
|
@@ -31879,7 +32083,10 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31879
32083
|
var editorValue = currentRange_1.startContainer.textContent.slice(0, currentRange_1.startOffset);
|
|
31880
32084
|
var orderedList_1 = this.isOrderedList(editorValue);
|
|
31881
32085
|
var unOrderedList = this.isUnOrderedList(editorValue);
|
|
31882
|
-
var hasSplitedText =
|
|
32086
|
+
var hasSplitedText = false;
|
|
32087
|
+
if (orderedList_1 || unOrderedList) {
|
|
32088
|
+
hasSplitedText = this.hasMultipleTextNode(currentRange_1);
|
|
32089
|
+
}
|
|
31883
32090
|
if (!hasSplitedText && (orderedList_1 && !unOrderedList || unOrderedList && !orderedList_1)) {
|
|
31884
32091
|
var eventArgs_1 = {
|
|
31885
32092
|
callBack: null,
|
|
@@ -31949,6 +32156,11 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
31949
32156
|
HtmlEditor.prototype.hasMultipleTextNode = function (range) {
|
|
31950
32157
|
if (range && range.startContainer && range.startContainer.parentNode) {
|
|
31951
32158
|
var parentNode = range.startContainer.parentNode;
|
|
32159
|
+
if (range.startContainer.previousElementSibling &&
|
|
32160
|
+
range.startContainer.previousElementSibling.classList.contains('e-mention-chip')
|
|
32161
|
+
&& !range.startContainer.previousElementSibling.isContentEditable) {
|
|
32162
|
+
return true;
|
|
32163
|
+
}
|
|
31952
32164
|
if (this.parent.enterKey === 'BR' || closest(parentNode, 'table')) {
|
|
31953
32165
|
return false;
|
|
31954
32166
|
}
|
|
@@ -32113,12 +32325,16 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32113
32325
|
}
|
|
32114
32326
|
var brNode = this.deleteRangeElement.querySelector('BR');
|
|
32115
32327
|
var brLastChildNode = this.deleteRangeElement.lastChild;
|
|
32328
|
+
var brParentNode = brLastChildNode.parentNode;
|
|
32116
32329
|
if (brNode && brNode.classList.contains('e-rte-image-remove-focus')) {
|
|
32117
32330
|
removeClass([brNode], ['e-rte-image-focus']);
|
|
32118
32331
|
return;
|
|
32119
32332
|
}
|
|
32120
32333
|
else if (brNode && brLastChildNode && brLastChildNode.nodeName === 'BR') {
|
|
32121
32334
|
detach(brLastChildNode);
|
|
32335
|
+
if (!isNullOrUndefined(brParentNode) && brParentNode.childNodes.length === 0) {
|
|
32336
|
+
detach(brParentNode);
|
|
32337
|
+
}
|
|
32122
32338
|
e.args.preventDefault();
|
|
32123
32339
|
}
|
|
32124
32340
|
if (!isNullOrUndefined(this.deleteRangeElement) && (this.deleteOldRangeElement.tagName !== 'OL' && this.deleteOldRangeElement.tagName !== 'UL')
|
|
@@ -32602,7 +32818,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32602
32818
|
/**
|
|
32603
32819
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
32604
32820
|
*/
|
|
32605
|
-
var PasteCleanup = /** @
|
|
32821
|
+
var PasteCleanup = /** @class */ (function () {
|
|
32606
32822
|
function PasteCleanup(parent, serviceLocator) {
|
|
32607
32823
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
32608
32824
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -32792,38 +33008,62 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32792
33008
|
}
|
|
32793
33009
|
};
|
|
32794
33010
|
PasteCleanup.prototype.splitBreakLine = function (value) {
|
|
32795
|
-
var enterSplitText = value.split('\n');
|
|
32796
|
-
var
|
|
33011
|
+
var enterSplitText = value.split('\r\n\r\n');
|
|
33012
|
+
var finalText = '';
|
|
32797
33013
|
var startNode = this.parent.enterKey === 'P' ? '<p>' : (this.parent.enterKey === 'DIV' ? '<div>' : '');
|
|
32798
33014
|
var endNode = this.parent.enterKey === 'P' ? '</p>' : (this.parent.enterKey === 'DIV' ? '</div>' : '<br>');
|
|
32799
33015
|
for (var i = 0; i < enterSplitText.length; i++) {
|
|
32800
|
-
|
|
32801
|
-
|
|
33016
|
+
var content = enterSplitText[i];
|
|
33017
|
+
var contentWithSpace = this.makeSpace(content);
|
|
33018
|
+
var contentWithLineBreak = contentWithSpace.replace(/\r\n|\n/g, '<br>');
|
|
33019
|
+
if (i === 0) {
|
|
33020
|
+
if (this.parent.enterKey === 'BR') {
|
|
33021
|
+
finalText += (contentWithLineBreak + endNode);
|
|
33022
|
+
}
|
|
33023
|
+
else {
|
|
33024
|
+
finalText += contentWithLineBreak; // In order to merge the content in current line. No P/Div tag is added.
|
|
33025
|
+
}
|
|
32802
33026
|
}
|
|
32803
33027
|
else {
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
|
|
32807
|
-
|
|
33028
|
+
if (this.parent.enterKey === 'BR') {
|
|
33029
|
+
if (i === enterSplitText.length - 1) {
|
|
33030
|
+
finalText += (contentWithLineBreak + endNode);
|
|
33031
|
+
}
|
|
33032
|
+
else {
|
|
33033
|
+
finalText += (contentWithLineBreak + endNode + endNode);
|
|
33034
|
+
}
|
|
33035
|
+
}
|
|
33036
|
+
else {
|
|
33037
|
+
finalText += startNode + contentWithLineBreak + endNode;
|
|
33038
|
+
}
|
|
32808
33039
|
}
|
|
32809
33040
|
}
|
|
32810
|
-
return
|
|
33041
|
+
return finalText;
|
|
32811
33042
|
};
|
|
32812
|
-
PasteCleanup.prototype.makeSpace = function (
|
|
32813
|
-
var
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
33043
|
+
PasteCleanup.prototype.makeSpace = function (text) {
|
|
33044
|
+
var spacedContent = '';
|
|
33045
|
+
if (text === '') {
|
|
33046
|
+
return text;
|
|
33047
|
+
}
|
|
33048
|
+
var lineBreakSplitText = text.split(' ');
|
|
33049
|
+
for (var i = 0; i < lineBreakSplitText.length; i++) {
|
|
33050
|
+
var currentText = lineBreakSplitText[i];
|
|
33051
|
+
if (currentText === '') {
|
|
33052
|
+
spacedContent += ' ';
|
|
33053
|
+
}
|
|
33054
|
+
else if (currentText === '\t') {
|
|
33055
|
+
spacedContent += ' ';
|
|
32820
33056
|
}
|
|
32821
33057
|
else {
|
|
32822
|
-
|
|
32823
|
-
|
|
33058
|
+
if (i > 0 && i < lineBreakSplitText.length) {
|
|
33059
|
+
spacedContent += ' ';
|
|
33060
|
+
}
|
|
33061
|
+
spacedContent += currentText;
|
|
32824
33062
|
}
|
|
32825
33063
|
}
|
|
32826
|
-
|
|
33064
|
+
spacedContent = spacedContent.replace(/\t/g, ' ');
|
|
33065
|
+
spacedContent = spacedContent.replace(/ /g, ' ');
|
|
33066
|
+
return spacedContent;
|
|
32827
33067
|
};
|
|
32828
33068
|
PasteCleanup.prototype.imgUploading = function (elm) {
|
|
32829
33069
|
var allImgElm = elm.querySelectorAll('.pasteContent_Img');
|
|
@@ -33408,6 +33648,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
33408
33648
|
var tableElement = element.querySelectorAll('table');
|
|
33409
33649
|
for (var i = 0; i < tableElement.length; i++) {
|
|
33410
33650
|
var isMSTeamsTable = tableElement[i].parentElement.nodeName === 'FIGURE';
|
|
33651
|
+
if (tableElement[i].classList.length > 0 && tableElement[i].classList.contains('e-rte-custom-table')) {
|
|
33652
|
+
continue; // Skip the custom table class
|
|
33653
|
+
}
|
|
33411
33654
|
if (this.parent.pasteCleanupSettings.keepFormat && source && !isMSTeamsTable) {
|
|
33412
33655
|
tableElement[i].classList.add('e-rte-paste-' + source + '-table');
|
|
33413
33656
|
}
|
|
@@ -33786,7 +34029,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
33786
34029
|
/**
|
|
33787
34030
|
* `Resize` module is used to resize the editor
|
|
33788
34031
|
*/
|
|
33789
|
-
var Resize = /** @
|
|
34032
|
+
var Resize = /** @class */ (function () {
|
|
33790
34033
|
function Resize(parent) {
|
|
33791
34034
|
this.parent = parent;
|
|
33792
34035
|
this.addEventListener();
|
|
@@ -33862,6 +34105,10 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33862
34105
|
this.parent.element.style.height = eventType.clientY - boundRect.top + 'px';
|
|
33863
34106
|
this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
|
|
33864
34107
|
}
|
|
34108
|
+
var rteContent = this.parent.element.querySelector('#' + this.parent.getID() + '_source-view');
|
|
34109
|
+
if (!isNullOrUndefined(rteContent)) {
|
|
34110
|
+
rteContent.style.height = this.parent.element.style.height;
|
|
34111
|
+
}
|
|
33865
34112
|
this.parent.refreshUI();
|
|
33866
34113
|
};
|
|
33867
34114
|
Resize.prototype.stopResize = function (e) {
|
|
@@ -33945,7 +34192,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
33945
34192
|
/**
|
|
33946
34193
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
33947
34194
|
*/
|
|
33948
|
-
var FileManager = /** @
|
|
34195
|
+
var FileManager = /** @class */ (function () {
|
|
33949
34196
|
function FileManager(parent, locator) {
|
|
33950
34197
|
FileManager$1.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$2);
|
|
33951
34198
|
this.parent = parent;
|
|
@@ -34202,7 +34449,7 @@ var FileManager = /** @__PURE__ @class */ (function () {
|
|
|
34202
34449
|
/**
|
|
34203
34450
|
* `FullScreen` module is used to maximize and minimize screen
|
|
34204
34451
|
*/
|
|
34205
|
-
var FullScreen = /** @
|
|
34452
|
+
var FullScreen = /** @class */ (function () {
|
|
34206
34453
|
function FullScreen(parent) {
|
|
34207
34454
|
this.parent = parent;
|
|
34208
34455
|
this.addEventListener();
|
|
@@ -34424,7 +34671,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
34424
34671
|
}
|
|
34425
34672
|
}
|
|
34426
34673
|
|
|
34427
|
-
var FormatPainter = /** @
|
|
34674
|
+
var FormatPainter = /** @class */ (function () {
|
|
34428
34675
|
function FormatPainter(parent) {
|
|
34429
34676
|
this.isSticky = false;
|
|
34430
34677
|
this.isActive = false;
|
|
@@ -34581,7 +34828,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
|
|
|
34581
34828
|
return FormatPainter;
|
|
34582
34829
|
}());
|
|
34583
34830
|
|
|
34584
|
-
var EmojiPicker = /** @
|
|
34831
|
+
var EmojiPicker = /** @class */ (function () {
|
|
34585
34832
|
function EmojiPicker(parent, serviceLocator) {
|
|
34586
34833
|
this.parent = parent;
|
|
34587
34834
|
this.locator = serviceLocator;
|
|
@@ -35426,7 +35673,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
|
|
|
35426
35673
|
/**
|
|
35427
35674
|
* ImportExport module called when import and export content in RichTextEditor
|
|
35428
35675
|
*/
|
|
35429
|
-
var ImportExport = /** @
|
|
35676
|
+
var ImportExport = /** @class */ (function () {
|
|
35430
35677
|
function ImportExport(parent) {
|
|
35431
35678
|
this.parent = parent;
|
|
35432
35679
|
this.addEventListener();
|
|
@@ -35737,7 +35984,7 @@ var executeGroup = {
|
|
|
35737
35984
|
* @hidden
|
|
35738
35985
|
* @deprecated
|
|
35739
35986
|
*/
|
|
35740
|
-
var ServiceLocator = /** @
|
|
35987
|
+
var ServiceLocator = /** @class */ (function () {
|
|
35741
35988
|
function ServiceLocator() {
|
|
35742
35989
|
this.services = {};
|
|
35743
35990
|
}
|
|
@@ -35784,7 +36031,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
35784
36031
|
* @hidden
|
|
35785
36032
|
* @deprecated
|
|
35786
36033
|
*/
|
|
35787
|
-
var RendererFactory = /** @
|
|
36034
|
+
var RendererFactory = /** @class */ (function () {
|
|
35788
36035
|
function RendererFactory() {
|
|
35789
36036
|
this.rendererMap = {};
|
|
35790
36037
|
}
|
|
@@ -35827,29 +36074,29 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
35827
36074
|
return RendererFactory;
|
|
35828
36075
|
}());
|
|
35829
36076
|
|
|
35830
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
35831
|
-
var extendStatics = function (d, b) {
|
|
35832
|
-
extendStatics = Object.setPrototypeOf ||
|
|
35833
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35834
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
35835
|
-
return extendStatics(d, b);
|
|
35836
|
-
};
|
|
35837
|
-
return function (d, b) {
|
|
35838
|
-
extendStatics(d, b);
|
|
35839
|
-
function __() { this.constructor = d; }
|
|
35840
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35841
|
-
};
|
|
35842
|
-
})();
|
|
35843
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
35844
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35845
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35846
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
35847
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35848
|
-
};
|
|
36077
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
36078
|
+
var extendStatics = function (d, b) {
|
|
36079
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36080
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36081
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36082
|
+
return extendStatics(d, b);
|
|
36083
|
+
};
|
|
36084
|
+
return function (d, b) {
|
|
36085
|
+
extendStatics(d, b);
|
|
36086
|
+
function __() { this.constructor = d; }
|
|
36087
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36088
|
+
};
|
|
36089
|
+
})();
|
|
36090
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36091
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36092
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36093
|
+
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;
|
|
36094
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36095
|
+
};
|
|
35849
36096
|
/**
|
|
35850
36097
|
* Configures the toolbar settings of the RichTextEditor.
|
|
35851
36098
|
*/
|
|
35852
|
-
var ToolbarSettings = /** @
|
|
36099
|
+
var ToolbarSettings = /** @class */ (function (_super) {
|
|
35853
36100
|
__extends$5(ToolbarSettings, _super);
|
|
35854
36101
|
function ToolbarSettings() {
|
|
35855
36102
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35874,7 +36121,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35874
36121
|
/**
|
|
35875
36122
|
* Configures the importWord settings of the RichTextEditor.
|
|
35876
36123
|
*/
|
|
35877
|
-
var ImportWord = /** @
|
|
36124
|
+
var ImportWord = /** @class */ (function (_super) {
|
|
35878
36125
|
__extends$5(ImportWord, _super);
|
|
35879
36126
|
function ImportWord() {
|
|
35880
36127
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35887,7 +36134,7 @@ var ImportWord = /** @__PURE__ @class */ (function (_super) {
|
|
|
35887
36134
|
/**
|
|
35888
36135
|
* Configures the export word of the RichTextEditor.
|
|
35889
36136
|
*/
|
|
35890
|
-
var ExportWord = /** @
|
|
36137
|
+
var ExportWord = /** @class */ (function (_super) {
|
|
35891
36138
|
__extends$5(ExportWord, _super);
|
|
35892
36139
|
function ExportWord() {
|
|
35893
36140
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35906,7 +36153,7 @@ var ExportWord = /** @__PURE__ @class */ (function (_super) {
|
|
|
35906
36153
|
/**
|
|
35907
36154
|
* Configures the export settings of the RichTextEditor.
|
|
35908
36155
|
*/
|
|
35909
|
-
var ExportPdf = /** @
|
|
36156
|
+
var ExportPdf = /** @class */ (function (_super) {
|
|
35910
36157
|
__extends$5(ExportPdf, _super);
|
|
35911
36158
|
function ExportPdf() {
|
|
35912
36159
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35925,7 +36172,7 @@ var ExportPdf = /** @__PURE__ @class */ (function (_super) {
|
|
|
35925
36172
|
/**
|
|
35926
36173
|
* Configures the image settings of the RichTextEditor.
|
|
35927
36174
|
*/
|
|
35928
|
-
var ImageSettings = /** @
|
|
36175
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
35929
36176
|
__extends$5(ImageSettings, _super);
|
|
35930
36177
|
function ImageSettings() {
|
|
35931
36178
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -35977,7 +36224,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
35977
36224
|
/**
|
|
35978
36225
|
* Configures the audio settings of the RichTextEditor.
|
|
35979
36226
|
*/
|
|
35980
|
-
var AudioSettings = /** @
|
|
36227
|
+
var AudioSettings = /** @class */ (function (_super) {
|
|
35981
36228
|
__extends$5(AudioSettings, _super);
|
|
35982
36229
|
function AudioSettings() {
|
|
35983
36230
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36005,7 +36252,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36005
36252
|
/**
|
|
36006
36253
|
* Configures the video settings of the RichTextEditor.
|
|
36007
36254
|
*/
|
|
36008
|
-
var VideoSettings = /** @
|
|
36255
|
+
var VideoSettings = /** @class */ (function (_super) {
|
|
36009
36256
|
__extends$5(VideoSettings, _super);
|
|
36010
36257
|
function VideoSettings() {
|
|
36011
36258
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36057,7 +36304,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36057
36304
|
/**
|
|
36058
36305
|
* Configures the file manager settings of the RichTextEditor.
|
|
36059
36306
|
*/
|
|
36060
|
-
var FileManagerSettings = /** @
|
|
36307
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
36061
36308
|
__extends$5(FileManagerSettings, _super);
|
|
36062
36309
|
function FileManagerSettings() {
|
|
36063
36310
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36118,7 +36365,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36118
36365
|
], FileManagerSettings.prototype, "view", void 0);
|
|
36119
36366
|
return FileManagerSettings;
|
|
36120
36367
|
}(ChildProperty));
|
|
36121
|
-
var TableSettings = /** @
|
|
36368
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
36122
36369
|
__extends$5(TableSettings, _super);
|
|
36123
36370
|
function TableSettings() {
|
|
36124
36371
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36143,7 +36390,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36143
36390
|
/**
|
|
36144
36391
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
36145
36392
|
*/
|
|
36146
|
-
var QuickToolbarSettings = /** @
|
|
36393
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
36147
36394
|
__extends$5(QuickToolbarSettings, _super);
|
|
36148
36395
|
function QuickToolbarSettings() {
|
|
36149
36396
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36180,7 +36427,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36180
36427
|
/**
|
|
36181
36428
|
* Configure the format painter settings of the Rich Text Editor.
|
|
36182
36429
|
*/
|
|
36183
|
-
var FormatPainterSettings = /** @
|
|
36430
|
+
var FormatPainterSettings = /** @class */ (function (_super) {
|
|
36184
36431
|
__extends$5(FormatPainterSettings, _super);
|
|
36185
36432
|
function FormatPainterSettings() {
|
|
36186
36433
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36196,7 +36443,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36196
36443
|
/**
|
|
36197
36444
|
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
36198
36445
|
*/
|
|
36199
|
-
var EmojiSettings = /** @
|
|
36446
|
+
var EmojiSettings = /** @class */ (function (_super) {
|
|
36200
36447
|
__extends$5(EmojiSettings, _super);
|
|
36201
36448
|
function EmojiSettings() {
|
|
36202
36449
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36212,7 +36459,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36212
36459
|
/**
|
|
36213
36460
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
36214
36461
|
*/
|
|
36215
|
-
var PasteCleanupSettings = /** @
|
|
36462
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
36216
36463
|
__extends$5(PasteCleanupSettings, _super);
|
|
36217
36464
|
function PasteCleanupSettings() {
|
|
36218
36465
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36240,7 +36487,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36240
36487
|
/**
|
|
36241
36488
|
* Configures the font family settings of the RichTextEditor.
|
|
36242
36489
|
*/
|
|
36243
|
-
var FontFamily = /** @
|
|
36490
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
36244
36491
|
__extends$5(FontFamily, _super);
|
|
36245
36492
|
function FontFamily() {
|
|
36246
36493
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36259,7 +36506,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
36259
36506
|
/**
|
|
36260
36507
|
* Configures the font size settings of the RichTextEditor.
|
|
36261
36508
|
*/
|
|
36262
|
-
var FontSize = /** @
|
|
36509
|
+
var FontSize = /** @class */ (function (_super) {
|
|
36263
36510
|
__extends$5(FontSize, _super);
|
|
36264
36511
|
function FontSize() {
|
|
36265
36512
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36278,7 +36525,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
36278
36525
|
/**
|
|
36279
36526
|
* Configures the format settings of the RichTextEditor.
|
|
36280
36527
|
*/
|
|
36281
|
-
var Format = /** @
|
|
36528
|
+
var Format = /** @class */ (function (_super) {
|
|
36282
36529
|
__extends$5(Format, _super);
|
|
36283
36530
|
function Format() {
|
|
36284
36531
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36297,7 +36544,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
36297
36544
|
/**
|
|
36298
36545
|
* Configures the font Color settings of the RichTextEditor.
|
|
36299
36546
|
*/
|
|
36300
|
-
var FontColor = /** @
|
|
36547
|
+
var FontColor = /** @class */ (function (_super) {
|
|
36301
36548
|
__extends$5(FontColor, _super);
|
|
36302
36549
|
function FontColor() {
|
|
36303
36550
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36322,7 +36569,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
36322
36569
|
/**
|
|
36323
36570
|
* Configures the background Color settings of the RichTextEditor.
|
|
36324
36571
|
*/
|
|
36325
|
-
var BackgroundColor = /** @
|
|
36572
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
36326
36573
|
__extends$5(BackgroundColor, _super);
|
|
36327
36574
|
function BackgroundColor() {
|
|
36328
36575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36347,7 +36594,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
36347
36594
|
/**
|
|
36348
36595
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
36349
36596
|
*/
|
|
36350
|
-
var NumberFormatList = /** @
|
|
36597
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
36351
36598
|
__extends$5(NumberFormatList, _super);
|
|
36352
36599
|
function NumberFormatList() {
|
|
36353
36600
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36360,7 +36607,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
36360
36607
|
/**
|
|
36361
36608
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
36362
36609
|
*/
|
|
36363
|
-
var BulletFormatList = /** @
|
|
36610
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
36364
36611
|
__extends$5(BulletFormatList, _super);
|
|
36365
36612
|
function BulletFormatList() {
|
|
36366
36613
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36371,29 +36618,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
36371
36618
|
return BulletFormatList;
|
|
36372
36619
|
}(ChildProperty));
|
|
36373
36620
|
|
|
36374
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
36375
|
-
var extendStatics = function (d, b) {
|
|
36376
|
-
extendStatics = Object.setPrototypeOf ||
|
|
36377
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36378
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36379
|
-
return extendStatics(d, b);
|
|
36380
|
-
};
|
|
36381
|
-
return function (d, b) {
|
|
36382
|
-
extendStatics(d, b);
|
|
36383
|
-
function __() { this.constructor = d; }
|
|
36384
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36385
|
-
};
|
|
36386
|
-
})();
|
|
36387
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36388
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36389
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36390
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36391
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36392
|
-
};
|
|
36621
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
36622
|
+
var extendStatics = function (d, b) {
|
|
36623
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36624
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36625
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36626
|
+
return extendStatics(d, b);
|
|
36627
|
+
};
|
|
36628
|
+
return function (d, b) {
|
|
36629
|
+
extendStatics(d, b);
|
|
36630
|
+
function __() { this.constructor = d; }
|
|
36631
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36632
|
+
};
|
|
36633
|
+
})();
|
|
36634
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36635
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36636
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36637
|
+
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;
|
|
36638
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36639
|
+
};
|
|
36393
36640
|
/**
|
|
36394
36641
|
* Objects used for configuring the iframe resources properties.
|
|
36395
36642
|
*/
|
|
36396
|
-
var Resources = /** @
|
|
36643
|
+
var Resources = /** @class */ (function (_super) {
|
|
36397
36644
|
__extends$6(Resources, _super);
|
|
36398
36645
|
function Resources() {
|
|
36399
36646
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36409,7 +36656,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
36409
36656
|
/**
|
|
36410
36657
|
* Configures the iframe settings of the RTE.
|
|
36411
36658
|
*/
|
|
36412
|
-
var IFrameSettings = /** @
|
|
36659
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
36413
36660
|
__extends$6(IFrameSettings, _super);
|
|
36414
36661
|
function IFrameSettings() {
|
|
36415
36662
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36432,29 +36679,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
36432
36679
|
return IFrameSettings;
|
|
36433
36680
|
}(ChildProperty));
|
|
36434
36681
|
|
|
36435
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36436
|
-
var extendStatics = function (d, b) {
|
|
36437
|
-
extendStatics = Object.setPrototypeOf ||
|
|
36438
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36439
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36440
|
-
return extendStatics(d, b);
|
|
36441
|
-
};
|
|
36442
|
-
return function (d, b) {
|
|
36443
|
-
extendStatics(d, b);
|
|
36444
|
-
function __() { this.constructor = d; }
|
|
36445
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36446
|
-
};
|
|
36447
|
-
})();
|
|
36448
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36449
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36450
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36451
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36452
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36453
|
-
};
|
|
36682
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
36683
|
+
var extendStatics = function (d, b) {
|
|
36684
|
+
extendStatics = Object.setPrototypeOf ||
|
|
36685
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36686
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36687
|
+
return extendStatics(d, b);
|
|
36688
|
+
};
|
|
36689
|
+
return function (d, b) {
|
|
36690
|
+
extendStatics(d, b);
|
|
36691
|
+
function __() { this.constructor = d; }
|
|
36692
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36693
|
+
};
|
|
36694
|
+
})();
|
|
36695
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
36696
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
36697
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36698
|
+
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;
|
|
36699
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36700
|
+
};
|
|
36454
36701
|
/**
|
|
36455
36702
|
* Configures the inlineMode property of the RTE.
|
|
36456
36703
|
*/
|
|
36457
|
-
var InlineMode = /** @
|
|
36704
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
36458
36705
|
__extends$7(InlineMode, _super);
|
|
36459
36706
|
function InlineMode() {
|
|
36460
36707
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -36471,7 +36718,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
36471
36718
|
/**
|
|
36472
36719
|
* `EnterKey` module is used to handle enter key press actions.
|
|
36473
36720
|
*/
|
|
36474
|
-
var EnterKeyAction = /** @
|
|
36721
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
36475
36722
|
function EnterKeyAction(parent) {
|
|
36476
36723
|
this.parent = parent;
|
|
36477
36724
|
this.addEventListener();
|
|
@@ -36640,13 +36887,21 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
36640
36887
|
}
|
|
36641
36888
|
var isMediaNode = false; // To check the image audio and video node cases
|
|
36642
36889
|
var isFocusedFirst = false;
|
|
36890
|
+
var parentElement = _this.range.startContainer.parentElement;
|
|
36891
|
+
var isPreWrapApplied = parentElement ? _this.parent.contentModule.getDocument().defaultView.getComputedStyle(_this.range.startContainer.parentElement, null).getPropertyValue('white-space') === 'pre-wrap' : false;
|
|
36643
36892
|
if (_this.range.startOffset !== 0 && _this.range.endOffset !== 0 &&
|
|
36644
36893
|
_this.range.startContainer === _this.range.endContainer && !(!isNullOrUndefined(nearBlockNode.childNodes[0])
|
|
36645
36894
|
&& (nearBlockNode.childNodes[0].nodeName === 'IMG' || nearBlockNode.querySelectorAll('img, audio, video').length > 0))) {
|
|
36646
36895
|
var startNodeText = _this.range.startContainer.textContent;
|
|
36647
36896
|
var splitFirstText = startNodeText.substring(0, _this.range.startOffset);
|
|
36648
|
-
|
|
36649
|
-
|
|
36897
|
+
var lastCharBeforeCursor = splitFirstText.charCodeAt(_this.range.startOffset - 1);
|
|
36898
|
+
var isSplitTextEmpty = splitFirstText.trim().length === 0;
|
|
36899
|
+
var hasContentAfterCursor = startNodeText.slice(_this.range.startOffset).trim().length !== 0;
|
|
36900
|
+
var isCursorAtStartNonPreWrap = lastCharBeforeCursor !== 160
|
|
36901
|
+
&& isSplitTextEmpty && !isPreWrapApplied;
|
|
36902
|
+
var isCursorAtStartPreWrapWithContent = lastCharBeforeCursor === 32
|
|
36903
|
+
&& isPreWrapApplied && isSplitTextEmpty && hasContentAfterCursor;
|
|
36904
|
+
if (isCursorAtStartNonPreWrap || isCursorAtStartPreWrapWithContent) {
|
|
36650
36905
|
isFocusedFirst = true;
|
|
36651
36906
|
}
|
|
36652
36907
|
}
|
|
@@ -37147,36 +37402,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
37147
37402
|
return EnterKeyAction;
|
|
37148
37403
|
}());
|
|
37149
37404
|
|
|
37150
|
-
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
37151
|
-
var extendStatics = function (d, b) {
|
|
37152
|
-
extendStatics = Object.setPrototypeOf ||
|
|
37153
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
37154
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
37155
|
-
return extendStatics(d, b);
|
|
37156
|
-
};
|
|
37157
|
-
return function (d, b) {
|
|
37158
|
-
extendStatics(d, b);
|
|
37159
|
-
function __() { this.constructor = d; }
|
|
37160
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37161
|
-
};
|
|
37162
|
-
})();
|
|
37163
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
37164
|
-
__assign = Object.assign || function(t) {
|
|
37165
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37166
|
-
s = arguments[i];
|
|
37167
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37168
|
-
t[p] = s[p];
|
|
37169
|
-
}
|
|
37170
|
-
return t;
|
|
37171
|
-
};
|
|
37172
|
-
return __assign.apply(this, arguments);
|
|
37173
|
-
};
|
|
37174
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
37175
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37176
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
37177
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37178
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37179
|
-
};
|
|
37405
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
37406
|
+
var extendStatics = function (d, b) {
|
|
37407
|
+
extendStatics = Object.setPrototypeOf ||
|
|
37408
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
37409
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
37410
|
+
return extendStatics(d, b);
|
|
37411
|
+
};
|
|
37412
|
+
return function (d, b) {
|
|
37413
|
+
extendStatics(d, b);
|
|
37414
|
+
function __() { this.constructor = d; }
|
|
37415
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37416
|
+
};
|
|
37417
|
+
})();
|
|
37418
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
37419
|
+
__assign = Object.assign || function(t) {
|
|
37420
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37421
|
+
s = arguments[i];
|
|
37422
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37423
|
+
t[p] = s[p];
|
|
37424
|
+
}
|
|
37425
|
+
return t;
|
|
37426
|
+
};
|
|
37427
|
+
return __assign.apply(this, arguments);
|
|
37428
|
+
};
|
|
37429
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
37430
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37431
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
37432
|
+
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;
|
|
37433
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37434
|
+
};
|
|
37180
37435
|
/**
|
|
37181
37436
|
* Represents the Rich Text Editor component.
|
|
37182
37437
|
* ```html
|
|
@@ -37187,7 +37442,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
37187
37442
|
* </script>
|
|
37188
37443
|
* ```
|
|
37189
37444
|
*/
|
|
37190
|
-
var RichTextEditor = /** @
|
|
37445
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
37191
37446
|
__extends$8(RichTextEditor, _super);
|
|
37192
37447
|
function RichTextEditor(options, element) {
|
|
37193
37448
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -37899,7 +38154,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
37899
38154
|
}
|
|
37900
38155
|
var notFormatPainterCopy = isNullOrUndefined(e.action) ? true : (e.action !== 'format-copy' ? true : false);
|
|
37901
38156
|
if (this.formatter.getUndoRedoStack().length === 0 && notFormatPainterCopy &&
|
|
37902
|
-
!(e.altKey || e.shiftKey || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
38157
|
+
!(e.altKey || (e.shiftKey && e.which === 16) || (e.altKey && e.shiftKey && e.which === 67))) {
|
|
37903
38158
|
this.formatter.saveData();
|
|
37904
38159
|
}
|
|
37905
38160
|
var preventingMention = false;
|
|
@@ -38953,7 +39208,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
38953
39208
|
var item = compiledTemplate[i];
|
|
38954
39209
|
append([item], appendElem);
|
|
38955
39210
|
}
|
|
38956
|
-
|
|
39211
|
+
var content = appendElem.innerHTML.trim();
|
|
39212
|
+
if (content.length > 0) {
|
|
39213
|
+
this.setProperties({ value: content });
|
|
39214
|
+
}
|
|
38957
39215
|
this.renderReactTemplates();
|
|
38958
39216
|
}
|
|
38959
39217
|
}
|
|
@@ -40098,5 +40356,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
40098
40356
|
return RichTextEditor;
|
|
40099
40357
|
}(Component));
|
|
40100
40358
|
|
|
40101
|
-
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
40359
|
+
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, ALLOWED_TABLE_BLOCK_TAGS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
40102
40360
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|