@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
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
* @hidden
|
|
8
8
|
* Defines the context or contexts in which styles will be copied.
|
|
9
9
|
*/
|
|
10
10
|
export declare type IFormatPainterContext = 'Text' | 'List' | 'Table';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
|
|
13
|
+
* @deprecated
|
|
14
14
|
* @hidden
|
|
15
15
|
* Defines the action values for format painter.
|
|
16
16
|
*/
|
|
@@ -6,7 +6,7 @@ import { IFormatPainterActionValue, IFormatPainterContext } from './enum';
|
|
|
6
6
|
* Specifies Command models interfaces.
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
export interface ICommandModel {
|
|
12
12
|
/**
|
|
@@ -26,7 +26,7 @@ export interface ICommandModel {
|
|
|
26
26
|
* Specifies IHtmlSubCommands interfaces.
|
|
27
27
|
*
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
export interface IHtmlSubCommands {
|
|
32
32
|
/**
|
|
@@ -65,7 +65,7 @@ export interface IHtmlSubCommands {
|
|
|
65
65
|
* Specifies IKeyboardActionArgs interfaces for command line.
|
|
66
66
|
*
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
export interface IKeyboardActionArgs extends KeyboardEvent {
|
|
71
71
|
/**
|
|
@@ -74,7 +74,7 @@ export interface IKeyboardActionArgs extends KeyboardEvent {
|
|
|
74
74
|
action: string;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
|
|
77
|
+
* @deprecated
|
|
78
78
|
*/
|
|
79
79
|
export interface IHtmlItem {
|
|
80
80
|
module?: string;
|
|
@@ -91,7 +91,7 @@ export interface IHtmlItem {
|
|
|
91
91
|
enterAction?: string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
|
|
94
|
+
* @deprecated
|
|
95
95
|
*/
|
|
96
96
|
export interface IHtmlItemArgs {
|
|
97
97
|
selection?: NodeSelection;
|
|
@@ -127,7 +127,7 @@ export interface IHtmlItemArgs {
|
|
|
127
127
|
ariaLabel?: string;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
|
|
130
|
+
* @deprecated
|
|
131
131
|
*/
|
|
132
132
|
export interface IHtmlUndoRedoData {
|
|
133
133
|
text?: DocumentFragment;
|
|
@@ -137,7 +137,7 @@ export interface IHtmlUndoRedoData {
|
|
|
137
137
|
* Specifies IHtmlKeyboardEvent interfaces.
|
|
138
138
|
*
|
|
139
139
|
* @hidden
|
|
140
|
-
|
|
140
|
+
* @deprecated
|
|
141
141
|
*/
|
|
142
142
|
export interface IHtmlKeyboardEvent {
|
|
143
143
|
/**
|
|
@@ -163,7 +163,7 @@ export interface IHtmlKeyboardEvent {
|
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
|
-
|
|
166
|
+
* @deprecated
|
|
167
167
|
* @hidden
|
|
168
168
|
*
|
|
169
169
|
*/
|
|
@@ -174,7 +174,7 @@ export interface IFormatPainterSettings {
|
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
|
-
|
|
177
|
+
* @deprecated
|
|
178
178
|
* @hidden
|
|
179
179
|
*
|
|
180
180
|
*/
|
|
@@ -227,3 +227,11 @@ export interface CSSPropCollection {
|
|
|
227
227
|
value: string;
|
|
228
228
|
priority: string;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @private
|
|
232
|
+
* @hidden
|
|
233
|
+
*/
|
|
234
|
+
export interface IHTMLMouseEventArgs {
|
|
235
|
+
name: string;
|
|
236
|
+
args: MouseEvent;
|
|
237
|
+
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Types type for EditorManager
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare type EditorExecCommand = 'Indents' | 'Lists' | 'Formats' | 'Alignments' | 'Links' | 'Images' | 'Font' | 'Style' | 'Clear' | 'Effects' | 'Casing' | 'InsertHtml' | 'InsertText' | 'Actions';
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Formats internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class Alignments {
|
|
9
9
|
private parent;
|
|
@@ -14,7 +14,7 @@ export declare class Alignments {
|
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element.
|
|
15
15
|
* @returns {void}
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
constructor(parent: EditorManager);
|
|
20
20
|
private addEventListener;
|
|
@@ -6,7 +6,7 @@ import { isIDevice, setEditFrameFocus } from '../../common/util';
|
|
|
6
6
|
* Formats internal component
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
var Alignments = /** @class */ (function () {
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ var Alignments = /** @class */ (function () {
|
|
|
15
15
|
* @param {EditorManager} parent - specifies the parent element.
|
|
16
16
|
* @returns {void}
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
function Alignments(parent) {
|
|
21
21
|
this.alignments = {
|
|
@@ -4,7 +4,7 @@ import { IHtmlItem } from './../base/interface';
|
|
|
4
4
|
* Audio internal component
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class AudioCommand {
|
|
10
10
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class AudioCommand {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
constructor(parent: EditorManager);
|
|
19
19
|
private addEventListener;
|
|
@@ -23,7 +23,7 @@ export declare class AudioCommand {
|
|
|
23
23
|
* @param {IHtmlItem} e - specifies the element
|
|
24
24
|
* @returns {void}
|
|
25
25
|
* @hidden
|
|
26
|
-
|
|
26
|
+
* @deprecated
|
|
27
27
|
*/
|
|
28
28
|
audioCommand(e: IHtmlItem): void;
|
|
29
29
|
private createAudio;
|
|
@@ -6,7 +6,7 @@ import { InsertHtml } from './inserthtml';
|
|
|
6
6
|
* Audio internal component
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
var AudioCommand = /** @class */ (function () {
|
|
12
12
|
/**
|
|
@@ -14,7 +14,7 @@ var AudioCommand = /** @class */ (function () {
|
|
|
14
14
|
*
|
|
15
15
|
* @param {EditorManager} parent - specifies the parent element
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
function AudioCommand(parent) {
|
|
20
20
|
this.parent = parent;
|
|
@@ -29,7 +29,7 @@ var AudioCommand = /** @class */ (function () {
|
|
|
29
29
|
* @param {IHtmlItem} e - specifies the element
|
|
30
30
|
* @returns {void}
|
|
31
31
|
* @hidden
|
|
32
|
-
|
|
32
|
+
* @deprecated
|
|
33
33
|
*/
|
|
34
34
|
AudioCommand.prototype.audioCommand = function (e) {
|
|
35
35
|
var selectNode;
|
|
@@ -113,9 +113,19 @@ var AudioCommand = /** @class */ (function () {
|
|
|
113
113
|
if (!isNOU(e.item.url)) {
|
|
114
114
|
sourceElement.setAttribute('src', e.item.url);
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
var fileExtension = e.item.fileName ? e.item.fileName.split('.').pop().toLowerCase() :
|
|
117
|
+
e.item.url ? e.item.url.split('.').pop().toLowerCase() : '';
|
|
118
|
+
if (fileExtension === 'opus') {
|
|
119
|
+
sourceElement.type = 'audio/ogg';
|
|
120
|
+
}
|
|
121
|
+
else if (fileExtension === 'm4a') {
|
|
122
|
+
sourceElement.type = 'audio/mp4';
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
sourceElement.type = e.item.fileName && e.item.fileName.split('.').length > 0 ?
|
|
126
|
+
'audio/' + e.item.fileName.split('.')[e.item.fileName.split('.').length - 1] :
|
|
127
|
+
e.item.url && e.item.url.split('.').length > 0 ? 'audio/' + e.item.url.split('.')[e.item.url.split('.').length - 1] : '';
|
|
128
|
+
}
|
|
119
129
|
};
|
|
120
130
|
AudioCommand.prototype.callBack = function (e) {
|
|
121
131
|
if (e.callBack) {
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Clear Format EXEC internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class ClearFormatExec {
|
|
9
9
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class ClearFormatExec {
|
|
|
13
13
|
* @param {EditorManager} parent - specifies the parent element.
|
|
14
14
|
* @returns {void}
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
constructor(parent: EditorManager);
|
|
19
19
|
private addEventListener;
|
|
@@ -5,7 +5,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
5
5
|
* Clear Format EXEC internal component
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var ClearFormatExec = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -14,7 +14,7 @@ var ClearFormatExec = /** @class */ (function () {
|
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element.
|
|
15
15
|
* @returns {void}
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
function ClearFormatExec(parent) {
|
|
20
20
|
this.parent = parent;
|
|
@@ -15,7 +15,7 @@ export declare class ClearFormat {
|
|
|
15
15
|
* @param {string} command - specifies the command value
|
|
16
16
|
* @returns {void}
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
static clear(docElement: Document, endNode: Node, enterAction: string, selector?: string, command?: string): void;
|
|
21
21
|
private static reSelection;
|
|
@@ -21,7 +21,7 @@ var ClearFormat = /** @class */ (function () {
|
|
|
21
21
|
* @param {string} command - specifies the command value
|
|
22
22
|
* @returns {void}
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
ClearFormat.clear = function (docElement, endNode, enterAction, selector, command) {
|
|
27
27
|
this.domNode = new DOMNode(endNode, docElement);
|
|
@@ -6,7 +6,7 @@ export declare const markerClassName: {
|
|
|
6
6
|
* DOMNode internal plugin
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
export declare class DOMNode {
|
|
12
12
|
private parent;
|
|
@@ -18,7 +18,7 @@ export declare class DOMNode {
|
|
|
18
18
|
* @param {Element} parent - specifies the parent element
|
|
19
19
|
* @param {Document} currentDocument - specifies the current document.
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
constructor(parent: Element, currentDocument: Document);
|
|
24
24
|
/**
|
|
@@ -27,7 +27,7 @@ export declare class DOMNode {
|
|
|
27
27
|
* @param {Element} element - specifies the element.
|
|
28
28
|
* @returns {void}
|
|
29
29
|
* @hidden
|
|
30
|
-
|
|
30
|
+
* @deprecated
|
|
31
31
|
*/
|
|
32
32
|
contents(element: Element): Node[];
|
|
33
33
|
/**
|
|
@@ -36,7 +36,7 @@ export declare class DOMNode {
|
|
|
36
36
|
* @param {Element} element - specifies the node element.
|
|
37
37
|
* @returns {boolean} - sepcifies the boolean value
|
|
38
38
|
* @hidden
|
|
39
|
-
|
|
39
|
+
* @deprecated
|
|
40
40
|
*/
|
|
41
41
|
isBlockNode(element: Element): boolean;
|
|
42
42
|
/**
|
|
@@ -45,7 +45,7 @@ export declare class DOMNode {
|
|
|
45
45
|
* @param {Element} element - specifies the element
|
|
46
46
|
* @returns {boolean} - specifies the boolean value
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
* @deprecated
|
|
49
49
|
*/
|
|
50
50
|
isLink(element: Element): boolean;
|
|
51
51
|
/**
|
|
@@ -54,7 +54,7 @@ export declare class DOMNode {
|
|
|
54
54
|
* @param {Element} element - specifies the element
|
|
55
55
|
* @returns {Element} - returns the element value
|
|
56
56
|
* @hidden
|
|
57
|
-
|
|
57
|
+
* @deprecated
|
|
58
58
|
*/
|
|
59
59
|
blockParentNode(element: Element): Element;
|
|
60
60
|
/**
|
|
@@ -63,7 +63,7 @@ export declare class DOMNode {
|
|
|
63
63
|
* @param {Element} element - specifies the element
|
|
64
64
|
* @returns {string} - returns the string value
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
* @deprecated
|
|
67
67
|
*/
|
|
68
68
|
rawAttributes(element: Element): {
|
|
69
69
|
[key: string]: string;
|
|
@@ -74,7 +74,7 @@ export declare class DOMNode {
|
|
|
74
74
|
* @param {Element} element - sepcifies the element.
|
|
75
75
|
* @returns {string} - returns the string value.
|
|
76
76
|
* @hidden
|
|
77
|
-
|
|
77
|
+
* @deprecated
|
|
78
78
|
*/
|
|
79
79
|
attributes(element?: Element): string;
|
|
80
80
|
/**
|
|
@@ -83,7 +83,7 @@ export declare class DOMNode {
|
|
|
83
83
|
* @param {Element} element - specifies the element
|
|
84
84
|
* @returns {void}
|
|
85
85
|
* @hidden
|
|
86
|
-
|
|
86
|
+
* @deprecated
|
|
87
87
|
*/
|
|
88
88
|
clearAttributes(element: Element): void;
|
|
89
89
|
/**
|
|
@@ -92,7 +92,7 @@ export declare class DOMNode {
|
|
|
92
92
|
* @param {Element} element - specifies the element.
|
|
93
93
|
* @returns {string} - returns the string
|
|
94
94
|
* @hidden
|
|
95
|
-
|
|
95
|
+
* @deprecated
|
|
96
96
|
*/
|
|
97
97
|
openTagString(element: Element): string;
|
|
98
98
|
/**
|
|
@@ -101,7 +101,7 @@ export declare class DOMNode {
|
|
|
101
101
|
* @param {Element} element - specifies the element
|
|
102
102
|
* @returns {string} - returns the string value
|
|
103
103
|
* @hidden
|
|
104
|
-
|
|
104
|
+
* @deprecated
|
|
105
105
|
*/
|
|
106
106
|
closeTagString(element: Element): string;
|
|
107
107
|
/**
|
|
@@ -112,7 +112,7 @@ export declare class DOMNode {
|
|
|
112
112
|
* @param {string} innerHTML - specifies the string value
|
|
113
113
|
* @returns {string} - returns the string value.
|
|
114
114
|
* @hidden
|
|
115
|
-
|
|
115
|
+
* @deprecated
|
|
116
116
|
*/
|
|
117
117
|
createTagString(tagName: string, relativeElement: Element, innerHTML: string): string;
|
|
118
118
|
/**
|
|
@@ -121,7 +121,7 @@ export declare class DOMNode {
|
|
|
121
121
|
* @param {Element} element - specifes the element.
|
|
122
122
|
* @returns {boolean} - returns the boolean value
|
|
123
123
|
* @hidden
|
|
124
|
-
|
|
124
|
+
* @deprecated
|
|
125
125
|
*/
|
|
126
126
|
isList(element: Element): boolean;
|
|
127
127
|
/**
|
|
@@ -130,7 +130,7 @@ export declare class DOMNode {
|
|
|
130
130
|
* @param {Element} element - specifes the element.
|
|
131
131
|
* @returns {boolean} - returns the boolean value
|
|
132
132
|
* @hidden
|
|
133
|
-
|
|
133
|
+
* @deprecated
|
|
134
134
|
*/
|
|
135
135
|
isElement(element: Element): boolean;
|
|
136
136
|
/**
|
|
@@ -139,7 +139,7 @@ export declare class DOMNode {
|
|
|
139
139
|
* @param {Element} element - specifes the element.
|
|
140
140
|
* @returns {boolean} - returns the boolean value
|
|
141
141
|
* @hidden
|
|
142
|
-
|
|
142
|
+
* @deprecated
|
|
143
143
|
*/
|
|
144
144
|
isEditable(element: Element): boolean;
|
|
145
145
|
/**
|
|
@@ -149,7 +149,7 @@ export declare class DOMNode {
|
|
|
149
149
|
* @param {string} className - specifies the class name value
|
|
150
150
|
* @returns {boolean} - returns the boolean value
|
|
151
151
|
* @hidden
|
|
152
|
-
|
|
152
|
+
* @deprecated
|
|
153
153
|
*/
|
|
154
154
|
hasClass(element: Element, className: string): boolean;
|
|
155
155
|
/**
|
|
@@ -159,7 +159,7 @@ export declare class DOMNode {
|
|
|
159
159
|
* @param {string} value - specifies the string value
|
|
160
160
|
* @returns {void}
|
|
161
161
|
* @hidden
|
|
162
|
-
|
|
162
|
+
* @deprecated
|
|
163
163
|
*/
|
|
164
164
|
replaceWith(element: Element, value: string): void;
|
|
165
165
|
/**
|
|
@@ -168,7 +168,7 @@ export declare class DOMNode {
|
|
|
168
168
|
* @param {string} value - specifies the string value
|
|
169
169
|
* @returns {Element} - returns the element
|
|
170
170
|
* @hidden
|
|
171
|
-
|
|
171
|
+
* @deprecated
|
|
172
172
|
*/
|
|
173
173
|
parseHTMLFragment(value: string): Element;
|
|
174
174
|
/**
|
|
@@ -178,7 +178,7 @@ export declare class DOMNode {
|
|
|
178
178
|
* @param {Element} wrapper - specifies the element.
|
|
179
179
|
* @returns {Element} - returns the element
|
|
180
180
|
* @hidden
|
|
181
|
-
|
|
181
|
+
* @deprecated
|
|
182
182
|
*/
|
|
183
183
|
wrap(element: Element, wrapper: Element): Element;
|
|
184
184
|
/**
|
|
@@ -188,7 +188,7 @@ export declare class DOMNode {
|
|
|
188
188
|
* @param {Element} referenceNode - specifies the referenece node
|
|
189
189
|
* @returns {void}
|
|
190
190
|
* @hidden
|
|
191
|
-
|
|
191
|
+
* @deprecated
|
|
192
192
|
*/
|
|
193
193
|
insertAfter(newNode: Element, referenceNode: Element): void;
|
|
194
194
|
/**
|
|
@@ -198,7 +198,7 @@ export declare class DOMNode {
|
|
|
198
198
|
* @param {Element} wrapper - specifies the wrapper element.
|
|
199
199
|
* @returns {Element} - returns the element
|
|
200
200
|
* @hidden
|
|
201
|
-
|
|
201
|
+
* @deprecated
|
|
202
202
|
*/
|
|
203
203
|
wrapInner(parent: Element, wrapper: Element): Element;
|
|
204
204
|
/**
|
|
@@ -207,7 +207,7 @@ export declare class DOMNode {
|
|
|
207
207
|
* @param {Element} element - specifies the element.
|
|
208
208
|
* @returns {Element} - returns the element.
|
|
209
209
|
* @hidden
|
|
210
|
-
|
|
210
|
+
* @deprecated
|
|
211
211
|
*/
|
|
212
212
|
unWrap(element: Element): Element[];
|
|
213
213
|
/**
|
|
@@ -217,7 +217,7 @@ export declare class DOMNode {
|
|
|
217
217
|
* @param {number} index - specifies the index value.
|
|
218
218
|
* @returns {Element} - returns the element
|
|
219
219
|
* @hidden
|
|
220
|
-
|
|
220
|
+
* @deprecated
|
|
221
221
|
*/
|
|
222
222
|
getSelectedNode(element: Element, index: number): Element;
|
|
223
223
|
/**
|
|
@@ -227,7 +227,7 @@ export declare class DOMNode {
|
|
|
227
227
|
* @param {Element[]} elements - specifies the array of elements
|
|
228
228
|
* @returns {Element[]} - returnts the array elements
|
|
229
229
|
* @hidden
|
|
230
|
-
|
|
230
|
+
* @deprecated
|
|
231
231
|
*/
|
|
232
232
|
nodeFinds(element: Element, elements: Element[]): Element[];
|
|
233
233
|
/**
|
|
@@ -235,7 +235,7 @@ export declare class DOMNode {
|
|
|
235
235
|
*
|
|
236
236
|
* @returns {boolean} - returns the boolean value
|
|
237
237
|
* @hidden
|
|
238
|
-
|
|
238
|
+
* @deprecated
|
|
239
239
|
*/
|
|
240
240
|
isEditorArea(): boolean;
|
|
241
241
|
/**
|
|
@@ -244,7 +244,7 @@ export declare class DOMNode {
|
|
|
244
244
|
* @param {number} point - specifies the number value.
|
|
245
245
|
* @returns {Range} - returns the range.
|
|
246
246
|
* @hidden
|
|
247
|
-
|
|
247
|
+
* @deprecated
|
|
248
248
|
*/
|
|
249
249
|
getRangePoint(point?: number): Range | Range[];
|
|
250
250
|
getSelection(): Selection;
|
|
@@ -254,7 +254,7 @@ export declare class DOMNode {
|
|
|
254
254
|
* @param {Element} element - specifies the element
|
|
255
255
|
* @returns {Element} - returns the element
|
|
256
256
|
* @hidden
|
|
257
|
-
|
|
257
|
+
* @deprecated
|
|
258
258
|
*/
|
|
259
259
|
getPreviousNode(element: Element): Element;
|
|
260
260
|
/**
|
|
@@ -263,7 +263,7 @@ export declare class DOMNode {
|
|
|
263
263
|
* @param {string} value - specifies the string value
|
|
264
264
|
* @returns {string} - specifies the string value
|
|
265
265
|
* @hidden
|
|
266
|
-
|
|
266
|
+
* @deprecated
|
|
267
267
|
*/
|
|
268
268
|
encode(value: string): string;
|
|
269
269
|
/**
|
|
@@ -273,7 +273,7 @@ export declare class DOMNode {
|
|
|
273
273
|
* @param {string} action - specifies the action value.
|
|
274
274
|
* @returns {NodeSelection} - returns the value
|
|
275
275
|
* @hidden
|
|
276
|
-
|
|
276
|
+
* @deprecated
|
|
277
277
|
*/
|
|
278
278
|
saveMarker(save: NodeSelection, action?: string): NodeSelection;
|
|
279
279
|
private marker;
|
|
@@ -283,7 +283,7 @@ export declare class DOMNode {
|
|
|
283
283
|
* @param {NodeSelection} save - specifies the node selection.
|
|
284
284
|
* @returns {void}
|
|
285
285
|
* @hidden
|
|
286
|
-
|
|
286
|
+
* @deprecated
|
|
287
287
|
*/
|
|
288
288
|
setMarker(save: NodeSelection): void;
|
|
289
289
|
/**
|
|
@@ -294,7 +294,7 @@ export declare class DOMNode {
|
|
|
294
294
|
* @param {Range} range - specifies the range value
|
|
295
295
|
* @returns {void}
|
|
296
296
|
* @hidden
|
|
297
|
-
|
|
297
|
+
* @deprecated
|
|
298
298
|
*/
|
|
299
299
|
ensureSelfClosingTag(start: Element, className: string, range: Range): void;
|
|
300
300
|
/**
|
|
@@ -303,7 +303,7 @@ export declare class DOMNode {
|
|
|
303
303
|
* @param {Element} element - specifies the element.
|
|
304
304
|
* @returns {Element} - returns the element
|
|
305
305
|
* @hidden
|
|
306
|
-
|
|
306
|
+
* @deprecated
|
|
307
307
|
*/
|
|
308
308
|
createTempNode(element: Element): Element;
|
|
309
309
|
/**
|
|
@@ -311,16 +311,20 @@ export declare class DOMNode {
|
|
|
311
311
|
*
|
|
312
312
|
* @returns {void}
|
|
313
313
|
* @hidden
|
|
314
|
-
|
|
314
|
+
* @deprecated
|
|
315
315
|
*/
|
|
316
316
|
getImageTagInSelection(): NodeListOf<HTMLImageElement>;
|
|
317
317
|
/**
|
|
318
318
|
* blockNodes method
|
|
319
319
|
*
|
|
320
|
+
* @param {boolean} action - Optional Boolean that specifies the action is whether performed.
|
|
320
321
|
* @returns {Node[]} - returns the node array values
|
|
321
322
|
* @hidden
|
|
322
|
-
|
|
323
|
+
* @deprecated
|
|
323
324
|
*/
|
|
324
|
-
blockNodes(): Node[];
|
|
325
|
+
blockNodes(action?: boolean): Node[];
|
|
325
326
|
private ignoreTableTag;
|
|
327
|
+
private getPreBlockNodeCollection;
|
|
328
|
+
private getClosestInlineParent;
|
|
329
|
+
private wrapWithBlockNode;
|
|
326
330
|
}
|