@syncfusion/ej2-richtexteditor 23.2.6 → 23.2.7-52849
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
- package/CHANGELOG.md +1751 -1731
- 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 +276 -170
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +386 -280
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +74 -74
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +3 -3
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +5 -3
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +7 -3
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +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/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +1 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +10 -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 +6 -4
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +121 -121
- package/src/rich-text-editor/base/classes.js +121 -121
- package/src/rich-text-editor/base/constant.d.ts +149 -149
- package/src/rich-text-editor/base/constant.js +149 -149
- 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 +49 -49
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
- package/src/rich-text-editor/base/rich-text-editor.d.ts +60 -60
- package/src/rich-text-editor/base/rich-text-editor.js +63 -63
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -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 +3 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +13 -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 +19 -12
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/table-module.js +9 -1
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +88 -19
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +2 -3
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +9 -9
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
- package/styles/rich-text-editor/_fabric-definition.scss +257 -257
- package/styles/rich-text-editor/_fluent-definition.scss +263 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
- package/styles/rich-text-editor/_layout.scss +2072 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
- package/styles/rich-text-editor/_material-definition.scss +260 -260
- package/styles/rich-text-editor/_material3-definition.scss +262 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
- package/styles/rich-text-editor/_theme.scss +837 -837
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
- package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_fabric.scss +349 -349
- package/styles/rich-text-editor/icons/_fluent.scss +348 -348
- package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
- package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
- package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_material.scss +349 -349
- package/styles/rich-text-editor/icons/_material3.scss +348 -348
- package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- package/.eslintrc.json +0 -260
- 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
|
@@ -3320,7 +3320,7 @@ function updateDropDownFontFormatLocale(self) {
|
|
|
3320
3320
|
* @hidden
|
|
3321
3321
|
* @deprecated
|
|
3322
3322
|
*/
|
|
3323
|
-
var ToolbarRenderer = /** @
|
|
3323
|
+
var ToolbarRenderer = /** @class */ (function () {
|
|
3324
3324
|
/**
|
|
3325
3325
|
* Constructor for toolbar renderer module
|
|
3326
3326
|
*
|
|
@@ -3340,7 +3340,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3340
3340
|
};
|
|
3341
3341
|
ToolbarRenderer.prototype.destroyTooltip = function () {
|
|
3342
3342
|
if (!isNullOrUndefined(document.querySelector('.e-tooltip-wrap')) && !isNullOrUndefined(document.querySelector(' [data-tooltip-id]'))) {
|
|
3343
|
-
var tooltipTargetEle =
|
|
3343
|
+
var tooltipTargetEle = this.parent.element.querySelector('[data-tooltip-id]');
|
|
3344
3344
|
var event_1 = new MouseEvent('mouseleave', { bubbles: true, cancelable: true });
|
|
3345
3345
|
tooltipTargetEle.dispatchEvent(event_1);
|
|
3346
3346
|
}
|
|
@@ -3501,17 +3501,86 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3501
3501
|
return;
|
|
3502
3502
|
}
|
|
3503
3503
|
// eslint-disable-next-line
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3504
|
+
// Table styles dropdown preselect
|
|
3505
|
+
if (proxy.parent.editorMode !== 'Markdown') {
|
|
3506
|
+
var startNode = proxy.parent.getRange().startContainer.parentElement;
|
|
3507
|
+
var tableEle = startNode.closest('table');
|
|
3508
|
+
var trow = startNode.closest('tr');
|
|
3509
|
+
if (!isNullOrUndefined(tableEle) && tableEle.classList.contains('e-dashed-border')) {
|
|
3510
|
+
for (var index = 0; index < args.element.childNodes.length; index++) {
|
|
3511
|
+
if (args.element.childNodes[index].classList.contains('e-dashed-borders')) {
|
|
3512
|
+
addClass([args.element.childNodes[index]], 'e-active');
|
|
3513
|
+
}
|
|
3511
3514
|
}
|
|
3512
3515
|
}
|
|
3513
|
-
else {
|
|
3514
|
-
|
|
3516
|
+
else if (!isNullOrUndefined(tableEle) && !tableEle.classList.contains('e-dashed-border') && tableEle.classList.contains('e-alternate-rows') && window.getComputedStyle(trow).backgroundColor !== '') {
|
|
3517
|
+
for (var index = 0; index < args.element.childNodes.length; index++) {
|
|
3518
|
+
if (args.element.childNodes[index].classList.contains('e-alternate-rows')) {
|
|
3519
|
+
addClass([args.element.childNodes[index]], 'e-active');
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
//Alignments preselect
|
|
3524
|
+
var alignEle = proxy.parent.getRange().startContainer;
|
|
3525
|
+
while (alignEle !== proxy.parent.element.querySelector('.e-content') && !isNullOrUndefined(alignEle.parentElement)) {
|
|
3526
|
+
if (alignEle.nodeName === '#text') {
|
|
3527
|
+
alignEle = alignEle.parentElement;
|
|
3528
|
+
}
|
|
3529
|
+
var alignStyle = window.getComputedStyle(alignEle).textAlign;
|
|
3530
|
+
if (args.items[0].command === 'Alignments') {
|
|
3531
|
+
if ((args.items[0].text === 'Align Left' && (alignStyle === 'left') || alignStyle === 'start')) {
|
|
3532
|
+
addClass([args.element.childNodes[0]], 'e-active');
|
|
3533
|
+
break;
|
|
3534
|
+
}
|
|
3535
|
+
else if (args.items[1].text === 'Align Center' && alignStyle === 'center') {
|
|
3536
|
+
addClass([args.element.childNodes[1]], 'e-active');
|
|
3537
|
+
break;
|
|
3538
|
+
}
|
|
3539
|
+
else if (args.items[2].text === 'Align Right' && alignStyle === 'right') {
|
|
3540
|
+
addClass([args.element.childNodes[2]], 'e-active');
|
|
3541
|
+
break;
|
|
3542
|
+
}
|
|
3543
|
+
else if (args.items[3].text === 'Align Justify' && alignStyle === 'justify') {
|
|
3544
|
+
addClass([args.element.childNodes[3]], 'e-active');
|
|
3545
|
+
break;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
alignEle = alignEle.parentElement;
|
|
3549
|
+
}
|
|
3550
|
+
//image preselect
|
|
3551
|
+
var imageEle = startNode.closest('img') ? startNode.closest('img') : startNode.querySelector('img');
|
|
3552
|
+
if (args.items[0].command === 'Images') {
|
|
3553
|
+
if (!isNullOrUndefined(imageEle)) {
|
|
3554
|
+
var index = void 0;
|
|
3555
|
+
if (imageEle.classList.contains('e-imgleft') || imageEle.classList.contains('e-imginline')) {
|
|
3556
|
+
index = 0;
|
|
3557
|
+
}
|
|
3558
|
+
else if (imageEle.classList.contains('e-imgcenter') || imageEle.classList.contains('e-imgbreak')) {
|
|
3559
|
+
index = 1;
|
|
3560
|
+
}
|
|
3561
|
+
else if (imageEle.classList.contains('e-imgright')) {
|
|
3562
|
+
index = 2;
|
|
3563
|
+
}
|
|
3564
|
+
if (!isNullOrUndefined(args.element.childNodes[index])) {
|
|
3565
|
+
addClass([args.element.childNodes[index]], 'e-active');
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
//Formats preselect
|
|
3570
|
+
if (args.items[0].command === 'Formats') {
|
|
3571
|
+
for (var index = 0; index < args.element.childNodes.length; index++) {
|
|
3572
|
+
var divNode = _this.parent.createElement('div');
|
|
3573
|
+
divNode.innerHTML = dropDown.content.trim();
|
|
3574
|
+
if (divNode.textContent.trim() !== ''
|
|
3575
|
+
&& args.element.childNodes[index].textContent.trim() === divNode.textContent.trim()) {
|
|
3576
|
+
if (!args.element.childNodes[index].classList.contains('e-active')) {
|
|
3577
|
+
addClass([args.element.childNodes[index]], 'e-active');
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
else {
|
|
3581
|
+
removeClass([args.element.childNodes[index]], 'e-active');
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3515
3584
|
}
|
|
3516
3585
|
}
|
|
3517
3586
|
proxy.parent.notify(beforeDropDownOpen, args);
|
|
@@ -3930,7 +3999,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
3930
3999
|
/**
|
|
3931
4000
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
3932
4001
|
*/
|
|
3933
|
-
var BaseToolbar = /** @
|
|
4002
|
+
var BaseToolbar = /** @class */ (function () {
|
|
3934
4003
|
function BaseToolbar(parent, serviceLocator) {
|
|
3935
4004
|
this.tools = {};
|
|
3936
4005
|
this.parent = parent;
|
|
@@ -4139,7 +4208,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
4139
4208
|
/**
|
|
4140
4209
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
4141
4210
|
*/
|
|
4142
|
-
var DropDownButtons = /** @
|
|
4211
|
+
var DropDownButtons = /** @class */ (function () {
|
|
4143
4212
|
function DropDownButtons(parent, serviceLocator) {
|
|
4144
4213
|
this.parent = parent;
|
|
4145
4214
|
this.locator = serviceLocator;
|
|
@@ -4664,7 +4733,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
4664
4733
|
* @hidden
|
|
4665
4734
|
* @deprecated
|
|
4666
4735
|
*/
|
|
4667
|
-
var ServiceLocator = /** @
|
|
4736
|
+
var ServiceLocator = /** @class */ (function () {
|
|
4668
4737
|
function ServiceLocator() {
|
|
4669
4738
|
this.services = {};
|
|
4670
4739
|
}
|
|
@@ -4708,7 +4777,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
|
|
|
4708
4777
|
* @hidden
|
|
4709
4778
|
* @deprecated
|
|
4710
4779
|
*/
|
|
4711
|
-
var RendererFactory = /** @
|
|
4780
|
+
var RendererFactory = /** @class */ (function () {
|
|
4712
4781
|
function RendererFactory() {
|
|
4713
4782
|
this.rendererMap = {};
|
|
4714
4783
|
}
|
|
@@ -4751,7 +4820,7 @@ var RendererFactory = /** @__PURE__ @class */ (function () {
|
|
|
4751
4820
|
/**
|
|
4752
4821
|
* `ToolbarAction` module is used to toolbar click action
|
|
4753
4822
|
*/
|
|
4754
|
-
var ToolbarAction = /** @
|
|
4823
|
+
var ToolbarAction = /** @class */ (function () {
|
|
4755
4824
|
function ToolbarAction(parent) {
|
|
4756
4825
|
this.parent = parent;
|
|
4757
4826
|
this.addEventListener();
|
|
@@ -4825,7 +4894,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
|
|
|
4825
4894
|
/**
|
|
4826
4895
|
* `Toolbar` module is used to handle Toolbar actions.
|
|
4827
4896
|
*/
|
|
4828
|
-
var Toolbar$2 = /** @
|
|
4897
|
+
var Toolbar$2 = /** @class */ (function () {
|
|
4829
4898
|
function Toolbar$$1(parent, serviceLocator) {
|
|
4830
4899
|
this.tools = {};
|
|
4831
4900
|
this.parent = parent;
|
|
@@ -5525,25 +5594,25 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
5525
5594
|
return Toolbar$$1;
|
|
5526
5595
|
}());
|
|
5527
5596
|
|
|
5528
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5529
|
-
var extendStatics = function (d, b) {
|
|
5530
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5531
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5532
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5533
|
-
return extendStatics(d, b);
|
|
5534
|
-
};
|
|
5535
|
-
return function (d, b) {
|
|
5536
|
-
extendStatics(d, b);
|
|
5537
|
-
function __() { this.constructor = d; }
|
|
5538
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5539
|
-
};
|
|
5540
|
-
})();
|
|
5541
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5542
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5543
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5544
|
-
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;
|
|
5545
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5546
|
-
};
|
|
5597
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5598
|
+
var extendStatics = function (d, b) {
|
|
5599
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5600
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5601
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5602
|
+
return extendStatics(d, b);
|
|
5603
|
+
};
|
|
5604
|
+
return function (d, b) {
|
|
5605
|
+
extendStatics(d, b);
|
|
5606
|
+
function __() { this.constructor = d; }
|
|
5607
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5608
|
+
};
|
|
5609
|
+
})();
|
|
5610
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5611
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5612
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5613
|
+
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;
|
|
5614
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5615
|
+
};
|
|
5547
5616
|
var keyCode = {
|
|
5548
5617
|
'backspace': 8,
|
|
5549
5618
|
'tab': 9,
|
|
@@ -5611,7 +5680,7 @@ var keyCode = {
|
|
|
5611
5680
|
* @hidden
|
|
5612
5681
|
* @deprecated
|
|
5613
5682
|
*/
|
|
5614
|
-
var KeyboardEvents$1 = /** @
|
|
5683
|
+
var KeyboardEvents$1 = /** @class */ (function (_super) {
|
|
5615
5684
|
__extends(KeyboardEvents$$1, _super);
|
|
5616
5685
|
/**
|
|
5617
5686
|
* Initializes the KeyboardEvents
|
|
@@ -5754,7 +5823,7 @@ var KeyboardEvents$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
5754
5823
|
/**
|
|
5755
5824
|
* `Color Picker` module is used to handle ColorPicker actions.
|
|
5756
5825
|
*/
|
|
5757
|
-
var ColorPickerInput = /** @
|
|
5826
|
+
var ColorPickerInput = /** @class */ (function () {
|
|
5758
5827
|
function ColorPickerInput(parent, serviceLocator) {
|
|
5759
5828
|
this.tools = {};
|
|
5760
5829
|
this.parent = parent;
|
|
@@ -5997,7 +6066,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5997
6066
|
/**
|
|
5998
6067
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
5999
6068
|
*/
|
|
6000
|
-
var BaseQuickToolbar = /** @
|
|
6069
|
+
var BaseQuickToolbar = /** @class */ (function () {
|
|
6001
6070
|
function BaseQuickToolbar(parent, locator) {
|
|
6002
6071
|
this.parent = parent;
|
|
6003
6072
|
this.locator = locator;
|
|
@@ -6432,7 +6501,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6432
6501
|
* @hidden
|
|
6433
6502
|
* @deprecated
|
|
6434
6503
|
*/
|
|
6435
|
-
var PopupRenderer = /** @
|
|
6504
|
+
var PopupRenderer = /** @class */ (function () {
|
|
6436
6505
|
/**
|
|
6437
6506
|
* Constructor for popup renderer module
|
|
6438
6507
|
*
|
|
@@ -6501,7 +6570,7 @@ var PopupRenderer = /** @__PURE__ @class */ (function () {
|
|
|
6501
6570
|
/**
|
|
6502
6571
|
* `Quick toolbar` module is used to handle Quick toolbar actions.
|
|
6503
6572
|
*/
|
|
6504
|
-
var QuickToolbar = /** @
|
|
6573
|
+
var QuickToolbar = /** @class */ (function () {
|
|
6505
6574
|
function QuickToolbar(parent, locator) {
|
|
6506
6575
|
this.parent = parent;
|
|
6507
6576
|
this.locator = locator;
|
|
@@ -7070,7 +7139,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
7070
7139
|
/**
|
|
7071
7140
|
* `Count` module is used to handle Count actions.
|
|
7072
7141
|
*/
|
|
7073
|
-
var Count = /** @
|
|
7142
|
+
var Count = /** @class */ (function () {
|
|
7074
7143
|
function Count(parent, serviceLocator) {
|
|
7075
7144
|
this.parent = parent;
|
|
7076
7145
|
this.locator = serviceLocator;
|
|
@@ -7198,7 +7267,7 @@ var Count = /** @__PURE__ @class */ (function () {
|
|
|
7198
7267
|
* @hidden
|
|
7199
7268
|
* @deprecated
|
|
7200
7269
|
*/
|
|
7201
|
-
var MarkdownSelection = /** @
|
|
7270
|
+
var MarkdownSelection = /** @class */ (function () {
|
|
7202
7271
|
function MarkdownSelection() {
|
|
7203
7272
|
}
|
|
7204
7273
|
/**
|
|
@@ -7595,7 +7664,7 @@ function getDefaultMDTbStatus() {
|
|
|
7595
7664
|
/**
|
|
7596
7665
|
* MarkdownToolbarStatus module for refresh the toolbar status
|
|
7597
7666
|
*/
|
|
7598
|
-
var MarkdownToolbarStatus = /** @
|
|
7667
|
+
var MarkdownToolbarStatus = /** @class */ (function () {
|
|
7599
7668
|
function MarkdownToolbarStatus(parent) {
|
|
7600
7669
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
|
|
7601
7670
|
this.selection = new MarkdownSelection();
|
|
@@ -7718,7 +7787,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
7718
7787
|
/**
|
|
7719
7788
|
* `ExecCommandCallBack` module is used to run the editor manager command
|
|
7720
7789
|
*/
|
|
7721
|
-
var ExecCommandCallBack = /** @
|
|
7790
|
+
var ExecCommandCallBack = /** @class */ (function () {
|
|
7722
7791
|
function ExecCommandCallBack(parent) {
|
|
7723
7792
|
this.parent = parent;
|
|
7724
7793
|
this.addEventListener();
|
|
@@ -7842,7 +7911,7 @@ var EMOJI_PICKER_ACTIONS = 'emoji_picker_actions';
|
|
|
7842
7911
|
* @hidden
|
|
7843
7912
|
* @deprecated
|
|
7844
7913
|
*/
|
|
7845
|
-
var Formatter = /** @
|
|
7914
|
+
var Formatter = /** @class */ (function () {
|
|
7846
7915
|
function Formatter() {
|
|
7847
7916
|
}
|
|
7848
7917
|
/**
|
|
@@ -8138,7 +8207,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
|
|
|
8138
8207
|
*
|
|
8139
8208
|
* @hidden
|
|
8140
8209
|
*/
|
|
8141
|
-
var MDLists = /** @
|
|
8210
|
+
var MDLists = /** @class */ (function () {
|
|
8142
8211
|
/**
|
|
8143
8212
|
* Constructor for creating the Lists plugin
|
|
8144
8213
|
*
|
|
@@ -8609,7 +8678,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
|
|
|
8609
8678
|
* @hidden
|
|
8610
8679
|
* @deprecated
|
|
8611
8680
|
*/
|
|
8612
|
-
var MDFormats = /** @
|
|
8681
|
+
var MDFormats = /** @class */ (function () {
|
|
8613
8682
|
/**
|
|
8614
8683
|
* Constructor for creating the Formats plugin
|
|
8615
8684
|
*
|
|
@@ -8837,7 +8906,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
|
|
|
8837
8906
|
* @hidden
|
|
8838
8907
|
* @deprecated
|
|
8839
8908
|
*/
|
|
8840
|
-
var MDSelectionFormats = /** @
|
|
8909
|
+
var MDSelectionFormats = /** @class */ (function () {
|
|
8841
8910
|
function MDSelectionFormats(parent) {
|
|
8842
8911
|
extend(this, this, parent, true);
|
|
8843
8912
|
this.selection = this.parent.markdownSelection;
|
|
@@ -9296,7 +9365,7 @@ var selfClosingTags = [
|
|
|
9296
9365
|
/**
|
|
9297
9366
|
* `Undo` module is used to handle undo actions.
|
|
9298
9367
|
*/
|
|
9299
|
-
var UndoRedoCommands = /** @
|
|
9368
|
+
var UndoRedoCommands = /** @class */ (function () {
|
|
9300
9369
|
function UndoRedoCommands(parent, options) {
|
|
9301
9370
|
this.undoRedoStack = [];
|
|
9302
9371
|
this.parent = parent;
|
|
@@ -9491,7 +9560,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
|
|
|
9491
9560
|
* @hidden
|
|
9492
9561
|
* @deprecated
|
|
9493
9562
|
*/
|
|
9494
|
-
var MDLink = /** @
|
|
9563
|
+
var MDLink = /** @class */ (function () {
|
|
9495
9564
|
/**
|
|
9496
9565
|
* Constructor for creating the Formats plugin
|
|
9497
9566
|
*
|
|
@@ -9542,7 +9611,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
|
|
|
9542
9611
|
* @hidden
|
|
9543
9612
|
* @deprecated
|
|
9544
9613
|
*/
|
|
9545
|
-
var MDTable = /** @
|
|
9614
|
+
var MDTable = /** @class */ (function () {
|
|
9546
9615
|
/**
|
|
9547
9616
|
* Constructor for creating the Formats plugin
|
|
9548
9617
|
*
|
|
@@ -9771,7 +9840,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
|
|
|
9771
9840
|
* @hidden
|
|
9772
9841
|
* @deprecated
|
|
9773
9842
|
*/
|
|
9774
|
-
var ClearFormat = /** @
|
|
9843
|
+
var ClearFormat = /** @class */ (function () {
|
|
9775
9844
|
/**
|
|
9776
9845
|
* Constructor for creating the clear format plugin
|
|
9777
9846
|
*
|
|
@@ -9889,7 +9958,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
|
|
|
9889
9958
|
* @hidden
|
|
9890
9959
|
* @deprecated
|
|
9891
9960
|
*/
|
|
9892
|
-
var MDInsertText = /** @
|
|
9961
|
+
var MDInsertText = /** @class */ (function () {
|
|
9893
9962
|
/**
|
|
9894
9963
|
* Constructor for creating the insert text plugin
|
|
9895
9964
|
*
|
|
@@ -9939,7 +10008,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
|
|
|
9939
10008
|
* @hidden
|
|
9940
10009
|
* @deprecated
|
|
9941
10010
|
*/
|
|
9942
|
-
var MarkdownParser = /** @
|
|
10011
|
+
var MarkdownParser = /** @class */ (function () {
|
|
9943
10012
|
/**
|
|
9944
10013
|
* Constructor for creating the component
|
|
9945
10014
|
*
|
|
@@ -10035,26 +10104,26 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
|
|
|
10035
10104
|
return MarkdownParser;
|
|
10036
10105
|
}());
|
|
10037
10106
|
|
|
10038
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
10039
|
-
var extendStatics = function (d, b) {
|
|
10040
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10041
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10042
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10043
|
-
return extendStatics(d, b);
|
|
10044
|
-
};
|
|
10045
|
-
return function (d, b) {
|
|
10046
|
-
extendStatics(d, b);
|
|
10047
|
-
function __() { this.constructor = d; }
|
|
10048
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10049
|
-
};
|
|
10050
|
-
})();
|
|
10107
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
10108
|
+
var extendStatics = function (d, b) {
|
|
10109
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10110
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10111
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10112
|
+
return extendStatics(d, b);
|
|
10113
|
+
};
|
|
10114
|
+
return function (d, b) {
|
|
10115
|
+
extendStatics(d, b);
|
|
10116
|
+
function __() { this.constructor = d; }
|
|
10117
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10118
|
+
};
|
|
10119
|
+
})();
|
|
10051
10120
|
/**
|
|
10052
10121
|
* Markdown adapter
|
|
10053
10122
|
*
|
|
10054
10123
|
* @hidden
|
|
10055
10124
|
* @deprecated
|
|
10056
10125
|
*/
|
|
10057
|
-
var MarkdownFormatter = /** @
|
|
10126
|
+
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
10058
10127
|
__extends$1(MarkdownFormatter, _super);
|
|
10059
10128
|
function MarkdownFormatter(options) {
|
|
10060
10129
|
var _this = _super.call(this) || this;
|
|
@@ -10101,7 +10170,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
10101
10170
|
* @hidden
|
|
10102
10171
|
* @deprecated
|
|
10103
10172
|
*/
|
|
10104
|
-
var MarkdownRender = /** @
|
|
10173
|
+
var MarkdownRender = /** @class */ (function () {
|
|
10105
10174
|
/**
|
|
10106
10175
|
* Constructor for content renderer module
|
|
10107
10176
|
*
|
|
@@ -10184,7 +10253,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
|
|
|
10184
10253
|
/**
|
|
10185
10254
|
* `MarkdownEditor` module is used to markdown editor
|
|
10186
10255
|
*/
|
|
10187
|
-
var MarkdownEditor = /** @
|
|
10256
|
+
var MarkdownEditor = /** @class */ (function () {
|
|
10188
10257
|
function MarkdownEditor(parent, serviceLocator) {
|
|
10189
10258
|
this.parent = parent;
|
|
10190
10259
|
this.locator = serviceLocator;
|
|
@@ -10456,7 +10525,7 @@ var SELF_CLOSING_TAGS = ['area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'p
|
|
|
10456
10525
|
/**
|
|
10457
10526
|
* `Selection` module is used to handle RTE Selections.
|
|
10458
10527
|
*/
|
|
10459
|
-
var NodeSelection = /** @
|
|
10528
|
+
var NodeSelection = /** @class */ (function () {
|
|
10460
10529
|
function NodeSelection() {
|
|
10461
10530
|
this.startNodeName = [];
|
|
10462
10531
|
this.endNodeName = [];
|
|
@@ -10906,7 +10975,7 @@ var markerClassName = {
|
|
|
10906
10975
|
* @hidden
|
|
10907
10976
|
* @deprecated
|
|
10908
10977
|
*/
|
|
10909
|
-
var DOMNode = /** @
|
|
10978
|
+
var DOMNode = /** @class */ (function () {
|
|
10910
10979
|
/**
|
|
10911
10980
|
* Constructor for creating the DOMNode plugin
|
|
10912
10981
|
*
|
|
@@ -11684,7 +11753,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
11684
11753
|
* @hidden
|
|
11685
11754
|
* @deprecated
|
|
11686
11755
|
*/
|
|
11687
|
-
var Lists = /** @
|
|
11756
|
+
var Lists = /** @class */ (function () {
|
|
11688
11757
|
/**
|
|
11689
11758
|
* Constructor for creating the Lists plugin
|
|
11690
11759
|
*
|
|
@@ -12551,7 +12620,7 @@ var Lists = /** @__PURE__ @class */ (function () {
|
|
|
12551
12620
|
*
|
|
12552
12621
|
* @hidden
|
|
12553
12622
|
*/
|
|
12554
|
-
var InsertMethods = /** @
|
|
12623
|
+
var InsertMethods = /** @class */ (function () {
|
|
12555
12624
|
function InsertMethods() {
|
|
12556
12625
|
}
|
|
12557
12626
|
/**
|
|
@@ -12628,7 +12697,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
|
|
|
12628
12697
|
* @hidden
|
|
12629
12698
|
* @deprecated
|
|
12630
12699
|
*/
|
|
12631
|
-
var NodeCutter = /** @
|
|
12700
|
+
var NodeCutter = /** @class */ (function () {
|
|
12632
12701
|
function NodeCutter() {
|
|
12633
12702
|
this.enterAction = 'P';
|
|
12634
12703
|
this.position = -1;
|
|
@@ -12837,7 +12906,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
12837
12906
|
* @hidden
|
|
12838
12907
|
* @deprecated
|
|
12839
12908
|
*/
|
|
12840
|
-
var Formats = /** @
|
|
12909
|
+
var Formats = /** @class */ (function () {
|
|
12841
12910
|
/**
|
|
12842
12911
|
* Constructor for creating the Formats plugin
|
|
12843
12912
|
*
|
|
@@ -13206,7 +13275,7 @@ var Formats = /** @__PURE__ @class */ (function () {
|
|
|
13206
13275
|
* @hidden
|
|
13207
13276
|
* @deprecated
|
|
13208
13277
|
*/
|
|
13209
|
-
var InsertHtml = /** @
|
|
13278
|
+
var InsertHtml = /** @class */ (function () {
|
|
13210
13279
|
function InsertHtml() {
|
|
13211
13280
|
}
|
|
13212
13281
|
InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
|
|
@@ -13684,7 +13753,9 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
13684
13753
|
InsertHtml.findDetachEmptyElem = function (element) {
|
|
13685
13754
|
var removableElement;
|
|
13686
13755
|
if (!isNullOrUndefined(element.parentElement)) {
|
|
13687
|
-
|
|
13756
|
+
var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
|
|
13757
|
+
&& element.parentElement.textContent.match(/\u00a0/g).length > 0;
|
|
13758
|
+
if (!hasNbsp && element.parentElement.textContent.trim() === '' && element.parentElement.contentEditable !== 'true' &&
|
|
13688
13759
|
isNullOrUndefined(element.parentElement.querySelector('img'))) {
|
|
13689
13760
|
removableElement = this.findDetachEmptyElem(element.parentElement);
|
|
13690
13761
|
}
|
|
@@ -13750,7 +13821,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
13750
13821
|
* @hidden
|
|
13751
13822
|
* @deprecated
|
|
13752
13823
|
*/
|
|
13753
|
-
var LinkCommand = /** @
|
|
13824
|
+
var LinkCommand = /** @class */ (function () {
|
|
13754
13825
|
/**
|
|
13755
13826
|
* Constructor for creating the Formats plugin
|
|
13756
13827
|
*
|
|
@@ -14053,7 +14124,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
|
|
|
14053
14124
|
* @hidden
|
|
14054
14125
|
* @deprecated
|
|
14055
14126
|
*/
|
|
14056
|
-
var Alignments = /** @
|
|
14127
|
+
var Alignments = /** @class */ (function () {
|
|
14057
14128
|
/**
|
|
14058
14129
|
* Constructor for creating the Formats plugin
|
|
14059
14130
|
*
|
|
@@ -14156,7 +14227,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
|
|
|
14156
14227
|
* @hidden
|
|
14157
14228
|
* @deprecated
|
|
14158
14229
|
*/
|
|
14159
|
-
var Indents = /** @
|
|
14230
|
+
var Indents = /** @class */ (function () {
|
|
14160
14231
|
/**
|
|
14161
14232
|
* Constructor for creating the Formats plugin
|
|
14162
14233
|
*
|
|
@@ -14292,7 +14363,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
|
|
|
14292
14363
|
* @hidden
|
|
14293
14364
|
* @deprecated
|
|
14294
14365
|
*/
|
|
14295
|
-
var ImageCommand = /** @
|
|
14366
|
+
var ImageCommand = /** @class */ (function () {
|
|
14296
14367
|
/**
|
|
14297
14368
|
* Constructor for creating the Formats plugin
|
|
14298
14369
|
*
|
|
@@ -14657,7 +14728,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
|
|
|
14657
14728
|
* @hidden
|
|
14658
14729
|
* @deprecated
|
|
14659
14730
|
*/
|
|
14660
|
-
var AudioCommand = /** @
|
|
14731
|
+
var AudioCommand = /** @class */ (function () {
|
|
14661
14732
|
/**
|
|
14662
14733
|
* Constructor for creating the Audio plugin
|
|
14663
14734
|
*
|
|
@@ -14786,7 +14857,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
|
|
|
14786
14857
|
* @hidden
|
|
14787
14858
|
* @deprecated
|
|
14788
14859
|
*/
|
|
14789
|
-
var VideoCommand = /** @
|
|
14860
|
+
var VideoCommand = /** @class */ (function () {
|
|
14790
14861
|
/**
|
|
14791
14862
|
* Constructor for creating the Video plugin
|
|
14792
14863
|
*
|
|
@@ -15034,7 +15105,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
|
|
|
15034
15105
|
* @hidden
|
|
15035
15106
|
* @deprecated
|
|
15036
15107
|
*/
|
|
15037
|
-
var TableCommand = /** @
|
|
15108
|
+
var TableCommand = /** @class */ (function () {
|
|
15038
15109
|
/**
|
|
15039
15110
|
* Constructor for creating the Formats plugin
|
|
15040
15111
|
*
|
|
@@ -15969,7 +16040,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
|
|
|
15969
16040
|
|
|
15970
16041
|
return TableCommand;
|
|
15971
16042
|
}());
|
|
15972
|
-
var MinMax = /** @
|
|
16043
|
+
var MinMax = /** @class */ (function () {
|
|
15973
16044
|
function MinMax() {
|
|
15974
16045
|
}
|
|
15975
16046
|
return MinMax;
|
|
@@ -15981,7 +16052,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
|
|
|
15981
16052
|
* @hidden
|
|
15982
16053
|
* @deprecated
|
|
15983
16054
|
*/
|
|
15984
|
-
var IsFormatted = /** @
|
|
16055
|
+
var IsFormatted = /** @class */ (function () {
|
|
15985
16056
|
function IsFormatted() {
|
|
15986
16057
|
}
|
|
15987
16058
|
/**
|
|
@@ -16231,7 +16302,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
|
|
|
16231
16302
|
/**
|
|
16232
16303
|
* `Selection` module is used to handle RTE Selections.
|
|
16233
16304
|
*/
|
|
16234
|
-
var SelectionCommands = /** @
|
|
16305
|
+
var SelectionCommands = /** @class */ (function () {
|
|
16235
16306
|
function SelectionCommands() {
|
|
16236
16307
|
}
|
|
16237
16308
|
/**
|
|
@@ -16963,7 +17034,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
16963
17034
|
* @hidden
|
|
16964
17035
|
* @deprecated
|
|
16965
17036
|
*/
|
|
16966
|
-
var SelectionBasedExec = /** @
|
|
17037
|
+
var SelectionBasedExec = /** @class */ (function () {
|
|
16967
17038
|
/**
|
|
16968
17039
|
* Constructor for creating the Formats plugin
|
|
16969
17040
|
*
|
|
@@ -17012,7 +17083,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
|
|
|
17012
17083
|
* @hidden
|
|
17013
17084
|
* @deprecated
|
|
17014
17085
|
*/
|
|
17015
|
-
var InsertHtmlExec = /** @
|
|
17086
|
+
var InsertHtmlExec = /** @class */ (function () {
|
|
17016
17087
|
/**
|
|
17017
17088
|
* Constructor for creating the Formats plugin
|
|
17018
17089
|
*
|
|
@@ -17059,7 +17130,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
|
|
|
17059
17130
|
/**
|
|
17060
17131
|
* `Clear Format` module is used to handle Clear Format.
|
|
17061
17132
|
*/
|
|
17062
|
-
var ClearFormat$1 = /** @
|
|
17133
|
+
var ClearFormat$1 = /** @class */ (function () {
|
|
17063
17134
|
function ClearFormat() {
|
|
17064
17135
|
}
|
|
17065
17136
|
/**
|
|
@@ -17312,7 +17383,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
17312
17383
|
* @hidden
|
|
17313
17384
|
* @deprecated
|
|
17314
17385
|
*/
|
|
17315
|
-
var ClearFormatExec = /** @
|
|
17386
|
+
var ClearFormatExec = /** @class */ (function () {
|
|
17316
17387
|
/**
|
|
17317
17388
|
* Constructor for creating the Formats plugin
|
|
17318
17389
|
*
|
|
@@ -17357,7 +17428,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
|
|
|
17357
17428
|
/**
|
|
17358
17429
|
* `Undo` module is used to handle undo actions.
|
|
17359
17430
|
*/
|
|
17360
|
-
var UndoRedoManager = /** @
|
|
17431
|
+
var UndoRedoManager = /** @class */ (function () {
|
|
17361
17432
|
function UndoRedoManager(parent, options) {
|
|
17362
17433
|
this.undoRedoStack = [];
|
|
17363
17434
|
this.parent = parent;
|
|
@@ -17589,7 +17660,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
|
|
|
17589
17660
|
* @hidden
|
|
17590
17661
|
* @deprecated
|
|
17591
17662
|
*/
|
|
17592
|
-
var MsWordPaste = /** @
|
|
17663
|
+
var MsWordPaste = /** @class */ (function () {
|
|
17593
17664
|
function MsWordPaste(parent) {
|
|
17594
17665
|
this.olData = [
|
|
17595
17666
|
'decimal',
|
|
@@ -17939,7 +18010,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
17939
18010
|
isNullOrUndefined(allElements[i].nextElementSibling)))) {
|
|
17940
18011
|
var detachableElement = this.findDetachElem(allElements[i]);
|
|
17941
18012
|
var brElement = createElement('br');
|
|
17942
|
-
|
|
18013
|
+
var hasNbsp = detachableElement.textContent.length > 0 && detachableElement.textContent.match(/\u00a0/g)
|
|
18014
|
+
&& detachableElement.textContent.match(/\u00a0/g).length > 0;
|
|
18015
|
+
if (!hasNbsp && !isNullOrUndefined(detachableElement.parentElement)) {
|
|
17943
18016
|
detachableElement.parentElement.insertBefore(brElement, detachableElement);
|
|
17944
18017
|
detach(detachableElement);
|
|
17945
18018
|
}
|
|
@@ -17978,7 +18051,9 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
17978
18051
|
MsWordPaste.prototype.findDetachEmptyElem = function (element) {
|
|
17979
18052
|
var removableElement;
|
|
17980
18053
|
if (!isNullOrUndefined(element.parentElement)) {
|
|
17981
|
-
|
|
18054
|
+
var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
|
|
18055
|
+
&& element.parentElement.textContent.match(/\u00a0/g).length > 0;
|
|
18056
|
+
if (!hasNbsp && element.parentElement.textContent.trim() === '' &&
|
|
17982
18057
|
element.parentElement.getAttribute('id') !== 'MSWord-Content' &&
|
|
17983
18058
|
!(this.hasParentWithClass(element, 'MsoListParagraph')) &&
|
|
17984
18059
|
isNullOrUndefined(element.parentElement.querySelector('img'))) {
|
|
@@ -18524,7 +18599,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
18524
18599
|
* @hidden
|
|
18525
18600
|
* @deprecated
|
|
18526
18601
|
*/
|
|
18527
|
-
var InsertTextExec = /** @
|
|
18602
|
+
var InsertTextExec = /** @class */ (function () {
|
|
18528
18603
|
/**
|
|
18529
18604
|
* Constructor for creating the InsertText plugin
|
|
18530
18605
|
*
|
|
@@ -18562,7 +18637,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
|
|
|
18562
18637
|
* @deprecated
|
|
18563
18638
|
*/
|
|
18564
18639
|
var statusCollection = getDefaultHtmlTbStatus();
|
|
18565
|
-
var ToolbarStatus = /** @
|
|
18640
|
+
var ToolbarStatus = /** @class */ (function () {
|
|
18566
18641
|
function ToolbarStatus() {
|
|
18567
18642
|
}
|
|
18568
18643
|
/**
|
|
@@ -18916,7 +18991,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
18916
18991
|
return ToolbarStatus;
|
|
18917
18992
|
}());
|
|
18918
18993
|
|
|
18919
|
-
var EmojiPickerAction = /** @
|
|
18994
|
+
var EmojiPickerAction = /** @class */ (function () {
|
|
18920
18995
|
function EmojiPickerAction(parent) {
|
|
18921
18996
|
this.parent = parent;
|
|
18922
18997
|
this.addEventListener();
|
|
@@ -18980,7 +19055,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
|
|
|
18980
19055
|
* Base export
|
|
18981
19056
|
*/
|
|
18982
19057
|
|
|
18983
|
-
var FormatPainterActions = /** @
|
|
19058
|
+
var FormatPainterActions = /** @class */ (function () {
|
|
18984
19059
|
function FormatPainterActions(parent, options) {
|
|
18985
19060
|
this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
|
|
18986
19061
|
this.parent = parent;
|
|
@@ -19605,7 +19680,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
|
|
|
19605
19680
|
* @hidden
|
|
19606
19681
|
* @deprecated
|
|
19607
19682
|
*/
|
|
19608
|
-
var EditorManager = /** @
|
|
19683
|
+
var EditorManager = /** @class */ (function () {
|
|
19609
19684
|
/**
|
|
19610
19685
|
* Constructor for creating the component
|
|
19611
19686
|
*
|
|
@@ -19792,26 +19867,26 @@ var EditorManager = /** @__PURE__ @class */ (function () {
|
|
|
19792
19867
|
return EditorManager;
|
|
19793
19868
|
}());
|
|
19794
19869
|
|
|
19795
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
19796
|
-
var extendStatics = function (d, b) {
|
|
19797
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19798
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19799
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19800
|
-
return extendStatics(d, b);
|
|
19801
|
-
};
|
|
19802
|
-
return function (d, b) {
|
|
19803
|
-
extendStatics(d, b);
|
|
19804
|
-
function __() { this.constructor = d; }
|
|
19805
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19806
|
-
};
|
|
19807
|
-
})();
|
|
19870
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
19871
|
+
var extendStatics = function (d, b) {
|
|
19872
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19873
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19874
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19875
|
+
return extendStatics(d, b);
|
|
19876
|
+
};
|
|
19877
|
+
return function (d, b) {
|
|
19878
|
+
extendStatics(d, b);
|
|
19879
|
+
function __() { this.constructor = d; }
|
|
19880
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19881
|
+
};
|
|
19882
|
+
})();
|
|
19808
19883
|
/**
|
|
19809
19884
|
* HTML adapter
|
|
19810
19885
|
*
|
|
19811
19886
|
* @hidden
|
|
19812
19887
|
* @deprecated
|
|
19813
19888
|
*/
|
|
19814
|
-
var HTMLFormatter = /** @
|
|
19889
|
+
var HTMLFormatter = /** @class */ (function (_super) {
|
|
19815
19890
|
__extends$2(HTMLFormatter, _super);
|
|
19816
19891
|
function HTMLFormatter(options) {
|
|
19817
19892
|
var _this = _super.call(this) || this;
|
|
@@ -19852,7 +19927,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
|
|
|
19852
19927
|
/**
|
|
19853
19928
|
* HtmlToolbarStatus module for refresh the toolbar status
|
|
19854
19929
|
*/
|
|
19855
|
-
var HtmlToolbarStatus = /** @
|
|
19930
|
+
var HtmlToolbarStatus = /** @class */ (function () {
|
|
19856
19931
|
function HtmlToolbarStatus(parent) {
|
|
19857
19932
|
this.parent = parent;
|
|
19858
19933
|
this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
|
|
@@ -19899,7 +19974,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
|
|
|
19899
19974
|
* @hidden
|
|
19900
19975
|
* @deprecated
|
|
19901
19976
|
*/
|
|
19902
|
-
var ContentRender = /** @
|
|
19977
|
+
var ContentRender = /** @class */ (function () {
|
|
19903
19978
|
/**
|
|
19904
19979
|
* Constructor for content renderer module
|
|
19905
19980
|
*
|
|
@@ -19987,19 +20062,19 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
19987
20062
|
return ContentRender;
|
|
19988
20063
|
}());
|
|
19989
20064
|
|
|
19990
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
19991
|
-
var extendStatics = function (d, b) {
|
|
19992
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19993
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19994
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19995
|
-
return extendStatics(d, b);
|
|
19996
|
-
};
|
|
19997
|
-
return function (d, b) {
|
|
19998
|
-
extendStatics(d, b);
|
|
19999
|
-
function __() { this.constructor = d; }
|
|
20000
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20001
|
-
};
|
|
20002
|
-
})();
|
|
20065
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
20066
|
+
var extendStatics = function (d, b) {
|
|
20067
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20068
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20069
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20070
|
+
return extendStatics(d, b);
|
|
20071
|
+
};
|
|
20072
|
+
return function (d, b) {
|
|
20073
|
+
extendStatics(d, b);
|
|
20074
|
+
function __() { this.constructor = d; }
|
|
20075
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20076
|
+
};
|
|
20077
|
+
})();
|
|
20003
20078
|
var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>\n @charset \"UTF-8\";\n body {\n font-family: \"Roboto\", sans-serif;\n font-size: 14px;\n }\n html, body{height: 100%;margin: 0;}\n body.e-cursor{cursor:default}\n span.e-selected-node\t{background-color: #939393;color: white;}\n span.e-selected-node.e-highlight {background-color: #1d9dd8;}\n body{color:#333;word-wrap:break-word;padding: 8px;box-sizing: border-box;}\n .e-rte-image, .e-rte-audio, .e-rte-video {border: 0;cursor: pointer;display:\n block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imginline, .e-rte-audio.e-audio-inline, .e-rte-video.e-video-inline {display: inline-block;float: none;max-width: calc(100% - (2 * 5px));padding: 1px;vertical-align: bottom;}\n .e-rte-image.e-imgcenter, .e-rte-video.e-video-center {cursor: pointer;display: block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imgright, .e-rte-video.e-video-right { float: right; margin: 0 auto;margin-left: 5px;text-align: right;}\n .e-rte-image.e-imgleft, .e-rte-video.e-video-left {float: left;margin: 0 auto;margin-right: 5px;text-align: left;}\n .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}\n .e-img-caption.e-caption-inline {display: inline-block;float: none;\n margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));\n position: relativetext-align: center;vertical-align: bottom;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;\n margin: auto;opacity: .9;text-align: center;width: 100%;}\n .e-img-wrap {display: inline-block;margin: auto;padding: 0;text-align: center;width: 100%;}\n .e-imgleft, .e-video-left {float: left;margin: 0 5px 0 0;text-align: left;}\n .e-imgright, .e-video-right {float: right;margin: 0 0 0 5px;text-align: right;}\n .e-imgcenter, .e-video-center {cursor: pointer;display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-control img:not(.e-resize) {border: 2px solid transparent; z-index: 1000}\n .e-imginline , .e-audio-inline, .e-video-inline {display: inline-block;float: none;margin-left: 5px;margin-right: 5px;\n max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak, .e-audio-break, .e-video-break {border: 0;cursor: pointer;\n display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-img-focus:not(.e-resize), .e-audio-focus:not(.e-resize), .e-video-focus:not(.e-resize) {border: solid 2px #4a90e2;}\n img.e-img-focus::selection, audio.e-audio-focus::selection, .e-video-focus::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark { width: 10px; height: 10px; position: absolute; display: block;\n background: #4a90e2; border: 1px solid #fff; z-index: 1000;}\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-mob-rte span.e-rte-imageboxmark { background: #fff; border: 1px solid #4a90e2;\n border-radius: 15px; height: 20px; width: 20px; }\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-rte-content .e-content img.e-resize, .e-rte-content .e-content video.e-resize { z-index: 1000; }\n .e-img-caption .e-img-inner { outline: 0; }\n .e-img-caption a:focus-visible { outline: none; }\n .e-img-caption .e-rte-image.e-imgright, .e-img-caption .e-rte-image.e-imgleft { float: none; margin: 0;}\n body{box-sizing: border-box;min-height: 100px;outline: 0 solid transparent;\n overflow-x: auto;padding: 16px;position: relative;text-align: inherit;z-index: 2;}\n p{margin: 0 0 10px;margin-bottom: 10px;}\n li{margin-bottom: 10px;}\n h1{font-size: 2.17em;font-weight: 400;line-height: 1;margin: 10px 0;}\n h2{font-size: 1.74em;font-weight: 400;margin: 10px 0;}\n h3{font-size: 1.31em;font-weight: 400;margin: 10px 0;}\n h4{font-size: 16px;font-weight: 400;line-height: 1.5;margin: 0;}\n h5{font-size: 00.8em;font-weight: 400;margin: 0;}\n h6{font-size: 00.65em;font-weight: 400;margin: 0;}\n blockquote{margin: 10px 0;margin-left: 0;padding-left: 5px;border-left: solid 2px #5c5c5c;}\n pre{background-color: inherit;border: 0;border-radius: 0;color: #333;\n font-size: inherit;line-height: inherit;margin: 0 0 10px;overflow: visible;padding: 0;\n white-space: pre-wrap;word-break: inherit;word-wrap: break-word;}\n strong, b{font-weight: 700;}\n a{text-decoration: none;user-select: auto;}\n a:hover{text-decoration: underline;};\n p:last-child, pre:last-child, blockquote:last-child{margin-bottom: 0;}\n h3+h4, h4+h5, h5+h6{margin-top: 00.6em;}\n ul:last-child{margin-bottom: 0;}\n table { border-collapse: collapse; empty-cells: show;}\n table td,table th {border: 1px solid #BDBDBD; height: 20px; padding: 2px 5px; vertical-align: middle;}\n table.e-alternate-border tbody tr:nth-child(2n) {background-color: #F5F5F5;}\n table th {background-color: #E0E0E0;}\n table.e-dashed-border td,table.e-dashed-border th { border: 1px dashed #BDBDBD} \n table .e-cell-select {border: 1px double #4a90e2;}\n span.e-table-box { cursor: nwse-resize; display: block; height: 10px; position: absolute; width: 10px; }\n span.e-table-box.e-rmob {height: 14px;width: 14px;}\n .e-row-resize, .e-column-resize { background-color: transparent; background-repeat: repeat;\n bottom: 0;cursor: col-resize;height: 1px;overflow: visible;position: absolute;width: 1px; }\n .e-row-resize { cursor: row-resize; height: 1px;}\n .e-table-rhelper { cursor: col-resize; opacity: .87;position: absolute;}\n .e-table-rhelper.e-column-helper { width: 1px; }\n .e-table-rhelper.e-row-helper {height: 1px;}\n .e-reicon::before { border-bottom: 6px solid transparent; border-right: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block; height: 0;\n position: absolute; right: 4px; top: 4px; width: 20px; }\n .e-reicon::after { border-bottom: 6px solid transparent; border-left: 6px solid;\n border-top: 6px solid transparent; content: ''; display: block;\n height: 0; left: 4px; position: absolute; top: 4px; width: 20px; z-index: 3; }\n .e-row-helper.e-reicon::after { top: 10px; transform: rotate(90deg); }\n .e-row-helper.e-reicon::before { left: 4px; top: -20px; transform: rotate(90deg); }\n span.e-table-box { background-color: #ffffff; border: 1px solid #BDBDBD; }\n span.e-table-box.e-rbox-select { background-color: #BDBDBD; border: 1px solid #BDBDBD; }\n .e-table-rhelper { background-color: #4a90e2;}\n .e-rtl { direction: rtl; }\n .e-rte-placeholder::before { content: attr(placeholder); opacity: 0.54; overflow: hidden; padding-top: 16px; position: absolute; text-align: start; top: 0; z-index: 1; }\n </style>\n </head>";
|
|
20004
20079
|
/**
|
|
20005
20080
|
* Content module is used to render Rich Text Editor content
|
|
@@ -20007,7 +20082,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
|
|
|
20007
20082
|
* @hidden
|
|
20008
20083
|
* @deprecated
|
|
20009
20084
|
*/
|
|
20010
|
-
var IframeContentRender = /** @
|
|
20085
|
+
var IframeContentRender = /** @class */ (function (_super) {
|
|
20011
20086
|
__extends$3(IframeContentRender, _super);
|
|
20012
20087
|
function IframeContentRender() {
|
|
20013
20088
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20079,7 +20154,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
|
|
|
20079
20154
|
/**
|
|
20080
20155
|
* XhtmlValidation module called when set enableXhtml as true
|
|
20081
20156
|
*/
|
|
20082
|
-
var XhtmlValidation = /** @
|
|
20157
|
+
var XhtmlValidation = /** @class */ (function () {
|
|
20083
20158
|
function XhtmlValidation(parent) {
|
|
20084
20159
|
this.parent = parent;
|
|
20085
20160
|
this.addEventListener();
|
|
@@ -20250,7 +20325,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
|
|
|
20250
20325
|
/**
|
|
20251
20326
|
* `HtmlEditor` module is used to HTML editor
|
|
20252
20327
|
*/
|
|
20253
|
-
var HtmlEditor = /** @
|
|
20328
|
+
var HtmlEditor = /** @class */ (function () {
|
|
20254
20329
|
function HtmlEditor(parent, serviceLocator) {
|
|
20255
20330
|
this.rangeCollection = [];
|
|
20256
20331
|
this.isImageDelete = false;
|
|
@@ -20661,8 +20736,13 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
20661
20736
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), this.deleteRangeElement, this.deleteRangeElement.childNodes.length);
|
|
20662
20737
|
this.isImageDelete = false;
|
|
20663
20738
|
}
|
|
20664
|
-
|
|
20665
|
-
|
|
20739
|
+
var brNode = this.deleteRangeElement.querySelector('BR');
|
|
20740
|
+
if (brNode && brNode.classList.contains('e-rte-image-remove-focus')) {
|
|
20741
|
+
removeClass([brNode], ['e-rte-image-focus']);
|
|
20742
|
+
return;
|
|
20743
|
+
}
|
|
20744
|
+
else if (brNode) {
|
|
20745
|
+
detach(brNode);
|
|
20666
20746
|
}
|
|
20667
20747
|
if (!isNullOrUndefined(this.deleteRangeElement) && (this.deleteOldRangeElement.tagName !== 'OL' && this.deleteOldRangeElement.tagName !== 'UL')
|
|
20668
20748
|
&& this.deleteOldRangeElement !== this.deleteRangeElement) {
|
|
@@ -21092,7 +21172,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
21092
21172
|
/**
|
|
21093
21173
|
* PasteCleanup module called when pasting content in RichTextEditor
|
|
21094
21174
|
*/
|
|
21095
|
-
var PasteCleanup = /** @
|
|
21175
|
+
var PasteCleanup = /** @class */ (function () {
|
|
21096
21176
|
function PasteCleanup(parent, serviceLocator) {
|
|
21097
21177
|
this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
21098
21178
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -21264,7 +21344,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
21264
21344
|
}
|
|
21265
21345
|
else {
|
|
21266
21346
|
var contentWithSpace = this.makeSpace(enterSplitText[i]);
|
|
21267
|
-
contentInnerElem += '<p>' + contentWithSpace.trim() + '</p>';
|
|
21347
|
+
contentInnerElem += (i === 0 ? '<span>' : '<p>') + contentWithSpace.trim() + (i === 0 ? '</span>' : '</p>');
|
|
21268
21348
|
}
|
|
21269
21349
|
}
|
|
21270
21350
|
return contentInnerElem;
|
|
@@ -21345,7 +21425,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
21345
21425
|
var popupEle = this.parent.createElement('div');
|
|
21346
21426
|
this.parent.element.appendChild(popupEle);
|
|
21347
21427
|
var contentEle = this.parent.createElement('input', {
|
|
21348
|
-
id: this.parent.
|
|
21428
|
+
id: this.parent.getID() + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
|
|
21349
21429
|
});
|
|
21350
21430
|
var offsetY = this.parent.iframeSettings.enable ? -50 : -90;
|
|
21351
21431
|
this.popupObj = new Popup(popupEle, {
|
|
@@ -21973,7 +22053,9 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
21973
22053
|
PasteCleanup.prototype.findDetachEmptyElem = function (element) {
|
|
21974
22054
|
var removableElement;
|
|
21975
22055
|
if (!isNullOrUndefined(element.parentElement)) {
|
|
21976
|
-
|
|
22056
|
+
var hasNbsp = element.parentElement.textContent.length > 0 && element.parentElement.textContent.match(/\u00a0/g)
|
|
22057
|
+
&& element.parentElement.textContent.match(/\u00a0/g).length > 0;
|
|
22058
|
+
if (!hasNbsp && element.parentElement.textContent.trim() === '' &&
|
|
21977
22059
|
element.parentElement.getAttribute('class') !== 'pasteContent') {
|
|
21978
22060
|
removableElement = this.findDetachEmptyElem(element.parentElement);
|
|
21979
22061
|
}
|
|
@@ -22119,7 +22201,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
22119
22201
|
/**
|
|
22120
22202
|
* `Resize` module is used to resize the editor
|
|
22121
22203
|
*/
|
|
22122
|
-
var Resize = /** @
|
|
22204
|
+
var Resize = /** @class */ (function () {
|
|
22123
22205
|
function Resize(parent) {
|
|
22124
22206
|
this.parent = parent;
|
|
22125
22207
|
this.addEventListener();
|
|
@@ -22252,7 +22334,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
22252
22334
|
/**
|
|
22253
22335
|
* `FileManager` module is used to display the directories and images inside the editor.
|
|
22254
22336
|
*/
|
|
22255
|
-
var FileManager$1 = /** @
|
|
22337
|
+
var FileManager$1 = /** @class */ (function () {
|
|
22256
22338
|
function FileManager$$1(parent, locator) {
|
|
22257
22339
|
FileManager.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$1);
|
|
22258
22340
|
this.parent = parent;
|
|
@@ -22502,7 +22584,7 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
22502
22584
|
/**
|
|
22503
22585
|
* `FullScreen` module is used to maximize and minimize screen
|
|
22504
22586
|
*/
|
|
22505
|
-
var FullScreen = /** @
|
|
22587
|
+
var FullScreen = /** @class */ (function () {
|
|
22506
22588
|
function FullScreen(parent) {
|
|
22507
22589
|
this.parent = parent;
|
|
22508
22590
|
this.addEventListener();
|
|
@@ -22732,7 +22814,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
|
|
|
22732
22814
|
}
|
|
22733
22815
|
}
|
|
22734
22816
|
|
|
22735
|
-
var FormatPainter = /** @
|
|
22817
|
+
var FormatPainter = /** @class */ (function () {
|
|
22736
22818
|
function FormatPainter(parent) {
|
|
22737
22819
|
this.isSticky = false;
|
|
22738
22820
|
this.isActive = false;
|
|
@@ -22887,7 +22969,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
|
|
|
22887
22969
|
return FormatPainter;
|
|
22888
22970
|
}());
|
|
22889
22971
|
|
|
22890
|
-
var EmojiPicker = /** @
|
|
22972
|
+
var EmojiPicker = /** @class */ (function () {
|
|
22891
22973
|
function EmojiPicker(parent, serviceLocator) {
|
|
22892
22974
|
this.parent = parent;
|
|
22893
22975
|
this.locator = serviceLocator;
|
|
@@ -23695,7 +23777,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
|
|
|
23695
23777
|
* @hidden
|
|
23696
23778
|
* @deprecated
|
|
23697
23779
|
*/
|
|
23698
|
-
var Render = /** @
|
|
23780
|
+
var Render = /** @class */ (function () {
|
|
23699
23781
|
/**
|
|
23700
23782
|
* Constructor for render module
|
|
23701
23783
|
*
|
|
@@ -23794,7 +23876,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
23794
23876
|
/**
|
|
23795
23877
|
* `Link` module is used to handle undo actions.
|
|
23796
23878
|
*/
|
|
23797
|
-
var Link = /** @
|
|
23879
|
+
var Link = /** @class */ (function () {
|
|
23798
23880
|
function Link(parent, serviceLocator) {
|
|
23799
23881
|
this.parent = parent;
|
|
23800
23882
|
this.rteID = parent.element.id;
|
|
@@ -24334,7 +24416,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
24334
24416
|
/**
|
|
24335
24417
|
* `Image` module is used to handle image actions.
|
|
24336
24418
|
*/
|
|
24337
|
-
var Image$1 = /** @
|
|
24419
|
+
var Image$1 = /** @class */ (function () {
|
|
24338
24420
|
function Image(parent, serviceLocator) {
|
|
24339
24421
|
this.isImgUploaded = false;
|
|
24340
24422
|
this.isAllowedTypes = true;
|
|
@@ -25022,13 +25104,22 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25022
25104
|
}
|
|
25023
25105
|
}
|
|
25024
25106
|
}
|
|
25025
|
-
else if (
|
|
25026
|
-
range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE))
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
25031
|
-
|
|
25107
|
+
else if (range.startContainer.nodeType === 1) {
|
|
25108
|
+
if (range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE)) {
|
|
25109
|
+
detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_CAPINLINE));
|
|
25110
|
+
}
|
|
25111
|
+
else if (range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK)) {
|
|
25112
|
+
detach(range.startContainer.querySelector('.' + CLS_CAPTION + '.' + CLS_IMGBREAK));
|
|
25113
|
+
}
|
|
25114
|
+
else if (range.startContainer.classList.contains('e-img-wrap') && closest(range.startContainer, '.' + CLS_CAPTION)) {
|
|
25115
|
+
var parentElem = range.startContainer.parentElement.parentElement;
|
|
25116
|
+
detach(closest(range.startContainer, '.' + CLS_CAPTION));
|
|
25117
|
+
if (parentElem && parentElem.textContent.trim() === '') {
|
|
25118
|
+
var brElem = this.parent.createElement('br');
|
|
25119
|
+
brElem.classList.add('e-rte-image-remove-focus');
|
|
25120
|
+
parentElem.appendChild(brElem);
|
|
25121
|
+
}
|
|
25122
|
+
}
|
|
25032
25123
|
}
|
|
25033
25124
|
}
|
|
25034
25125
|
break;
|
|
@@ -25330,7 +25421,6 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25330
25421
|
width: '290px',
|
|
25331
25422
|
header: this.parent.localeObj.getConstant('imageInsertLinkHeader'),
|
|
25332
25423
|
content: linkWrap,
|
|
25333
|
-
position: { X: 'center', Y: 'center' },
|
|
25334
25424
|
buttons: [{
|
|
25335
25425
|
// eslint-disable-next-line
|
|
25336
25426
|
click: function (e) {
|
|
@@ -25380,7 +25470,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25380
25470
|
alt: inputAlt
|
|
25381
25471
|
};
|
|
25382
25472
|
this.dialogObj.setProperties({
|
|
25383
|
-
height: 'inherit', width: '290px', header: altHeader, content: altWrap,
|
|
25473
|
+
height: 'inherit', width: '290px', header: altHeader, content: altWrap,
|
|
25384
25474
|
buttons: [{
|
|
25385
25475
|
// eslint-disable-next-line
|
|
25386
25476
|
click: function (e) {
|
|
@@ -25607,7 +25697,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25607
25697
|
var dialogContent = this.imgsizeInput(e);
|
|
25608
25698
|
var selectObj_1 = { args: e.args, selfImage: this, selection: e.selection, selectNode: e.selectNode };
|
|
25609
25699
|
this.dialogObj.setProperties({
|
|
25610
|
-
height: (Browser.isDevice) ? '300px' : 'inherit', width: '290px', header: imgSizeHeader, content: dialogContent,
|
|
25700
|
+
height: (Browser.isDevice) ? '300px' : 'inherit', width: '290px', header: imgSizeHeader, content: dialogContent,
|
|
25611
25701
|
buttons: [{
|
|
25612
25702
|
// eslint-disable-next-line
|
|
25613
25703
|
click: function (e) {
|
|
@@ -25673,7 +25763,6 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
25673
25763
|
enableRtl: this.parent.enableRtl,
|
|
25674
25764
|
locale: this.parent.locale,
|
|
25675
25765
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
|
|
25676
|
-
position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
|
|
25677
25766
|
isModal: Browser.isDevice,
|
|
25678
25767
|
buttons: [{
|
|
25679
25768
|
click: this.insertImageUrl.bind(selectObj),
|
|
@@ -26622,7 +26711,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
26622
26711
|
/**
|
|
26623
26712
|
* `Audio` module is used to handle audio actions.
|
|
26624
26713
|
*/
|
|
26625
|
-
var Audio = /** @
|
|
26714
|
+
var Audio = /** @class */ (function () {
|
|
26626
26715
|
function Audio(parent, serviceLocator) {
|
|
26627
26716
|
this.isAudioUploaded = false;
|
|
26628
26717
|
this.isAllowedTypes = true;
|
|
@@ -27167,7 +27256,6 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
27167
27256
|
enableRtl: this.parent.enableRtl,
|
|
27168
27257
|
locale: this.parent.locale,
|
|
27169
27258
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
|
|
27170
|
-
position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
|
|
27171
27259
|
isModal: Browser.isDevice,
|
|
27172
27260
|
buttons: [{
|
|
27173
27261
|
click: this.insertAudioUrl.bind(selectObj),
|
|
@@ -27464,7 +27552,7 @@ var Audio = /** @__PURE__ @class */ (function () {
|
|
|
27464
27552
|
return Audio;
|
|
27465
27553
|
}());
|
|
27466
27554
|
|
|
27467
|
-
var Video = /** @
|
|
27555
|
+
var Video = /** @class */ (function () {
|
|
27468
27556
|
function Video(parent, serviceLocator) {
|
|
27469
27557
|
this.isVideoUploaded = false;
|
|
27470
27558
|
this.isAllowedTypes = true;
|
|
@@ -27600,7 +27688,7 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
27600
27688
|
var dialogContent = this.vidsizeInput(e);
|
|
27601
27689
|
var selectObj_1 = { args: e.args, selfVideo: this, selection: e.selection, selectNode: e.selectNode };
|
|
27602
27690
|
this.dialogObj.setProperties({
|
|
27603
|
-
height: 'inherit', width: '290px', header: vidSizeHeader, content: dialogContent,
|
|
27691
|
+
height: 'inherit', width: '290px', header: vidSizeHeader, content: dialogContent,
|
|
27604
27692
|
buttons: [{
|
|
27605
27693
|
// eslint-disable-next-line
|
|
27606
27694
|
click: function (e) {
|
|
@@ -28505,7 +28593,6 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
28505
28593
|
enableRtl: this.parent.enableRtl,
|
|
28506
28594
|
locale: this.parent.locale,
|
|
28507
28595
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
|
|
28508
|
-
position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
|
|
28509
28596
|
isModal: Browser.isDevice,
|
|
28510
28597
|
buttons: [{
|
|
28511
28598
|
click: this.insertVideoUrl.bind(selectObj),
|
|
@@ -28875,7 +28962,7 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
28875
28962
|
* @hidden
|
|
28876
28963
|
* @deprecated
|
|
28877
28964
|
*/
|
|
28878
|
-
var ViewSource = /** @
|
|
28965
|
+
var ViewSource = /** @class */ (function () {
|
|
28879
28966
|
/**
|
|
28880
28967
|
* Constructor for view source module
|
|
28881
28968
|
*
|
|
@@ -28988,13 +29075,13 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
28988
29075
|
this.parent.updateValueData();
|
|
28989
29076
|
if (this.parent.iframeSettings.enable) {
|
|
28990
29077
|
var rteContent = void 0;
|
|
28991
|
-
if (isNullOrUndefined(this.parent.element.querySelector('#' + this.parent.
|
|
29078
|
+
if (isNullOrUndefined(this.parent.element.querySelector('#' + this.parent.getID() + '_source-view'))) {
|
|
28992
29079
|
rteContent = this.parent.createElement('div', {
|
|
28993
|
-
className: 'e-source-content', id: this.parent.
|
|
29080
|
+
className: 'e-source-content', id: this.parent.getID() + '_source-view'
|
|
28994
29081
|
});
|
|
28995
29082
|
}
|
|
28996
29083
|
else {
|
|
28997
|
-
rteContent = this.parent.element.querySelector('#' + this.parent.
|
|
29084
|
+
rteContent = this.parent.element.querySelector('#' + this.parent.getID() + '_source-view');
|
|
28998
29085
|
}
|
|
28999
29086
|
rteContent.appendChild(this.previewElement);
|
|
29000
29087
|
this.parent.element.appendChild(rteContent);
|
|
@@ -29145,7 +29232,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
|
|
|
29145
29232
|
/**
|
|
29146
29233
|
* `Table` module is used to handle table actions.
|
|
29147
29234
|
*/
|
|
29148
|
-
var Table = /** @
|
|
29235
|
+
var Table = /** @class */ (function () {
|
|
29149
29236
|
function Table(parent, serviceLocator) {
|
|
29150
29237
|
this.ensureInsideTableList = true;
|
|
29151
29238
|
this.pageX = null;
|
|
@@ -29175,6 +29262,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29175
29262
|
this.parent.on(tableToolbarAction, this.onToolbarAction, this);
|
|
29176
29263
|
this.parent.on(dropDownSelect, this.dropdownSelect, this);
|
|
29177
29264
|
this.parent.on(keyDown, this.keyDown, this);
|
|
29265
|
+
this.parent.on(keyUp, this.keyUp, this);
|
|
29178
29266
|
this.parent.on(mouseUp, this.selectionTable, this);
|
|
29179
29267
|
this.parent.on(tableModulekeyUp, this.tableModulekeyUp, this);
|
|
29180
29268
|
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
@@ -29197,6 +29285,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29197
29285
|
this.parent.off(dropDownSelect, this.dropdownSelect);
|
|
29198
29286
|
this.parent.off(mouseDown, this.cellSelect);
|
|
29199
29287
|
this.parent.off(tableColorPickerChanged, this.setBGColor);
|
|
29288
|
+
this.parent.off(keyUp, this.keyUp);
|
|
29200
29289
|
this.parent.off(keyDown, this.keyDown);
|
|
29201
29290
|
this.parent.off(mouseUp, this.selectionTable);
|
|
29202
29291
|
this.parent.off(tableModulekeyUp, this.tableModulekeyUp);
|
|
@@ -29301,6 +29390,12 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
29301
29390
|
this.parent.formatter.process(this.parent, e, e, { selection: selectCell, subCommand: e.item.subCommand });
|
|
29302
29391
|
this.hideTableQuickToolbar();
|
|
29303
29392
|
};
|
|
29393
|
+
Table.prototype.keyUp = function (e) {
|
|
29394
|
+
var target = e.args.target;
|
|
29395
|
+
if (e.args.key.toLocaleLowerCase() === 'escape' && target && target.classList && (this.popupObj && !closest(target, '[id=' + "'" + this.popupObj.element.id + "'" + ']')) && this.popupObj) {
|
|
29396
|
+
this.popupObj.hide();
|
|
29397
|
+
}
|
|
29398
|
+
};
|
|
29304
29399
|
Table.prototype.keyDown = function (e) {
|
|
29305
29400
|
var event = e.args;
|
|
29306
29401
|
// eslint-disable-next-line
|
|
@@ -30677,7 +30772,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
30677
30772
|
/**
|
|
30678
30773
|
* Dialog Renderer
|
|
30679
30774
|
*/
|
|
30680
|
-
var DialogRenderer = /** @
|
|
30775
|
+
var DialogRenderer = /** @class */ (function () {
|
|
30681
30776
|
function DialogRenderer(parent) {
|
|
30682
30777
|
this.parent = parent;
|
|
30683
30778
|
this.addEventListener();
|
|
@@ -30708,6 +30803,7 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
30708
30803
|
var dlgObj;
|
|
30709
30804
|
e.beforeOpen = this.beforeOpen.bind(this);
|
|
30710
30805
|
e.open = this.open.bind(this);
|
|
30806
|
+
e.position = { X: 'center', Y: this.getDialogPosition() };
|
|
30711
30807
|
if (isNullOrUndefined(e.close)) {
|
|
30712
30808
|
e.close = this.close.bind(this);
|
|
30713
30809
|
}
|
|
@@ -30752,6 +30848,16 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
30752
30848
|
}
|
|
30753
30849
|
});
|
|
30754
30850
|
};
|
|
30851
|
+
DialogRenderer.prototype.getDialogPosition = function () {
|
|
30852
|
+
var distanceFromVisibleTop = this.parent.element.getBoundingClientRect().top;
|
|
30853
|
+
if (distanceFromVisibleTop < 0) {
|
|
30854
|
+
distanceFromVisibleTop = Math.abs(distanceFromVisibleTop);
|
|
30855
|
+
return distanceFromVisibleTop.toString();
|
|
30856
|
+
}
|
|
30857
|
+
else {
|
|
30858
|
+
return 'top';
|
|
30859
|
+
}
|
|
30860
|
+
};
|
|
30755
30861
|
/**
|
|
30756
30862
|
* dialog close method
|
|
30757
30863
|
*
|
|
@@ -30963,29 +31069,29 @@ var executeGroup = {
|
|
|
30963
31069
|
}
|
|
30964
31070
|
};
|
|
30965
31071
|
|
|
30966
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
30967
|
-
var extendStatics = function (d, b) {
|
|
30968
|
-
extendStatics = Object.setPrototypeOf ||
|
|
30969
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30970
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
30971
|
-
return extendStatics(d, b);
|
|
30972
|
-
};
|
|
30973
|
-
return function (d, b) {
|
|
30974
|
-
extendStatics(d, b);
|
|
30975
|
-
function __() { this.constructor = d; }
|
|
30976
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30977
|
-
};
|
|
30978
|
-
})();
|
|
30979
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
30980
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
30981
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
30982
|
-
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;
|
|
30983
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30984
|
-
};
|
|
31072
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
31073
|
+
var extendStatics = function (d, b) {
|
|
31074
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31075
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31076
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31077
|
+
return extendStatics(d, b);
|
|
31078
|
+
};
|
|
31079
|
+
return function (d, b) {
|
|
31080
|
+
extendStatics(d, b);
|
|
31081
|
+
function __() { this.constructor = d; }
|
|
31082
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31083
|
+
};
|
|
31084
|
+
})();
|
|
31085
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31086
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31087
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31088
|
+
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;
|
|
31089
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31090
|
+
};
|
|
30985
31091
|
/**
|
|
30986
31092
|
* Configures the toolbar settings of the RichTextEditor.
|
|
30987
31093
|
*/
|
|
30988
|
-
var ToolbarSettings$1 = /** @
|
|
31094
|
+
var ToolbarSettings$1 = /** @class */ (function (_super) {
|
|
30989
31095
|
__extends$5(ToolbarSettings$$1, _super);
|
|
30990
31096
|
function ToolbarSettings$$1() {
|
|
30991
31097
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31010,7 +31116,7 @@ var ToolbarSettings$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
31010
31116
|
/**
|
|
31011
31117
|
* Configures the image settings of the RichTextEditor.
|
|
31012
31118
|
*/
|
|
31013
|
-
var ImageSettings = /** @
|
|
31119
|
+
var ImageSettings = /** @class */ (function (_super) {
|
|
31014
31120
|
__extends$5(ImageSettings, _super);
|
|
31015
31121
|
function ImageSettings() {
|
|
31016
31122
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31062,7 +31168,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31062
31168
|
/**
|
|
31063
31169
|
* Configures the audio settings of the RichTextEditor.
|
|
31064
31170
|
*/
|
|
31065
|
-
var AudioSettings = /** @
|
|
31171
|
+
var AudioSettings = /** @class */ (function (_super) {
|
|
31066
31172
|
__extends$5(AudioSettings, _super);
|
|
31067
31173
|
function AudioSettings() {
|
|
31068
31174
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31090,7 +31196,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31090
31196
|
/**
|
|
31091
31197
|
* Configures the video settings of the RichTextEditor.
|
|
31092
31198
|
*/
|
|
31093
|
-
var VideoSettings = /** @
|
|
31199
|
+
var VideoSettings = /** @class */ (function (_super) {
|
|
31094
31200
|
__extends$5(VideoSettings, _super);
|
|
31095
31201
|
function VideoSettings() {
|
|
31096
31202
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31142,7 +31248,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31142
31248
|
/**
|
|
31143
31249
|
* Configures the file manager settings of the RichTextEditor.
|
|
31144
31250
|
*/
|
|
31145
|
-
var FileManagerSettings = /** @
|
|
31251
|
+
var FileManagerSettings = /** @class */ (function (_super) {
|
|
31146
31252
|
__extends$5(FileManagerSettings, _super);
|
|
31147
31253
|
function FileManagerSettings() {
|
|
31148
31254
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31203,7 +31309,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31203
31309
|
], FileManagerSettings.prototype, "view", void 0);
|
|
31204
31310
|
return FileManagerSettings;
|
|
31205
31311
|
}(ChildProperty));
|
|
31206
|
-
var TableSettings = /** @
|
|
31312
|
+
var TableSettings = /** @class */ (function (_super) {
|
|
31207
31313
|
__extends$5(TableSettings, _super);
|
|
31208
31314
|
function TableSettings() {
|
|
31209
31315
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31228,7 +31334,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31228
31334
|
/**
|
|
31229
31335
|
* Configures the quick toolbar settings of the RichTextEditor.
|
|
31230
31336
|
*/
|
|
31231
|
-
var QuickToolbarSettings = /** @
|
|
31337
|
+
var QuickToolbarSettings = /** @class */ (function (_super) {
|
|
31232
31338
|
__extends$5(QuickToolbarSettings, _super);
|
|
31233
31339
|
function QuickToolbarSettings() {
|
|
31234
31340
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31265,7 +31371,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31265
31371
|
/**
|
|
31266
31372
|
* Configure the format painter settings of the Rich Text Editor.
|
|
31267
31373
|
*/
|
|
31268
|
-
var FormatPainterSettings = /** @
|
|
31374
|
+
var FormatPainterSettings = /** @class */ (function (_super) {
|
|
31269
31375
|
__extends$5(FormatPainterSettings, _super);
|
|
31270
31376
|
function FormatPainterSettings() {
|
|
31271
31377
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31281,7 +31387,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31281
31387
|
/**
|
|
31282
31388
|
* Specifies the emoji picker options in Rich Text Editor with the following properties.
|
|
31283
31389
|
*/
|
|
31284
|
-
var EmojiSettings = /** @
|
|
31390
|
+
var EmojiSettings = /** @class */ (function (_super) {
|
|
31285
31391
|
__extends$5(EmojiSettings, _super);
|
|
31286
31392
|
function EmojiSettings() {
|
|
31287
31393
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31297,7 +31403,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31297
31403
|
/**
|
|
31298
31404
|
* Configures the Paste Cleanup settings of the RichTextEditor.
|
|
31299
31405
|
*/
|
|
31300
|
-
var PasteCleanupSettings = /** @
|
|
31406
|
+
var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
31301
31407
|
__extends$5(PasteCleanupSettings, _super);
|
|
31302
31408
|
function PasteCleanupSettings() {
|
|
31303
31409
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31325,7 +31431,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31325
31431
|
/**
|
|
31326
31432
|
* Configures the font family settings of the RichTextEditor.
|
|
31327
31433
|
*/
|
|
31328
|
-
var FontFamily = /** @
|
|
31434
|
+
var FontFamily = /** @class */ (function (_super) {
|
|
31329
31435
|
__extends$5(FontFamily, _super);
|
|
31330
31436
|
function FontFamily() {
|
|
31331
31437
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31344,7 +31450,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
|
|
|
31344
31450
|
/**
|
|
31345
31451
|
* Configures the font size settings of the RichTextEditor.
|
|
31346
31452
|
*/
|
|
31347
|
-
var FontSize = /** @
|
|
31453
|
+
var FontSize = /** @class */ (function (_super) {
|
|
31348
31454
|
__extends$5(FontSize, _super);
|
|
31349
31455
|
function FontSize() {
|
|
31350
31456
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31363,7 +31469,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
|
|
|
31363
31469
|
/**
|
|
31364
31470
|
* Configures the format settings of the RichTextEditor.
|
|
31365
31471
|
*/
|
|
31366
|
-
var Format = /** @
|
|
31472
|
+
var Format = /** @class */ (function (_super) {
|
|
31367
31473
|
__extends$5(Format, _super);
|
|
31368
31474
|
function Format() {
|
|
31369
31475
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31382,7 +31488,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
|
|
|
31382
31488
|
/**
|
|
31383
31489
|
* Configures the font Color settings of the RichTextEditor.
|
|
31384
31490
|
*/
|
|
31385
|
-
var FontColor = /** @
|
|
31491
|
+
var FontColor = /** @class */ (function (_super) {
|
|
31386
31492
|
__extends$5(FontColor, _super);
|
|
31387
31493
|
function FontColor() {
|
|
31388
31494
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31407,7 +31513,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
31407
31513
|
/**
|
|
31408
31514
|
* Configures the background Color settings of the RichTextEditor.
|
|
31409
31515
|
*/
|
|
31410
|
-
var BackgroundColor = /** @
|
|
31516
|
+
var BackgroundColor = /** @class */ (function (_super) {
|
|
31411
31517
|
__extends$5(BackgroundColor, _super);
|
|
31412
31518
|
function BackgroundColor() {
|
|
31413
31519
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31432,7 +31538,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
|
|
|
31432
31538
|
/**
|
|
31433
31539
|
* Configures the numberFormatList settings of the RichTextEditor.
|
|
31434
31540
|
*/
|
|
31435
|
-
var NumberFormatList = /** @
|
|
31541
|
+
var NumberFormatList = /** @class */ (function (_super) {
|
|
31436
31542
|
__extends$5(NumberFormatList, _super);
|
|
31437
31543
|
function NumberFormatList() {
|
|
31438
31544
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31445,7 +31551,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31445
31551
|
/**
|
|
31446
31552
|
* Configures the bulletFormatList settings of the RichTextEditor.
|
|
31447
31553
|
*/
|
|
31448
|
-
var BulletFormatList = /** @
|
|
31554
|
+
var BulletFormatList = /** @class */ (function (_super) {
|
|
31449
31555
|
__extends$5(BulletFormatList, _super);
|
|
31450
31556
|
function BulletFormatList() {
|
|
31451
31557
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31456,29 +31562,29 @@ var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
|
|
|
31456
31562
|
return BulletFormatList;
|
|
31457
31563
|
}(ChildProperty));
|
|
31458
31564
|
|
|
31459
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
31460
|
-
var extendStatics = function (d, b) {
|
|
31461
|
-
extendStatics = Object.setPrototypeOf ||
|
|
31462
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31463
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31464
|
-
return extendStatics(d, b);
|
|
31465
|
-
};
|
|
31466
|
-
return function (d, b) {
|
|
31467
|
-
extendStatics(d, b);
|
|
31468
|
-
function __() { this.constructor = d; }
|
|
31469
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31470
|
-
};
|
|
31471
|
-
})();
|
|
31472
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31473
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31474
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31475
|
-
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;
|
|
31476
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31477
|
-
};
|
|
31565
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
31566
|
+
var extendStatics = function (d, b) {
|
|
31567
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31568
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31569
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31570
|
+
return extendStatics(d, b);
|
|
31571
|
+
};
|
|
31572
|
+
return function (d, b) {
|
|
31573
|
+
extendStatics(d, b);
|
|
31574
|
+
function __() { this.constructor = d; }
|
|
31575
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31576
|
+
};
|
|
31577
|
+
})();
|
|
31578
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31579
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31580
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31581
|
+
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;
|
|
31582
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31583
|
+
};
|
|
31478
31584
|
/**
|
|
31479
31585
|
* Objects used for configuring the iframe resources properties.
|
|
31480
31586
|
*/
|
|
31481
|
-
var Resources = /** @
|
|
31587
|
+
var Resources = /** @class */ (function (_super) {
|
|
31482
31588
|
__extends$6(Resources, _super);
|
|
31483
31589
|
function Resources() {
|
|
31484
31590
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31494,7 +31600,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
31494
31600
|
/**
|
|
31495
31601
|
* Configures the iframe settings of the RTE.
|
|
31496
31602
|
*/
|
|
31497
|
-
var IFrameSettings = /** @
|
|
31603
|
+
var IFrameSettings = /** @class */ (function (_super) {
|
|
31498
31604
|
__extends$6(IFrameSettings, _super);
|
|
31499
31605
|
function IFrameSettings() {
|
|
31500
31606
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31511,29 +31617,29 @@ var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
31511
31617
|
return IFrameSettings;
|
|
31512
31618
|
}(ChildProperty));
|
|
31513
31619
|
|
|
31514
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
31515
|
-
var extendStatics = function (d, b) {
|
|
31516
|
-
extendStatics = Object.setPrototypeOf ||
|
|
31517
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31518
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31519
|
-
return extendStatics(d, b);
|
|
31520
|
-
};
|
|
31521
|
-
return function (d, b) {
|
|
31522
|
-
extendStatics(d, b);
|
|
31523
|
-
function __() { this.constructor = d; }
|
|
31524
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31525
|
-
};
|
|
31526
|
-
})();
|
|
31527
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31528
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31529
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31530
|
-
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;
|
|
31531
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31532
|
-
};
|
|
31620
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
31621
|
+
var extendStatics = function (d, b) {
|
|
31622
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31623
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31624
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
31625
|
+
return extendStatics(d, b);
|
|
31626
|
+
};
|
|
31627
|
+
return function (d, b) {
|
|
31628
|
+
extendStatics(d, b);
|
|
31629
|
+
function __() { this.constructor = d; }
|
|
31630
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31631
|
+
};
|
|
31632
|
+
})();
|
|
31633
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31634
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31635
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31636
|
+
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;
|
|
31637
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31638
|
+
};
|
|
31533
31639
|
/**
|
|
31534
31640
|
* Configures the inlineMode property of the RTE.
|
|
31535
31641
|
*/
|
|
31536
|
-
var InlineMode = /** @
|
|
31642
|
+
var InlineMode = /** @class */ (function (_super) {
|
|
31537
31643
|
__extends$7(InlineMode, _super);
|
|
31538
31644
|
function InlineMode() {
|
|
31539
31645
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -31550,7 +31656,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
|
|
|
31550
31656
|
/**
|
|
31551
31657
|
* `EnterKey` module is used to handle enter key press actions.
|
|
31552
31658
|
*/
|
|
31553
|
-
var EnterKeyAction = /** @
|
|
31659
|
+
var EnterKeyAction = /** @class */ (function () {
|
|
31554
31660
|
function EnterKeyAction(parent) {
|
|
31555
31661
|
this.parent = parent;
|
|
31556
31662
|
this.addEventListener();
|
|
@@ -31945,7 +32051,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
31945
32051
|
var newElem = void 0;
|
|
31946
32052
|
var outerBRElem = _this.parent.createElement('br');
|
|
31947
32053
|
if (_this.range.startOffset === 0 && _this.range.endOffset === 0 &&
|
|
31948
|
-
!isNullOrUndefined(currentParent.previousSibling) && currentParent.previousSibling.nodeName === 'BR') {
|
|
32054
|
+
!isNullOrUndefined(currentParent.previousSibling) && currentParent.previousSibling.nodeName === 'BR' && currentParent.nodeName !== 'P' && currentParent.nodeName !== 'DIV') {
|
|
31949
32055
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31950
32056
|
newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, currentParent, false).cloneNode(true);
|
|
31951
32057
|
_this.parent.formatter.editorManager.domNode.insertAfter(outerBRElem, currentParent);
|
|
@@ -32041,36 +32147,36 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
32041
32147
|
return EnterKeyAction;
|
|
32042
32148
|
}());
|
|
32043
32149
|
|
|
32044
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
32045
|
-
var extendStatics = function (d, b) {
|
|
32046
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32047
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32048
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
32049
|
-
return extendStatics(d, b);
|
|
32050
|
-
};
|
|
32051
|
-
return function (d, b) {
|
|
32052
|
-
extendStatics(d, b);
|
|
32053
|
-
function __() { this.constructor = d; }
|
|
32054
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32055
|
-
};
|
|
32056
|
-
})();
|
|
32057
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
32058
|
-
__assign = Object.assign || function(t) {
|
|
32059
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32060
|
-
s = arguments[i];
|
|
32061
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
32062
|
-
t[p] = s[p];
|
|
32063
|
-
}
|
|
32064
|
-
return t;
|
|
32065
|
-
};
|
|
32066
|
-
return __assign.apply(this, arguments);
|
|
32067
|
-
};
|
|
32068
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
32069
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32070
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
32071
|
-
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;
|
|
32072
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32073
|
-
};
|
|
32150
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
32151
|
+
var extendStatics = function (d, b) {
|
|
32152
|
+
extendStatics = Object.setPrototypeOf ||
|
|
32153
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32154
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
32155
|
+
return extendStatics(d, b);
|
|
32156
|
+
};
|
|
32157
|
+
return function (d, b) {
|
|
32158
|
+
extendStatics(d, b);
|
|
32159
|
+
function __() { this.constructor = d; }
|
|
32160
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32161
|
+
};
|
|
32162
|
+
})();
|
|
32163
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
32164
|
+
__assign = Object.assign || function(t) {
|
|
32165
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32166
|
+
s = arguments[i];
|
|
32167
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
32168
|
+
t[p] = s[p];
|
|
32169
|
+
}
|
|
32170
|
+
return t;
|
|
32171
|
+
};
|
|
32172
|
+
return __assign.apply(this, arguments);
|
|
32173
|
+
};
|
|
32174
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
32175
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32176
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
32177
|
+
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;
|
|
32178
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32179
|
+
};
|
|
32074
32180
|
/**
|
|
32075
32181
|
* Represents the Rich Text Editor component.
|
|
32076
32182
|
* ```html
|
|
@@ -32081,7 +32187,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
32081
32187
|
* </script>
|
|
32082
32188
|
* ```
|
|
32083
32189
|
*/
|
|
32084
|
-
var RichTextEditor = /** @
|
|
32190
|
+
var RichTextEditor = /** @class */ (function (_super) {
|
|
32085
32191
|
__extends$4(RichTextEditor, _super);
|
|
32086
32192
|
function RichTextEditor(options, element) {
|
|
32087
32193
|
var _this = _super.call(this, options, element) || this;
|