@syncfusion/ej2-richtexteditor 23.2.7-52849 → 24.1.41
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 +260 -0
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
- package/CHANGELOG.md +1775 -1751
- package/README.md +76 -76
- package/dist/ej2-richtexteditor.min.js +10 -0
- package/dist/ej2-richtexteditor.umd.min.js +10 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +682 -434
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +791 -543
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +11 -0
- package/dist/global/ej2-richtexteditor.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- 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.js +1 -1
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -9
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +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 +34 -34
- package/src/editor-manager/plugin/dom-node.js +35 -48
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +33 -6
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +7 -4
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +5 -2
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +7 -7
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +40 -1
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +27 -13
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +5 -5
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +6 -4
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +13 -4
- package/src/rich-text-editor/actions/enter-key.js +2 -1
- package/src/rich-text-editor/actions/file-manager.js +1 -1
- package/src/rich-text-editor/actions/format-painter.js +1 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +5 -5
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +32 -6
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +3 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +73 -20
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +33 -14
- package/src/rich-text-editor/actions/toolbar.d.ts +14 -13
- package/src/rich-text-editor/actions/toolbar.js +31 -23
- 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 +126 -121
- package/src/rich-text-editor/base/classes.js +126 -121
- package/src/rich-text-editor/base/constant.d.ts +155 -150
- package/src/rich-text-editor/base/constant.js +155 -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 +59 -49
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
- package/src/rich-text-editor/base/rich-text-editor.d.ts +69 -60
- package/src/rich-text-editor/base/rich-text-editor.js +143 -80
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +12 -3
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +9 -9
- 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 +2 -0
- 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 +1 -1
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +1 -1
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +12 -3
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +53 -53
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +44 -24
- 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 +3 -1
- package/src/rich-text-editor/renderer/table-module.js +44 -31
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +22 -102
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +1 -1
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +9 -7
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +1 -1
- package/styles/bootstrap-dark.css +194 -52
- package/styles/bootstrap.css +197 -53
- package/styles/bootstrap4.css +194 -52
- package/styles/bootstrap5-dark.css +195 -53
- package/styles/bootstrap5.css +195 -53
- package/styles/fabric-dark.css +194 -52
- package/styles/fabric.css +194 -52
- package/styles/fluent-dark.css +197 -53
- package/styles/fluent.css +197 -53
- package/styles/highcontrast-light.css +194 -52
- package/styles/highcontrast.css +194 -52
- package/styles/material-dark.css +196 -53
- package/styles/material.css +196 -53
- package/styles/material3-dark.css +194 -52
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +194 -52
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
- package/styles/rich-text-editor/_fabric-definition.scss +257 -257
- package/styles/rich-text-editor/_fluent-definition.scss +263 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
- package/styles/rich-text-editor/_layout.scss +2147 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
- package/styles/rich-text-editor/_material-definition.scss +260 -260
- package/styles/rich-text-editor/_material3-definition.scss +262 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
- package/styles/rich-text-editor/_theme.scss +837 -837
- package/styles/rich-text-editor/bootstrap-dark.css +194 -52
- package/styles/rich-text-editor/bootstrap.css +197 -53
- package/styles/rich-text-editor/bootstrap4.css +194 -52
- package/styles/rich-text-editor/bootstrap5-dark.css +195 -53
- package/styles/rich-text-editor/bootstrap5.css +195 -53
- package/styles/rich-text-editor/fabric-dark.css +194 -52
- package/styles/rich-text-editor/fabric.css +194 -52
- package/styles/rich-text-editor/fluent-dark.css +197 -53
- package/styles/rich-text-editor/fluent.css +197 -53
- package/styles/rich-text-editor/highcontrast-light.css +194 -52
- package/styles/rich-text-editor/highcontrast.css +194 -52
- 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 +196 -53
- package/styles/rich-text-editor/material.css +196 -53
- package/styles/rich-text-editor/material3-dark.css +194 -52
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +194 -52
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +194 -52
- package/styles/rich-text-editor/tailwind.css +194 -52
- package/styles/tailwind-dark.css +194 -52
- package/styles/tailwind.css +194 -52
- package/tslint.json +111 -0
- package/src/global.d.ts +0 -1
|
@@ -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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
63
63
|
*/
|
|
64
64
|
NodeSelection.prototype.getIndex = function (node) {
|
|
65
65
|
var index;
|
|
@@ -109,7 +109,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
109
109
|
* @param {Range} range -specifies the range.
|
|
110
110
|
* @returns {void}
|
|
111
111
|
* @hidden
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
*/
|
|
114
114
|
NodeSelection.prototype.getNodeCollection = function (range) {
|
|
115
115
|
var startNode = range.startContainer.childNodes[range.startOffset]
|
|
@@ -138,7 +138,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
138
138
|
* @param {Range} range - specifies the range value.
|
|
139
139
|
* @returns {void}
|
|
140
140
|
* @hidden
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
*/
|
|
143
143
|
NodeSelection.prototype.getParentNodeCollection = function (range) {
|
|
144
144
|
return this.getParentNodes(this.getNodeCollection(range), range);
|
|
@@ -150,7 +150,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
150
150
|
* @param {Range} range - specifies the range values.
|
|
151
151
|
* @returns {void}
|
|
152
152
|
* @hidden
|
|
153
|
-
|
|
153
|
+
|
|
154
154
|
*/
|
|
155
155
|
NodeSelection.prototype.getParentNodes = function (nodeCollection, range) {
|
|
156
156
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -174,7 +174,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
174
174
|
* @param {Range} range - specifies the range value.
|
|
175
175
|
* @returns {void}
|
|
176
176
|
* @hidden
|
|
177
|
-
|
|
177
|
+
|
|
178
178
|
*/
|
|
179
179
|
NodeSelection.prototype.getSelectionNodeCollection = function (range) {
|
|
180
180
|
return this.getSelectionNodes(this.getNodeCollection(range));
|
|
@@ -185,7 +185,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
185
185
|
* @param {Range} range - specifies the range value.
|
|
186
186
|
* @returns {void}
|
|
187
187
|
* @hidden
|
|
188
|
-
|
|
188
|
+
|
|
189
189
|
*/
|
|
190
190
|
NodeSelection.prototype.getSelectionNodeCollectionBr = function (range) {
|
|
191
191
|
return this.getSelectionNodesBr(this.getNodeCollection(range));
|
|
@@ -196,7 +196,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
196
196
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
197
197
|
* @returns {void}
|
|
198
198
|
* @hidden
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
*/
|
|
201
201
|
NodeSelection.prototype.getSelectionNodes = function (nodeCollection) {
|
|
202
202
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -217,7 +217,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
217
217
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
218
218
|
* @returns {void}
|
|
219
219
|
* @hidden
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
*/
|
|
222
222
|
NodeSelection.prototype.getSelectionNodesBr = function (nodeCollection) {
|
|
223
223
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -239,7 +239,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
239
239
|
* @param {Range} range - specifies the range value.
|
|
240
240
|
* @returns {void}
|
|
241
241
|
* @hidden
|
|
242
|
-
|
|
242
|
+
|
|
243
243
|
*/
|
|
244
244
|
NodeSelection.prototype.getInsertNodeCollection = function (range) {
|
|
245
245
|
return this.getInsertNodes(this.getNodeCollection(range));
|
|
@@ -250,7 +250,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
250
250
|
* @param {Node[]} nodeCollection - specifies the collection of nodes.
|
|
251
251
|
* @returns {void}
|
|
252
252
|
* @hidden
|
|
253
|
-
|
|
253
|
+
|
|
254
254
|
*/
|
|
255
255
|
NodeSelection.prototype.getInsertNodes = function (nodeCollection) {
|
|
256
256
|
nodeCollection = nodeCollection.reverse();
|
|
@@ -273,7 +273,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
273
273
|
* @param {Document} root - specifies the root document.
|
|
274
274
|
* @returns {void}
|
|
275
275
|
* @hidden
|
|
276
|
-
|
|
276
|
+
|
|
277
277
|
*/
|
|
278
278
|
NodeSelection.prototype.getNodeArray = function (node, isStart, root) {
|
|
279
279
|
var array = [];
|
|
@@ -310,7 +310,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
310
310
|
*
|
|
311
311
|
* @returns {void}
|
|
312
312
|
* @hidden
|
|
313
|
-
|
|
313
|
+
|
|
314
314
|
*/
|
|
315
315
|
NodeSelection.prototype.restore = function () {
|
|
316
316
|
var range = this.range.cloneRange();
|
|
@@ -330,7 +330,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
330
330
|
* @param {Range} range - specifies the range.
|
|
331
331
|
* @returns {void}
|
|
332
332
|
* @hidden
|
|
333
|
-
|
|
333
|
+
|
|
334
334
|
*/
|
|
335
335
|
NodeSelection.prototype.setRange = function (docElement, range) {
|
|
336
336
|
var selection = this.get(docElement);
|
|
@@ -347,7 +347,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
347
347
|
* @param {number} endIndex - specifies the end index.
|
|
348
348
|
* @returns {void}
|
|
349
349
|
* @hidden
|
|
350
|
-
|
|
350
|
+
|
|
351
351
|
*/
|
|
352
352
|
NodeSelection.prototype.setSelectionText = function (docElement, startNode, endNode, startIndex, endIndex) {
|
|
353
353
|
var range = docElement.createRange();
|
|
@@ -362,7 +362,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
362
362
|
* @param {Node} element - specifies the node.
|
|
363
363
|
* @returns {void}
|
|
364
364
|
* @hidden
|
|
365
|
-
|
|
365
|
+
|
|
366
366
|
*/
|
|
367
367
|
NodeSelection.prototype.setSelectionContents = function (docElement, element) {
|
|
368
368
|
var range = docElement.createRange();
|
|
@@ -376,7 +376,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
376
376
|
* @param {Node} element - specifies the node.
|
|
377
377
|
* @returns {void}
|
|
378
378
|
* @hidden
|
|
379
|
-
|
|
379
|
+
|
|
380
380
|
*/
|
|
381
381
|
NodeSelection.prototype.setSelectionNode = function (docElement, element) {
|
|
382
382
|
var range = docElement.createRange();
|
|
@@ -389,7 +389,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
389
389
|
* @param {Document} docElement - specifies the document.
|
|
390
390
|
* @returns {void}
|
|
391
391
|
* @hidden
|
|
392
|
-
|
|
392
|
+
|
|
393
393
|
*/
|
|
394
394
|
NodeSelection.prototype.getSelectedNodes = function (docElement) {
|
|
395
395
|
return this.getNodeCollection(this.getRange(docElement));
|
|
@@ -400,7 +400,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
400
400
|
* @param {Document} docElement - specifies the document.
|
|
401
401
|
* @returns {void}
|
|
402
402
|
* @hidden
|
|
403
|
-
|
|
403
|
+
|
|
404
404
|
*/
|
|
405
405
|
NodeSelection.prototype.Clear = function (docElement) {
|
|
406
406
|
this.get(docElement).removeAllRanges();
|
|
@@ -413,7 +413,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
413
413
|
* @param {Range} range - specifies the range.
|
|
414
414
|
* @returns {void}
|
|
415
415
|
* @hidden
|
|
416
|
-
|
|
416
|
+
|
|
417
417
|
*/
|
|
418
418
|
NodeSelection.prototype.insertParentNode = function (docElement, newNode, range) {
|
|
419
419
|
range.surroundContents(newNode);
|
|
@@ -427,7 +427,7 @@ var NodeSelection = /** @class */ (function () {
|
|
|
427
427
|
* @param {number} point - specifies the point.
|
|
428
428
|
* @returns {void}
|
|
429
429
|
* @hidden
|
|
430
|
-
|
|
430
|
+
|
|
431
431
|
*/
|
|
432
432
|
NodeSelection.prototype.setCursorPoint = function (docElement, element, point) {
|
|
433
433
|
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';
|