@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.41-569421
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/.eslintrc.json +259 -259
- package/CHANGELOG.md +1953 -1749
- 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 +9971 -8025
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +8445 -6498
- 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/config.d.ts +7 -0
- package/src/common/config.js +12 -1
- package/src/common/constant.d.ts +6 -0
- package/src/common/constant.js +6 -0
- package/src/common/interface.d.ts +19 -7
- package/src/common/types.d.ts +6 -0
- package/src/common/util.d.ts +6 -0
- package/src/common/util.js +61 -20
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/constant.d.ts +6 -0
- package/src/editor-manager/base/constant.js +6 -0
- package/src/editor-manager/base/editor-manager.d.ts +8 -3
- package/src/editor-manager/base/editor-manager.js +62 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +17 -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 +16 -6
- 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 +39 -35
- package/src/editor-manager/plugin/dom-node.js +203 -62
- package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
- package/src/editor-manager/plugin/format-painter-actions.js +20 -2
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +40 -5
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +41 -18
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +3 -3
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
- package/src/editor-manager/plugin/inserthtml.js +85 -22
- 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 +10 -5
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +161 -72
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +216 -86
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +11 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +3 -1
- package/src/editor-manager/plugin/selection-commands.js +249 -5
- 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 +6 -3
- package/src/editor-manager/plugin/table.js +97 -51
- package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
- package/src/editor-manager/plugin/toolbar-status.js +22 -12
- package/src/editor-manager/plugin/undo.d.ts +7 -6
- package/src/editor-manager/plugin/undo.js +27 -7
- 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 +13 -12
- package/src/rich-text-editor/actions/base-quick-toolbar.js +70 -23
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +36 -37
- package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
- package/src/rich-text-editor/actions/color-picker.js +15 -5
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +4 -4
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +3 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +13 -7
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +17 -8
- package/src/rich-text-editor/actions/enter-key.js +10 -5
- package/src/rich-text-editor/actions/file-manager.js +1 -1
- package/src/rich-text-editor/actions/format-painter.js +5 -2
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +8 -7
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +134 -22
- 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 +23 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +5 -3
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +157 -29
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +17 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +68 -21
- package/src/rich-text-editor/actions/resize.js +2 -1
- package/src/rich-text-editor/actions/toolbar-action.js +1 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +16 -16
- package/src/rich-text-editor/actions/toolbar.js +48 -109
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +195 -150
- package/src/rich-text-editor/base/constant.js +364 -150
- 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 +96 -52
- 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 +76 -64
- package/src/rich-text-editor/base/rich-text-editor.js +247 -160
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +23 -5
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +24 -12
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/default-locale.js +31 -25
- 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/items.js +3 -3
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +20 -20
- package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/audio-module.js +23 -5
- 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 +4 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +24 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
- package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
- package/src/rich-text-editor/renderer/image-module.js +265 -221
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +54 -25
- 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 +11 -2
- package/src/rich-text-editor/renderer/table-module.js +344 -169
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +12 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +115 -110
- package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
- package/src/rich-text-editor/renderer/video-module.js +83 -42
- package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
- package/src/rich-text-editor/renderer/view-source.js +21 -11
- 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 +25 -22
- package/styles/_all.scss +1 -1
- package/styles/bootstrap-dark.css +353 -103
- package/styles/bootstrap.css +357 -112
- package/styles/bootstrap4.css +338 -96
- package/styles/bootstrap5-dark.css +344 -97
- package/styles/bootstrap5.css +344 -97
- package/styles/fabric-dark.css +332 -90
- package/styles/fabric.css +333 -91
- package/styles/fluent-dark.css +360 -98
- package/styles/fluent.css +360 -98
- package/styles/highcontrast-light.css +332 -90
- package/styles/highcontrast.css +336 -91
- package/styles/material-dark.css +339 -92
- package/styles/material.css +339 -92
- package/styles/material3-dark.css +348 -100
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +348 -100
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +279 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
- package/styles/rich-text-editor/_fabric-definition.scss +261 -257
- package/styles/rich-text-editor/_fluent-definition.scss +267 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
- package/styles/rich-text-editor/_layout.scss +2249 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
- package/styles/rich-text-editor/_material-definition.scss +264 -260
- package/styles/rich-text-editor/_material3-definition.scss +266 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
- package/styles/rich-text-editor/_theme.scss +926 -837
- package/styles/rich-text-editor/bootstrap-dark.css +353 -103
- package/styles/rich-text-editor/bootstrap.css +357 -112
- package/styles/rich-text-editor/bootstrap4.css +338 -96
- package/styles/rich-text-editor/bootstrap5-dark.css +344 -97
- package/styles/rich-text-editor/bootstrap5.css +344 -97
- package/styles/rich-text-editor/fabric-dark.css +332 -90
- package/styles/rich-text-editor/fabric.css +333 -91
- package/styles/rich-text-editor/fluent-dark.css +360 -98
- package/styles/rich-text-editor/fluent.css +360 -98
- package/styles/rich-text-editor/highcontrast-light.css +332 -90
- package/styles/rich-text-editor/highcontrast.css +336 -91
- package/styles/rich-text-editor/icons/_bds.scss +348 -0
- 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/material-dark.css +339 -92
- package/styles/rich-text-editor/material.css +339 -92
- package/styles/rich-text-editor/material3-dark.css +348 -100
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +348 -100
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +383 -113
- package/styles/rich-text-editor/tailwind.css +383 -113
- package/styles/tailwind-dark.css +383 -113
- package/styles/tailwind.css +383 -113
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
- 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
|
@@ -736,7 +736,7 @@ export declare class PasteCleanupSettings extends ChildProperty<PasteCleanupSett
|
|
|
736
736
|
/**
|
|
737
737
|
* Specifies the allowed style properties when pasting in RichTextEditor.
|
|
738
738
|
*
|
|
739
|
-
* @default ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width']
|
|
739
|
+
* @default ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-transform', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width']
|
|
740
740
|
*/
|
|
741
741
|
allowedStyleProps: string[];
|
|
742
742
|
/**
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, ChildProperty, Complex, Event } from '@syncfusion/ej2-base';
|
|
21
21
|
import { AjaxSettings, ContextMenuSettings } from '@syncfusion/ej2-filemanager';
|
|
22
22
|
import { DetailsViewSettings, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';
|
|
@@ -361,7 +361,7 @@ var PasteCleanupSettings = /** @class */ (function (_super) {
|
|
|
361
361
|
Property(null)
|
|
362
362
|
], PasteCleanupSettings.prototype, "deniedAttrs", void 0);
|
|
363
363
|
__decorate([
|
|
364
|
-
Property(['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width'])
|
|
364
|
+
Property(['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-transform', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width'])
|
|
365
365
|
], PasteCleanupSettings.prototype, "allowedStyleProps", void 0);
|
|
366
366
|
__decorate([
|
|
367
367
|
Property(null)
|
|
@@ -34,6 +34,7 @@ export declare class Audio {
|
|
|
34
34
|
private onToolbarAction;
|
|
35
35
|
private onKeyUp;
|
|
36
36
|
private onKeyDown;
|
|
37
|
+
private handleSelectAll;
|
|
37
38
|
private openDialog;
|
|
38
39
|
private showDialog;
|
|
39
40
|
private closeDialog;
|
|
@@ -63,7 +64,7 @@ export declare class Audio {
|
|
|
63
64
|
* @method destroy
|
|
64
65
|
* @returns {void}
|
|
65
66
|
* @hidden
|
|
66
|
-
|
|
67
|
+
* @deprecated
|
|
67
68
|
*/
|
|
68
69
|
destroy(): void;
|
|
69
70
|
/**
|
|
@@ -39,6 +39,7 @@ var Audio = /** @class */ (function () {
|
|
|
39
39
|
this.parent.on(events.editAreaClick, this.editAreaClickHandler, this);
|
|
40
40
|
this.parent.on(events.insertCompleted, this.showAudioQuickToolbar, this);
|
|
41
41
|
this.parent.on(events.destroy, this.removeEventListener, this);
|
|
42
|
+
this.parent.on(events.iframeMouseDown, this.closeDialog, this);
|
|
42
43
|
};
|
|
43
44
|
Audio.prototype.removeEventListener = function () {
|
|
44
45
|
if (this.parent.isDestroyed) {
|
|
@@ -57,6 +58,7 @@ var Audio = /** @class */ (function () {
|
|
|
57
58
|
this.parent.off(events.editAreaClick, this.editAreaClickHandler);
|
|
58
59
|
this.parent.off(events.insertCompleted, this.showAudioQuickToolbar);
|
|
59
60
|
this.parent.off(events.destroy, this.removeEventListener);
|
|
61
|
+
this.parent.off(events.iframeMouseDown, this.closeDialog);
|
|
60
62
|
if (!isNullOrUndefined(this.contentModule)) {
|
|
61
63
|
EventHandler.remove(this.parent.contentModule.getEditPanel(), Browser.touchStartEvent, this.touchStart);
|
|
62
64
|
EventHandler.remove(this.contentModule.getEditPanel(), Browser.touchEndEvent, this.audioClick);
|
|
@@ -239,6 +241,13 @@ var Audio = /** @class */ (function () {
|
|
|
239
241
|
originalEvent.preventDefault();
|
|
240
242
|
break;
|
|
241
243
|
}
|
|
244
|
+
if (originalEvent.ctrlKey && originalEvent.key === 'a') {
|
|
245
|
+
this.handleSelectAll();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
Audio.prototype.handleSelectAll = function () {
|
|
249
|
+
var audioFocusNodes = this.parent.inputElement.querySelectorAll('.' + classes.CLS_AUD_FOCUS);
|
|
250
|
+
removeClass(audioFocusNodes, classes.CLS_AUD_FOCUS);
|
|
242
251
|
};
|
|
243
252
|
Audio.prototype.openDialog = function (isInternal, event, selection, ele, parentEle) {
|
|
244
253
|
var range;
|
|
@@ -298,7 +307,7 @@ var Audio = /** @class */ (function () {
|
|
|
298
307
|
this.parent.formatter.saveData();
|
|
299
308
|
}
|
|
300
309
|
e.selection.restore();
|
|
301
|
-
this.parent.formatter.process(this.parent, e.args, e.args, {
|
|
310
|
+
this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, {
|
|
302
311
|
selectNode: e.selectNode,
|
|
303
312
|
subCommand: e.args.item.subCommand
|
|
304
313
|
});
|
|
@@ -379,6 +388,7 @@ var Audio = /** @class */ (function () {
|
|
|
379
388
|
if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) {
|
|
380
389
|
}
|
|
381
390
|
else {
|
|
391
|
+
this.parent.notify(events.documentClickClosedBy, { closedBy: "outside click" });
|
|
382
392
|
this.dialogObj.hide({ returnValue: true });
|
|
383
393
|
this.parent.isBlur = true;
|
|
384
394
|
dispatchEvent(this.parent.element, 'focusout');
|
|
@@ -393,6 +403,9 @@ var Audio = /** @class */ (function () {
|
|
|
393
403
|
this.prevSelectedAudEle.style.outline = '';
|
|
394
404
|
}
|
|
395
405
|
}
|
|
406
|
+
if (this.parent.inlineMode.enable && target && this.dialogObj && !closest(target, '#' + this.dialogObj.element.id)) {
|
|
407
|
+
this.dialogObj.hide();
|
|
408
|
+
}
|
|
396
409
|
};
|
|
397
410
|
Audio.prototype.alignmentSelect = function (e) {
|
|
398
411
|
var item = e.item;
|
|
@@ -425,7 +438,7 @@ var Audio = /** @class */ (function () {
|
|
|
425
438
|
}
|
|
426
439
|
var subCommand = (e.args.item) ?
|
|
427
440
|
e.args.item.subCommand : 'Break';
|
|
428
|
-
this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, subCommand: subCommand });
|
|
441
|
+
this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, { selectNode: e.selectNode, subCommand: subCommand });
|
|
429
442
|
};
|
|
430
443
|
Audio.prototype.inline = function (e) {
|
|
431
444
|
if (e.selectNode[0].nodeName !== 'AUDIO') {
|
|
@@ -433,7 +446,7 @@ var Audio = /** @class */ (function () {
|
|
|
433
446
|
}
|
|
434
447
|
var subCommand = (e.args.item) ?
|
|
435
448
|
e.args.item.subCommand : 'Inline';
|
|
436
|
-
this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, subCommand: subCommand });
|
|
449
|
+
this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, { selectNode: e.selectNode, subCommand: subCommand });
|
|
437
450
|
};
|
|
438
451
|
Audio.prototype.editAreaClickHandler = function (e) {
|
|
439
452
|
if (this.parent.readonly) {
|
|
@@ -573,7 +586,7 @@ var Audio = /** @class */ (function () {
|
|
|
573
586
|
_this.uploadObj.removing();
|
|
574
587
|
}
|
|
575
588
|
_this.parent.isBlur = false;
|
|
576
|
-
if (event && event.event.returnValue) {
|
|
589
|
+
if (event && !isNOU(event.event) && event.event.returnValue) {
|
|
577
590
|
if (_this.parent.editorMode === 'HTML') {
|
|
578
591
|
selection.restore();
|
|
579
592
|
}
|
|
@@ -640,6 +653,11 @@ var Audio = /** @class */ (function () {
|
|
|
640
653
|
}
|
|
641
654
|
}
|
|
642
655
|
});
|
|
656
|
+
if (e.selectNode && this.isAudioElem(e.selectNode[0])) {
|
|
657
|
+
var regex = new RegExp(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi);
|
|
658
|
+
var sourceElement = e.selectNode[0].querySelector('source');
|
|
659
|
+
this.inputUrl.value = sourceElement.src.match(regex) ? sourceElement.src : '';
|
|
660
|
+
}
|
|
643
661
|
audioUrl.appendChild(this.inputUrl);
|
|
644
662
|
return audioUrl;
|
|
645
663
|
};
|
|
@@ -833,7 +851,7 @@ var Audio = /** @class */ (function () {
|
|
|
833
851
|
* @method destroy
|
|
834
852
|
* @returns {void}
|
|
835
853
|
* @hidden
|
|
836
|
-
|
|
854
|
+
* @deprecated
|
|
837
855
|
*/
|
|
838
856
|
/* eslint-enable */
|
|
839
857
|
Audio.prototype.destroy = function () {
|
|
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
|
|
|
4
4
|
* Content module is used to render Rich Text Editor content
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class ContentRender implements IRenderer {
|
|
10
10
|
protected contentPanel: Element;
|
|
@@ -24,7 +24,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
24
24
|
*
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
renderPanel(): void;
|
|
30
30
|
/**
|
|
@@ -32,7 +32,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
32
32
|
*
|
|
33
33
|
* @returns {Element} - specifies the element.
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
getPanel(): Element;
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns {Element} - specifies the return element.
|
|
42
42
|
* @hidden
|
|
43
|
-
|
|
43
|
+
* @deprecated
|
|
44
44
|
*/
|
|
45
45
|
getEditPanel(): Element;
|
|
46
46
|
/**
|
|
@@ -55,7 +55,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
55
55
|
* @param {Element} panel - specifies the panel element.
|
|
56
56
|
* @returns {void}
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
setPanel(panel: Element): void;
|
|
61
61
|
/**
|
|
@@ -63,7 +63,7 @@ export declare class ContentRender implements IRenderer {
|
|
|
63
63
|
*
|
|
64
64
|
* @returns {Document} - specifies the document.
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
* @deprecated
|
|
67
67
|
*/
|
|
68
68
|
getDocument(): Document;
|
|
69
69
|
}
|
|
@@ -3,7 +3,7 @@ import { getEditValue } from '../base/util';
|
|
|
3
3
|
* Content module is used to render Rich Text Editor content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
var ContentRender = /** @class */ (function () {
|
|
9
9
|
/**
|
|
@@ -22,7 +22,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
ContentRender.prototype.renderPanel = function () {
|
|
28
28
|
var rteObj = this.parent;
|
|
@@ -45,7 +45,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
45
45
|
*
|
|
46
46
|
* @returns {Element} - specifies the element.
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
* @deprecated
|
|
49
49
|
*/
|
|
50
50
|
ContentRender.prototype.getPanel = function () {
|
|
51
51
|
return this.contentPanel;
|
|
@@ -55,7 +55,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
55
55
|
*
|
|
56
56
|
* @returns {Element} - specifies the return element.
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
* @deprecated
|
|
59
59
|
*/
|
|
60
60
|
ContentRender.prototype.getEditPanel = function () {
|
|
61
61
|
return this.editableElement;
|
|
@@ -75,7 +75,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
75
75
|
* @param {Element} panel - specifies the panel element.
|
|
76
76
|
* @returns {void}
|
|
77
77
|
* @hidden
|
|
78
|
-
|
|
78
|
+
* @deprecated
|
|
79
79
|
*/
|
|
80
80
|
ContentRender.prototype.setPanel = function (panel) {
|
|
81
81
|
this.contentPanel = panel;
|
|
@@ -85,7 +85,7 @@ var ContentRender = /** @class */ (function () {
|
|
|
85
85
|
*
|
|
86
86
|
* @returns {Document} - specifies the document.
|
|
87
87
|
* @hidden
|
|
88
|
-
|
|
88
|
+
* @deprecated
|
|
89
89
|
*/
|
|
90
90
|
ContentRender.prototype.getDocument = function () {
|
|
91
91
|
return this.getEditPanel().ownerDocument;
|
|
@@ -7,6 +7,7 @@ export declare class DialogRenderer {
|
|
|
7
7
|
dialogObj: Dialog;
|
|
8
8
|
private dialogEle;
|
|
9
9
|
private parent;
|
|
10
|
+
private outsideClickClosedBy;
|
|
10
11
|
constructor(parent?: IRichTextEditor);
|
|
11
12
|
protected addEventListener(): void;
|
|
12
13
|
protected removeEventListener(): void;
|
|
@@ -16,13 +17,14 @@ export declare class DialogRenderer {
|
|
|
16
17
|
* @param {DialogModel} e - specifies the dialog model.
|
|
17
18
|
* @returns {void}
|
|
18
19
|
* @hidden
|
|
19
|
-
|
|
20
|
+
* @deprecated
|
|
20
21
|
*/
|
|
21
22
|
render(e: DialogModel): Dialog;
|
|
22
23
|
private beforeOpen;
|
|
23
24
|
private handleEnterKeyDown;
|
|
24
25
|
private beforeOpenCallback;
|
|
25
26
|
private open;
|
|
27
|
+
private documentClickClosedBy;
|
|
26
28
|
private beforeClose;
|
|
27
29
|
private getDialogPosition;
|
|
28
30
|
/**
|
|
@@ -31,7 +33,7 @@ export declare class DialogRenderer {
|
|
|
31
33
|
* @param {Object} args - specifies the arguments.
|
|
32
34
|
* @returns {void}
|
|
33
35
|
* @hidden
|
|
34
|
-
|
|
36
|
+
* @deprecated
|
|
35
37
|
*/
|
|
36
38
|
close(args: Object): void;
|
|
37
39
|
private moduleDestroy;
|
|
@@ -15,6 +15,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
15
15
|
}
|
|
16
16
|
this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
|
|
17
17
|
this.parent.on(events.destroy, this.removeEventListener, this);
|
|
18
|
+
this.parent.on(events.documentClickClosedBy, this.documentClickClosedBy, this);
|
|
18
19
|
};
|
|
19
20
|
DialogRenderer.prototype.removeEventListener = function () {
|
|
20
21
|
if (this.parent.isDestroyed) {
|
|
@@ -22,6 +23,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
22
23
|
}
|
|
23
24
|
this.parent.off(events.destroy, this.removeEventListener);
|
|
24
25
|
this.parent.off(events.moduleDestroy, this.moduleDestroy);
|
|
26
|
+
this.parent.off(events.documentClickClosedBy, this.documentClickClosedBy);
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* dialog render method
|
|
@@ -29,13 +31,17 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
29
31
|
* @param {DialogModel} e - specifies the dialog model.
|
|
30
32
|
* @returns {void}
|
|
31
33
|
* @hidden
|
|
32
|
-
|
|
34
|
+
* @deprecated
|
|
33
35
|
*/
|
|
34
36
|
DialogRenderer.prototype.render = function (e) {
|
|
35
37
|
var dlgObj;
|
|
36
38
|
e.beforeOpen = this.beforeOpen.bind(this);
|
|
37
39
|
e.open = this.open.bind(this);
|
|
38
|
-
e.position = {
|
|
40
|
+
e.position = {
|
|
41
|
+
X: 'center',
|
|
42
|
+
Y: (e.target !== 'string' && e.target.nodeName === 'BODY' &&
|
|
43
|
+
!isNOU(e.position)) ? e.position.Y : this.getDialogPosition()
|
|
44
|
+
};
|
|
39
45
|
if (isNOU(e.close)) {
|
|
40
46
|
e.close = this.close.bind(this);
|
|
41
47
|
}
|
|
@@ -68,10 +74,14 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
68
74
|
DialogRenderer.prototype.open = function (args) {
|
|
69
75
|
this.parent.trigger(events.dialogOpen, args);
|
|
70
76
|
};
|
|
77
|
+
DialogRenderer.prototype.documentClickClosedBy = function (args) {
|
|
78
|
+
this.outsideClickClosedBy = args.closedBy;
|
|
79
|
+
};
|
|
71
80
|
DialogRenderer.prototype.beforeClose = function (args) {
|
|
72
81
|
if (this.dialogEle) {
|
|
73
82
|
this.dialogEle.removeEventListener('keydown', this.handleEnterKeyDown);
|
|
74
83
|
}
|
|
84
|
+
args.closedBy = this.outsideClickClosedBy === 'outside click' ? this.outsideClickClosedBy : args.closedBy;
|
|
75
85
|
this.parent.trigger(events.beforeDialogClose, args, function (closeArgs) {
|
|
76
86
|
if (!closeArgs.cancel) {
|
|
77
87
|
if (closeArgs.container.classList.contains('e-popup-close')) {
|
|
@@ -79,11 +89,21 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
79
89
|
}
|
|
80
90
|
}
|
|
81
91
|
});
|
|
92
|
+
this.outsideClickClosedBy = "";
|
|
82
93
|
};
|
|
83
94
|
DialogRenderer.prototype.getDialogPosition = function () {
|
|
84
95
|
var distanceFromVisibleTop = this.parent.element.getBoundingClientRect().top;
|
|
85
96
|
if (distanceFromVisibleTop < 0) {
|
|
86
|
-
|
|
97
|
+
var topHeight = 0;
|
|
98
|
+
var parentElement = this.parent.element;
|
|
99
|
+
while (parentElement.nodeName !== 'BODY') {
|
|
100
|
+
var top_1 = parentElement.getBoundingClientRect().top;
|
|
101
|
+
if (top_1 > 0) {
|
|
102
|
+
topHeight = top_1;
|
|
103
|
+
}
|
|
104
|
+
parentElement = parentElement.parentElement;
|
|
105
|
+
}
|
|
106
|
+
distanceFromVisibleTop = Math.abs(distanceFromVisibleTop) + topHeight;
|
|
87
107
|
return distanceFromVisibleTop.toString();
|
|
88
108
|
}
|
|
89
109
|
else {
|
|
@@ -96,7 +116,7 @@ var DialogRenderer = /** @class */ (function () {
|
|
|
96
116
|
* @param {Object} args - specifies the arguments.
|
|
97
117
|
* @returns {void}
|
|
98
118
|
* @hidden
|
|
99
|
-
|
|
119
|
+
* @deprecated
|
|
100
120
|
*/
|
|
101
121
|
DialogRenderer.prototype.close = function (args) {
|
|
102
122
|
this.parent.trigger(events.dialogClose, args);
|
|
@@ -3,14 +3,14 @@ import { ContentRender } from '../renderer/content-renderer';
|
|
|
3
3
|
* Content module is used to render Rich Text Editor content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class IframeContentRender extends ContentRender {
|
|
9
9
|
/**
|
|
10
10
|
* The function is used to render Rich Text Editor iframe
|
|
11
11
|
*
|
|
12
12
|
* @hidden
|
|
13
|
-
|
|
13
|
+
* @deprecated
|
|
14
14
|
*/
|
|
15
15
|
renderPanel(): void;
|
|
16
16
|
private setThemeColor;
|
|
@@ -19,7 +19,7 @@ export declare class IframeContentRender extends ContentRender {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns {Element} - specifies the element.
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
getEditPanel(): Element;
|
|
25
25
|
/**
|
|
@@ -27,7 +27,7 @@ export declare class IframeContentRender extends ContentRender {
|
|
|
27
27
|
*
|
|
28
28
|
* @returns {void}
|
|
29
29
|
* @hidden
|
|
30
|
-
|
|
30
|
+
* @deprecated
|
|
31
31
|
*/
|
|
32
32
|
getDocument(): Document;
|
|
33
33
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { ContentRender } from '../renderer/content-renderer';
|
|
15
15
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
16
16
|
import { getEditValue } from '../base/util';
|
|
17
|
-
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-
|
|
17
|
+
var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n <meta charset='utf-8' /> \n <style>\n @charset \"UTF-8\";\n body {\n font-family: \"Roboto\", sans-serif;\n font-size: 14px;\n }\n html, body{height: 100%;margin: 0;}\n body.e-cursor{cursor:default}\n span.e-selected-node\t{background-color: #939393;color: white;}\n span.e-selected-node.e-highlight {background-color: #1d9dd8;}\n body{color:#333;word-wrap:break-word;padding: 8px;box-sizing: border-box;}\n .e-rte-image, .e-rte-video {border: 0;cursor: pointer;display:\n block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-audio {border: 0;cursor: pointer;display:\n block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imginline, .e-rte-audio.e-audio-inline, .e-rte-video.e-video-inline {display: inline-block;float: none;\n margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));padding: 1px;vertical-align: bottom;}\n .e-rte-image.e-imgcenter, .e-rte-video.e-video-center {cursor: pointer;display: block;float: none;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-imgright, .e-rte-video.e-video-right { float: right; margin: 0 auto;margin-left: 5px;text-align: right;}\n .e-rte-image.e-imgleft, .e-rte-video.e-video-left {float: left;margin: 0 auto;margin-right: 5px;text-align: left;}\n .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}\n .e-img-caption.e-caption-inline {display: inline-block;float: none;\n margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));\n position: relativetext-align: center;vertical-align: bottom;}\n .e-rte-img-caption.e-imgcenter {display: contents; margin-left: auto; margin-right: auto;}\n .e-rte-img-caption.e-imgright {display: contents; margin-left: auto; margin-right: 0;}\n .e-rte-img-caption.e-imgleft {display: contents;margin-left: 0;margin-right: auto;}\n .e-img-caption.e-rte-img-caption.e-imgbreak {display: contents;}\n .e-img-inner {box-sizing: border-box;display: block;font-size: 16px;font-weight: initial;\n margin: auto;opacity: .9;text-align: center;width: 100%;}\n .e-img-wrap {display: inline-block;margin: auto;padding: 0;text-align: center;width: 100%;}\n .e-imgleft, .e-video-left {float: left;margin: 0 5px 0 0;text-align: left;}\n .e-imgright, .e-video-right {float: right;margin: 0 0 0 5px;text-align: right;}\n .e-imgcenter, .e-video-center {cursor: pointer;display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-control img:not(.e-resize) {border: 2px solid transparent; z-index: 1000}\n .e-imginline , .e-audio-inline, .e-video-inline {display: inline-block;float: none;margin-left: 5px;margin-right: 5px;\n max-width: calc(100% - (2 * 5px));vertical-align: bottom;}\n .e-imgbreak, .e-audio-break, .e-video-break {border: 0;cursor: pointer;\n display: block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}\n .e-rte-image.e-img-focus:not(.e-resize), .e-audio-focus:not(.e-resize), .e-video-focus:not(.e-resize) {border: solid 2px #4a90e2;}\n img.e-img-focus::selection, audio.e-audio-focus::selection, .e-video-focus::selection { background: transparent;color: transparent;}\n span.e-rte-imageboxmark, span.e-rte-videoboxmark { width: 10px; height: 10px; position: absolute; display: block;\n background: #4a90e2; border: 1px solid #fff; z-index: 1000;}\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark, .e-mob-rte.e-mob-span span.e-rte-videoboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-mob-rte span.e-rte-imageboxmark, .e-mob-rte span.e-rte-videoboxmark { background: #fff; border: 1px solid #4a90e2;\n border-radius: 15px; height: 20px; width: 20px; }\n .e-mob-rte.e-mob-span span.e-rte-imageboxmark, .e-mob-rte.e-mob-span span.e-rte-videoboxmark { background: #4a90e2; border: 1px solid #fff; }\n .e-rte-content .e-content img.e-resize, .e-rte-content .e-content video.e-resize { z-index: 1000; }\n .e-img-caption .e-img-inner { outline: 0; }\n .e-rte-img-caption.e-imgleft .e-img-inner { float: left; text-align: left; }\n .e-rte-img-caption.e-imgright .e-img-inner { float: right; text-align: right; }\n .e-rte-img-caption.e-imgleft .e-img-wrap, .e-rte-img-caption.e-imgright .e-img-wrap { display: contents; }\n .e-img-caption a:focus-visible { outline: none; }\n .e-rte-img-caption .e-rte-image.e-imgright { margin-left: auto; margin-right: 0; }\n .e-rte-img-caption .e-rte-image.e-imgleft { margin: 0; }\n body{box-sizing: border-box;min-height: 100px;outline: 0 solid transparent;\n overflow-x: auto;padding: 16px;position: relative;text-align: inherit;z-index: 2;}\n p{margin: 0 0 10px;margin-bottom: 10px;}\n li{margin-bottom: 10px;}\n 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 li ol, li ul { margin-block-start: 10px;}\n </style>\n </head>";
|
|
18
18
|
/**
|
|
19
19
|
* Content module is used to render Rich Text Editor content
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var IframeContentRender = /** @class */ (function (_super) {
|
|
25
25
|
__extends(IframeContentRender, _super);
|
|
@@ -30,7 +30,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
30
30
|
* The function is used to render Rich Text Editor iframe
|
|
31
31
|
*
|
|
32
32
|
* @hidden
|
|
33
|
-
|
|
33
|
+
* @deprecated
|
|
34
34
|
*/
|
|
35
35
|
IframeContentRender.prototype.renderPanel = function () {
|
|
36
36
|
var rteObj = this.parent;
|
|
@@ -44,6 +44,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
44
44
|
styles: 'display:block;',
|
|
45
45
|
attrs: { 'srcdoc': iFrameContent }
|
|
46
46
|
});
|
|
47
|
+
iframe.setAttribute("role", "none");
|
|
47
48
|
this.setPanel(iframe);
|
|
48
49
|
rteObj.element.appendChild(iframe);
|
|
49
50
|
iframe.contentDocument.body.id = this.parent.getID() + '_rte-edit-view';
|
|
@@ -65,7 +66,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
65
66
|
*
|
|
66
67
|
* @returns {Element} - specifies the element.
|
|
67
68
|
* @hidden
|
|
68
|
-
|
|
69
|
+
* @deprecated
|
|
69
70
|
*/
|
|
70
71
|
IframeContentRender.prototype.getEditPanel = function () {
|
|
71
72
|
var editNode;
|
|
@@ -82,7 +83,7 @@ var IframeContentRender = /** @class */ (function (_super) {
|
|
|
82
83
|
*
|
|
83
84
|
* @returns {void}
|
|
84
85
|
* @hidden
|
|
85
|
-
|
|
86
|
+
* @deprecated
|
|
86
87
|
*/
|
|
87
88
|
IframeContentRender.prototype.getDocument = function () {
|
|
88
89
|
return this.getEditPanel().ownerDocument;
|
|
@@ -30,7 +30,6 @@ export declare class Image {
|
|
|
30
30
|
private isAllowedTypes;
|
|
31
31
|
private pageX;
|
|
32
32
|
private pageY;
|
|
33
|
-
private mouseX;
|
|
34
33
|
private dialogRenderObj;
|
|
35
34
|
private deletedImg;
|
|
36
35
|
private changedWidthValue;
|
|
@@ -38,6 +37,8 @@ export declare class Image {
|
|
|
38
37
|
private inputWidthValue;
|
|
39
38
|
private inputHeightValue;
|
|
40
39
|
private removingImgName;
|
|
40
|
+
private currentResizeHandler;
|
|
41
|
+
private aspectRatio;
|
|
41
42
|
private constructor();
|
|
42
43
|
protected addEventListener(): void;
|
|
43
44
|
protected removeEventListener(): void;
|
|
@@ -56,9 +57,15 @@ export declare class Image {
|
|
|
56
57
|
private imgResizePos;
|
|
57
58
|
private calcPos;
|
|
58
59
|
private setAspectRatio;
|
|
60
|
+
private setImageWidth;
|
|
61
|
+
private setImageHeight;
|
|
62
|
+
private removeImageHeight;
|
|
63
|
+
private getImageDimension;
|
|
59
64
|
private pixToPerc;
|
|
60
65
|
private imgDupMouseMove;
|
|
61
66
|
private resizing;
|
|
67
|
+
private getResizeFactor;
|
|
68
|
+
private findAspectRatio;
|
|
62
69
|
private cancelResizeAction;
|
|
63
70
|
private resizeImgDupPos;
|
|
64
71
|
private resizeBtnInit;
|
|
@@ -67,6 +74,7 @@ export declare class Image {
|
|
|
67
74
|
private editImgLink;
|
|
68
75
|
private removeImgLink;
|
|
69
76
|
private onKeyDown;
|
|
77
|
+
private handleSelectAll;
|
|
70
78
|
private openDialog;
|
|
71
79
|
private showDialog;
|
|
72
80
|
private closeDialog;
|
|
@@ -162,7 +170,7 @@ export declare class Image {
|
|
|
162
170
|
* @method destroy
|
|
163
171
|
* @returns {void}
|
|
164
172
|
* @hidden
|
|
165
|
-
|
|
173
|
+
* @deprecated
|
|
166
174
|
*/
|
|
167
175
|
destroy(): void;
|
|
168
176
|
private moduleDestroy;
|