@syncfusion/ej2-richtexteditor 25.1.40 → 25.1.41-85815

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 (283) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +2067 -1973
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +760 -307
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +861 -405
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/ej2-richtexteditor-component.sln +30 -0
  11. package/helpers/e2e/index.js +3 -3
  12. package/helpers/e2e/rte-helper.js +13 -13
  13. package/license +9 -9
  14. package/package.json +74 -74
  15. package/src/common/interface.d.ts +22 -8
  16. package/src/common/util.d.ts +8 -0
  17. package/src/common/util.js +56 -1
  18. package/src/editor-manager/base/classes.d.ts +1 -1
  19. package/src/editor-manager/base/classes.js +1 -1
  20. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  21. package/src/editor-manager/base/editor-manager.js +8 -6
  22. package/src/editor-manager/base/enum.d.ts +2 -2
  23. package/src/editor-manager/base/interface.d.ts +9 -9
  24. package/src/editor-manager/base/types.d.ts +1 -1
  25. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  26. package/src/editor-manager/plugin/alignments.js +5 -2
  27. package/src/editor-manager/plugin/audio.d.ts +3 -3
  28. package/src/editor-manager/plugin/audio.js +3 -3
  29. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  30. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  31. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  32. package/src/editor-manager/plugin/clearformat.js +1 -1
  33. package/src/editor-manager/plugin/dom-node.d.ts +54 -34
  34. package/src/editor-manager/plugin/dom-node.js +139 -36
  35. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  36. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  37. package/src/editor-manager/plugin/formats.d.ts +2 -2
  38. package/src/editor-manager/plugin/formats.js +3 -3
  39. package/src/editor-manager/plugin/image.d.ts +3 -3
  40. package/src/editor-manager/plugin/image.js +3 -3
  41. package/src/editor-manager/plugin/indents.d.ts +2 -2
  42. package/src/editor-manager/plugin/indents.js +5 -2
  43. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  44. package/src/editor-manager/plugin/insert-methods.js +4 -4
  45. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  46. package/src/editor-manager/plugin/insert-text.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  48. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  49. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  50. package/src/editor-manager/plugin/inserthtml.js +13 -4
  51. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  52. package/src/editor-manager/plugin/isformatted.js +8 -8
  53. package/src/editor-manager/plugin/link.d.ts +2 -2
  54. package/src/editor-manager/plugin/link.js +2 -2
  55. package/src/editor-manager/plugin/lists.d.ts +2 -2
  56. package/src/editor-manager/plugin/lists.js +84 -61
  57. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  58. package/src/editor-manager/plugin/ms-word-clean-up.js +4 -4
  59. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  60. package/src/editor-manager/plugin/nodecutter.js +8 -8
  61. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  62. package/src/editor-manager/plugin/selection-commands.js +1 -1
  63. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  64. package/src/editor-manager/plugin/selection-exec.js +2 -2
  65. package/src/editor-manager/plugin/table.d.ts +2 -2
  66. package/src/editor-manager/plugin/table.js +2 -2
  67. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  68. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  69. package/src/editor-manager/plugin/undo.d.ts +6 -6
  70. package/src/editor-manager/plugin/undo.js +9 -7
  71. package/src/editor-manager/plugin/video.d.ts +3 -3
  72. package/src/editor-manager/plugin/video.js +3 -3
  73. package/src/markdown-parser/base/interface.d.ts +10 -10
  74. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  75. package/src/markdown-parser/base/markdown-parser.js +3 -3
  76. package/src/markdown-parser/base/types.d.ts +1 -1
  77. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  78. package/src/markdown-parser/plugin/clearformat.js +2 -2
  79. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  80. package/src/markdown-parser/plugin/formats.js +2 -2
  81. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  82. package/src/markdown-parser/plugin/insert-text.js +2 -2
  83. package/src/markdown-parser/plugin/link.d.ts +2 -2
  84. package/src/markdown-parser/plugin/link.js +2 -2
  85. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  86. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  87. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  88. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  89. package/src/markdown-parser/plugin/table.d.ts +3 -3
  90. package/src/markdown-parser/plugin/table.js +3 -3
  91. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  92. package/src/markdown-parser/plugin/undo.js +6 -6
  93. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  94. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  95. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  96. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  97. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  98. package/src/rich-text-editor/actions/color-picker.js +2 -2
  99. package/src/rich-text-editor/actions/count.d.ts +3 -3
  100. package/src/rich-text-editor/actions/count.js +3 -3
  101. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  102. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  103. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  104. package/src/rich-text-editor/actions/emoji-picker.js +2 -2
  105. package/src/rich-text-editor/actions/enter-key.d.ts +5 -0
  106. package/src/rich-text-editor/actions/enter-key.js +107 -13
  107. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  108. package/src/rich-text-editor/actions/full-screen.js +3 -9
  109. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  110. package/src/rich-text-editor/actions/html-editor.js +106 -26
  111. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  112. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  113. package/src/rich-text-editor/actions/keyboard.js +20 -20
  114. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  115. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  116. package/src/rich-text-editor/actions/paste-clean-up.d.ts +2 -1
  117. package/src/rich-text-editor/actions/paste-clean-up.js +57 -16
  118. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  119. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  120. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  121. package/src/rich-text-editor/actions/toolbar.js +13 -13
  122. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  123. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  124. package/src/rich-text-editor/base/classes.d.ts +121 -121
  125. package/src/rich-text-editor/base/classes.js +121 -121
  126. package/src/rich-text-editor/base/constant.d.ts +158 -158
  127. package/src/rich-text-editor/base/constant.js +158 -158
  128. package/src/rich-text-editor/base/enum.d.ts +5 -5
  129. package/src/rich-text-editor/base/enum.js +10 -10
  130. package/src/rich-text-editor/base/interface.d.ts +53 -53
  131. package/src/rich-text-editor/base/interface.js +1 -1
  132. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  133. package/src/rich-text-editor/base/rich-text-editor.d.ts +63 -61
  134. package/src/rich-text-editor/base/rich-text-editor.js +89 -67
  135. package/src/rich-text-editor/base/util.d.ts +1 -1
  136. package/src/rich-text-editor/base/util.js +1 -1
  137. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  138. package/src/rich-text-editor/formatter/formatter.js +8 -8
  139. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  140. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  141. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  142. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  143. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  144. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  145. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  146. package/src/rich-text-editor/models/inline-mode.js +19 -19
  147. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  148. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  149. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  150. package/src/rich-text-editor/renderer/audio-module.js +7 -2
  151. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  152. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  153. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  154. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  155. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  156. package/src/rich-text-editor/renderer/iframe-content-renderer.js +18 -18
  157. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  158. package/src/rich-text-editor/renderer/image-module.js +13 -8
  159. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  160. package/src/rich-text-editor/renderer/link-module.js +4 -1
  161. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  162. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  163. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  164. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  165. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  166. package/src/rich-text-editor/renderer/render.js +2 -2
  167. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  168. package/src/rich-text-editor/renderer/table-module.js +6 -2
  169. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +11 -9
  170. package/src/rich-text-editor/renderer/toolbar-renderer.js +23 -19
  171. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  172. package/src/rich-text-editor/renderer/video-module.js +7 -2
  173. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  174. package/src/rich-text-editor/renderer/view-source.js +6 -6
  175. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  176. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  177. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  178. package/src/rich-text-editor/services/service-locator.js +3 -3
  179. package/src/selection/selection.d.ts +22 -22
  180. package/src/selection/selection.js +22 -22
  181. package/styles/_all.scss +1 -1
  182. package/styles/bootstrap-dark.css +739 -801
  183. package/styles/bootstrap-dark.scss +4 -1
  184. package/styles/bootstrap.css +723 -801
  185. package/styles/bootstrap.scss +4 -1
  186. package/styles/bootstrap4.css +726 -803
  187. package/styles/bootstrap4.scss +4 -1
  188. package/styles/bootstrap5-dark.css +750 -840
  189. package/styles/bootstrap5-dark.scss +4 -1
  190. package/styles/bootstrap5.css +749 -839
  191. package/styles/bootstrap5.scss +4 -1
  192. package/styles/fabric-dark.css +724 -797
  193. package/styles/fabric-dark.scss +4 -1
  194. package/styles/fabric.css +720 -797
  195. package/styles/fabric.scss +4 -1
  196. package/styles/fluent-dark.css +727 -820
  197. package/styles/fluent-dark.scss +4 -1
  198. package/styles/fluent.css +726 -819
  199. package/styles/fluent.scss +4 -1
  200. package/styles/fluent2.css +4255 -0
  201. package/styles/fluent2.scss +4 -0
  202. package/styles/highcontrast-light.css +695 -795
  203. package/styles/highcontrast-light.scss +4 -1
  204. package/styles/highcontrast.css +717 -797
  205. package/styles/highcontrast.scss +4 -1
  206. package/styles/material-dark.css +716 -798
  207. package/styles/material-dark.scss +4 -1
  208. package/styles/material.css +713 -800
  209. package/styles/material.scss +4 -1
  210. package/styles/material3-dark.css +751 -857
  211. package/styles/material3-dark.scss +4 -1
  212. package/styles/material3.css +751 -857
  213. package/styles/material3.scss +4 -1
  214. package/styles/rich-text-editor/_all.scss +2 -2
  215. package/styles/rich-text-editor/_bds-definition.scss +290 -285
  216. package/styles/rich-text-editor/_bigger.scss +610 -0
  217. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -287
  218. package/styles/rich-text-editor/_bootstrap-definition.scss +349 -343
  219. package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -470
  220. package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -272
  221. package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -0
  222. package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -269
  223. package/styles/rich-text-editor/_fabric-definition.scss +273 -267
  224. package/styles/rich-text-editor/_fluent-definition.scss +279 -273
  225. package/styles/rich-text-editor/_fluent2-definition.scss +287 -0
  226. package/styles/rich-text-editor/_fusionnew-definition.scss +276 -271
  227. package/styles/rich-text-editor/_highcontrast-definition.scss +274 -267
  228. package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -267
  229. package/styles/rich-text-editor/_layout.scss +2175 -2268
  230. package/styles/rich-text-editor/_material-dark-definition.scss +278 -272
  231. package/styles/rich-text-editor/_material-definition.scss +276 -270
  232. package/styles/rich-text-editor/_material3-definition.scss +278 -272
  233. package/styles/rich-text-editor/_tailwind-definition.scss +273 -267
  234. package/styles/rich-text-editor/_tailwind4-definition.scss +278 -0
  235. package/styles/rich-text-editor/_theme.scss +844 -927
  236. package/styles/rich-text-editor/bootstrap-dark.css +739 -801
  237. package/styles/rich-text-editor/bootstrap.css +723 -801
  238. package/styles/rich-text-editor/bootstrap4.css +726 -803
  239. package/styles/rich-text-editor/bootstrap5-dark.css +750 -840
  240. package/styles/rich-text-editor/bootstrap5.css +749 -839
  241. package/styles/rich-text-editor/fabric-dark.css +724 -797
  242. package/styles/rich-text-editor/fabric.css +720 -797
  243. package/styles/rich-text-editor/fluent-dark.css +727 -820
  244. package/styles/rich-text-editor/fluent.css +726 -819
  245. package/styles/rich-text-editor/fluent2.css +4255 -0
  246. package/styles/rich-text-editor/fluent2.scss +4 -0
  247. package/styles/rich-text-editor/highcontrast-light.css +695 -795
  248. package/styles/rich-text-editor/highcontrast.css +717 -797
  249. package/styles/rich-text-editor/icons/_bds.scss +372 -351
  250. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -352
  251. package/styles/rich-text-editor/icons/_bootstrap.scss +373 -352
  252. package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -352
  253. package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -0
  254. package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -351
  255. package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -352
  256. package/styles/rich-text-editor/icons/_fabric.scss +373 -352
  257. package/styles/rich-text-editor/icons/_fluent.scss +372 -351
  258. package/styles/rich-text-editor/icons/_fluent2.scss +369 -0
  259. package/styles/rich-text-editor/icons/_fusionnew.scss +357 -348
  260. package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -352
  261. package/styles/rich-text-editor/icons/_highcontrast.scss +373 -352
  262. package/styles/rich-text-editor/icons/_material-dark.scss +373 -352
  263. package/styles/rich-text-editor/icons/_material.scss +373 -352
  264. package/styles/rich-text-editor/icons/_material3.scss +372 -351
  265. package/styles/rich-text-editor/icons/_tailwind.scss +372 -351
  266. package/styles/rich-text-editor/icons/_tailwind4.scss +372 -0
  267. package/styles/rich-text-editor/material-dark.css +716 -798
  268. package/styles/rich-text-editor/material.css +713 -800
  269. package/styles/rich-text-editor/material3-dark.css +751 -857
  270. package/styles/rich-text-editor/material3-dark.scss +1 -1
  271. package/styles/rich-text-editor/material3.css +751 -857
  272. package/styles/rich-text-editor/material3.scss +1 -1
  273. package/styles/rich-text-editor/tailwind-dark.css +740 -829
  274. package/styles/rich-text-editor/tailwind.css +740 -829
  275. package/styles/tailwind-dark.css +740 -829
  276. package/styles/tailwind-dark.scss +4 -1
  277. package/styles/tailwind.css +740 -829
  278. package/styles/tailwind.scss +4 -1
  279. package/dist/ej2-richtexteditor.min.js +0 -10
  280. package/dist/global/ej2-richtexteditor.min.js +0 -11
  281. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  282. package/dist/global/index.d.ts +0 -14
  283. package/tslint.json +0 -111
@@ -5,7 +5,7 @@ import { InsertMethods } from './insert-methods';
5
5
  * Split the Node based on selection
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var NodeCutter = /** @class */ (function () {
11
11
  function NodeCutter() {
@@ -21,7 +21,7 @@ var NodeCutter = /** @class */ (function () {
21
21
  * @param {HTMLElement} node - specifies the node element.
22
22
  * @returns {Node} - returns the node value
23
23
  * @hidden
24
-
24
+ * @deprecated
25
25
  */
26
26
  NodeCutter.prototype.GetSpliceNode = function (range, node) {
27
27
  node = this.SplitNode(range, node, true);
@@ -34,7 +34,7 @@ var NodeCutter = /** @class */ (function () {
34
34
  * @param {boolean} isCollapsed - specifies the boolean value
35
35
  * @returns {HTMLElement} - returns the element
36
36
  * @hidden
37
-
37
+ * @deprecated
38
38
  */
39
39
  NodeCutter.prototype.SplitNode = function (range, node, isCollapsed) {
40
40
  if (node) {
@@ -50,7 +50,7 @@ var NodeCutter = /** @class */ (function () {
50
50
  fragment = this.spliceEmptyNode(fragment, false);
51
51
  if (fragment && fragment.childNodes.length > 0) {
52
52
  var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' && !(fragment.querySelectorAll('img').length > 0)
53
- && this.isRteElm(fragment) && fragment.textContent === '') ? true : false;
53
+ && this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
54
54
  if (!isEmpty) {
55
55
  if (node) {
56
56
  InsertMethods.AppendBefore(fragment, node);
@@ -71,7 +71,7 @@ var NodeCutter = /** @class */ (function () {
71
71
  fragment = this.spliceEmptyNode(fragment, true);
72
72
  if (fragment && fragment.childNodes.length > 0) {
73
73
  var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG'
74
- && this.isRteElm(fragment) && fragment.textContent === '') ? true : false;
74
+ && this.isRteElm(fragment) && fragment.textContent.trim() === '') ? true : false;
75
75
  if (!isEmpty) {
76
76
  if (node) {
77
77
  InsertMethods.AppendBefore(fragment, node, true);
@@ -147,7 +147,7 @@ var NodeCutter = /** @class */ (function () {
147
147
  * @param {Node} node - specifies the node.
148
148
  * @returns {Range} - returns the range value
149
149
  * @hidden
150
-
150
+ * @deprecated
151
151
  */
152
152
  NodeCutter.prototype.GetCursorRange = function (docElement, range, node) {
153
153
  var cursorRange = docElement.createRange();
@@ -194,7 +194,7 @@ var NodeCutter = /** @class */ (function () {
194
194
  * @param {Node} node - specifies the node.
195
195
  * @returns {Node} - returns the node value
196
196
  * @hidden
197
-
197
+ * @deprecated
198
198
  */
199
199
  NodeCutter.prototype.GetCursorNode = function (docElement, range, node) {
200
200
  return this.GetSpliceNode(this.GetCursorRange(docElement, range, node), node);
@@ -205,7 +205,7 @@ var NodeCutter = /** @class */ (function () {
205
205
  * @param {string} line - specifies the string value.
206
206
  * @returns {string} - returns the string
207
207
  * @hidden
208
-
208
+ * @deprecated
209
209
  */
210
210
  NodeCutter.prototype.TrimLineBreak = function (line) {
211
211
  return line.replace(/(\r\n\t|\n|\r\t)/gm, ' ');
@@ -13,7 +13,7 @@ export declare class SelectionCommands {
13
13
  * @param {FormatPainterValue} painterValues specifies the element created and last child
14
14
  * @returns {void}
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  static applyFormat(docElement: Document, format: string, endNode: Node, enterAction: string, value?: string, selector?: string, painterValues?: FormatPainterValue): void;
19
19
  private static insertCursorNode;
@@ -23,7 +23,7 @@ var SelectionCommands = /** @class */ (function () {
23
23
  * @param {FormatPainterValue} painterValues specifies the element created and last child
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  SelectionCommands.applyFormat = function (docElement, format, endNode, enterAction, value, selector, painterValues) {
29
29
  this.enterAction = enterAction;
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Selection EXEC internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class SelectionBasedExec {
9
9
  private parent;
@@ -12,7 +12,7 @@ export declare class SelectionBasedExec {
12
12
  *
13
13
  * @param {EditorManager} parent - specifies the parent element
14
14
  * @hidden
15
-
15
+ * @deprecated
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -5,7 +5,7 @@ import * as EVENTS from './../../common/constant';
5
5
  * Selection EXEC internal component
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var SelectionBasedExec = /** @class */ (function () {
11
11
  /**
@@ -13,7 +13,7 @@ var SelectionBasedExec = /** @class */ (function () {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  function SelectionBasedExec(parent) {
19
19
  this.parent = parent;
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class TableCommand {
9
9
  private parent;
@@ -14,7 +14,7 @@ export declare class TableCommand {
14
14
  *
15
15
  * @param {EditorManager} parent - specifies the parent element
16
16
  * @hidden
17
-
17
+ * @deprecated
18
18
  */
19
19
  constructor(parent: EditorManager);
20
20
  private addEventListener;
@@ -5,7 +5,7 @@ import { InsertHtml } from './inserthtml';
5
5
  * Link internal component
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var TableCommand = /** @class */ (function () {
11
11
  /**
@@ -13,7 +13,7 @@ var TableCommand = /** @class */ (function () {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  function TableCommand(parent) {
19
19
  this.parent = parent;
@@ -3,7 +3,7 @@ import { IToolbarStatus } from './../../common/interface';
3
3
  * Update Toolbar Status
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare const statusCollection: IToolbarStatus;
9
9
  export declare class ToolbarStatus {
@@ -18,7 +18,7 @@ export declare class ToolbarStatus {
18
18
  * @param {Node} documentNode - specifies the document node.
19
19
  * @returns {IToolbarStatus} - returns the toolbar status
20
20
  * @hidden
21
-
21
+ * @deprecated
22
22
  */
23
23
  static get(docElement: Document, rootNode: Node, formatNode?: string[], fontSize?: string[], fontName?: string[], documentNode?: Node): IToolbarStatus;
24
24
  private static getImmediateBlockNode;
@@ -7,7 +7,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
7
7
  * Update Toolbar Status
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  export var statusCollection = getDefaultHtmlTbStatus();
13
13
  var ToolbarStatus = /** @class */ (function () {
@@ -24,7 +24,7 @@ var ToolbarStatus = /** @class */ (function () {
24
24
  * @param {Node} documentNode - specifies the document node.
25
25
  * @returns {IToolbarStatus} - returns the toolbar status
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  ToolbarStatus.get = function (docElement, rootNode, formatNode, fontSize, fontName, documentNode) {
30
30
  var formatCollection = JSON.parse(JSON.stringify(statusCollection));
@@ -24,7 +24,7 @@ export declare class UndoRedoManager {
24
24
  * @param {IHtmlSubCommands} e - specifies the sub command
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  onAction(e: IHtmlSubCommands): void;
30
30
  /**
@@ -33,7 +33,7 @@ export declare class UndoRedoManager {
33
33
  * @function destroy
34
34
  * @returns {void}
35
35
  * @hidden
36
-
36
+ * @deprecated
37
37
  */
38
38
  destroy(): void;
39
39
  private keyDown;
@@ -47,7 +47,7 @@ export declare class UndoRedoManager {
47
47
  * @param {KeyboardEvent} e - specifies the keyboard event
48
48
  * @returns {void}
49
49
  * @hidden
50
-
50
+ * @deprecated
51
51
  */
52
52
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
53
53
  /**
@@ -57,7 +57,7 @@ export declare class UndoRedoManager {
57
57
  * @param {IHtmlSubCommands} e - specifies the sub commands
58
58
  * @returns {void}
59
59
  * @hidden
60
-
60
+ * @deprecated
61
61
  */
62
62
  undo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
63
63
  /**
@@ -67,7 +67,7 @@ export declare class UndoRedoManager {
67
67
  * @function redo
68
68
  * @returns {void}
69
69
  * @hidden
70
-
70
+ * @deprecated
71
71
  */
72
72
  redo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
73
73
  /**
@@ -75,7 +75,7 @@ export declare class UndoRedoManager {
75
75
  *
76
76
  * @returns {boolean} - returns the boolean value
77
77
  * @hidden
78
-
78
+ * @deprecated
79
79
  */
80
80
  getUndoStatus(): {
81
81
  [key: string]: boolean;
@@ -1,7 +1,7 @@
1
1
  import { debounce, isNullOrUndefined, detach } from '@syncfusion/ej2-base';
2
2
  import { NodeSelection } from './../../selection/selection';
3
3
  import * as EVENTS from './../../common/constant';
4
- import { isIDevice, setEditFrameFocus } from '../../common/util';
4
+ import { isIDevice, scrollToCursor, setEditFrameFocus } from '../../common/util';
5
5
  /**
6
6
  * `Undo` module is used to handle undo actions.
7
7
  */
@@ -44,7 +44,7 @@ var UndoRedoManager = /** @class */ (function () {
44
44
  * @param {IHtmlSubCommands} e - specifies the sub command
45
45
  * @returns {void}
46
46
  * @hidden
47
-
47
+ * @deprecated
48
48
  */
49
49
  UndoRedoManager.prototype.onAction = function (e) {
50
50
  if (e.subCommand === 'Undo') {
@@ -60,7 +60,7 @@ var UndoRedoManager = /** @class */ (function () {
60
60
  * @function destroy
61
61
  * @returns {void}
62
62
  * @hidden
63
-
63
+ * @deprecated
64
64
  */
65
65
  UndoRedoManager.prototype.destroy = function () {
66
66
  this.removeEventListener();
@@ -124,7 +124,7 @@ var UndoRedoManager = /** @class */ (function () {
124
124
  * @param {KeyboardEvent} e - specifies the keyboard event
125
125
  * @returns {void}
126
126
  * @hidden
127
-
127
+ * @deprecated
128
128
  */
129
129
  UndoRedoManager.prototype.saveData = function (e) {
130
130
  var range = new NodeSelection().getRange(this.parent.currentDocument);
@@ -174,7 +174,7 @@ var UndoRedoManager = /** @class */ (function () {
174
174
  * @param {IHtmlSubCommands} e - specifies the sub commands
175
175
  * @returns {void}
176
176
  * @hidden
177
-
177
+ * @deprecated
178
178
  */
179
179
  UndoRedoManager.prototype.undo = function (e) {
180
180
  if (this.steps > 0) {
@@ -183,6 +183,7 @@ var UndoRedoManager = /** @class */ (function () {
183
183
  this.parent.editableElement.innerHTML = '';
184
184
  this.parent.editableElement.appendChild(removedContent.cloneNode(true));
185
185
  this.parent.editableElement.focus();
186
+ scrollToCursor(this.parent.currentDocument, this.parent.editableElement);
186
187
  if (isIDevice()) {
187
188
  setEditFrameFocus(this.parent.editableElement, e.selector);
188
189
  }
@@ -206,7 +207,7 @@ var UndoRedoManager = /** @class */ (function () {
206
207
  * @function redo
207
208
  * @returns {void}
208
209
  * @hidden
209
-
210
+ * @deprecated
210
211
  */
211
212
  UndoRedoManager.prototype.redo = function (e) {
212
213
  if (this.undoRedoStack[this.steps + 1] != null) {
@@ -215,6 +216,7 @@ var UndoRedoManager = /** @class */ (function () {
215
216
  this.parent.editableElement.innerHTML = '';
216
217
  this.parent.editableElement.appendChild(addedContent.cloneNode(true));
217
218
  this.parent.editableElement.focus();
219
+ scrollToCursor(this.parent.currentDocument, this.parent.editableElement);
218
220
  if (isIDevice()) {
219
221
  setEditFrameFocus(this.parent.editableElement, e.selector);
220
222
  }
@@ -236,7 +238,7 @@ var UndoRedoManager = /** @class */ (function () {
236
238
  *
237
239
  * @returns {boolean} - returns the boolean value
238
240
  * @hidden
239
-
241
+ * @deprecated
240
242
  */
241
243
  UndoRedoManager.prototype.getUndoStatus = function () {
242
244
  var status = { undo: false, redo: false };
@@ -4,7 +4,7 @@ import { IHtmlItem } from './../base/interface';
4
4
  * Video internal component
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class VideoCommand {
10
10
  private parent;
@@ -13,7 +13,7 @@ export declare class VideoCommand {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  constructor(parent: EditorManager);
19
19
  private addEventListener;
@@ -23,7 +23,7 @@ export declare class VideoCommand {
23
23
  * @param {IHtmlItem} e - specifies the element
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  videoCommand(e: IHtmlItem): void;
29
29
  private createVideo;
@@ -6,7 +6,7 @@ import { InsertHtml } from './inserthtml';
6
6
  * Video internal component
7
7
  *
8
8
  * @hidden
9
-
9
+ * @deprecated
10
10
  */
11
11
  var VideoCommand = /** @class */ (function () {
12
12
  /**
@@ -14,7 +14,7 @@ var VideoCommand = /** @class */ (function () {
14
14
  *
15
15
  * @param {EditorManager} parent - specifies the parent element
16
16
  * @hidden
17
-
17
+ * @deprecated
18
18
  */
19
19
  function VideoCommand(parent) {
20
20
  this.parent = parent;
@@ -29,7 +29,7 @@ var VideoCommand = /** @class */ (function () {
29
29
  * @param {IHtmlItem} e - specifies the element
30
30
  * @returns {void}
31
31
  * @hidden
32
-
32
+ * @deprecated
33
33
  */
34
34
  VideoCommand.prototype.videoCommand = function (e) {
35
35
  var selectNode;
@@ -5,7 +5,7 @@ import { KeyboardEventArgs } from '@syncfusion/ej2-base';
5
5
  * Specifies IMDFormats interfaces.
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  export interface IMDFormats {
11
11
  /**
@@ -23,7 +23,7 @@ export interface IMDFormats {
23
23
  * Specifies IMTable interfaces.
24
24
  *
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  export interface IMDTable {
29
29
  syntaxTag?: {
@@ -39,14 +39,14 @@ export interface IMDTable {
39
39
  /**
40
40
  * Defines types to be used to customize the markdown syntax.
41
41
  *
42
-
42
+ * @deprecated
43
43
  */
44
44
  export declare type MarkdownTableFormat = 'Formats' | 'List';
45
45
  /**
46
46
  * Specifies ISelectedLines interfaces.
47
47
  *
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  export interface ISelectedLines {
52
52
  /**
@@ -68,7 +68,7 @@ export interface ISelectedLines {
68
68
  * Specifies MarkdownParserModel interfaces.
69
69
  *
70
70
  * @hidden
71
-
71
+ * @deprecated
72
72
  */
73
73
  export interface IMarkdownParserModel {
74
74
  /**
@@ -104,7 +104,7 @@ export interface IMarkdownParserModel {
104
104
  * Specifies ISubCommands interfaces.
105
105
  *
106
106
  * @hidden
107
-
107
+ * @deprecated
108
108
  */
109
109
  export interface IMarkdownSubCommands {
110
110
  /**
@@ -121,7 +121,7 @@ export interface IMarkdownSubCommands {
121
121
  event?: MouseEvent;
122
122
  }
123
123
  /**
124
-
124
+ * @deprecated
125
125
  */
126
126
  export interface MarkdownUndoRedoData {
127
127
  text?: string;
@@ -129,7 +129,7 @@ export interface MarkdownUndoRedoData {
129
129
  end?: number;
130
130
  }
131
131
  /**
132
-
132
+ * @deprecated
133
133
  */
134
134
  export interface IMarkdownItem {
135
135
  module?: string;
@@ -140,7 +140,7 @@ export interface IMarkdownItem {
140
140
  callBack(args: IMarkdownFormatterCallBack): () => void;
141
141
  }
142
142
  /**
143
-
143
+ * @deprecated
144
144
  */
145
145
  export interface IMarkdownItemArgs {
146
146
  url?: string;
@@ -155,7 +155,7 @@ export interface IMarkdownItemArgs {
155
155
  * Specifies IMDKeyboardEvent interfaces.
156
156
  *
157
157
  * @hidden
158
-
158
+ * @deprecated
159
159
  */
160
160
  export interface IMDKeyboardEvent {
161
161
  /**
@@ -14,7 +14,7 @@ import { MDInsertText } from './../plugin/insert-text';
14
14
  * MarkdownParser internal component
15
15
  *
16
16
  * @hidden
17
-
17
+ * @deprecated
18
18
  */
19
19
  export declare class MarkdownParser {
20
20
  observer: Observer;
@@ -42,7 +42,7 @@ export declare class MarkdownParser {
42
42
  *
43
43
  * @param {IMarkdownParserModel} options - specifies the options
44
44
  * @hidden
45
-
45
+ * @deprecated
46
46
  */
47
47
  constructor(options: IMarkdownParserModel);
48
48
  private initialize;
@@ -61,7 +61,7 @@ export declare class MarkdownParser {
61
61
  * @param {T} exeValue - specifies the value
62
62
  * @returns {void}
63
63
  * @hidden
64
-
64
+ * @deprecated
65
65
  */
66
66
  execCommand<T>(command: MarkdownExecCommand, value: T, event?: Event, callBack?: Function, text?: string, exeValue?: T): void;
67
67
  }
@@ -16,7 +16,7 @@ import { MDInsertText } from './../plugin/insert-text';
16
16
  * MarkdownParser internal component
17
17
  *
18
18
  * @hidden
19
-
19
+ * @deprecated
20
20
  */
21
21
  var MarkdownParser = /** @class */ (function () {
22
22
  /**
@@ -24,7 +24,7 @@ var MarkdownParser = /** @class */ (function () {
24
24
  *
25
25
  * @param {IMarkdownParserModel} options - specifies the options
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  function MarkdownParser(options) {
30
30
  this.initialize();
@@ -72,7 +72,7 @@ var MarkdownParser = /** @class */ (function () {
72
72
  * @param {T} exeValue - specifies the value
73
73
  * @returns {void}
74
74
  * @hidden
75
-
75
+ * @deprecated
76
76
  */
77
77
  /* eslint-enable */
78
78
  MarkdownParser.prototype.execCommand = function (command, value, event, callBack, text, exeValue) {
@@ -2,6 +2,6 @@
2
2
  * Types type for Markdown parser
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare type MarkdownExecCommand = 'Indents' | 'Lists' | 'Formats' | 'Alignments' | 'Style' | 'Effects' | 'Casing' | 'Actions' | 'table' | 'Links' | 'Images' | 'Clear' | 'Inserttext';
@@ -3,7 +3,7 @@ import { MarkdownParser } from './../base/markdown-parser';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class ClearFormat {
9
9
  private parent;
@@ -13,7 +13,7 @@ export declare class ClearFormat {
13
13
  *
14
14
  * @param {MarkdownParser} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  constructor(parent: MarkdownParser);
19
19
  private addEventListener;
@@ -3,7 +3,7 @@ import * as CONSTANT from './../base/constant';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  var ClearFormat = /** @class */ (function () {
9
9
  /**
@@ -11,7 +11,7 @@ var ClearFormat = /** @class */ (function () {
11
11
  *
12
12
  * @param {MarkdownParser} parent - specifies the parent element
13
13
  * @hidden
14
-
14
+ * @deprecated
15
15
  */
16
16
  function ClearFormat(parent) {
17
17
  this.parent = parent;
@@ -3,7 +3,7 @@ import { IMDFormats } from './../base/interface';
3
3
  * MDFormats internal plugin
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class MDFormats {
9
9
  private parent;
@@ -16,7 +16,7 @@ export declare class MDFormats {
16
16
  *
17
17
  * @param {IMDFormats} options - specifies the formats
18
18
  * @hidden
19
-
19
+ * @deprecated
20
20
  */
21
21
  constructor(options: IMDFormats);
22
22
  private addEventListener;
@@ -5,7 +5,7 @@ import * as CONSTANT from './../../markdown-parser/base/constant';
5
5
  * MDFormats internal plugin
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var MDFormats = /** @class */ (function () {
11
11
  /**
@@ -13,7 +13,7 @@ var MDFormats = /** @class */ (function () {
13
13
  *
14
14
  * @param {IMDFormats} options - specifies the formats
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  function MDFormats(options) {
19
19
  extend(this, this, options, true);
@@ -3,7 +3,7 @@ import { MarkdownParser } from './../base/markdown-parser';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class MDInsertText {
9
9
  private parent;
@@ -13,7 +13,7 @@ export declare class MDInsertText {
13
13
  *
14
14
  * @param {MarkdownParser} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  constructor(parent: MarkdownParser);
19
19
  private addEventListener;
@@ -3,7 +3,7 @@ import * as CONSTANT from './../base/constant';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  var MDInsertText = /** @class */ (function () {
9
9
  /**
@@ -11,7 +11,7 @@ var MDInsertText = /** @class */ (function () {
11
11
  *
12
12
  * @param {MarkdownParser} parent - specifies the parent element
13
13
  * @hidden
14
-
14
+ * @deprecated
15
15
  */
16
16
  function MDInsertText(parent) {
17
17
  this.parent = parent;
@@ -3,7 +3,7 @@ import { MarkdownParser } from './../base/markdown-parser';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class MDLink {
9
9
  private parent;
@@ -13,7 +13,7 @@ export declare class MDLink {
13
13
  *
14
14
  * @param {MarkdownParser} parent - specifies the parent element
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  constructor(parent: MarkdownParser);
19
19
  private addEventListener;