@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
|
@@ -21,7 +21,7 @@ export declare class NodeSelection {
|
|
|
21
21
|
* @param {Document} docElement - specifies the get function
|
|
22
22
|
* @returns {void}
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
get(docElement: Document): Selection;
|
|
27
27
|
/**
|
|
@@ -31,7 +31,7 @@ export declare class NodeSelection {
|
|
|
31
31
|
* @param {Document} docElement - specifies the document.
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
save(range: Range, docElement: Document): NodeSelection;
|
|
37
37
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class NodeSelection {
|
|
|
40
40
|
* @param {Node} node - specifies the node value.
|
|
41
41
|
* @returns {void}
|
|
42
42
|
* @hidden
|
|
43
|
-
|
|
43
|
+
* @deprecated
|
|
44
44
|
*/
|
|
45
45
|
getIndex(node: Node): number;
|
|
46
46
|
private isChildNode;
|
|
@@ -51,7 +51,7 @@ export declare class NodeSelection {
|
|
|
51
51
|
* @param {Range} range -specifies the range.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
getNodeCollection(range: Range): Node[];
|
|
57
57
|
/**
|
|
@@ -60,7 +60,7 @@ export declare class NodeSelection {
|
|
|
60
60
|
* @param {Range} range - specifies the range value.
|
|
61
61
|
* @returns {void}
|
|
62
62
|
* @hidden
|
|
63
|
-
|
|
63
|
+
* @deprecated
|
|
64
64
|
*/
|
|
65
65
|
getParentNodeCollection(range: Range): Node[];
|
|
66
66
|
/**
|
|
@@ -70,7 +70,7 @@ export declare class NodeSelection {
|
|
|
70
70
|
* @param {Range} range - specifies the range values.
|
|
71
71
|
* @returns {void}
|
|
72
72
|
* @hidden
|
|
73
|
-
|
|
73
|
+
* @deprecated
|
|
74
74
|
*/
|
|
75
75
|
getParentNodes(nodeCollection: Node[], range: Range): Node[];
|
|
76
76
|
/**
|
|
@@ -79,7 +79,7 @@ export declare class NodeSelection {
|
|
|
79
79
|
* @param {Range} range - specifies the range value.
|
|
80
80
|
* @returns {void}
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
* @deprecated
|
|
83
83
|
*/
|
|
84
84
|
getSelectionNodeCollection(range: Range): Node[];
|
|
85
85
|
/**
|
|
@@ -88,7 +88,7 @@ export declare class NodeSelection {
|
|
|
88
88
|
* @param {Range} range - specifies the range value.
|
|
89
89
|
* @returns {void}
|
|
90
90
|
* @hidden
|
|
91
|
-
|
|
91
|
+
* @deprecated
|
|
92
92
|
*/
|
|
93
93
|
getSelectionNodeCollectionBr(range: Range): Node[];
|
|
94
94
|
/**
|
|
@@ -97,7 +97,7 @@ export declare class NodeSelection {
|
|
|
97
97
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
98
98
|
* @returns {void}
|
|
99
99
|
* @hidden
|
|
100
|
-
|
|
100
|
+
* @deprecated
|
|
101
101
|
*/
|
|
102
102
|
getSelectionNodes(nodeCollection: Node[]): Node[];
|
|
103
103
|
/**
|
|
@@ -106,7 +106,7 @@ export declare class NodeSelection {
|
|
|
106
106
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
107
107
|
* @returns {void}
|
|
108
108
|
* @hidden
|
|
109
|
-
|
|
109
|
+
* @deprecated
|
|
110
110
|
*/
|
|
111
111
|
getSelectionNodesBr(nodeCollection: Node[]): Node[];
|
|
112
112
|
/**
|
|
@@ -115,7 +115,7 @@ export declare class NodeSelection {
|
|
|
115
115
|
* @param {Range} range - specifies the range value.
|
|
116
116
|
* @returns {void}
|
|
117
117
|
* @hidden
|
|
118
|
-
|
|
118
|
+
* @deprecated
|
|
119
119
|
*/
|
|
120
120
|
getInsertNodeCollection(range: Range): Node[];
|
|
121
121
|
/**
|
|
@@ -124,7 +124,7 @@ export declare class NodeSelection {
|
|
|
124
124
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
125
125
|
* @returns {void}
|
|
126
126
|
* @hidden
|
|
127
|
-
|
|
127
|
+
* @deprecated
|
|
128
128
|
*/
|
|
129
129
|
getInsertNodes(nodeCollection: Node[]): Node[];
|
|
130
130
|
/**
|
|
@@ -135,7 +135,7 @@ export declare class NodeSelection {
|
|
|
135
135
|
* @param {Document} root - specifies the root document.
|
|
136
136
|
* @returns {void}
|
|
137
137
|
* @hidden
|
|
138
|
-
|
|
138
|
+
* @deprecated
|
|
139
139
|
*/
|
|
140
140
|
getNodeArray(node: Node, isStart: boolean, root?: Document): number[];
|
|
141
141
|
private setRangePoint;
|
|
@@ -144,7 +144,7 @@ export declare class NodeSelection {
|
|
|
144
144
|
*
|
|
145
145
|
* @returns {void}
|
|
146
146
|
* @hidden
|
|
147
|
-
|
|
147
|
+
* @deprecated
|
|
148
148
|
*/
|
|
149
149
|
restore(): Range;
|
|
150
150
|
selectRange(docElement: Document, range: Range): void;
|
|
@@ -155,7 +155,7 @@ export declare class NodeSelection {
|
|
|
155
155
|
* @param {Range} range - specifies the range.
|
|
156
156
|
* @returns {void}
|
|
157
157
|
* @hidden
|
|
158
|
-
|
|
158
|
+
* @deprecated
|
|
159
159
|
*/
|
|
160
160
|
setRange(docElement: Document, range: Range): void;
|
|
161
161
|
/**
|
|
@@ -168,7 +168,7 @@ export declare class NodeSelection {
|
|
|
168
168
|
* @param {number} endIndex - specifies the end index.
|
|
169
169
|
* @returns {void}
|
|
170
170
|
* @hidden
|
|
171
|
-
|
|
171
|
+
* @deprecated
|
|
172
172
|
*/
|
|
173
173
|
setSelectionText(docElement: Document, startNode: Node, endNode: Node, startIndex: number, endIndex: number): void;
|
|
174
174
|
/**
|
|
@@ -178,7 +178,7 @@ export declare class NodeSelection {
|
|
|
178
178
|
* @param {Node} element - specifies the node.
|
|
179
179
|
* @returns {void}
|
|
180
180
|
* @hidden
|
|
181
|
-
|
|
181
|
+
* @deprecated
|
|
182
182
|
*/
|
|
183
183
|
setSelectionContents(docElement: Document, element: Node): void;
|
|
184
184
|
/**
|
|
@@ -188,7 +188,7 @@ export declare class NodeSelection {
|
|
|
188
188
|
* @param {Node} element - specifies the node.
|
|
189
189
|
* @returns {void}
|
|
190
190
|
* @hidden
|
|
191
|
-
|
|
191
|
+
* @deprecated
|
|
192
192
|
*/
|
|
193
193
|
setSelectionNode(docElement: Document, element: Node): void;
|
|
194
194
|
/**
|
|
@@ -197,7 +197,7 @@ export declare class NodeSelection {
|
|
|
197
197
|
* @param {Document} docElement - specifies the document.
|
|
198
198
|
* @returns {void}
|
|
199
199
|
* @hidden
|
|
200
|
-
|
|
200
|
+
* @deprecated
|
|
201
201
|
*/
|
|
202
202
|
getSelectedNodes(docElement: Document): Node[];
|
|
203
203
|
/**
|
|
@@ -206,7 +206,7 @@ export declare class NodeSelection {
|
|
|
206
206
|
* @param {Document} docElement - specifies the document.
|
|
207
207
|
* @returns {void}
|
|
208
208
|
* @hidden
|
|
209
|
-
|
|
209
|
+
* @deprecated
|
|
210
210
|
*/
|
|
211
211
|
Clear(docElement: Document): void;
|
|
212
212
|
/**
|
|
@@ -217,7 +217,7 @@ export declare class NodeSelection {
|
|
|
217
217
|
* @param {Range} range - specifies the range.
|
|
218
218
|
* @returns {void}
|
|
219
219
|
* @hidden
|
|
220
|
-
|
|
220
|
+
* @deprecated
|
|
221
221
|
*/
|
|
222
222
|
insertParentNode(docElement: Document, newNode: Node, range: Range): void;
|
|
223
223
|
/**
|
|
@@ -228,7 +228,7 @@ export declare class NodeSelection {
|
|
|
228
228
|
* @param {number} point - specifies the point.
|
|
229
229
|
* @returns {void}
|
|
230
230
|
* @hidden
|
|
231
|
-
|
|
231
|
+
* @deprecated
|
|
232
232
|
*/
|
|
233
233
|
setCursorPoint(docElement: Document, element: Element, point: number): void;
|
|
234
234
|
}
|
|
@@ -35,7 +35,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
35
35
|
* @param {Document} docElement - specifies the get function
|
|
36
36
|
* @returns {void}
|
|
37
37
|
* @hidden
|
|
38
|
-
|
|
38
|
+
* @deprecated
|
|
39
39
|
*/
|
|
40
40
|
NodeSelection.prototype.get = function (docElement) {
|
|
41
41
|
return docElement.defaultView.getSelection();
|
|
@@ -47,7 +47,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
47
47
|
* @param {Document} docElement - specifies the document.
|
|
48
48
|
* @returns {void}
|
|
49
49
|
* @hidden
|
|
50
|
-
|
|
50
|
+
* @deprecated
|
|
51
51
|
*/
|
|
52
52
|
NodeSelection.prototype.save = function (range, docElement) {
|
|
53
53
|
range = (range) ? range.cloneRange() : this.getRange(docElement);
|
|
@@ -59,7 +59,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
59
59
|
* @param {Node} node - specifies the node value.
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
NodeSelection.prototype.getIndex = function (node) {
|
|
65
65
|
var index;
|
|
@@ -90,6 +90,9 @@ var NodeSelection = /** @class */ (function () {
|
|
|
90
90
|
|| this.isChildNode(nodeCollection, startNode))) {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
+
if (startNode.nodeType === 3 && startNode.previousSibling === endNode && endNode.nodeName === 'IMG') {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
93
96
|
if (nodeCollection.indexOf(startNode.firstChild) === -1 && startNode.firstChild && !this.isChildNode(nodeCollection, startNode)) {
|
|
94
97
|
return startNode.firstChild;
|
|
95
98
|
}
|
|
@@ -109,7 +112,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
109
112
|
* @param {Range} range -specifies the range.
|
|
110
113
|
* @returns {void}
|
|
111
114
|
* @hidden
|
|
112
|
-
|
|
115
|
+
* @deprecated
|
|
113
116
|
*/
|
|
114
117
|
NodeSelection.prototype.getNodeCollection = function (range) {
|
|
115
118
|
var startNode = range.startContainer.childNodes[range.startOffset]
|
|
@@ -138,7 +141,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
138
141
|
* @param {Range} range - specifies the range value.
|
|
139
142
|
* @returns {void}
|
|
140
143
|
* @hidden
|
|
141
|
-
|
|
144
|
+
* @deprecated
|
|
142
145
|
*/
|
|
143
146
|
NodeSelection.prototype.getParentNodeCollection = function (range) {
|
|
144
147
|
return this.getParentNodes(this.getNodeCollection(range), range);
|
|
@@ -150,7 +153,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
150
153
|
* @param {Range} range - specifies the range values.
|
|
151
154
|
* @returns {void}
|
|
152
155
|
* @hidden
|
|
153
|
-
|
|
156
|
+
* @deprecated
|
|
154
157
|
*/
|
|
155
158
|
NodeSelection.prototype.getParentNodes = function (nodeCollection, range) {
|
|
156
159
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -174,7 +177,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
174
177
|
* @param {Range} range - specifies the range value.
|
|
175
178
|
* @returns {void}
|
|
176
179
|
* @hidden
|
|
177
|
-
|
|
180
|
+
* @deprecated
|
|
178
181
|
*/
|
|
179
182
|
NodeSelection.prototype.getSelectionNodeCollection = function (range) {
|
|
180
183
|
return this.getSelectionNodes(this.getNodeCollection(range));
|
|
@@ -185,7 +188,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
185
188
|
* @param {Range} range - specifies the range value.
|
|
186
189
|
* @returns {void}
|
|
187
190
|
* @hidden
|
|
188
|
-
|
|
191
|
+
* @deprecated
|
|
189
192
|
*/
|
|
190
193
|
NodeSelection.prototype.getSelectionNodeCollectionBr = function (range) {
|
|
191
194
|
return this.getSelectionNodesBr(this.getNodeCollection(range));
|
|
@@ -196,7 +199,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
196
199
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
197
200
|
* @returns {void}
|
|
198
201
|
* @hidden
|
|
199
|
-
|
|
202
|
+
* @deprecated
|
|
200
203
|
*/
|
|
201
204
|
NodeSelection.prototype.getSelectionNodes = function (nodeCollection) {
|
|
202
205
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -217,7 +220,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
217
220
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
218
221
|
* @returns {void}
|
|
219
222
|
* @hidden
|
|
220
|
-
|
|
223
|
+
* @deprecated
|
|
221
224
|
*/
|
|
222
225
|
NodeSelection.prototype.getSelectionNodesBr = function (nodeCollection) {
|
|
223
226
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -239,7 +242,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
239
242
|
* @param {Range} range - specifies the range value.
|
|
240
243
|
* @returns {void}
|
|
241
244
|
* @hidden
|
|
242
|
-
|
|
245
|
+
* @deprecated
|
|
243
246
|
*/
|
|
244
247
|
NodeSelection.prototype.getInsertNodeCollection = function (range) {
|
|
245
248
|
return this.getInsertNodes(this.getNodeCollection(range));
|
|
@@ -250,7 +253,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
250
253
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
251
254
|
* @returns {void}
|
|
252
255
|
* @hidden
|
|
253
|
-
|
|
256
|
+
* @deprecated
|
|
254
257
|
*/
|
|
255
258
|
NodeSelection.prototype.getInsertNodes = function (nodeCollection) {
|
|
256
259
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -273,7 +276,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
273
276
|
* @param {Document} root - specifies the root document.
|
|
274
277
|
* @returns {void}
|
|
275
278
|
* @hidden
|
|
276
|
-
|
|
279
|
+
* @deprecated
|
|
277
280
|
*/
|
|
278
281
|
NodeSelection.prototype.getNodeArray = function (node, isStart, root) {
|
|
279
282
|
var array = [];
|
|
@@ -310,7 +313,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
310
313
|
*
|
|
311
314
|
* @returns {void}
|
|
312
315
|
* @hidden
|
|
313
|
-
|
|
316
|
+
* @deprecated
|
|
314
317
|
*/
|
|
315
318
|
NodeSelection.prototype.restore = function () {
|
|
316
319
|
var range = this.range.cloneRange();
|
|
@@ -330,7 +333,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
330
333
|
* @param {Range} range - specifies the range.
|
|
331
334
|
* @returns {void}
|
|
332
335
|
* @hidden
|
|
333
|
-
|
|
336
|
+
* @deprecated
|
|
334
337
|
*/
|
|
335
338
|
NodeSelection.prototype.setRange = function (docElement, range) {
|
|
336
339
|
var selection = this.get(docElement);
|
|
@@ -347,7 +350,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
347
350
|
* @param {number} endIndex - specifies the end index.
|
|
348
351
|
* @returns {void}
|
|
349
352
|
* @hidden
|
|
350
|
-
|
|
353
|
+
* @deprecated
|
|
351
354
|
*/
|
|
352
355
|
NodeSelection.prototype.setSelectionText = function (docElement, startNode, endNode, startIndex, endIndex) {
|
|
353
356
|
var range = docElement.createRange();
|
|
@@ -362,7 +365,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
362
365
|
* @param {Node} element - specifies the node.
|
|
363
366
|
* @returns {void}
|
|
364
367
|
* @hidden
|
|
365
|
-
|
|
368
|
+
* @deprecated
|
|
366
369
|
*/
|
|
367
370
|
NodeSelection.prototype.setSelectionContents = function (docElement, element) {
|
|
368
371
|
var range = docElement.createRange();
|
|
@@ -376,7 +379,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
376
379
|
* @param {Node} element - specifies the node.
|
|
377
380
|
* @returns {void}
|
|
378
381
|
* @hidden
|
|
379
|
-
|
|
382
|
+
* @deprecated
|
|
380
383
|
*/
|
|
381
384
|
NodeSelection.prototype.setSelectionNode = function (docElement, element) {
|
|
382
385
|
var range = docElement.createRange();
|
|
@@ -389,7 +392,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
389
392
|
* @param {Document} docElement - specifies the document.
|
|
390
393
|
* @returns {void}
|
|
391
394
|
* @hidden
|
|
392
|
-
|
|
395
|
+
* @deprecated
|
|
393
396
|
*/
|
|
394
397
|
NodeSelection.prototype.getSelectedNodes = function (docElement) {
|
|
395
398
|
return this.getNodeCollection(this.getRange(docElement));
|
|
@@ -400,7 +403,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
400
403
|
* @param {Document} docElement - specifies the document.
|
|
401
404
|
* @returns {void}
|
|
402
405
|
* @hidden
|
|
403
|
-
|
|
406
|
+
* @deprecated
|
|
404
407
|
*/
|
|
405
408
|
NodeSelection.prototype.Clear = function (docElement) {
|
|
406
409
|
this.get(docElement).removeAllRanges();
|
|
@@ -413,7 +416,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
413
416
|
* @param {Range} range - specifies the range.
|
|
414
417
|
* @returns {void}
|
|
415
418
|
* @hidden
|
|
416
|
-
|
|
419
|
+
* @deprecated
|
|
417
420
|
*/
|
|
418
421
|
NodeSelection.prototype.insertParentNode = function (docElement, newNode, range) {
|
|
419
422
|
range.surroundContents(newNode);
|
|
@@ -427,7 +430,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
427
430
|
* @param {number} point - specifies the point.
|
|
428
431
|
* @returns {void}
|
|
429
432
|
* @hidden
|
|
430
|
-
|
|
433
|
+
* @deprecated
|
|
431
434
|
*/
|
|
432
435
|
NodeSelection.prototype.setCursorPoint = function (docElement, element, point) {
|
|
433
436
|
var range = docElement.createRange();
|
package/styles/_all.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import 'rich-text-editor/all.scss';
|
|
1
|
+
@import 'rich-text-editor/all.scss';
|