@syncfusion/ej2-richtexteditor 28.1.37 → 28.1.38-680214

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 (176) hide show
  1. package/README.md +1 -1
  2. package/dist/ej2-richtexteditor.min.js +1 -10
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +179 -136
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +179 -136
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +1 -10
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +0 -9
  12. package/package.json +59 -82
  13. package/src/common/interface.d.ts +8 -8
  14. package/src/common/util.d.ts +1 -2
  15. package/src/common/util.js +49 -95
  16. package/src/editor-manager/base/classes.d.ts +1 -1
  17. package/src/editor-manager/base/classes.js +1 -1
  18. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  19. package/src/editor-manager/base/editor-manager.js +3 -3
  20. package/src/editor-manager/base/enum.d.ts +2 -2
  21. package/src/editor-manager/base/interface.d.ts +17 -9
  22. package/src/editor-manager/base/types.d.ts +1 -1
  23. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  24. package/src/editor-manager/plugin/alignments.js +2 -2
  25. package/src/editor-manager/plugin/audio.d.ts +3 -3
  26. package/src/editor-manager/plugin/audio.js +3 -3
  27. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  28. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  29. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  30. package/src/editor-manager/plugin/clearformat.js +1 -1
  31. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  32. package/src/editor-manager/plugin/dom-node.js +36 -36
  33. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  34. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  35. package/src/editor-manager/plugin/formats.d.ts +2 -2
  36. package/src/editor-manager/plugin/formats.js +2 -2
  37. package/src/editor-manager/plugin/image.d.ts +3 -3
  38. package/src/editor-manager/plugin/image.js +3 -3
  39. package/src/editor-manager/plugin/indents.d.ts +2 -2
  40. package/src/editor-manager/plugin/indents.js +2 -2
  41. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  42. package/src/editor-manager/plugin/insert-methods.js +4 -4
  43. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  44. package/src/editor-manager/plugin/insert-text.js +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  48. package/src/editor-manager/plugin/inserthtml.js +5 -5
  49. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  50. package/src/editor-manager/plugin/isformatted.js +9 -9
  51. package/src/editor-manager/plugin/link.d.ts +2 -2
  52. package/src/editor-manager/plugin/link.js +2 -2
  53. package/src/editor-manager/plugin/lists.d.ts +3 -2
  54. package/src/editor-manager/plugin/lists.js +15 -3
  55. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  56. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  57. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  58. package/src/editor-manager/plugin/nodecutter.js +6 -6
  59. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  60. package/src/editor-manager/plugin/selection-commands.js +2 -1
  61. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  62. package/src/editor-manager/plugin/selection-exec.js +2 -2
  63. package/src/editor-manager/plugin/table.d.ts +2 -2
  64. package/src/editor-manager/plugin/table.js +2 -2
  65. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  67. package/src/editor-manager/plugin/undo.d.ts +6 -6
  68. package/src/editor-manager/plugin/undo.js +6 -6
  69. package/src/editor-manager/plugin/video.d.ts +3 -3
  70. package/src/editor-manager/plugin/video.js +3 -3
  71. package/src/markdown-parser/base/interface.d.ts +10 -10
  72. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  73. package/src/markdown-parser/base/markdown-parser.js +3 -3
  74. package/src/markdown-parser/base/types.d.ts +1 -1
  75. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  76. package/src/markdown-parser/plugin/clearformat.js +2 -2
  77. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  78. package/src/markdown-parser/plugin/formats.js +2 -2
  79. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  80. package/src/markdown-parser/plugin/insert-text.js +2 -2
  81. package/src/markdown-parser/plugin/link.d.ts +2 -2
  82. package/src/markdown-parser/plugin/link.js +2 -2
  83. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  84. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  85. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  86. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  87. package/src/markdown-parser/plugin/table.d.ts +3 -3
  88. package/src/markdown-parser/plugin/table.js +3 -3
  89. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  90. package/src/markdown-parser/plugin/undo.js +6 -6
  91. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  92. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  93. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  94. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  95. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  96. package/src/rich-text-editor/actions/color-picker.js +2 -2
  97. package/src/rich-text-editor/actions/count.d.ts +3 -3
  98. package/src/rich-text-editor/actions/count.js +3 -3
  99. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  100. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  101. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  102. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  103. package/src/rich-text-editor/actions/enter-key.js +34 -3
  104. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  105. package/src/rich-text-editor/actions/full-screen.js +3 -3
  106. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  107. package/src/rich-text-editor/actions/html-editor.js +26 -4
  108. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  109. package/src/rich-text-editor/actions/keyboard.js +1 -1
  110. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  111. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  112. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  113. package/src/rich-text-editor/actions/paste-clean-up.js +27 -11
  114. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  115. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  116. package/src/rich-text-editor/actions/resize.d.ts +2 -0
  117. package/src/rich-text-editor/actions/resize.js +14 -2
  118. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  119. package/src/rich-text-editor/actions/toolbar.js +13 -13
  120. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  121. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  122. package/src/rich-text-editor/base/classes.d.ts +125 -125
  123. package/src/rich-text-editor/base/classes.js +125 -125
  124. package/src/rich-text-editor/base/constant.d.ts +158 -158
  125. package/src/rich-text-editor/base/constant.js +158 -158
  126. package/src/rich-text-editor/base/enum.d.ts +1 -1
  127. package/src/rich-text-editor/base/enum.js +1 -1
  128. package/src/rich-text-editor/base/interface.d.ts +51 -51
  129. package/src/rich-text-editor/base/interface.js +1 -1
  130. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  131. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  132. package/src/rich-text-editor/base/rich-text-editor.js +34 -35
  133. package/src/rich-text-editor/base/util.d.ts +1 -1
  134. package/src/rich-text-editor/base/util.js +1 -1
  135. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  136. package/src/rich-text-editor/formatter/formatter.js +8 -8
  137. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  138. package/src/rich-text-editor/formatter/html-formatter.js +2 -2
  139. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  140. package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
  141. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  142. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  143. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  144. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  145. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  146. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  147. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  148. package/src/rich-text-editor/renderer/iframe-content-renderer.js +4 -4
  149. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  150. package/src/rich-text-editor/renderer/image-module.js +1 -1
  151. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  152. package/src/rich-text-editor/renderer/link-module.js +3 -3
  153. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  154. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  155. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  156. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  157. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  158. package/src/rich-text-editor/renderer/render.js +2 -2
  159. package/src/rich-text-editor/renderer/table-module.d.ts +3 -2
  160. package/src/rich-text-editor/renderer/table-module.js +15 -18
  161. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  162. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -10
  163. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  164. package/src/rich-text-editor/renderer/video-module.js +1 -1
  165. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  166. package/src/rich-text-editor/renderer/view-source.js +5 -5
  167. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  168. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  169. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  170. package/src/rich-text-editor/services/service-locator.js +3 -3
  171. package/src/selection/selection.d.ts +22 -22
  172. package/src/selection/selection.js +22 -22
  173. package/styles/material3-dark.scss +1 -1
  174. package/styles/material3.scss +1 -1
  175. package/styles/rich-text-editor/material3-dark.scss +1 -1
  176. package/styles/rich-text-editor/material3.scss +1 -1
@@ -2,7 +2,7 @@
2
2
  * Is formatted or not.
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class IsFormatted {
8
8
  static inlineTags: string[];
@@ -14,7 +14,7 @@ export declare class IsFormatted {
14
14
  * @param {Node} endNode - specifies the end node
15
15
  * @returns {Node} - returns the node
16
16
  * @hidden
17
-
17
+ * @deprecated
18
18
  */
19
19
  getFormattedNode(node: Node, format: string, endNode: Node): Node;
20
20
  private getFormatParent;
@@ -25,7 +25,7 @@ export declare class IsFormatted {
25
25
  * @param {Node} node - specifies the node value
26
26
  * @returns {boolean} - returns the boolean value
27
27
  * @hidden
28
-
28
+ * @deprecated
29
29
  */
30
30
  static isBold(node: Node): boolean;
31
31
  /**
@@ -34,7 +34,7 @@ export declare class IsFormatted {
34
34
  * @param {Node} node - specifies the node value
35
35
  * @returns {boolean} - returns the boolean value
36
36
  * @hidden
37
-
37
+ * @deprecated
38
38
  */
39
39
  static isItalic(node: Node): boolean;
40
40
  /**
@@ -43,7 +43,7 @@ export declare class IsFormatted {
43
43
  * @param {Node} node - specifies the node value
44
44
  * @returns {boolean} - returns the boolean value
45
45
  * @hidden
46
-
46
+ * @deprecated
47
47
  */
48
48
  static isUnderline(node: Node): boolean;
49
49
  /**
@@ -52,7 +52,7 @@ export declare class IsFormatted {
52
52
  * @param {Node} node - specifies the node value
53
53
  * @returns {boolean} - returns the boolean value
54
54
  * @hidden
55
-
55
+ * @deprecated
56
56
  */
57
57
  static isStrikethrough(node: Node): boolean;
58
58
  /**
@@ -61,7 +61,7 @@ export declare class IsFormatted {
61
61
  * @param {Node} node - specifies the node value
62
62
  * @returns {boolean} - returns the boolean value
63
63
  * @hidden
64
-
64
+ * @deprecated
65
65
  */
66
66
  static isSuperscript(node: Node): boolean;
67
67
  /**
@@ -70,7 +70,7 @@ export declare class IsFormatted {
70
70
  * @param {Node} node - specifies the node value
71
71
  * @returns {boolean} - returns the boolean value
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  static isSubscript(node: Node): boolean;
76
76
  private isFontColor;
@@ -83,7 +83,7 @@ export declare class IsFormatted {
83
83
  * @param {Node} node - specifies the node value
84
84
  * @returns {boolean} - returns the boolean value
85
85
  * @hidden
86
-
86
+ * @deprecated
87
87
  */
88
88
  static isCode(node: Node): boolean;
89
89
  }
@@ -2,7 +2,7 @@
2
2
  * Is formatted or not.
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  var IsFormatted = /** @class */ (function () {
8
8
  function IsFormatted() {
@@ -15,7 +15,7 @@ var IsFormatted = /** @class */ (function () {
15
15
  * @param {Node} endNode - specifies the end node
16
16
  * @returns {Node} - returns the node
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  IsFormatted.prototype.getFormattedNode = function (node, format, endNode) {
21
21
  var parentNode = this.getFormatParent(node, format, endNode);
@@ -64,7 +64,7 @@ var IsFormatted = /** @class */ (function () {
64
64
  * @param {Node} node - specifies the node value
65
65
  * @returns {boolean} - returns the boolean value
66
66
  * @hidden
67
-
67
+ * @deprecated
68
68
  */
69
69
  IsFormatted.isBold = function (node) {
70
70
  var validTags = ['strong', 'b'];
@@ -85,7 +85,7 @@ var IsFormatted = /** @class */ (function () {
85
85
  * @param {Node} node - specifies the node value
86
86
  * @returns {boolean} - returns the boolean value
87
87
  * @hidden
88
-
88
+ * @deprecated
89
89
  */
90
90
  IsFormatted.isItalic = function (node) {
91
91
  var validTags = ['em', 'i'];
@@ -106,7 +106,7 @@ var IsFormatted = /** @class */ (function () {
106
106
  * @param {Node} node - specifies the node value
107
107
  * @returns {boolean} - returns the boolean value
108
108
  * @hidden
109
-
109
+ * @deprecated
110
110
  */
111
111
  IsFormatted.isUnderline = function (node) {
112
112
  var validTags = ['u'];
@@ -130,7 +130,7 @@ var IsFormatted = /** @class */ (function () {
130
130
  * @param {Node} node - specifies the node value
131
131
  * @returns {boolean} - returns the boolean value
132
132
  * @hidden
133
-
133
+ * @deprecated
134
134
  */
135
135
  IsFormatted.isStrikethrough = function (node) {
136
136
  var validTags = ['del', 'strike', 's'];
@@ -154,7 +154,7 @@ var IsFormatted = /** @class */ (function () {
154
154
  * @param {Node} node - specifies the node value
155
155
  * @returns {boolean} - returns the boolean value
156
156
  * @hidden
157
-
157
+ * @deprecated
158
158
  */
159
159
  IsFormatted.isSuperscript = function (node) {
160
160
  var validTags = ['sup'];
@@ -171,7 +171,7 @@ var IsFormatted = /** @class */ (function () {
171
171
  * @param {Node} node - specifies the node value
172
172
  * @returns {boolean} - returns the boolean value
173
173
  * @hidden
174
-
174
+ * @deprecated
175
175
  */
176
176
  IsFormatted.isSubscript = function (node) {
177
177
  var validTags = ['sub'];
@@ -228,7 +228,7 @@ var IsFormatted = /** @class */ (function () {
228
228
  * @param {Node} node - specifies the node value
229
229
  * @returns {boolean} - returns the boolean value
230
230
  * @hidden
231
-
231
+ * @deprecated
232
232
  */
233
233
  IsFormatted.isCode = function (node) {
234
234
  var validTags = ['code'];
@@ -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 LinkCommand {
9
9
  private parent;
@@ -12,7 +12,7 @@ export declare class LinkCommand {
12
12
  *
13
13
  * @param {EditorManager} parent - specifies the editor manager
14
14
  * @hidden
15
-
15
+ * @deprecated
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -11,7 +11,7 @@ import { IsFormatted } from './isformatted';
11
11
  * Link internal component
12
12
  *
13
13
  * @hidden
14
-
14
+ * @deprecated
15
15
  */
16
16
  var LinkCommand = /** @class */ (function () {
17
17
  /**
@@ -19,7 +19,7 @@ var LinkCommand = /** @class */ (function () {
19
19
  *
20
20
  * @param {EditorManager} parent - specifies the editor manager
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  function LinkCommand(parent) {
25
25
  this.parent = parent;
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Lists internal component
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class Lists {
9
9
  private parent;
@@ -18,13 +18,14 @@ export declare class Lists {
18
18
  *
19
19
  * @param {EditorManager} parent - specifies the parent element
20
20
  * @hidden
21
-
21
+ * @deprecated
22
22
  */
23
23
  constructor(parent: EditorManager);
24
24
  private addEventListener;
25
25
  private removeEventListener;
26
26
  private testList;
27
27
  private testCurrentList;
28
+ private createAutoList;
28
29
  private spaceList;
29
30
  private enterList;
30
31
  private backspaceList;
@@ -9,7 +9,7 @@ import { isNullOrUndefined, isNullOrUndefined as isNOU, closest } from '@syncfus
9
9
  * Lists internal component
10
10
  *
11
11
  * @hidden
12
-
12
+ * @deprecated
13
13
  */
14
14
  var Lists = /** @class */ (function () {
15
15
  /**
@@ -17,7 +17,7 @@ var Lists = /** @class */ (function () {
17
17
  *
18
18
  * @param {EditorManager} parent - specifies the parent element
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  function Lists(parent) {
23
23
  this.parent = parent;
@@ -64,6 +64,17 @@ var Lists = /** @class */ (function () {
64
64
  }
65
65
  return false;
66
66
  };
67
+ Lists.prototype.createAutoList = function (enterKey, shiftEnterKey) {
68
+ var autoListRules = {
69
+ BR: { BR: true, P: true, DIV: true },
70
+ P: { BR: false, P: true, DIV: true },
71
+ DIV: { BR: false, P: true, DIV: true }
72
+ };
73
+ if (autoListRules[enterKey] && autoListRules[enterKey][shiftEnterKey] !== undefined) {
74
+ return autoListRules[enterKey][shiftEnterKey];
75
+ }
76
+ return false;
77
+ };
67
78
  Lists.prototype.spaceList = function (e) {
68
79
  var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
69
80
  this.saveSelection = this.parent.nodeSelection.save(range, this.parent.currentDocument);
@@ -79,7 +90,8 @@ var Lists = /** @class */ (function () {
79
90
  var startElementOLTest = this.testCurrentList(range);
80
91
  var preElementOLTest = this.testList(preElement);
81
92
  var nextElementOLTest = this.testList(nextElement);
82
- if (!preElementOLTest && !nextElementOLTest && preElemULStart !== '*' && nextElemULStart !== '*') {
93
+ var nextElementBRTest = range.startContainer.previousElementSibling && range.startContainer.previousElementSibling.tagName === 'BR';
94
+ if (!preElementOLTest && !nextElementOLTest && preElemULStart !== '*' && nextElemULStart !== '*' && (this.createAutoList(e.enterKey, e.shiftEnterKey) || !nextElementBRTest)) {
83
95
  var brElement = createElement('br');
84
96
  if (startElementOLTest) {
85
97
  range.startContainer.textContent = range.startContainer.textContent.slice(range.startOffset, range.startContainer.textContent.length);
@@ -3,7 +3,7 @@ import { EditorManager } from '../base/editor-manager';
3
3
  * PasteCleanup for MsWord content
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class MsWordPaste {
9
9
  private parent;
@@ -6,7 +6,7 @@ import { InsertMethods } from './insert-methods';
6
6
  * PasteCleanup for MsWord content
7
7
  *
8
8
  * @hidden
9
-
9
+ * @deprecated
10
10
  */
11
11
  var MsWordPaste = /** @class */ (function () {
12
12
  function MsWordPaste(parent) {
@@ -2,7 +2,7 @@
2
2
  * Split the Node based on selection
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class NodeCutter {
8
8
  enterAction: string;
@@ -15,7 +15,7 @@ export declare class NodeCutter {
15
15
  * @param {HTMLElement} node - specifies the node element.
16
16
  * @returns {Node} - returns the node value
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  GetSpliceNode(range: Range, node: HTMLElement): Node;
21
21
  /**
@@ -24,7 +24,7 @@ export declare class NodeCutter {
24
24
  * @param {boolean} isCollapsed - specifies the boolean value
25
25
  * @returns {HTMLElement} - returns the element
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  SplitNode(range: Range, node: HTMLElement, isCollapsed: boolean): HTMLElement;
30
30
  private isRteElm;
@@ -38,7 +38,7 @@ export declare class NodeCutter {
38
38
  * @param {Node} node - specifies the node.
39
39
  * @returns {Range} - returns the range value
40
40
  * @hidden
41
-
41
+ * @deprecated
42
42
  */
43
43
  GetCursorRange(docElement: Document, range: Range, node: Node): Range;
44
44
  /**
@@ -49,7 +49,7 @@ export declare class NodeCutter {
49
49
  * @param {Node} node - specifies the node.
50
50
  * @returns {Node} - returns the node value
51
51
  * @hidden
52
-
52
+ * @deprecated
53
53
  */
54
54
  GetCursorNode(docElement: Document, range: Range, node: Node): Node;
55
55
  /**
@@ -58,7 +58,7 @@ export declare class NodeCutter {
58
58
  * @param {string} line - specifies the string value.
59
59
  * @returns {string} - returns the string
60
60
  * @hidden
61
-
61
+ * @deprecated
62
62
  */
63
63
  TrimLineBreak(line: string): string;
64
64
  }
@@ -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) {
@@ -152,7 +152,7 @@ var NodeCutter = /** @class */ (function () {
152
152
  * @param {Node} node - specifies the node.
153
153
  * @returns {Range} - returns the range value
154
154
  * @hidden
155
-
155
+ * @deprecated
156
156
  */
157
157
  NodeCutter.prototype.GetCursorRange = function (docElement, range, node) {
158
158
  var cursorRange = docElement.createRange();
@@ -199,7 +199,7 @@ var NodeCutter = /** @class */ (function () {
199
199
  * @param {Node} node - specifies the node.
200
200
  * @returns {Node} - returns the node value
201
201
  * @hidden
202
-
202
+ * @deprecated
203
203
  */
204
204
  NodeCutter.prototype.GetCursorNode = function (docElement, range, node) {
205
205
  return this.GetSpliceNode(this.GetCursorRange(docElement, range, node), node);
@@ -210,7 +210,7 @@ var NodeCutter = /** @class */ (function () {
210
210
  * @param {string} line - specifies the string value.
211
211
  * @returns {string} - returns the string
212
212
  * @hidden
213
-
213
+ * @deprecated
214
214
  */
215
215
  NodeCutter.prototype.TrimLineBreak = function (line) {
216
216
  return line.replace(/(\r\n\t|\n|\r\t)/gm, ' ');
@@ -14,7 +14,7 @@ export declare class SelectionCommands {
14
14
  * @param {FormatPainterValue} painterValues specifies the element created and last child
15
15
  * @returns {void}
16
16
  * @hidden
17
-
17
+ * @deprecated
18
18
  */
19
19
  static applyFormat(docElement: Document, format: string, endNode: Node, enterAction: string, tableCellSelection?: ITableSelection, value?: string, selector?: string, painterValues?: FormatPainterValue): void;
20
20
  private static insertCursorNode;
@@ -24,7 +24,7 @@ var SelectionCommands = /** @class */ (function () {
24
24
  * @param {FormatPainterValue} painterValues specifies the element created and last child
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  SelectionCommands.applyFormat = function (docElement, format, endNode, enterAction, tableCellSelection, value, selector, painterValues) {
30
30
  this.enterAction = enterAction;
@@ -233,6 +233,7 @@ var SelectionCommands = /** @class */ (function () {
233
233
  }
234
234
  else {
235
235
  InsertMethods.unwrap(cursorFormat);
236
+ domSelection.setCursorPoint(docElement, cursorNode, 0);
236
237
  }
237
238
  }
238
239
  else {
@@ -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;
@@ -7,7 +7,7 @@ import * as EVENTS from '../../common/constant';
7
7
  * Link internal component
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  var TableCommand = /** @class */ (function () {
13
13
  /**
@@ -15,7 +15,7 @@ var TableCommand = /** @class */ (function () {
15
15
  *
16
16
  * @param {EditorManager} parent - specifies the parent element
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  function TableCommand(parent) {
21
21
  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));
@@ -25,7 +25,7 @@ export declare class UndoRedoManager {
25
25
  * @param {IHtmlSubCommands} e - specifies the sub command
26
26
  * @returns {void}
27
27
  * @hidden
28
-
28
+ * @deprecated
29
29
  */
30
30
  onAction(e: IHtmlSubCommands): void;
31
31
  /**
@@ -34,7 +34,7 @@ export declare class UndoRedoManager {
34
34
  * @function destroy
35
35
  * @returns {void}
36
36
  * @hidden
37
-
37
+ * @deprecated
38
38
  */
39
39
  destroy(): void;
40
40
  private keyDown;
@@ -48,7 +48,7 @@ export declare class UndoRedoManager {
48
48
  * @param {KeyboardEvent} e - specifies the keyboard event
49
49
  * @returns {void}
50
50
  * @hidden
51
-
51
+ * @deprecated
52
52
  */
53
53
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
54
54
  /**
@@ -58,7 +58,7 @@ export declare class UndoRedoManager {
58
58
  * @param {IHtmlSubCommands} e - specifies the sub commands
59
59
  * @returns {void}
60
60
  * @hidden
61
-
61
+ * @deprecated
62
62
  */
63
63
  undo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
64
64
  /**
@@ -68,7 +68,7 @@ export declare class UndoRedoManager {
68
68
  * @function redo
69
69
  * @returns {void}
70
70
  * @hidden
71
-
71
+ * @deprecated
72
72
  */
73
73
  redo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
74
74
  /**
@@ -76,7 +76,7 @@ export declare class UndoRedoManager {
76
76
  *
77
77
  * @returns {boolean} - returns the boolean value
78
78
  * @hidden
79
-
79
+ * @deprecated
80
80
  */
81
81
  getUndoStatus(): {
82
82
  [key: string]: boolean;
@@ -48,7 +48,7 @@ var UndoRedoManager = /** @class */ (function () {
48
48
  * @param {IHtmlSubCommands} e - specifies the sub command
49
49
  * @returns {void}
50
50
  * @hidden
51
-
51
+ * @deprecated
52
52
  */
53
53
  UndoRedoManager.prototype.onAction = function (e) {
54
54
  if (e.subCommand === 'Undo') {
@@ -64,7 +64,7 @@ var UndoRedoManager = /** @class */ (function () {
64
64
  * @function destroy
65
65
  * @returns {void}
66
66
  * @hidden
67
-
67
+ * @deprecated
68
68
  */
69
69
  UndoRedoManager.prototype.destroy = function () {
70
70
  this.removeEventListener();
@@ -133,7 +133,7 @@ var UndoRedoManager = /** @class */ (function () {
133
133
  * @param {KeyboardEvent} e - specifies the keyboard event
134
134
  * @returns {void}
135
135
  * @hidden
136
-
136
+ * @deprecated
137
137
  */
138
138
  UndoRedoManager.prototype.saveData = function (e) {
139
139
  if (!this.parent.currentDocument) {
@@ -186,7 +186,7 @@ var UndoRedoManager = /** @class */ (function () {
186
186
  * @param {IHtmlSubCommands} e - specifies the sub commands
187
187
  * @returns {void}
188
188
  * @hidden
189
-
189
+ * @deprecated
190
190
  */
191
191
  UndoRedoManager.prototype.undo = function (e) {
192
192
  if (this.steps > 0) {
@@ -219,7 +219,7 @@ var UndoRedoManager = /** @class */ (function () {
219
219
  * @function redo
220
220
  * @returns {void}
221
221
  * @hidden
222
-
222
+ * @deprecated
223
223
  */
224
224
  UndoRedoManager.prototype.redo = function (e) {
225
225
  if (this.undoRedoStack[this.steps + 1] != null) {
@@ -250,7 +250,7 @@ var UndoRedoManager = /** @class */ (function () {
250
250
  *
251
251
  * @returns {boolean} - returns the boolean value
252
252
  * @hidden
253
-
253
+ * @deprecated
254
254
  */
255
255
  UndoRedoManager.prototype.getUndoStatus = function () {
256
256
  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;
@@ -14,7 +14,7 @@ export declare class VideoCommand {
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;
@@ -25,7 +25,7 @@ export declare class VideoCommand {
25
25
  * @param {IHtmlItem} e - specifies the element
26
26
  * @returns {void}
27
27
  * @hidden
28
-
28
+ * @deprecated
29
29
  */
30
30
  videoCommand(e: IHtmlItem): void;
31
31
  private wrapVideo;