@syncfusion/ej2-richtexteditor 19.3.43 → 19.3.47-6125

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 (220) hide show
  1. package/CHANGELOG.md +999 -955
  2. package/README.md +67 -67
  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 +323 -204
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +428 -313
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/license +9 -9
  11. package/package.json +55 -74
  12. package/src/common/constant.d.ts +8 -8
  13. package/src/common/constant.js +8 -8
  14. package/src/common/interface.d.ts +7 -7
  15. package/src/editor-manager/base/classes.d.ts +1 -1
  16. package/src/editor-manager/base/classes.js +1 -1
  17. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  18. package/src/editor-manager/base/editor-manager.js +4 -4
  19. package/src/editor-manager/base/interface.d.ts +7 -7
  20. package/src/editor-manager/base/types.d.ts +1 -1
  21. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  22. package/src/editor-manager/plugin/alignments.js +2 -2
  23. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  24. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  25. package/src/editor-manager/plugin/clearformat.d.ts +2 -1
  26. package/src/editor-manager/plugin/clearformat.js +2 -1
  27. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  28. package/src/editor-manager/plugin/dom-node.js +34 -34
  29. package/src/editor-manager/plugin/formats.d.ts +2 -2
  30. package/src/editor-manager/plugin/formats.js +2 -2
  31. package/src/editor-manager/plugin/image.d.ts +3 -3
  32. package/src/editor-manager/plugin/image.js +15 -20
  33. package/src/editor-manager/plugin/indents.d.ts +2 -2
  34. package/src/editor-manager/plugin/indents.js +2 -2
  35. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  36. package/src/editor-manager/plugin/insert-methods.js +4 -4
  37. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  38. package/src/editor-manager/plugin/insert-text.js +2 -2
  39. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  40. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  41. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  42. package/src/editor-manager/plugin/inserthtml.js +18 -8
  43. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  44. package/src/editor-manager/plugin/isformatted.js +8 -8
  45. package/src/editor-manager/plugin/link.d.ts +2 -2
  46. package/src/editor-manager/plugin/link.js +2 -2
  47. package/src/editor-manager/plugin/lists.d.ts +2 -2
  48. package/src/editor-manager/plugin/lists.js +2 -3
  49. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  50. package/src/editor-manager/plugin/ms-word-clean-up.js +2 -1
  51. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  52. package/src/editor-manager/plugin/nodecutter.js +6 -6
  53. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  54. package/src/editor-manager/plugin/selection-commands.js +53 -3
  55. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  56. package/src/editor-manager/plugin/selection-exec.js +2 -2
  57. package/src/editor-manager/plugin/table.d.ts +2 -2
  58. package/src/editor-manager/plugin/table.js +5 -5
  59. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  60. package/src/editor-manager/plugin/toolbar-status.js +5 -5
  61. package/src/editor-manager/plugin/undo.d.ts +6 -6
  62. package/src/editor-manager/plugin/undo.js +6 -6
  63. package/src/global.d.ts +1 -0
  64. package/src/markdown-parser/base/interface.d.ts +10 -10
  65. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  66. package/src/markdown-parser/base/markdown-parser.js +3 -3
  67. package/src/markdown-parser/base/types.d.ts +1 -1
  68. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  69. package/src/markdown-parser/plugin/clearformat.js +2 -2
  70. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  71. package/src/markdown-parser/plugin/formats.js +2 -2
  72. package/src/markdown-parser/plugin/link.d.ts +2 -2
  73. package/src/markdown-parser/plugin/link.js +2 -2
  74. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  75. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  76. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  77. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  78. package/src/markdown-parser/plugin/table.d.ts +3 -3
  79. package/src/markdown-parser/plugin/table.js +3 -3
  80. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  81. package/src/markdown-parser/plugin/undo.js +6 -6
  82. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  83. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  84. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  85. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  86. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  87. package/src/rich-text-editor/actions/color-picker.js +2 -2
  88. package/src/rich-text-editor/actions/count.d.ts +3 -3
  89. package/src/rich-text-editor/actions/count.js +3 -3
  90. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  91. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  92. package/src/rich-text-editor/actions/enter-key.js +5 -16
  93. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  94. package/src/rich-text-editor/actions/full-screen.js +3 -3
  95. package/src/rich-text-editor/actions/html-editor.d.ts +4 -3
  96. package/src/rich-text-editor/actions/html-editor.js +34 -4
  97. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  98. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  99. package/src/rich-text-editor/actions/keyboard.js +20 -20
  100. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  101. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  102. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  103. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  104. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  105. package/src/rich-text-editor/actions/quick-toolbar.js +14 -11
  106. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  107. package/src/rich-text-editor/actions/toolbar.js +13 -13
  108. package/src/rich-text-editor/actions/xhtml-validation.d.ts +2 -1
  109. package/src/rich-text-editor/actions/xhtml-validation.js +6 -4
  110. package/src/rich-text-editor/base/classes.d.ts +107 -107
  111. package/src/rich-text-editor/base/classes.js +107 -107
  112. package/src/rich-text-editor/base/constant.d.ts +120 -120
  113. package/src/rich-text-editor/base/constant.js +120 -120
  114. package/src/rich-text-editor/base/enum.d.ts +1 -1
  115. package/src/rich-text-editor/base/enum.js +1 -1
  116. package/src/rich-text-editor/base/interface.d.ts +45 -45
  117. package/src/rich-text-editor/base/interface.js +1 -1
  118. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
  119. package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
  120. package/src/rich-text-editor/base/rich-text-editor.js +65 -66
  121. package/src/rich-text-editor/base/util.d.ts +2 -1
  122. package/src/rich-text-editor/base/util.js +2 -1
  123. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  124. package/src/rich-text-editor/formatter/formatter.js +8 -8
  125. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  126. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  127. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  128. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  129. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  130. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  131. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  132. package/src/rich-text-editor/models/inline-mode.js +19 -19
  133. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
  134. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  135. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  136. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  137. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  138. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  139. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  140. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  141. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  142. package/src/rich-text-editor/renderer/image-module.d.ts +3 -1
  143. package/src/rich-text-editor/renderer/image-module.js +40 -13
  144. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  145. package/src/rich-text-editor/renderer/link-module.js +6 -4
  146. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  147. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  148. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  149. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  150. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  151. package/src/rich-text-editor/renderer/render.js +2 -2
  152. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  153. package/src/rich-text-editor/renderer/table-module.js +11 -4
  154. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -10
  155. package/src/rich-text-editor/renderer/toolbar-renderer.js +10 -10
  156. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  157. package/src/rich-text-editor/renderer/view-source.js +6 -6
  158. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  159. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  160. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  161. package/src/rich-text-editor/services/service-locator.js +3 -3
  162. package/src/selection/selection.d.ts +22 -22
  163. package/src/selection/selection.js +22 -22
  164. package/styles/_all.scss +2 -2
  165. package/styles/bootstrap-dark.css +1 -1
  166. package/styles/bootstrap.css +1 -1
  167. package/styles/bootstrap4.css +1 -1
  168. package/styles/bootstrap5-dark.css +1 -1
  169. package/styles/bootstrap5.css +1 -1
  170. package/styles/fabric-dark.css +1 -1
  171. package/styles/fabric.css +1 -1
  172. package/styles/highcontrast-light.css +1 -1
  173. package/styles/highcontrast.css +1 -1
  174. package/styles/material-dark.css +1 -1
  175. package/styles/material.css +1 -1
  176. package/styles/rich-text-editor/_all.scss +2 -2
  177. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
  178. package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
  179. package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
  180. package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
  181. package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
  182. package/styles/rich-text-editor/_fabric-definition.scss +167 -167
  183. package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
  184. package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
  185. package/styles/rich-text-editor/_layout.scss +1635 -1635
  186. package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
  187. package/styles/rich-text-editor/_material-definition.scss +169 -169
  188. package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
  189. package/styles/rich-text-editor/_theme.scss +626 -626
  190. package/styles/rich-text-editor/bootstrap-dark.css +1 -1
  191. package/styles/rich-text-editor/bootstrap.css +1 -1
  192. package/styles/rich-text-editor/bootstrap4.css +1 -1
  193. package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
  194. package/styles/rich-text-editor/bootstrap5.css +1 -1
  195. package/styles/rich-text-editor/fabric-dark.css +1 -1
  196. package/styles/rich-text-editor/fabric.css +1 -1
  197. package/styles/rich-text-editor/highcontrast-light.css +1 -1
  198. package/styles/rich-text-editor/highcontrast.css +1 -1
  199. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
  200. package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
  201. package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
  202. package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
  203. package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
  204. package/styles/rich-text-editor/icons/_fabric.scss +304 -304
  205. package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
  206. package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
  207. package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
  208. package/styles/rich-text-editor/icons/_material.scss +304 -304
  209. package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
  210. package/styles/rich-text-editor/material-dark.css +1 -1
  211. package/styles/rich-text-editor/material.css +1 -1
  212. package/styles/rich-text-editor/tailwind-dark.css +1 -1
  213. package/styles/rich-text-editor/tailwind.css +1 -1
  214. package/styles/tailwind-dark.css +1 -1
  215. package/styles/tailwind.css +1 -1
  216. package/.eslintrc.json +0 -244
  217. package/dist/global/ej2-richtexteditor.min.js +0 -11
  218. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  219. package/dist/global/index.d.ts +0 -14
  220. 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) {
@@ -144,7 +144,7 @@ var NodeCutter = /** @class */ (function () {
144
144
  * @param {Node} node - specifies the node.
145
145
  * @returns {Range} - returns the range value
146
146
  * @hidden
147
-
147
+ * @deprecated
148
148
  */
149
149
  NodeCutter.prototype.GetCursorRange = function (docElement, range, node) {
150
150
  var cursorRange = docElement.createRange();
@@ -188,7 +188,7 @@ var NodeCutter = /** @class */ (function () {
188
188
  * @param {Node} node - specifies the node.
189
189
  * @returns {Node} - returns the node value
190
190
  * @hidden
191
-
191
+ * @deprecated
192
192
  */
193
193
  NodeCutter.prototype.GetCursorNode = function (docElement, range, node) {
194
194
  return this.GetSpliceNode(this.GetCursorRange(docElement, range, node), node);
@@ -199,7 +199,7 @@ var NodeCutter = /** @class */ (function () {
199
199
  * @param {string} line - specifies the string value.
200
200
  * @returns {string} - returns the string
201
201
  * @hidden
202
-
202
+ * @deprecated
203
203
  */
204
204
  NodeCutter.prototype.TrimLineBreak = function (line) {
205
205
  return line.replace(/(\r\n\t|\n|\r\t)/gm, ' ');
@@ -6,11 +6,12 @@ export declare class SelectionCommands {
6
6
  * @param {Document} docElement - specifies the document
7
7
  * @param {string} format - specifies the string value
8
8
  * @param {Node} endNode - specifies the end node
9
+ * @param {string} enterAction - specifies the enter key action
9
10
  * @param {string} value - specifies the string value
10
11
  * @param {string} selector - specifies the string
11
12
  * @returns {void}
12
13
  * @hidden
13
-
14
+ * @deprecated
14
15
  */
15
16
  static applyFormat(docElement: Document, format: string, endNode: Node, enterAction: string, value?: string, selector?: string): void;
16
17
  private static insertCursorNode;
@@ -17,11 +17,12 @@ var SelectionCommands = /** @class */ (function () {
17
17
  * @param {Document} docElement - specifies the document
18
18
  * @param {string} format - specifies the string value
19
19
  * @param {Node} endNode - specifies the end node
20
+ * @param {string} enterAction - specifies the enter key action
20
21
  * @param {string} value - specifies the string value
21
22
  * @param {string} selector - specifies the string
22
23
  * @returns {void}
23
24
  * @hidden
24
-
25
+ * @deprecated
25
26
  */
26
27
  SelectionCommands.applyFormat = function (docElement, format, endNode, enterAction, value, selector) {
27
28
  this.enterAction = enterAction;
@@ -31,7 +32,6 @@ var SelectionCommands = /** @class */ (function () {
31
32
  if (format === 'backgroundcolor' && value === '') {
32
33
  value = 'transparent';
33
34
  }
34
- var preventRestore = false;
35
35
  var domSelection = new NodeSelection();
36
36
  var domNode = new DOMNode(endNode, docElement);
37
37
  var nodeCutter = new NodeCutter();
@@ -43,6 +43,7 @@ var SelectionCommands = /** @class */ (function () {
43
43
  var isCollapsed = false;
44
44
  var isFormat = false;
45
45
  var isCursor = false;
46
+ var preventRestore = false;
46
47
  var isFontStyle = (['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1);
47
48
  if (range.collapsed) {
48
49
  if (nodes.length > 0) {
@@ -66,6 +67,9 @@ var SelectionCommands = /** @class */ (function () {
66
67
  else {
67
68
  domSelection.endOffset = domSelection.startOffset = 1;
68
69
  }
70
+ if (cursorNode.nodeName === 'BR' && cursorNode.parentNode.textContent.length === 0) {
71
+ preventRestore = true;
72
+ }
69
73
  }
70
74
  }
71
75
  isCursor = range.collapsed;
@@ -113,7 +117,53 @@ var SelectionCommands = /** @class */ (function () {
113
117
  var cursorNode = null;
114
118
  if (cursorFormat) {
115
119
  cursorNode = cursorNodes[0];
116
- InsertMethods.unwrap(cursorFormat);
120
+ if (cursorFormat.firstChild.textContent.charCodeAt(0) === 8203) {
121
+ var isCursorEqual = false;
122
+ var regEx = new RegExp(String.fromCharCode(8203), 'g');
123
+ var emptySpaceNode = void 0;
124
+ if (cursorFormat.firstChild === cursorNode) {
125
+ cursorNode.textContent = cursorNode.textContent.replace(regEx, '');
126
+ emptySpaceNode = cursorNode;
127
+ isCursorEqual = true;
128
+ }
129
+ else {
130
+ cursorFormat.firstChild.textContent = cursorFormat.firstChild.textContent.replace(regEx, '');
131
+ emptySpaceNode = cursorFormat.firstChild;
132
+ }
133
+ var pointer = void 0;
134
+ if (emptySpaceNode.textContent.length === 0) {
135
+ if (!isNOU(emptySpaceNode.previousSibling)) {
136
+ cursorNode = emptySpaceNode.previousSibling;
137
+ pointer = emptySpaceNode.textContent.length - 1;
138
+ domSelection.setCursorPoint(docElement, emptySpaceNode, pointer);
139
+ }
140
+ else if (!isNOU(emptySpaceNode.parentElement) && emptySpaceNode.parentElement.textContent.length === 0) {
141
+ var brElem = document.createElement('BR');
142
+ emptySpaceNode.parentElement.appendChild(brElem);
143
+ detach(emptySpaceNode);
144
+ cursorNode = brElem;
145
+ domSelection.setCursorPoint(docElement, cursorNode.parentElement, 0);
146
+ }
147
+ }
148
+ }
149
+ if ((['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1)) {
150
+ if (format === 'fontcolor') {
151
+ cursorFormat.style.color = value;
152
+ }
153
+ else if (format === 'fontname') {
154
+ cursorFormat.style.fontFamily = value;
155
+ }
156
+ else if (format === 'fontsize') {
157
+ cursorFormat.style.fontSize = value;
158
+ }
159
+ else {
160
+ cursorFormat.style.backgroundColor = value;
161
+ }
162
+ cursorNode = cursorFormat;
163
+ }
164
+ else {
165
+ InsertMethods.unwrap(cursorFormat);
166
+ }
117
167
  }
118
168
  else {
119
169
  if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
@@ -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;
@@ -223,7 +223,7 @@ var TableCommand = /** @class */ (function () {
223
223
  var currentTabElm = closest(curRow, 'table');
224
224
  var thTdElm = closest(curRow, 'table').querySelectorAll('th,td');
225
225
  for (var i = 0; i < thTdElm.length; i++) {
226
- thTdElm[i].dataset.oldWidth = (thTdElm[i].offsetWidth / currentTabElm.offsetWidth * 100) + "%";
226
+ thTdElm[i].dataset.oldWidth = (thTdElm[i].offsetWidth / currentTabElm.offsetWidth * 100) + '%';
227
227
  }
228
228
  for (var i = 0; i < allRows.length; i++) {
229
229
  curCell = allRows[i].querySelectorAll(':scope > td, :scope > th')[colIndex];
@@ -236,11 +236,11 @@ var TableCommand = /** @class */ (function () {
236
236
  // eslint-disable-next-line
237
237
  (e.item.subCommand === 'InsertColumnLeft') ? curCell.parentElement.insertBefore(colTemplate, curCell) :
238
238
  this.insertAfter(colTemplate, curCell);
239
- colTemplate.style.width = currentWidth.toFixed(4) + "%";
239
+ colTemplate.style.width = currentWidth.toFixed(4) + '%';
240
240
  delete colTemplate.dataset.oldWidth;
241
241
  }
242
242
  for (var i = 0; i < thTdElm.length; i++) {
243
- thTdElm[i].style.width = (Number(thTdElm[i].dataset.oldWidth.split('%')[0]) * currentWidth / previousWidth).toFixed(4) + "%";
243
+ thTdElm[i].style.width = (Number(thTdElm[i].dataset.oldWidth.split('%')[0]) * currentWidth / previousWidth).toFixed(4) + '%';
244
244
  delete thTdElm[i].dataset.oldWidth;
245
245
  }
246
246
  e.item.selection.setSelectionText(this.parent.currentDocument, selectedCell, selectedCell, 0, 0);
@@ -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, targetNode: Node, formatNode?: string[], fontSize?: string[], fontName?: string[], documentNode?: Node): IToolbarStatus;
24
24
  private static getImmediateBlockNode;
@@ -6,7 +6,7 @@ import { getDefaultHtmlTbStatus } from './../../common/util';
6
6
  * Update Toolbar Status
7
7
  *
8
8
  * @hidden
9
-
9
+ * @deprecated
10
10
  */
11
11
  export var statusCollection = getDefaultHtmlTbStatus();
12
12
  var ToolbarStatus = /** @class */ (function () {
@@ -23,7 +23,7 @@ var ToolbarStatus = /** @class */ (function () {
23
23
  * @param {Node} documentNode - specifies the document node.
24
24
  * @returns {IToolbarStatus} - returns the toolbar status
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  ToolbarStatus.get = function (docElement, targetNode, formatNode, fontSize, fontName, documentNode) {
29
29
  var formatCollection = JSON.parse(JSON.stringify(statusCollection));
@@ -35,8 +35,8 @@ var ToolbarStatus = /** @class */ (function () {
35
35
  var range = nodeSelection.getRange(docElement);
36
36
  for (var index = 0; index < nodes.length; index++) {
37
37
  while (nodes[index].nodeType === 3 && range.startContainer.nodeType === 3 && nodes[index].parentNode &&
38
- nodes[index].parentNode.lastElementChild && nodes[index].parentNode.lastElementChild.nodeName !== "BR" &&
39
- this.getImmediateBlockNode(nodes[index].parentNode, targetNode).textContent.replace(/\u200B/g, '').length === 0 &&
38
+ nodes[index].parentNode.lastElementChild && nodes[index].parentNode.lastElementChild.nodeName !== 'BR' &&
39
+ (this.getImmediateBlockNode(nodes[index].parentNode)).textContent.replace(/\u200B/g, '').length === 0 &&
40
40
  range.startContainer.textContent.replace(/\u200B/g, '').length === 0 &&
41
41
  nodeSelection.get(docElement).toString().replace(/\u200B/g, '').length === 0) {
42
42
  nodes[index] = nodes[index].parentNode.lastElementChild.firstChild;
@@ -112,7 +112,7 @@ var ToolbarStatus = /** @class */ (function () {
112
112
  }
113
113
  return nodeCollection;
114
114
  };
115
- ToolbarStatus.getImmediateBlockNode = function (node, editNode) {
115
+ ToolbarStatus.getImmediateBlockNode = function (node) {
116
116
  do {
117
117
  node = node.parentNode;
118
118
  } while (node && CONSTANT.BLOCK_TAGS.indexOf(node.nodeName.toLocaleLowerCase()) < 0);
@@ -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;
@@ -45,7 +45,7 @@ export declare class UndoRedoManager {
45
45
  * @param {KeyboardEvent} e - specifies the keyboard event
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
51
51
  /**
@@ -55,7 +55,7 @@ export declare class UndoRedoManager {
55
55
  * @param {IHtmlSubCommands} e - specifies the sub commands
56
56
  * @returns {void}
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  undo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
61
61
  /**
@@ -65,7 +65,7 @@ export declare class UndoRedoManager {
65
65
  * @function redo
66
66
  * @returns {void}
67
67
  * @hidden
68
-
68
+ * @deprecated
69
69
  */
70
70
  redo(e?: IHtmlSubCommands | IHtmlKeyboardEvent): void;
71
71
  /**
@@ -73,7 +73,7 @@ export declare class UndoRedoManager {
73
73
  *
74
74
  * @returns {boolean} - returns the boolean value
75
75
  * @hidden
76
-
76
+ * @deprecated
77
77
  */
78
78
  getUndoStatus(): {
79
79
  [key: string]: boolean;
@@ -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();
@@ -92,7 +92,7 @@ var UndoRedoManager = /** @class */ (function () {
92
92
  * @param {KeyboardEvent} e - specifies the keyboard event
93
93
  * @returns {void}
94
94
  * @hidden
95
-
95
+ * @deprecated
96
96
  */
97
97
  UndoRedoManager.prototype.saveData = function (e) {
98
98
  var range = new NodeSelection().getRange(this.parent.currentDocument);
@@ -126,7 +126,7 @@ var UndoRedoManager = /** @class */ (function () {
126
126
  * @param {IHtmlSubCommands} e - specifies the sub commands
127
127
  * @returns {void}
128
128
  * @hidden
129
-
129
+ * @deprecated
130
130
  */
131
131
  UndoRedoManager.prototype.undo = function (e) {
132
132
  if (this.steps > 0) {
@@ -157,7 +157,7 @@ var UndoRedoManager = /** @class */ (function () {
157
157
  * @function redo
158
158
  * @returns {void}
159
159
  * @hidden
160
-
160
+ * @deprecated
161
161
  */
162
162
  UndoRedoManager.prototype.redo = function (e) {
163
163
  if (this.undoRedoStack[this.steps + 1] != null) {
@@ -185,7 +185,7 @@ var UndoRedoManager = /** @class */ (function () {
185
185
  *
186
186
  * @returns {boolean} - returns the boolean value
187
187
  * @hidden
188
-
188
+ * @deprecated
189
189
  */
190
190
  UndoRedoManager.prototype.getUndoStatus = function () {
191
191
  var status = { undo: false, redo: false };
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -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
  /**
@@ -13,7 +13,7 @@ import { ClearFormat } from './../plugin/clearformat';
13
13
  * MarkdownParser internal component
14
14
  *
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  export declare class MarkdownParser {
19
19
  observer: Observer;
@@ -40,7 +40,7 @@ export declare class MarkdownParser {
40
40
  *
41
41
  * @param {IMarkdownParserModel} options - specifies the options
42
42
  * @hidden
43
-
43
+ * @deprecated
44
44
  */
45
45
  constructor(options: IMarkdownParserModel);
46
46
  private initialize;
@@ -59,7 +59,7 @@ export declare class MarkdownParser {
59
59
  * @param {T} exeValue - specifies the value
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  execCommand<T>(command: MarkdownExecCommand, value: T, event?: Event, callBack?: Function, text?: string, exeValue?: T): void;
65
65
  }
@@ -15,7 +15,7 @@ import { ClearFormat } from './../plugin/clearformat';
15
15
  * MarkdownParser internal component
16
16
  *
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  var MarkdownParser = /** @class */ (function () {
21
21
  /**
@@ -23,7 +23,7 @@ var MarkdownParser = /** @class */ (function () {
23
23
  *
24
24
  * @param {IMarkdownParserModel} options - specifies the options
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  function MarkdownParser(options) {
29
29
  this.initialize();
@@ -70,7 +70,7 @@ var MarkdownParser = /** @class */ (function () {
70
70
  * @param {T} exeValue - specifies the value
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  /* eslint-enable */
76
76
  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';
@@ -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 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;