@syncfusion/ej2-richtexteditor 23.2.7-52849 → 24.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/.eslintrc.json +260 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
  3. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
  4. package/CHANGELOG.md +1775 -1751
  5. package/README.md +76 -76
  6. package/dist/ej2-richtexteditor.min.js +10 -0
  7. package/dist/ej2-richtexteditor.umd.min.js +10 -1
  8. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  9. package/dist/es6/ej2-richtexteditor.es2015.js +682 -434
  10. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  11. package/dist/es6/ej2-richtexteditor.es5.js +791 -543
  12. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  13. package/dist/global/ej2-richtexteditor.min.js +11 -0
  14. package/dist/global/ej2-richtexteditor.min.js.map +1 -0
  15. package/dist/global/index.d.ts +14 -0
  16. package/helpers/e2e/index.js +3 -3
  17. package/helpers/e2e/rte-helper.js +13 -13
  18. package/license +9 -9
  19. package/package.json +74 -74
  20. package/src/common/config.js +1 -1
  21. package/src/common/interface.d.ts +7 -7
  22. package/src/editor-manager/base/classes.d.ts +1 -1
  23. package/src/editor-manager/base/classes.js +1 -1
  24. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  25. package/src/editor-manager/base/editor-manager.js +3 -3
  26. package/src/editor-manager/base/enum.d.ts +2 -2
  27. package/src/editor-manager/base/interface.d.ts +9 -9
  28. package/src/editor-manager/base/types.d.ts +1 -1
  29. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  30. package/src/editor-manager/plugin/alignments.js +2 -2
  31. package/src/editor-manager/plugin/audio.d.ts +3 -3
  32. package/src/editor-manager/plugin/audio.js +16 -6
  33. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  34. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  35. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  36. package/src/editor-manager/plugin/clearformat.js +1 -1
  37. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  38. package/src/editor-manager/plugin/dom-node.js +35 -48
  39. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  40. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  41. package/src/editor-manager/plugin/formats.d.ts +2 -2
  42. package/src/editor-manager/plugin/formats.js +2 -2
  43. package/src/editor-manager/plugin/image.d.ts +3 -3
  44. package/src/editor-manager/plugin/image.js +33 -6
  45. package/src/editor-manager/plugin/indents.d.ts +2 -2
  46. package/src/editor-manager/plugin/indents.js +2 -2
  47. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  48. package/src/editor-manager/plugin/insert-methods.js +4 -4
  49. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  50. package/src/editor-manager/plugin/insert-text.js +2 -2
  51. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  52. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  53. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  54. package/src/editor-manager/plugin/inserthtml.js +7 -4
  55. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  56. package/src/editor-manager/plugin/isformatted.js +8 -8
  57. package/src/editor-manager/plugin/link.d.ts +2 -2
  58. package/src/editor-manager/plugin/link.js +2 -2
  59. package/src/editor-manager/plugin/lists.d.ts +2 -2
  60. package/src/editor-manager/plugin/lists.js +2 -2
  61. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  62. package/src/editor-manager/plugin/ms-word-clean-up.js +5 -2
  63. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  64. package/src/editor-manager/plugin/nodecutter.js +7 -7
  65. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  66. package/src/editor-manager/plugin/selection-commands.js +40 -1
  67. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  68. package/src/editor-manager/plugin/selection-exec.js +2 -2
  69. package/src/editor-manager/plugin/table.d.ts +2 -2
  70. package/src/editor-manager/plugin/table.js +2 -2
  71. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  72. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  73. package/src/editor-manager/plugin/undo.d.ts +6 -6
  74. package/src/editor-manager/plugin/undo.js +6 -6
  75. package/src/editor-manager/plugin/video.d.ts +3 -3
  76. package/src/editor-manager/plugin/video.js +3 -3
  77. package/src/markdown-parser/base/interface.d.ts +10 -10
  78. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  79. package/src/markdown-parser/base/markdown-parser.js +3 -3
  80. package/src/markdown-parser/base/types.d.ts +1 -1
  81. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  82. package/src/markdown-parser/plugin/clearformat.js +2 -2
  83. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  84. package/src/markdown-parser/plugin/formats.js +2 -2
  85. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  86. package/src/markdown-parser/plugin/insert-text.js +2 -2
  87. package/src/markdown-parser/plugin/link.d.ts +2 -2
  88. package/src/markdown-parser/plugin/link.js +2 -2
  89. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  90. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  91. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  92. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  93. package/src/markdown-parser/plugin/table.d.ts +3 -3
  94. package/src/markdown-parser/plugin/table.js +3 -3
  95. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  96. package/src/markdown-parser/plugin/undo.js +6 -6
  97. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  98. package/src/rich-text-editor/actions/base-quick-toolbar.js +27 -13
  99. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  100. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  101. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  102. package/src/rich-text-editor/actions/color-picker.js +5 -5
  103. package/src/rich-text-editor/actions/count.d.ts +3 -3
  104. package/src/rich-text-editor/actions/count.js +3 -3
  105. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  106. package/src/rich-text-editor/actions/dropdown-buttons.js +6 -4
  107. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  108. package/src/rich-text-editor/actions/emoji-picker.js +13 -4
  109. package/src/rich-text-editor/actions/enter-key.js +2 -1
  110. package/src/rich-text-editor/actions/file-manager.js +1 -1
  111. package/src/rich-text-editor/actions/format-painter.js +1 -1
  112. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  113. package/src/rich-text-editor/actions/full-screen.js +5 -5
  114. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  115. package/src/rich-text-editor/actions/html-editor.js +32 -6
  116. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  117. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  118. package/src/rich-text-editor/actions/keyboard.js +20 -20
  119. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  120. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  121. package/src/rich-text-editor/actions/paste-clean-up.d.ts +3 -1
  122. package/src/rich-text-editor/actions/paste-clean-up.js +73 -20
  123. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  124. package/src/rich-text-editor/actions/quick-toolbar.js +33 -14
  125. package/src/rich-text-editor/actions/toolbar.d.ts +14 -13
  126. package/src/rich-text-editor/actions/toolbar.js +31 -23
  127. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  128. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  129. package/src/rich-text-editor/base/classes.d.ts +126 -121
  130. package/src/rich-text-editor/base/classes.js +126 -121
  131. package/src/rich-text-editor/base/constant.d.ts +155 -150
  132. package/src/rich-text-editor/base/constant.js +155 -150
  133. package/src/rich-text-editor/base/enum.d.ts +1 -1
  134. package/src/rich-text-editor/base/enum.js +1 -1
  135. package/src/rich-text-editor/base/interface.d.ts +59 -49
  136. package/src/rich-text-editor/base/interface.js +1 -1
  137. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  138. package/src/rich-text-editor/base/rich-text-editor.d.ts +69 -60
  139. package/src/rich-text-editor/base/rich-text-editor.js +143 -80
  140. package/src/rich-text-editor/base/util.d.ts +1 -1
  141. package/src/rich-text-editor/base/util.js +12 -3
  142. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  143. package/src/rich-text-editor/formatter/formatter.js +9 -9
  144. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  145. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  146. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  147. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  148. package/src/rich-text-editor/models/default-locale.js +2 -0
  149. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  150. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  151. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  152. package/src/rich-text-editor/models/inline-mode.js +19 -19
  153. package/src/rich-text-editor/models/items.js +1 -1
  154. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  155. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  156. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  158. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  159. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  160. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  161. package/src/rich-text-editor/renderer/dialog-renderer.js +12 -3
  162. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  163. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  164. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  165. package/src/rich-text-editor/renderer/image-module.js +53 -53
  166. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  167. package/src/rich-text-editor/renderer/link-module.js +44 -24
  168. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  169. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  170. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  171. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  172. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  173. package/src/rich-text-editor/renderer/render.js +2 -2
  174. package/src/rich-text-editor/renderer/table-module.d.ts +3 -1
  175. package/src/rich-text-editor/renderer/table-module.js +44 -31
  176. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -15
  177. package/src/rich-text-editor/renderer/toolbar-renderer.js +22 -102
  178. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  179. package/src/rich-text-editor/renderer/video-module.js +1 -1
  180. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  181. package/src/rich-text-editor/renderer/view-source.js +9 -7
  182. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  183. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  184. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  185. package/src/rich-text-editor/services/service-locator.js +3 -3
  186. package/src/selection/selection.d.ts +22 -22
  187. package/src/selection/selection.js +22 -22
  188. package/styles/_all.scss +1 -1
  189. package/styles/bootstrap-dark.css +194 -52
  190. package/styles/bootstrap.css +197 -53
  191. package/styles/bootstrap4.css +194 -52
  192. package/styles/bootstrap5-dark.css +195 -53
  193. package/styles/bootstrap5.css +195 -53
  194. package/styles/fabric-dark.css +194 -52
  195. package/styles/fabric.css +194 -52
  196. package/styles/fluent-dark.css +197 -53
  197. package/styles/fluent.css +197 -53
  198. package/styles/highcontrast-light.css +194 -52
  199. package/styles/highcontrast.css +194 -52
  200. package/styles/material-dark.css +196 -53
  201. package/styles/material.css +196 -53
  202. package/styles/material3-dark.css +194 -52
  203. package/styles/material3-dark.scss +1 -1
  204. package/styles/material3.css +194 -52
  205. package/styles/material3.scss +1 -1
  206. package/styles/rich-text-editor/_all.scss +2 -2
  207. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
  208. package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
  209. package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
  210. package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
  211. package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
  212. package/styles/rich-text-editor/_fabric-definition.scss +257 -257
  213. package/styles/rich-text-editor/_fluent-definition.scss +263 -263
  214. package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
  215. package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
  216. package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
  217. package/styles/rich-text-editor/_layout.scss +2147 -2072
  218. package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
  219. package/styles/rich-text-editor/_material-definition.scss +260 -260
  220. package/styles/rich-text-editor/_material3-definition.scss +262 -262
  221. package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
  222. package/styles/rich-text-editor/_theme.scss +837 -837
  223. package/styles/rich-text-editor/bootstrap-dark.css +194 -52
  224. package/styles/rich-text-editor/bootstrap.css +197 -53
  225. package/styles/rich-text-editor/bootstrap4.css +194 -52
  226. package/styles/rich-text-editor/bootstrap5-dark.css +195 -53
  227. package/styles/rich-text-editor/bootstrap5.css +195 -53
  228. package/styles/rich-text-editor/fabric-dark.css +194 -52
  229. package/styles/rich-text-editor/fabric.css +194 -52
  230. package/styles/rich-text-editor/fluent-dark.css +197 -53
  231. package/styles/rich-text-editor/fluent.css +197 -53
  232. package/styles/rich-text-editor/highcontrast-light.css +194 -52
  233. package/styles/rich-text-editor/highcontrast.css +194 -52
  234. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  235. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  236. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  237. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  238. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  239. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  240. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  241. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  242. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  243. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  244. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  245. package/styles/rich-text-editor/icons/_material.scss +349 -349
  246. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  247. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  248. package/styles/rich-text-editor/material-dark.css +196 -53
  249. package/styles/rich-text-editor/material.css +196 -53
  250. package/styles/rich-text-editor/material3-dark.css +194 -52
  251. package/styles/rich-text-editor/material3-dark.scss +1 -1
  252. package/styles/rich-text-editor/material3.css +194 -52
  253. package/styles/rich-text-editor/material3.scss +1 -1
  254. package/styles/rich-text-editor/tailwind-dark.css +194 -52
  255. package/styles/rich-text-editor/tailwind.css +194 -52
  256. package/styles/tailwind-dark.css +194 -52
  257. package/styles/tailwind.css +194 -52
  258. package/tslint.json +111 -0
  259. package/src/global.d.ts +0 -1
@@ -6,7 +6,7 @@ import { InsertHtml } from './inserthtml';
6
6
  * Link internal component
7
7
  *
8
8
  * @hidden
9
- * @deprecated
9
+
10
10
  */
11
11
  var ImageCommand = /** @class */ (function () {
12
12
  /**
@@ -14,7 +14,7 @@ var ImageCommand = /** @class */ (function () {
14
14
  *
15
15
  * @param {EditorManager} parent - specifies the parent element
16
16
  * @hidden
17
- * @deprecated
17
+
18
18
  */
19
19
  function ImageCommand(parent) {
20
20
  this.parent = parent;
@@ -29,7 +29,7 @@ var ImageCommand = /** @class */ (function () {
29
29
  * @param {IHtmlItem} e - specifies the element
30
30
  * @returns {void}
31
31
  * @hidden
32
- * @deprecated
32
+
33
33
  */
34
34
  ImageCommand.prototype.imageCommand = function (e) {
35
35
  switch (e.value.toString().toLowerCase()) {
@@ -84,8 +84,8 @@ var ImageCommand = /** @class */ (function () {
84
84
  e.item.url = isNOU(e.item.url) || e.item.url === 'undefined' ? e.item.src : e.item.url;
85
85
  if (!isNOU(e.item.selectParent) && e.item.selectParent[0].tagName === 'IMG') {
86
86
  var imgEle = e.item.selectParent[0];
87
- this.setStyle(imgEle, e);
88
87
  isReplaced = true;
88
+ this.setStyle(imgEle, e, isReplaced);
89
89
  }
90
90
  else {
91
91
  var imgElement = createElement('img');
@@ -121,12 +121,34 @@ var ImageCommand = /** @class */ (function () {
121
121
  }
122
122
  });
123
123
  }
124
+ if (e.value === 'Replace') {
125
+ e.item.subCommand = 'Replace';
126
+ this.callBack(e);
127
+ }
124
128
  };
125
- ImageCommand.prototype.setStyle = function (imgElement, e) {
129
+ ImageCommand.prototype.setStyle = function (imgElement, e, imgReplace) {
126
130
  if (!isNOU(e.item.url)) {
127
131
  imgElement.setAttribute('src', e.item.url);
128
132
  }
129
- imgElement.setAttribute('class', 'e-rte-image' + (isNOU(e.item.cssClass) ? '' : ' ' + e.item.cssClass));
133
+ var alignClassName;
134
+ if (imgReplace) {
135
+ var alignClass = {
136
+ 'e-imgcenter': 'e-imgcenter',
137
+ 'e-imgright': 'e-imgright',
138
+ 'e-imgleft': 'e-imgleft'
139
+ };
140
+ var imgClassList = imgElement.classList;
141
+ var classArray = [];
142
+ for (var i = 0; i < imgClassList.length; i++) {
143
+ // eslint-disable-next-line
144
+ if (!isNOU(alignClass[imgClassList[i]])) {
145
+ // eslint-disable-next-line
146
+ alignClassName = alignClass[imgClassList[i]];
147
+ }
148
+ }
149
+ }
150
+ imgElement.setAttribute('class', 'e-rte-image' + (isNOU(e.item.cssClass) ? '' : ' ' + e.item.cssClass)
151
+ + (isNOU(alignClassName) ? '' : ' ' + alignClassName));
130
152
  if (!isNOU(e.item.altText)) {
131
153
  imgElement.setAttribute('alt', e.item.altText);
132
154
  }
@@ -178,6 +200,9 @@ var ImageCommand = /** @class */ (function () {
178
200
  if (!isNOU(e.item.target)) {
179
201
  anchor.setAttribute('target', e.item.target);
180
202
  }
203
+ if (!isNOU(e.item.ariaLabel)) {
204
+ anchor.setAttribute('aria-label', e.item.ariaLabel);
205
+ }
181
206
  InsertHtml.Insert(this.parent.currentDocument, anchor, this.parent.editableElement);
182
207
  this.callBack(e);
183
208
  };
@@ -209,9 +234,11 @@ var ImageCommand = /** @class */ (function () {
209
234
  e.item.selectNode[0].parentElement.href = e.item.url;
210
235
  if (isNOU(e.item.target)) {
211
236
  e.item.selectNode[0].parentElement.removeAttribute('target');
237
+ e.item.selectNode[0].parentElement.removeAttribute('aria-label');
212
238
  }
213
239
  else {
214
240
  e.item.selectNode[0].parentElement.target = e.item.target;
241
+ e.item.selectNode[0].parentElement.ariaLabel = e.item.ariaLabel;
215
242
  }
216
243
  this.callBack(e);
217
244
  };
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Indents internal component
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class Indents {
9
9
  private parent;
@@ -13,7 +13,7 @@ export declare class Indents {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
- * @deprecated
16
+
17
17
  */
18
18
  constructor(parent: EditorManager);
19
19
  private addEventListener;
@@ -5,7 +5,7 @@ import { isIDevice, setEditFrameFocus } from '../../common/util';
5
5
  * Indents internal component
6
6
  *
7
7
  * @hidden
8
- * @deprecated
8
+
9
9
  */
10
10
  var Indents = /** @class */ (function () {
11
11
  /**
@@ -13,7 +13,7 @@ var Indents = /** @class */ (function () {
13
13
  *
14
14
  * @param {EditorManager} parent - specifies the parent element
15
15
  * @hidden
16
- * @deprecated
16
+
17
17
  */
18
18
  function Indents(parent) {
19
19
  this.indentValue = 20;
@@ -12,7 +12,7 @@ export declare class InsertMethods {
12
12
  * @param {boolean} isAfter - specifies the boolean value
13
13
  * @returns {Text} - returns the text value
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  static WrapBefore(textNode: Text, parentNode: HTMLElement, isAfter?: boolean): Text;
18
18
  /**
@@ -22,7 +22,7 @@ export declare class InsertMethods {
22
22
  * @param {HTMLElement} parentNode - specifies the parent node.
23
23
  * @returns {HTMLElement} - returns the element
24
24
  * @hidden
25
- * @deprecated
25
+
26
26
  */
27
27
  static Wrap(childNode: HTMLElement, parentNode: HTMLElement): HTMLElement;
28
28
  /**
@@ -31,7 +31,7 @@ export declare class InsertMethods {
31
31
  * @param {Node} node - specifies the node element.
32
32
  * @returns {Node[]} - returns the array of value
33
33
  * @hidden
34
- * @deprecated
34
+
35
35
  */
36
36
  static unwrap(node: Node | HTMLElement): Node[];
37
37
  /**
@@ -42,7 +42,7 @@ export declare class InsertMethods {
42
42
  * @param {boolean} isAfter - specifies the boolean value
43
43
  * @returns {void}
44
44
  * @hidden
45
- * @deprecated
45
+
46
46
  */
47
47
  static AppendBefore(textNode: HTMLElement | Text | DocumentFragment, parentNode: HTMLElement | Text | DocumentFragment, isAfter?: boolean): HTMLElement | Text | DocumentFragment;
48
48
  }
@@ -14,7 +14,7 @@ var InsertMethods = /** @class */ (function () {
14
14
  * @param {boolean} isAfter - specifies the boolean value
15
15
  * @returns {Text} - returns the text value
16
16
  * @hidden
17
- * @deprecated
17
+
18
18
  */
19
19
  InsertMethods.WrapBefore = function (textNode, parentNode, isAfter) {
20
20
  parentNode.innerText = textNode.textContent;
@@ -32,7 +32,7 @@ var InsertMethods = /** @class */ (function () {
32
32
  * @param {HTMLElement} parentNode - specifies the parent node.
33
33
  * @returns {HTMLElement} - returns the element
34
34
  * @hidden
35
- * @deprecated
35
+
36
36
  */
37
37
  InsertMethods.Wrap = function (childNode, parentNode) {
38
38
  this.AppendBefore(parentNode, childNode);
@@ -45,7 +45,7 @@ var InsertMethods = /** @class */ (function () {
45
45
  * @param {Node} node - specifies the node element.
46
46
  * @returns {Node[]} - returns the array of value
47
47
  * @hidden
48
- * @deprecated
48
+
49
49
  */
50
50
  InsertMethods.unwrap = function (node) {
51
51
  var parent = node.parentNode;
@@ -64,7 +64,7 @@ var InsertMethods = /** @class */ (function () {
64
64
  * @param {boolean} isAfter - specifies the boolean value
65
65
  * @returns {void}
66
66
  * @hidden
67
- * @deprecated
67
+
68
68
  */
69
69
  InsertMethods.AppendBefore = function (textNode, parentNode, isAfter) {
70
70
  return (parentNode.parentNode) ? ((!isAfter) ? parentNode.parentNode.insertBefore(textNode, parentNode)
@@ -3,7 +3,7 @@ import { EditorManager } from '../base/editor-manager';
3
3
  * Insert a Text Node or Text
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class InsertTextExec {
9
9
  private parent;
@@ -12,7 +12,7 @@ export declare class InsertTextExec {
12
12
  *
13
13
  * @param {EditorManager} parent - specifies the parent element
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -4,7 +4,7 @@ import { InsertHtml } from './inserthtml';
4
4
  * Insert a Text Node or Text
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  var InsertTextExec = /** @class */ (function () {
10
10
  /**
@@ -12,7 +12,7 @@ var InsertTextExec = /** @class */ (function () {
12
12
  *
13
13
  * @param {EditorManager} parent - specifies the parent element
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  function InsertTextExec(parent) {
18
18
  this.parent = parent;
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Selection EXEC internal component
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class InsertHtmlExec {
9
9
  private parent;
@@ -12,7 +12,7 @@ export declare class InsertHtmlExec {
12
12
  *
13
13
  * @param {EditorManager} parent - sepcifies the parent element
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -4,7 +4,7 @@ import { InsertHtml } from './inserthtml';
4
4
  * Selection EXEC internal component
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  var InsertHtmlExec = /** @class */ (function () {
10
10
  /**
@@ -12,7 +12,7 @@ var InsertHtmlExec = /** @class */ (function () {
12
12
  *
13
13
  * @param {EditorManager} parent - sepcifies the parent element
14
14
  * @hidden
15
- * @deprecated
15
+
16
16
  */
17
17
  function InsertHtmlExec(parent) {
18
18
  this.parent = parent;
@@ -2,14 +2,14 @@
2
2
  * Insert a HTML Node or Text
3
3
  *
4
4
  * @hidden
5
- * @deprecated
5
+
6
6
  */
7
7
  export declare class InsertHtml {
8
8
  /**
9
9
  * Insert method
10
10
  *
11
11
  * @hidden
12
- * @deprecated
12
+
13
13
  */
14
14
  static inlineNode: string[];
15
15
  static contentsDeleted: boolean;
@@ -8,7 +8,7 @@ import { updateTextNode } from './../../common/util';
8
8
  * Insert a HTML Node or Text
9
9
  *
10
10
  * @hidden
11
- * @deprecated
11
+
12
12
  */
13
13
  var InsertHtml = /** @class */ (function () {
14
14
  function InsertHtml() {
@@ -119,6 +119,9 @@ var InsertHtml = /** @class */ (function () {
119
119
  InsertMethods.AppendBefore(node, parentNode.firstChild, false);
120
120
  }
121
121
  }
122
+ else if (isNOU(preNode.previousSibling) && insertNode.tagName === 'TABLE') {
123
+ parentNode.prepend(node);
124
+ }
122
125
  else {
123
126
  parentNode.appendChild(node);
124
127
  }
@@ -296,7 +299,7 @@ var InsertHtml = /** @class */ (function () {
296
299
  (this.inlineNode.indexOf(node.firstChild.nodeName.toLocaleLowerCase()) >= 0 && isFirstTextNode)) {
297
300
  lastSelectionNode = node.firstChild;
298
301
  if (isNOU(node.previousElementSibling)) {
299
- var firstParaElm = createElement('p');
302
+ var firstParaElm = enterAction === 'DIV' ? createElement('div') : createElement('p');
300
303
  node.parentElement.insertBefore(firstParaElm, node);
301
304
  }
302
305
  if (node.previousElementSibling.nodeName === 'BR') {
@@ -311,7 +314,7 @@ var InsertHtml = /** @class */ (function () {
311
314
  if (node.firstChild.nodeName === '#text' ||
312
315
  (this.inlineNode.indexOf(node.firstChild.nodeName.toLocaleLowerCase()) >= 0)) {
313
316
  if (!isPreviousInlineElem) {
314
- paraElm = createElement('p');
317
+ paraElm = enterAction === 'DIV' ? createElement('div') : createElement('p');
315
318
  paraElm.appendChild(node.firstChild);
316
319
  fragment.appendChild(paraElm);
317
320
  }
@@ -539,7 +542,7 @@ var InsertHtml = /** @class */ (function () {
539
542
  * Insert method
540
543
  *
541
544
  * @hidden
542
- * @deprecated
545
+
543
546
  */
544
547
  InsertHtml.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
545
548
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -2,7 +2,7 @@
2
2
  * Is formatted or not.
3
3
  *
4
4
  * @hidden
5
- * @deprecated
5
+
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
- * @deprecated
17
+
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
- * @deprecated
28
+
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
- * @deprecated
37
+
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
- * @deprecated
46
+
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
- * @deprecated
55
+
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
- * @deprecated
64
+
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
- * @deprecated
73
+
74
74
  */
75
75
  static isSubscript(node: Node): boolean;
76
76
  private isFontColor;
@@ -2,7 +2,7 @@
2
2
  * Is formatted or not.
3
3
  *
4
4
  * @hidden
5
- * @deprecated
5
+
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
- * @deprecated
18
+
19
19
  */
20
20
  IsFormatted.prototype.getFormattedNode = function (node, format, endNode) {
21
21
  var parentNode = this.getFormatParent(node, format, endNode);
@@ -62,7 +62,7 @@ var IsFormatted = /** @class */ (function () {
62
62
  * @param {Node} node - specifies the node value
63
63
  * @returns {boolean} - returns the boolean value
64
64
  * @hidden
65
- * @deprecated
65
+
66
66
  */
67
67
  IsFormatted.isBold = function (node) {
68
68
  var validTags = ['strong', 'b'];
@@ -83,7 +83,7 @@ var IsFormatted = /** @class */ (function () {
83
83
  * @param {Node} node - specifies the node value
84
84
  * @returns {boolean} - returns the boolean value
85
85
  * @hidden
86
- * @deprecated
86
+
87
87
  */
88
88
  IsFormatted.isItalic = function (node) {
89
89
  var validTags = ['em', 'i'];
@@ -104,7 +104,7 @@ var IsFormatted = /** @class */ (function () {
104
104
  * @param {Node} node - specifies the node value
105
105
  * @returns {boolean} - returns the boolean value
106
106
  * @hidden
107
- * @deprecated
107
+
108
108
  */
109
109
  IsFormatted.isUnderline = function (node) {
110
110
  var validTags = ['u'];
@@ -128,7 +128,7 @@ var IsFormatted = /** @class */ (function () {
128
128
  * @param {Node} node - specifies the node value
129
129
  * @returns {boolean} - returns the boolean value
130
130
  * @hidden
131
- * @deprecated
131
+
132
132
  */
133
133
  IsFormatted.isStrikethrough = function (node) {
134
134
  var validTags = ['del', 'strike'];
@@ -152,7 +152,7 @@ var IsFormatted = /** @class */ (function () {
152
152
  * @param {Node} node - specifies the node value
153
153
  * @returns {boolean} - returns the boolean value
154
154
  * @hidden
155
- * @deprecated
155
+
156
156
  */
157
157
  IsFormatted.isSuperscript = function (node) {
158
158
  var validTags = ['sup'];
@@ -169,7 +169,7 @@ var IsFormatted = /** @class */ (function () {
169
169
  * @param {Node} node - specifies the node value
170
170
  * @returns {boolean} - returns the boolean value
171
171
  * @hidden
172
- * @deprecated
172
+
173
173
  */
174
174
  IsFormatted.isSubscript = function (node) {
175
175
  var validTags = ['sub'];
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Link internal component
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
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
- * @deprecated
15
+
16
16
  */
17
17
  constructor(parent: EditorManager);
18
18
  private addEventListener;
@@ -7,7 +7,7 @@ import { createElement, isNullOrUndefined as isNOU, closest } from '@syncfusion/
7
7
  * Link internal component
8
8
  *
9
9
  * @hidden
10
- * @deprecated
10
+
11
11
  */
12
12
  var LinkCommand = /** @class */ (function () {
13
13
  /**
@@ -15,7 +15,7 @@ var LinkCommand = /** @class */ (function () {
15
15
  *
16
16
  * @param {EditorManager} parent - specifies the editor manager
17
17
  * @hidden
18
- * @deprecated
18
+
19
19
  */
20
20
  function LinkCommand(parent) {
21
21
  this.parent = parent;
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
3
3
  * Lists internal component
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class Lists {
9
9
  private parent;
@@ -18,7 +18,7 @@ export declare class Lists {
18
18
  *
19
19
  * @param {EditorManager} parent - specifies the parent element
20
20
  * @hidden
21
- * @deprecated
21
+
22
22
  */
23
23
  constructor(parent: EditorManager);
24
24
  private addEventListener;
@@ -9,7 +9,7 @@ import { isNullOrUndefined, isNullOrUndefined as isNOU, closest } from '@syncfus
9
9
  * Lists internal component
10
10
  *
11
11
  * @hidden
12
- * @deprecated
12
+
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
- * @deprecated
20
+
21
21
  */
22
22
  function Lists(parent) {
23
23
  this.parent = parent;
@@ -3,7 +3,7 @@ import { EditorManager } from '../base/editor-manager';
3
3
  * PasteCleanup for MsWord content
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class MsWordPaste {
9
9
  private parent;
@@ -4,7 +4,7 @@ import { createElement, isNullOrUndefined as isNOU, detach } from '@syncfusion/e
4
4
  * PasteCleanup for MsWord content
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  var MsWordPaste = /** @class */ (function () {
10
10
  function MsWordPaste(parent) {
@@ -474,6 +474,9 @@ var MsWordPaste = /** @class */ (function () {
474
474
  resultElem = elm.querySelectorAll(keys[i]);
475
475
  }
476
476
  for (var j = 0; j < resultElem.length; j++) {
477
+ if (resultElem[j].closest('li') && keys[i] === 'p') {
478
+ continue;
479
+ }
477
480
  var styleProperty = resultElem[j].getAttribute('style');
478
481
  if (!isNOU(styleProperty) && styleProperty.trim() !== '') {
479
482
  var valueSplit = values[i].split(';');
@@ -772,7 +775,7 @@ var MsWordPaste = /** @class */ (function () {
772
775
  !isNormalList) {
773
776
  prevList = null;
774
777
  }
775
- var pElement = createElement('p');
778
+ var pElement = createElement('p', { className: 'MsoNormal' });
776
779
  pElement.innerHTML = collection[index].content.join(' ');
777
780
  if ((collection[index].nestedLevel === 1) && listCount === 0 && collection[index].content) {
778
781
  root.appendChild(temp = createElement(collection[index].listType, { className: collection[index].class }));
@@ -2,7 +2,7 @@
2
2
  * Split the Node based on selection
3
3
  *
4
4
  * @hidden
5
- * @deprecated
5
+
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
- * @deprecated
18
+
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
- * @deprecated
27
+
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
- * @deprecated
41
+
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
- * @deprecated
52
+
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
- * @deprecated
61
+
62
62
  */
63
63
  TrimLineBreak(line: string): string;
64
64
  }