@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.
Files changed (259) hide show
  1. package/.eslintrc.json +260 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
  3. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
  4. package/CHANGELOG.md +1775 -1751
  5. package/README.md +76 -76
  6. package/dist/ej2-richtexteditor.min.js +10 -0
  7. package/dist/ej2-richtexteditor.umd.min.js +10 -1
  8. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  9. package/dist/es6/ej2-richtexteditor.es2015.js +682 -434
  10. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  11. package/dist/es6/ej2-richtexteditor.es5.js +791 -543
  12. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  13. package/dist/global/ej2-richtexteditor.min.js +11 -0
  14. package/dist/global/ej2-richtexteditor.min.js.map +1 -0
  15. package/dist/global/index.d.ts +14 -0
  16. package/helpers/e2e/index.js +3 -3
  17. package/helpers/e2e/rte-helper.js +13 -13
  18. package/license +9 -9
  19. package/package.json +74 -74
  20. package/src/common/config.js +1 -1
  21. package/src/common/interface.d.ts +7 -7
  22. package/src/editor-manager/base/classes.d.ts +1 -1
  23. package/src/editor-manager/base/classes.js +1 -1
  24. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  25. package/src/editor-manager/base/editor-manager.js +3 -3
  26. package/src/editor-manager/base/enum.d.ts +2 -2
  27. package/src/editor-manager/base/interface.d.ts +9 -9
  28. package/src/editor-manager/base/types.d.ts +1 -1
  29. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  30. package/src/editor-manager/plugin/alignments.js +2 -2
  31. package/src/editor-manager/plugin/audio.d.ts +3 -3
  32. package/src/editor-manager/plugin/audio.js +16 -6
  33. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  34. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  35. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  36. package/src/editor-manager/plugin/clearformat.js +1 -1
  37. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  38. package/src/editor-manager/plugin/dom-node.js +35 -48
  39. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  40. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  41. package/src/editor-manager/plugin/formats.d.ts +2 -2
  42. package/src/editor-manager/plugin/formats.js +2 -2
  43. package/src/editor-manager/plugin/image.d.ts +3 -3
  44. package/src/editor-manager/plugin/image.js +33 -6
  45. package/src/editor-manager/plugin/indents.d.ts +2 -2
  46. package/src/editor-manager/plugin/indents.js +2 -2
  47. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  48. package/src/editor-manager/plugin/insert-methods.js +4 -4
  49. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  50. package/src/editor-manager/plugin/insert-text.js +2 -2
  51. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  52. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  53. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  54. package/src/editor-manager/plugin/inserthtml.js +7 -4
  55. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  56. package/src/editor-manager/plugin/isformatted.js +8 -8
  57. package/src/editor-manager/plugin/link.d.ts +2 -2
  58. package/src/editor-manager/plugin/link.js +2 -2
  59. package/src/editor-manager/plugin/lists.d.ts +2 -2
  60. package/src/editor-manager/plugin/lists.js +2 -2
  61. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  62. package/src/editor-manager/plugin/ms-word-clean-up.js +5 -2
  63. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  64. package/src/editor-manager/plugin/nodecutter.js +7 -7
  65. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  66. package/src/editor-manager/plugin/selection-commands.js +40 -1
  67. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  68. package/src/editor-manager/plugin/selection-exec.js +2 -2
  69. package/src/editor-manager/plugin/table.d.ts +2 -2
  70. package/src/editor-manager/plugin/table.js +2 -2
  71. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  72. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  73. package/src/editor-manager/plugin/undo.d.ts +6 -6
  74. package/src/editor-manager/plugin/undo.js +6 -6
  75. package/src/editor-manager/plugin/video.d.ts +3 -3
  76. package/src/editor-manager/plugin/video.js +3 -3
  77. package/src/markdown-parser/base/interface.d.ts +10 -10
  78. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  79. package/src/markdown-parser/base/markdown-parser.js +3 -3
  80. package/src/markdown-parser/base/types.d.ts +1 -1
  81. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  82. package/src/markdown-parser/plugin/clearformat.js +2 -2
  83. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  84. package/src/markdown-parser/plugin/formats.js +2 -2
  85. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  86. package/src/markdown-parser/plugin/insert-text.js +2 -2
  87. package/src/markdown-parser/plugin/link.d.ts +2 -2
  88. package/src/markdown-parser/plugin/link.js +2 -2
  89. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  90. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  91. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  92. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  93. package/src/markdown-parser/plugin/table.d.ts +3 -3
  94. package/src/markdown-parser/plugin/table.js +3 -3
  95. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  96. package/src/markdown-parser/plugin/undo.js +6 -6
  97. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  98. package/src/rich-text-editor/actions/base-quick-toolbar.js +27 -13
  99. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  100. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  101. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  102. package/src/rich-text-editor/actions/color-picker.js +5 -5
  103. package/src/rich-text-editor/actions/count.d.ts +3 -3
  104. package/src/rich-text-editor/actions/count.js +3 -3
  105. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  106. package/src/rich-text-editor/actions/dropdown-buttons.js +6 -4
  107. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  108. package/src/rich-text-editor/actions/emoji-picker.js +13 -4
  109. package/src/rich-text-editor/actions/enter-key.js +2 -1
  110. package/src/rich-text-editor/actions/file-manager.js +1 -1
  111. package/src/rich-text-editor/actions/format-painter.js +1 -1
  112. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  113. package/src/rich-text-editor/actions/full-screen.js +5 -5
  114. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  115. package/src/rich-text-editor/actions/html-editor.js +32 -6
  116. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  117. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  118. package/src/rich-text-editor/actions/keyboard.js +20 -20
  119. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  120. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  121. package/src/rich-text-editor/actions/paste-clean-up.d.ts +3 -1
  122. package/src/rich-text-editor/actions/paste-clean-up.js +73 -20
  123. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  124. package/src/rich-text-editor/actions/quick-toolbar.js +33 -14
  125. package/src/rich-text-editor/actions/toolbar.d.ts +14 -13
  126. package/src/rich-text-editor/actions/toolbar.js +31 -23
  127. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  128. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  129. package/src/rich-text-editor/base/classes.d.ts +126 -121
  130. package/src/rich-text-editor/base/classes.js +126 -121
  131. package/src/rich-text-editor/base/constant.d.ts +155 -150
  132. package/src/rich-text-editor/base/constant.js +155 -150
  133. package/src/rich-text-editor/base/enum.d.ts +1 -1
  134. package/src/rich-text-editor/base/enum.js +1 -1
  135. package/src/rich-text-editor/base/interface.d.ts +59 -49
  136. package/src/rich-text-editor/base/interface.js +1 -1
  137. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  138. package/src/rich-text-editor/base/rich-text-editor.d.ts +69 -60
  139. package/src/rich-text-editor/base/rich-text-editor.js +143 -80
  140. package/src/rich-text-editor/base/util.d.ts +1 -1
  141. package/src/rich-text-editor/base/util.js +12 -3
  142. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  143. package/src/rich-text-editor/formatter/formatter.js +9 -9
  144. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  145. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  146. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  147. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  148. package/src/rich-text-editor/models/default-locale.js +2 -0
  149. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  150. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  151. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  152. package/src/rich-text-editor/models/inline-mode.js +19 -19
  153. package/src/rich-text-editor/models/items.js +1 -1
  154. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  155. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  156. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  158. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  159. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  160. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  161. package/src/rich-text-editor/renderer/dialog-renderer.js +12 -3
  162. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  163. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  164. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  165. package/src/rich-text-editor/renderer/image-module.js +53 -53
  166. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  167. package/src/rich-text-editor/renderer/link-module.js +44 -24
  168. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  169. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  170. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  171. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  172. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  173. package/src/rich-text-editor/renderer/render.js +2 -2
  174. package/src/rich-text-editor/renderer/table-module.d.ts +3 -1
  175. package/src/rich-text-editor/renderer/table-module.js +44 -31
  176. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -15
  177. package/src/rich-text-editor/renderer/toolbar-renderer.js +22 -102
  178. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  179. package/src/rich-text-editor/renderer/video-module.js +1 -1
  180. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  181. package/src/rich-text-editor/renderer/view-source.js +9 -7
  182. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  183. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  184. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  185. package/src/rich-text-editor/services/service-locator.js +3 -3
  186. package/src/selection/selection.d.ts +22 -22
  187. package/src/selection/selection.js +22 -22
  188. package/styles/_all.scss +1 -1
  189. package/styles/bootstrap-dark.css +194 -52
  190. package/styles/bootstrap.css +197 -53
  191. package/styles/bootstrap4.css +194 -52
  192. package/styles/bootstrap5-dark.css +195 -53
  193. package/styles/bootstrap5.css +195 -53
  194. package/styles/fabric-dark.css +194 -52
  195. package/styles/fabric.css +194 -52
  196. package/styles/fluent-dark.css +197 -53
  197. package/styles/fluent.css +197 -53
  198. package/styles/highcontrast-light.css +194 -52
  199. package/styles/highcontrast.css +194 -52
  200. package/styles/material-dark.css +196 -53
  201. package/styles/material.css +196 -53
  202. package/styles/material3-dark.css +194 -52
  203. package/styles/material3-dark.scss +1 -1
  204. package/styles/material3.css +194 -52
  205. package/styles/material3.scss +1 -1
  206. package/styles/rich-text-editor/_all.scss +2 -2
  207. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
  208. package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
  209. package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
  210. package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
  211. package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
  212. package/styles/rich-text-editor/_fabric-definition.scss +257 -257
  213. package/styles/rich-text-editor/_fluent-definition.scss +263 -263
  214. package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
  215. package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
  216. package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
  217. package/styles/rich-text-editor/_layout.scss +2147 -2072
  218. package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
  219. package/styles/rich-text-editor/_material-definition.scss +260 -260
  220. package/styles/rich-text-editor/_material3-definition.scss +262 -262
  221. package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
  222. package/styles/rich-text-editor/_theme.scss +837 -837
  223. package/styles/rich-text-editor/bootstrap-dark.css +194 -52
  224. package/styles/rich-text-editor/bootstrap.css +197 -53
  225. package/styles/rich-text-editor/bootstrap4.css +194 -52
  226. package/styles/rich-text-editor/bootstrap5-dark.css +195 -53
  227. package/styles/rich-text-editor/bootstrap5.css +195 -53
  228. package/styles/rich-text-editor/fabric-dark.css +194 -52
  229. package/styles/rich-text-editor/fabric.css +194 -52
  230. package/styles/rich-text-editor/fluent-dark.css +197 -53
  231. package/styles/rich-text-editor/fluent.css +197 -53
  232. package/styles/rich-text-editor/highcontrast-light.css +194 -52
  233. package/styles/rich-text-editor/highcontrast.css +194 -52
  234. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  235. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  236. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  237. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  238. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  239. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  240. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  241. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  242. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  243. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  244. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  245. package/styles/rich-text-editor/icons/_material.scss +349 -349
  246. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  247. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  248. package/styles/rich-text-editor/material-dark.css +196 -53
  249. package/styles/rich-text-editor/material.css +196 -53
  250. package/styles/rich-text-editor/material3-dark.css +194 -52
  251. package/styles/rich-text-editor/material3-dark.scss +1 -1
  252. package/styles/rich-text-editor/material3.css +194 -52
  253. package/styles/rich-text-editor/material3.scss +1 -1
  254. package/styles/rich-text-editor/tailwind-dark.css +194 -52
  255. package/styles/rich-text-editor/tailwind.css +194 -52
  256. package/styles/tailwind-dark.css +194 -52
  257. package/styles/tailwind.css +194 -52
  258. package/tslint.json +111 -0
  259. package/src/global.d.ts +0 -1
@@ -6,7 +6,7 @@ export declare const markerClassName: {
6
6
  * DOMNode internal plugin
7
7
  *
8
8
  * @hidden
9
- * @deprecated
9
+
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
- * @deprecated
21
+
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
- * @deprecated
30
+
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
- * @deprecated
39
+
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
- * @deprecated
48
+
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
- * @deprecated
57
+
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
- * @deprecated
66
+
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
- * @deprecated
77
+
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
- * @deprecated
86
+
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
- * @deprecated
95
+
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
- * @deprecated
104
+
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
- * @deprecated
115
+
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
- * @deprecated
124
+
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
- * @deprecated
133
+
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
- * @deprecated
142
+
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
- * @deprecated
152
+
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
- * @deprecated
162
+
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
- * @deprecated
171
+
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
- * @deprecated
181
+
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
- * @deprecated
191
+
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
- * @deprecated
201
+
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
- * @deprecated
210
+
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
- * @deprecated
220
+
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
- * @deprecated
230
+
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
- * @deprecated
238
+
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
- * @deprecated
247
+
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
- * @deprecated
257
+
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
- * @deprecated
266
+
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
- * @deprecated
276
+
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
- * @deprecated
286
+
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
- * @deprecated
297
+
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
- * @deprecated
306
+
307
307
  */
308
308
  createTempNode(element: Element): Element;
309
309
  /**
@@ -311,7 +311,7 @@ export declare class DOMNode {
311
311
  *
312
312
  * @returns {void}
313
313
  * @hidden
314
- * @deprecated
314
+
315
315
  */
316
316
  getImageTagInSelection(): NodeListOf<HTMLImageElement>;
317
317
  /**
@@ -319,7 +319,7 @@ export declare class DOMNode {
319
319
  *
320
320
  * @returns {Node[]} - returns the node array values
321
321
  * @hidden
322
- * @deprecated
322
+
323
323
  */
324
324
  blockNodes(): Node[];
325
325
  private ignoreTableTag;
@@ -11,7 +11,7 @@ export var markerClassName = {
11
11
  * DOMNode internal plugin
12
12
  *
13
13
  * @hidden
14
- * @deprecated
14
+
15
15
  */
16
16
  var DOMNode = /** @class */ (function () {
17
17
  /**
@@ -20,7 +20,7 @@ var DOMNode = /** @class */ (function () {
20
20
  * @param {Element} parent - specifies the parent element
21
21
  * @param {Document} currentDocument - specifies the current document.
22
22
  * @hidden
23
- * @deprecated
23
+
24
24
  */
25
25
  function DOMNode(parent, currentDocument) {
26
26
  this.parent = parent;
@@ -33,7 +33,7 @@ var DOMNode = /** @class */ (function () {
33
33
  * @param {Element} element - specifies the element.
34
34
  * @returns {void}
35
35
  * @hidden
36
- * @deprecated
36
+
37
37
  */
38
38
  DOMNode.prototype.contents = function (element) {
39
39
  return (element && 'IFRAME' !== element.tagName ? Array.prototype.slice.call(element.childNodes || []) : []);
@@ -44,7 +44,7 @@ var DOMNode = /** @class */ (function () {
44
44
  * @param {Element} element - specifies the node element.
45
45
  * @returns {boolean} - sepcifies the boolean value
46
46
  * @hidden
47
- * @deprecated
47
+
48
48
  */
49
49
  DOMNode.prototype.isBlockNode = function (element) {
50
50
  return (!!element && (element.nodeType === Node.ELEMENT_NODE && CONSTANT.BLOCK_TAGS.indexOf(element.tagName.toLowerCase()) >= 0));
@@ -55,7 +55,7 @@ var DOMNode = /** @class */ (function () {
55
55
  * @param {Element} element - specifies the element
56
56
  * @returns {boolean} - specifies the boolean value
57
57
  * @hidden
58
- * @deprecated
58
+
59
59
  */
60
60
  DOMNode.prototype.isLink = function (element) {
61
61
  return (!!element && (element.nodeType === Node.ELEMENT_NODE && 'a' === element.tagName.toLowerCase()));
@@ -66,7 +66,7 @@ var DOMNode = /** @class */ (function () {
66
66
  * @param {Element} element - specifies the element
67
67
  * @returns {Element} - returns the element value
68
68
  * @hidden
69
- * @deprecated
69
+
70
70
  */
71
71
  DOMNode.prototype.blockParentNode = function (element) {
72
72
  for (; element && element.parentNode !== this.parent && ((!element.parentNode ||
@@ -84,7 +84,7 @@ var DOMNode = /** @class */ (function () {
84
84
  * @param {Element} element - specifies the element
85
85
  * @returns {string} - returns the string value
86
86
  * @hidden
87
- * @deprecated
87
+
88
88
  */
89
89
  DOMNode.prototype.rawAttributes = function (element) {
90
90
  var rawAttr = {};
@@ -103,7 +103,7 @@ var DOMNode = /** @class */ (function () {
103
103
  * @param {Element} element - sepcifies the element.
104
104
  * @returns {string} - returns the string value.
105
105
  * @hidden
106
- * @deprecated
106
+
107
107
  */
108
108
  DOMNode.prototype.attributes = function (element) {
109
109
  if (!element) {
@@ -136,7 +136,7 @@ var DOMNode = /** @class */ (function () {
136
136
  * @param {Element} element - specifies the element
137
137
  * @returns {void}
138
138
  * @hidden
139
- * @deprecated
139
+
140
140
  */
141
141
  DOMNode.prototype.clearAttributes = function (element) {
142
142
  for (var attr = element.attributes, c = attr.length - 1; c >= 0; c--) {
@@ -150,7 +150,7 @@ var DOMNode = /** @class */ (function () {
150
150
  * @param {Element} element - specifies the element.
151
151
  * @returns {string} - returns the string
152
152
  * @hidden
153
- * @deprecated
153
+
154
154
  */
155
155
  DOMNode.prototype.openTagString = function (element) {
156
156
  return '<' + element.tagName.toLowerCase() + this.attributes(element) + '>';
@@ -161,7 +161,7 @@ var DOMNode = /** @class */ (function () {
161
161
  * @param {Element} element - specifies the element
162
162
  * @returns {string} - returns the string value
163
163
  * @hidden
164
- * @deprecated
164
+
165
165
  */
166
166
  DOMNode.prototype.closeTagString = function (element) {
167
167
  return '</' + element.tagName.toLowerCase() + '>';
@@ -174,7 +174,7 @@ var DOMNode = /** @class */ (function () {
174
174
  * @param {string} innerHTML - specifies the string value
175
175
  * @returns {string} - returns the string value.
176
176
  * @hidden
177
- * @deprecated
177
+
178
178
  */
179
179
  DOMNode.prototype.createTagString = function (tagName, relativeElement, innerHTML) {
180
180
  return '<' + tagName.toLowerCase() + this.attributes(relativeElement) + '>' + innerHTML + '</' + tagName.toLowerCase() + '>';
@@ -185,7 +185,7 @@ var DOMNode = /** @class */ (function () {
185
185
  * @param {Element} element - specifes the element.
186
186
  * @returns {boolean} - returns the boolean value
187
187
  * @hidden
188
- * @deprecated
188
+
189
189
  */
190
190
  DOMNode.prototype.isList = function (element) {
191
191
  return !!element && ['UL', 'OL'].indexOf(element.tagName) >= 0;
@@ -196,7 +196,7 @@ var DOMNode = /** @class */ (function () {
196
196
  * @param {Element} element - specifes the element.
197
197
  * @returns {boolean} - returns the boolean value
198
198
  * @hidden
199
- * @deprecated
199
+
200
200
  */
201
201
  DOMNode.prototype.isElement = function (element) {
202
202
  return element === this.parent;
@@ -207,7 +207,7 @@ var DOMNode = /** @class */ (function () {
207
207
  * @param {Element} element - specifes the element.
208
208
  * @returns {boolean} - returns the boolean value
209
209
  * @hidden
210
- * @deprecated
210
+
211
211
  */
212
212
  DOMNode.prototype.isEditable = function (element) {
213
213
  return ((!element.getAttribute || element.getAttribute('contenteditable') === 'true')
@@ -220,7 +220,7 @@ var DOMNode = /** @class */ (function () {
220
220
  * @param {string} className - specifies the class name value
221
221
  * @returns {boolean} - returns the boolean value
222
222
  * @hidden
223
- * @deprecated
223
+
224
224
  */
225
225
  DOMNode.prototype.hasClass = function (element, className) {
226
226
  return element && element.classList && element.classList.contains(className);
@@ -232,7 +232,7 @@ var DOMNode = /** @class */ (function () {
232
232
  * @param {string} value - specifies the string value
233
233
  * @returns {void}
234
234
  * @hidden
235
- * @deprecated
235
+
236
236
  */
237
237
  DOMNode.prototype.replaceWith = function (element, value) {
238
238
  var parentNode = element.parentNode;
@@ -245,7 +245,7 @@ var DOMNode = /** @class */ (function () {
245
245
  * @param {string} value - specifies the string value
246
246
  * @returns {Element} - returns the element
247
247
  * @hidden
248
- * @deprecated
248
+
249
249
  */
250
250
  DOMNode.prototype.parseHTMLFragment = function (value) {
251
251
  /* eslint-disable */
@@ -266,7 +266,7 @@ var DOMNode = /** @class */ (function () {
266
266
  * @param {Element} wrapper - specifies the element.
267
267
  * @returns {Element} - returns the element
268
268
  * @hidden
269
- * @deprecated
269
+
270
270
  */
271
271
  DOMNode.prototype.wrap = function (element, wrapper) {
272
272
  element.parentNode.insertBefore(wrapper, element);
@@ -281,7 +281,7 @@ var DOMNode = /** @class */ (function () {
281
281
  * @param {Element} referenceNode - specifies the referenece node
282
282
  * @returns {void}
283
283
  * @hidden
284
- * @deprecated
284
+
285
285
  */
286
286
  DOMNode.prototype.insertAfter = function (newNode, referenceNode) {
287
287
  referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
@@ -293,7 +293,7 @@ var DOMNode = /** @class */ (function () {
293
293
  * @param {Element} wrapper - specifies the wrapper element.
294
294
  * @returns {Element} - returns the element
295
295
  * @hidden
296
- * @deprecated
296
+
297
297
  */
298
298
  DOMNode.prototype.wrapInner = function (parent, wrapper) {
299
299
  parent.appendChild(wrapper);
@@ -313,7 +313,7 @@ var DOMNode = /** @class */ (function () {
313
313
  * @param {Element} element - specifies the element.
314
314
  * @returns {Element} - returns the element.
315
315
  * @hidden
316
- * @deprecated
316
+
317
317
  */
318
318
  DOMNode.prototype.unWrap = function (element) {
319
319
  var parent = element.parentNode;
@@ -333,7 +333,7 @@ var DOMNode = /** @class */ (function () {
333
333
  * @param {number} index - specifies the index value.
334
334
  * @returns {Element} - returns the element
335
335
  * @hidden
336
- * @deprecated
336
+
337
337
  */
338
338
  DOMNode.prototype.getSelectedNode = function (element, index) {
339
339
  if (element.nodeType === Node.ELEMENT_NODE && element.childNodes.length > 0 &&
@@ -357,7 +357,7 @@ var DOMNode = /** @class */ (function () {
357
357
  * @param {Element[]} elements - specifies the array of elements
358
358
  * @returns {Element[]} - returnts the array elements
359
359
  * @hidden
360
- * @deprecated
360
+
361
361
  */
362
362
  DOMNode.prototype.nodeFinds = function (element, elements) {
363
363
  var existNodes = [];
@@ -373,7 +373,7 @@ var DOMNode = /** @class */ (function () {
373
373
  *
374
374
  * @returns {boolean} - returns the boolean value
375
375
  * @hidden
376
- * @deprecated
376
+
377
377
  */
378
378
  DOMNode.prototype.isEditorArea = function () {
379
379
  var range = this.getRangePoint(0);
@@ -389,7 +389,7 @@ var DOMNode = /** @class */ (function () {
389
389
  * @param {number} point - specifies the number value.
390
390
  * @returns {Range} - returns the range.
391
391
  * @hidden
392
- * @deprecated
392
+
393
393
  */
394
394
  DOMNode.prototype.getRangePoint = function (point) {
395
395
  var selection = this.getSelection();
@@ -414,7 +414,7 @@ var DOMNode = /** @class */ (function () {
414
414
  * @param {Element} element - specifies the element
415
415
  * @returns {Element} - returns the element
416
416
  * @hidden
417
- * @deprecated
417
+
418
418
  */
419
419
  DOMNode.prototype.getPreviousNode = function (element) {
420
420
  element = element.previousElementSibling;
@@ -429,7 +429,7 @@ var DOMNode = /** @class */ (function () {
429
429
  * @param {string} value - specifies the string value
430
430
  * @returns {string} - specifies the string value
431
431
  * @hidden
432
- * @deprecated
432
+
433
433
  */
434
434
  DOMNode.prototype.encode = function (value) {
435
435
  var divNode = document.createElement('div');
@@ -444,26 +444,13 @@ var DOMNode = /** @class */ (function () {
444
444
  * @param {string} action - specifies the action value.
445
445
  * @returns {NodeSelection} - returns the value
446
446
  * @hidden
447
- * @deprecated
447
+
448
448
  */
449
449
  DOMNode.prototype.saveMarker = function (save, action) {
450
450
  var start = this.parent.querySelector('.' + markerClassName.startSelection);
451
451
  var end = this.parent.querySelector('.' + markerClassName.endSelection);
452
452
  var startTextNode;
453
453
  var endTextNode;
454
- if (start.textContent === '' && isNOU(end) && action !== 'tab') {
455
- // To Do Apply Heading and Back space press in empty content.
456
- // if (isNOU(action) && save.range.startContainer.nodeType === 1 &&
457
- // (save.range.startContainer as HTMLElement).querySelectorAll('audio,video,image').length === 0) {
458
- // start.innerHTML = '<br>';
459
- // }
460
- if (start.childNodes.length === 1 && start.childNodes[0].nodeName === 'BR') {
461
- start.innerHTML = '&#65279;&#65279;<br>';
462
- }
463
- else {
464
- start.innerHTML = '&#65279;&#65279;';
465
- }
466
- }
467
454
  if (this.hasClass(start, markerClassName.startSelection) && start.classList.length > 1) {
468
455
  var replace = this.createTagString(CONSTANT.DEFAULT_TAG, start, this.encode(start.textContent));
469
456
  this.replaceWith(start, replace);
@@ -497,7 +484,7 @@ var DOMNode = /** @class */ (function () {
497
484
  * @param {NodeSelection} save - specifies the node selection.
498
485
  * @returns {void}
499
486
  * @hidden
500
- * @deprecated
487
+
501
488
  */
502
489
  DOMNode.prototype.setMarker = function (save) {
503
490
  var range = save.range;
@@ -576,7 +563,7 @@ var DOMNode = /** @class */ (function () {
576
563
  * @param {Range} range - specifies the range value
577
564
  * @returns {void}
578
565
  * @hidden
579
- * @deprecated
566
+
580
567
  */
581
568
  DOMNode.prototype.ensureSelfClosingTag = function (start, className, range) {
582
569
  var isTable = false;
@@ -586,7 +573,7 @@ var DOMNode = /** @class */ (function () {
586
573
  else if (start.tagName === 'BR') {
587
574
  this.replaceWith(start, this.marker(className, this.encode(start.textContent)));
588
575
  var markerStart = range.startContainer.querySelector('.' + className);
589
- markerStart.appendChild(start);
576
+ markerStart.parentElement.appendChild(start);
590
577
  }
591
578
  else {
592
579
  if (start.tagName === 'IMG') {
@@ -634,7 +621,7 @@ var DOMNode = /** @class */ (function () {
634
621
  * @param {Element} element - specifies the element.
635
622
  * @returns {Element} - returns the element
636
623
  * @hidden
637
- * @deprecated
624
+
638
625
  */
639
626
  DOMNode.prototype.createTempNode = function (element) {
640
627
  var textContent = element.textContent;
@@ -667,7 +654,7 @@ var DOMNode = /** @class */ (function () {
667
654
  *
668
655
  * @returns {void}
669
656
  * @hidden
670
- * @deprecated
657
+
671
658
  */
672
659
  DOMNode.prototype.getImageTagInSelection = function () {
673
660
  var selection = this.getSelection();
@@ -681,7 +668,7 @@ var DOMNode = /** @class */ (function () {
681
668
  *
682
669
  * @returns {Node[]} - returns the node array values
683
670
  * @hidden
684
- * @deprecated
671
+
685
672
  */
686
673
  DOMNode.prototype.blockNodes = function () {
687
674
  var collectionNodes = [];
@@ -18,7 +18,7 @@ export declare class FormatPainterActions implements IFormatPainterEditor {
18
18
  * @function destroy
19
19
  * @returns {void}
20
20
  * @hidden
21
- * @deprecated
21
+
22
22
  */
23
23
  destroy(): void;
24
24
  private actionHandler;
@@ -34,7 +34,7 @@ var FormatPainterActions = /** @class */ (function () {
34
34
  * @function destroy
35
35
  * @returns {void}
36
36
  * @hidden
37
- * @deprecated
37
+
38
38
  */
39
39
  FormatPainterActions.prototype.destroy = function () {
40
40
  this.removeEventListener();
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Formats internal component
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class Formats {
9
9
  private parent;
@@ -12,7 +12,7 @@ export declare class Formats {
12
12
  *
13
13
  * @param {EditorManager} parent - specifies the parent element.
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -7,7 +7,7 @@ import { NodeCutter } from './nodecutter';
7
7
  * Formats internal component
8
8
  *
9
9
  * @hidden
10
- * @deprecated
10
+
11
11
  */
12
12
  var Formats = /** @class */ (function () {
13
13
  /**
@@ -15,7 +15,7 @@ var Formats = /** @class */ (function () {
15
15
  *
16
16
  * @param {EditorManager} parent - specifies the parent element.
17
17
  * @hidden
18
- * @deprecated
18
+
19
19
  */
20
20
  function Formats(parent) {
21
21
  this.parent = parent;
@@ -4,7 +4,7 @@ import { IHtmlItem } from './../base/interface';
4
4
  * Link internal component
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  export declare class ImageCommand {
10
10
  private parent;
@@ -13,7 +13,7 @@ export declare class ImageCommand {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
- * @deprecated
16
+
17
17
  */
18
18
  constructor(parent: EditorManager);
19
19
  private addEventListener;
@@ -23,7 +23,7 @@ export declare class ImageCommand {
23
23
  * @param {IHtmlItem} e - specifies the element
24
24
  * @returns {void}
25
25
  * @hidden
26
- * @deprecated
26
+
27
27
  */
28
28
  imageCommand(e: IHtmlItem): void;
29
29
  private createImage;