@syncfusion/ej2-richtexteditor 25.1.39 → 25.1.41-85815

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +2067 -1961
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +806 -311
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +909 -410
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/ej2-richtexteditor-component.sln +30 -0
  11. package/helpers/e2e/index.js +3 -3
  12. package/helpers/e2e/rte-helper.js +13 -13
  13. package/license +9 -9
  14. package/package.json +74 -74
  15. package/src/common/interface.d.ts +22 -8
  16. package/src/common/util.d.ts +8 -0
  17. package/src/common/util.js +56 -1
  18. package/src/editor-manager/base/classes.d.ts +1 -1
  19. package/src/editor-manager/base/classes.js +1 -1
  20. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  21. package/src/editor-manager/base/editor-manager.js +8 -6
  22. package/src/editor-manager/base/enum.d.ts +2 -2
  23. package/src/editor-manager/base/interface.d.ts +9 -9
  24. package/src/editor-manager/base/types.d.ts +1 -1
  25. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  26. package/src/editor-manager/plugin/alignments.js +5 -2
  27. package/src/editor-manager/plugin/audio.d.ts +3 -3
  28. package/src/editor-manager/plugin/audio.js +4 -4
  29. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  30. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  31. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  32. package/src/editor-manager/plugin/clearformat.js +1 -1
  33. package/src/editor-manager/plugin/dom-node.d.ts +54 -34
  34. package/src/editor-manager/plugin/dom-node.js +139 -36
  35. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  36. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  37. package/src/editor-manager/plugin/formats.d.ts +2 -2
  38. package/src/editor-manager/plugin/formats.js +8 -2
  39. package/src/editor-manager/plugin/image.d.ts +3 -3
  40. package/src/editor-manager/plugin/image.js +3 -3
  41. package/src/editor-manager/plugin/indents.d.ts +2 -2
  42. package/src/editor-manager/plugin/indents.js +5 -2
  43. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  44. package/src/editor-manager/plugin/insert-methods.js +4 -4
  45. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  46. package/src/editor-manager/plugin/insert-text.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  48. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  49. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  50. package/src/editor-manager/plugin/inserthtml.js +14 -5
  51. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  52. package/src/editor-manager/plugin/isformatted.js +8 -8
  53. package/src/editor-manager/plugin/link.d.ts +2 -2
  54. package/src/editor-manager/plugin/link.js +2 -2
  55. package/src/editor-manager/plugin/lists.d.ts +2 -2
  56. package/src/editor-manager/plugin/lists.js +84 -61
  57. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  58. package/src/editor-manager/plugin/ms-word-clean-up.js +4 -4
  59. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  60. package/src/editor-manager/plugin/nodecutter.js +8 -8
  61. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  62. package/src/editor-manager/plugin/selection-commands.js +1 -1
  63. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  64. package/src/editor-manager/plugin/selection-exec.js +2 -2
  65. package/src/editor-manager/plugin/table.d.ts +2 -2
  66. package/src/editor-manager/plugin/table.js +2 -2
  67. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  68. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  69. package/src/editor-manager/plugin/undo.d.ts +6 -6
  70. package/src/editor-manager/plugin/undo.js +9 -7
  71. package/src/editor-manager/plugin/video.d.ts +3 -3
  72. package/src/editor-manager/plugin/video.js +4 -4
  73. package/src/markdown-parser/base/interface.d.ts +10 -10
  74. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  75. package/src/markdown-parser/base/markdown-parser.js +3 -3
  76. package/src/markdown-parser/base/types.d.ts +1 -1
  77. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  78. package/src/markdown-parser/plugin/clearformat.js +2 -2
  79. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  80. package/src/markdown-parser/plugin/formats.js +2 -2
  81. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  82. package/src/markdown-parser/plugin/insert-text.js +2 -2
  83. package/src/markdown-parser/plugin/link.d.ts +2 -2
  84. package/src/markdown-parser/plugin/link.js +2 -2
  85. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  86. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  87. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  88. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  89. package/src/markdown-parser/plugin/table.d.ts +3 -3
  90. package/src/markdown-parser/plugin/table.js +3 -3
  91. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  92. package/src/markdown-parser/plugin/undo.js +6 -6
  93. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  94. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  95. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  96. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  97. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  98. package/src/rich-text-editor/actions/color-picker.js +2 -2
  99. package/src/rich-text-editor/actions/count.d.ts +3 -3
  100. package/src/rich-text-editor/actions/count.js +3 -3
  101. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  102. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  103. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  104. package/src/rich-text-editor/actions/emoji-picker.js +2 -2
  105. package/src/rich-text-editor/actions/enter-key.d.ts +6 -0
  106. package/src/rich-text-editor/actions/enter-key.js +142 -2
  107. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  108. package/src/rich-text-editor/actions/full-screen.js +3 -9
  109. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  110. package/src/rich-text-editor/actions/html-editor.js +106 -26
  111. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  112. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  113. package/src/rich-text-editor/actions/keyboard.js +20 -20
  114. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  115. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  116. package/src/rich-text-editor/actions/paste-clean-up.d.ts +2 -2
  117. package/src/rich-text-editor/actions/paste-clean-up.js +57 -40
  118. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  119. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  120. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  121. package/src/rich-text-editor/actions/toolbar.js +13 -13
  122. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  123. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  124. package/src/rich-text-editor/base/classes.d.ts +121 -121
  125. package/src/rich-text-editor/base/classes.js +121 -121
  126. package/src/rich-text-editor/base/constant.d.ts +158 -158
  127. package/src/rich-text-editor/base/constant.js +158 -158
  128. package/src/rich-text-editor/base/enum.d.ts +12 -1
  129. package/src/rich-text-editor/base/enum.js +13 -1
  130. package/src/rich-text-editor/base/interface.d.ts +59 -51
  131. package/src/rich-text-editor/base/interface.js +1 -1
  132. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  133. package/src/rich-text-editor/base/rich-text-editor.d.ts +65 -63
  134. package/src/rich-text-editor/base/rich-text-editor.js +89 -67
  135. package/src/rich-text-editor/base/util.d.ts +1 -1
  136. package/src/rich-text-editor/base/util.js +1 -1
  137. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  138. package/src/rich-text-editor/formatter/formatter.js +10 -9
  139. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  140. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  141. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  142. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  143. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  144. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  145. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  146. package/src/rich-text-editor/models/inline-mode.js +19 -19
  147. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  148. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  149. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  150. package/src/rich-text-editor/renderer/audio-module.js +7 -2
  151. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  152. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  153. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  154. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  155. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  156. package/src/rich-text-editor/renderer/iframe-content-renderer.js +18 -18
  157. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  158. package/src/rich-text-editor/renderer/image-module.js +13 -6
  159. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  160. package/src/rich-text-editor/renderer/link-module.js +4 -1
  161. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  162. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  163. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  164. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  165. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  166. package/src/rich-text-editor/renderer/render.js +2 -2
  167. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  168. package/src/rich-text-editor/renderer/table-module.js +6 -2
  169. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +11 -9
  170. package/src/rich-text-editor/renderer/toolbar-renderer.js +23 -19
  171. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  172. package/src/rich-text-editor/renderer/video-module.js +7 -2
  173. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  174. package/src/rich-text-editor/renderer/view-source.js +6 -6
  175. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  176. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  177. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  178. package/src/rich-text-editor/services/service-locator.js +3 -3
  179. package/src/selection/selection.d.ts +22 -22
  180. package/src/selection/selection.js +22 -22
  181. package/styles/_all.scss +1 -1
  182. package/styles/bootstrap-dark.css +739 -801
  183. package/styles/bootstrap-dark.scss +4 -1
  184. package/styles/bootstrap.css +723 -801
  185. package/styles/bootstrap.scss +4 -1
  186. package/styles/bootstrap4.css +726 -803
  187. package/styles/bootstrap4.scss +4 -1
  188. package/styles/bootstrap5-dark.css +750 -840
  189. package/styles/bootstrap5-dark.scss +4 -1
  190. package/styles/bootstrap5.css +749 -839
  191. package/styles/bootstrap5.scss +4 -1
  192. package/styles/fabric-dark.css +724 -797
  193. package/styles/fabric-dark.scss +4 -1
  194. package/styles/fabric.css +720 -797
  195. package/styles/fabric.scss +4 -1
  196. package/styles/fluent-dark.css +727 -820
  197. package/styles/fluent-dark.scss +4 -1
  198. package/styles/fluent.css +726 -819
  199. package/styles/fluent.scss +4 -1
  200. package/styles/fluent2.css +4255 -0
  201. package/styles/fluent2.scss +4 -0
  202. package/styles/highcontrast-light.css +695 -795
  203. package/styles/highcontrast-light.scss +4 -1
  204. package/styles/highcontrast.css +717 -797
  205. package/styles/highcontrast.scss +4 -1
  206. package/styles/material-dark.css +716 -798
  207. package/styles/material-dark.scss +4 -1
  208. package/styles/material.css +713 -800
  209. package/styles/material.scss +4 -1
  210. package/styles/material3-dark.css +751 -857
  211. package/styles/material3-dark.scss +4 -1
  212. package/styles/material3.css +751 -857
  213. package/styles/material3.scss +4 -1
  214. package/styles/rich-text-editor/_all.scss +2 -2
  215. package/styles/rich-text-editor/_bds-definition.scss +290 -285
  216. package/styles/rich-text-editor/_bigger.scss +610 -0
  217. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -287
  218. package/styles/rich-text-editor/_bootstrap-definition.scss +349 -343
  219. package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -470
  220. package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -272
  221. package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -0
  222. package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -269
  223. package/styles/rich-text-editor/_fabric-definition.scss +273 -267
  224. package/styles/rich-text-editor/_fluent-definition.scss +279 -273
  225. package/styles/rich-text-editor/_fluent2-definition.scss +287 -0
  226. package/styles/rich-text-editor/_fusionnew-definition.scss +276 -271
  227. package/styles/rich-text-editor/_highcontrast-definition.scss +274 -267
  228. package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -267
  229. package/styles/rich-text-editor/_layout.scss +2175 -2268
  230. package/styles/rich-text-editor/_material-dark-definition.scss +278 -272
  231. package/styles/rich-text-editor/_material-definition.scss +276 -270
  232. package/styles/rich-text-editor/_material3-definition.scss +278 -272
  233. package/styles/rich-text-editor/_tailwind-definition.scss +273 -267
  234. package/styles/rich-text-editor/_tailwind4-definition.scss +278 -0
  235. package/styles/rich-text-editor/_theme.scss +844 -927
  236. package/styles/rich-text-editor/bootstrap-dark.css +739 -801
  237. package/styles/rich-text-editor/bootstrap.css +723 -801
  238. package/styles/rich-text-editor/bootstrap4.css +726 -803
  239. package/styles/rich-text-editor/bootstrap5-dark.css +750 -840
  240. package/styles/rich-text-editor/bootstrap5.css +749 -839
  241. package/styles/rich-text-editor/fabric-dark.css +724 -797
  242. package/styles/rich-text-editor/fabric.css +720 -797
  243. package/styles/rich-text-editor/fluent-dark.css +727 -820
  244. package/styles/rich-text-editor/fluent.css +726 -819
  245. package/styles/rich-text-editor/fluent2.css +4255 -0
  246. package/styles/rich-text-editor/fluent2.scss +4 -0
  247. package/styles/rich-text-editor/highcontrast-light.css +695 -795
  248. package/styles/rich-text-editor/highcontrast.css +717 -797
  249. package/styles/rich-text-editor/icons/_bds.scss +372 -351
  250. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -352
  251. package/styles/rich-text-editor/icons/_bootstrap.scss +373 -352
  252. package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -352
  253. package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -0
  254. package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -351
  255. package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -352
  256. package/styles/rich-text-editor/icons/_fabric.scss +373 -352
  257. package/styles/rich-text-editor/icons/_fluent.scss +372 -351
  258. package/styles/rich-text-editor/icons/_fluent2.scss +369 -0
  259. package/styles/rich-text-editor/icons/_fusionnew.scss +357 -348
  260. package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -352
  261. package/styles/rich-text-editor/icons/_highcontrast.scss +373 -352
  262. package/styles/rich-text-editor/icons/_material-dark.scss +373 -352
  263. package/styles/rich-text-editor/icons/_material.scss +373 -352
  264. package/styles/rich-text-editor/icons/_material3.scss +372 -351
  265. package/styles/rich-text-editor/icons/_tailwind.scss +372 -351
  266. package/styles/rich-text-editor/icons/_tailwind4.scss +372 -0
  267. package/styles/rich-text-editor/material-dark.css +716 -798
  268. package/styles/rich-text-editor/material.css +713 -800
  269. package/styles/rich-text-editor/material3-dark.css +751 -857
  270. package/styles/rich-text-editor/material3-dark.scss +1 -1
  271. package/styles/rich-text-editor/material3.css +751 -857
  272. package/styles/rich-text-editor/material3.scss +1 -1
  273. package/styles/rich-text-editor/tailwind-dark.css +740 -829
  274. package/styles/rich-text-editor/tailwind.css +740 -829
  275. package/styles/tailwind-dark.css +740 -829
  276. package/styles/tailwind-dark.scss +4 -1
  277. package/styles/tailwind.css +740 -829
  278. package/styles/tailwind.scss +4 -1
  279. package/dist/ej2-richtexteditor.min.js +0 -10
  280. package/dist/global/ej2-richtexteditor.min.js +0 -11
  281. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  282. package/dist/global/index.d.ts +0 -14
  283. package/tslint.json +0 -111
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
4
4
  * Content module is used to render Rich Text Editor content
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class Render {
10
10
  private parent;
@@ -24,7 +24,7 @@ export declare class Render {
24
24
  *
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  render(): void;
30
30
  /**
@@ -5,7 +5,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
5
5
  * Content module is used to render Rich Text Editor content
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var Render = /** @class */ (function () {
11
11
  /**
@@ -26,7 +26,7 @@ var Render = /** @class */ (function () {
26
26
  *
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  Render.prototype.render = function () {
32
32
  // eslint-disable-next-line
@@ -115,7 +115,7 @@ export declare class Table {
115
115
  * @function destroy
116
116
  * @returns {void}
117
117
  * @hidden
118
-
118
+ * @deprecated
119
119
  */
120
120
  destroy(): void;
121
121
  private moduleDestroy;
@@ -605,8 +605,11 @@ var Table = /** @class */ (function () {
605
605
  if (proxy.editdlgObj) {
606
606
  proxy.editdlgObj.hide();
607
607
  }
608
+ var x = window.scrollX;
609
+ var y = window.scrollY;
608
610
  proxy.parent.formatter.process(proxy.parent, selectionObj.args, selectionObj.args.originalEvent, value);
609
611
  proxy.contentModule.getEditPanel().focus();
612
+ window.scrollTo(x, y);
610
613
  proxy.parent.on(events.mouseDown, proxy.cellSelect, proxy);
611
614
  };
612
615
  Table.prototype.cellSelect = function (e) {
@@ -1590,7 +1593,8 @@ var Table = /** @class */ (function () {
1590
1593
  var argument = ((Browser.isDevice || (!isNullOrUndefined(args.args)
1591
1594
  && !isNullOrUndefined(args.args.originalEvent) &&
1592
1595
  args.args.originalEvent.action === 'insert-table')
1593
- || proxy.parent.inlineMode.enable || !isNullOrUndefined(proxy.parent.quickToolbarSettings.text)) ? args :
1596
+ || proxy.parent.inlineMode.enable || ((!isNullOrUndefined(proxy.parent.quickToolbarSettings.text)) &&
1597
+ !(args instanceof PointerEvent))) ? args :
1594
1598
  this);
1595
1599
  proxy.tableInsert(proxy.rowTextBox.value, proxy.columnTextBox.value, e, argument);
1596
1600
  }
@@ -1684,7 +1688,7 @@ var Table = /** @class */ (function () {
1684
1688
  * @function destroy
1685
1689
  * @returns {void}
1686
1690
  * @hidden
1687
-
1691
+ * @deprecated
1688
1692
  */
1689
1693
  Table.prototype.destroy = function () {
1690
1694
  if (isNOU(this.parent)) {
@@ -1,4 +1,5 @@
1
1
  import { DropDownButton } from '@syncfusion/ej2-splitbuttons';
2
+ import { TooltipEventArgs } from '@syncfusion/ej2-popups';
2
3
  import { IRenderer, IRichTextEditor, IToolbarOptions, IDropDownModel, IColorPickerModel } from '../base/interface';
3
4
  import { ColorPicker } from '@syncfusion/ej2-inputs';
4
5
  import { ServiceLocator } from '../services/service-locator';
@@ -6,7 +7,7 @@ import { ServiceLocator } from '../services/service-locator';
6
7
  * `Toolbar renderer` module is used to render toolbar in RichTextEditor.
7
8
  *
8
9
  * @hidden
9
-
10
+ * @deprecated
10
11
  */
11
12
  export declare class ToolbarRenderer implements IRenderer {
12
13
  private mode;
@@ -46,7 +47,7 @@ export declare class ToolbarRenderer implements IRenderer {
46
47
  * @param {IToolbarOptions} args - specifies the arguments.
47
48
  * @returns {void}
48
49
  * @hidden
49
-
50
+ * @deprecated
50
51
  */
51
52
  renderToolbar(args: IToolbarOptions): void;
52
53
  /**
@@ -55,7 +56,7 @@ export declare class ToolbarRenderer implements IRenderer {
55
56
  * @param {IDropDownModel} args - specifies the the arguments.
56
57
  * @returns {void}
57
58
  * @hidden
58
-
59
+ * @deprecated
59
60
  */
60
61
  renderDropDownButton(args: IDropDownModel): DropDownButton;
61
62
  private mouseOutHandler;
@@ -66,7 +67,7 @@ export declare class ToolbarRenderer implements IRenderer {
66
67
  * @param {IDropDownModel} args - specifies the the arguments.
67
68
  * @returns {void}
68
69
  * @hidden
69
-
70
+ * @deprecated
70
71
  */
71
72
  renderListDropDown(args: IDropDownModel): DropDownButton;
72
73
  private paletteSelection;
@@ -79,7 +80,7 @@ export declare class ToolbarRenderer implements IRenderer {
79
80
  * @param {string} defaultColor -specifies the defaultColor.
80
81
  * @returns {void}
81
82
  * @hidden
82
-
83
+ * @deprecated
83
84
  */
84
85
  renderColorPickerDropDown(args: IColorPickerModel, item: string, colorPicker: ColorPicker, defaultColor: string): DropDownButton;
85
86
  private pickerRefresh;
@@ -91,15 +92,16 @@ export declare class ToolbarRenderer implements IRenderer {
91
92
  * @param {string} item - specifies the string values
92
93
  * @returns {void}
93
94
  * @hidden
94
-
95
+ * @deprecated
95
96
  */
96
97
  renderColorPicker(args: IColorPickerModel, item: string): ColorPicker;
98
+ tooltipBeforeOpen(args: TooltipEventArgs): void;
97
99
  /**
98
100
  * The function is used to render Rich Text Editor toolbar
99
101
  *
100
102
  * @returns {void}
101
103
  * @hidden
102
-
104
+ * @deprecated
103
105
  */
104
106
  renderPanel(): void;
105
107
  /**
@@ -107,7 +109,7 @@ export declare class ToolbarRenderer implements IRenderer {
107
109
  *
108
110
  * @returns {Element} - specifies the element.
109
111
  * @hidden
110
-
112
+ * @deprecated
111
113
  */
112
114
  getPanel(): Element;
113
115
  /**
@@ -116,7 +118,7 @@ export declare class ToolbarRenderer implements IRenderer {
116
118
  * @returns {void}
117
119
  * @param {Element} panel - specifies the element.
118
120
  * @hidden
119
-
121
+ * @deprecated
120
122
  */
121
123
  setPanel(panel: Element): void;
122
124
  }
@@ -13,7 +13,7 @@ import { ToolbarStatus } from '../../editor-manager/plugin/toolbar-status';
13
13
  * `Toolbar renderer` module is used to render toolbar in RichTextEditor.
14
14
  *
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  var ToolbarRenderer = /** @class */ (function () {
19
19
  /**
@@ -126,7 +126,7 @@ var ToolbarRenderer = /** @class */ (function () {
126
126
  * @param {IToolbarOptions} args - specifies the arguments.
127
127
  * @returns {void}
128
128
  * @hidden
129
-
129
+ * @deprecated
130
130
  */
131
131
  ToolbarRenderer.prototype.renderToolbar = function (args) {
132
132
  this.setPanel(args.target);
@@ -153,6 +153,7 @@ var ToolbarRenderer = /** @class */ (function () {
153
153
  openDelay: 400,
154
154
  opensOn: 'Hover',
155
155
  beforeRender: this.tooltipBeforeRender.bind(this),
156
+ beforeOpen: this.tooltipBeforeOpen.bind(this),
156
157
  cssClass: this.parent.getCssClass(),
157
158
  windowCollision: true,
158
159
  position: 'BottomCenter'
@@ -166,7 +167,7 @@ var ToolbarRenderer = /** @class */ (function () {
166
167
  * @param {IDropDownModel} args - specifies the the arguments.
167
168
  * @returns {void}
168
169
  * @hidden
169
-
170
+ * @deprecated
170
171
  */
171
172
  ToolbarRenderer.prototype.renderDropDownButton = function (args) {
172
173
  var _this = this;
@@ -275,7 +276,7 @@ var ToolbarRenderer = /** @class */ (function () {
275
276
  if ((divNode.textContent.trim() !== ''
276
277
  && args.element.childNodes[index].textContent.trim() === divNode.textContent.trim()) ||
277
278
  ((args.items[0].command === 'Formats' && !isNOU(toolbarStatus.formats) && _this.parent.format.types[index].value.toLowerCase() === toolbarStatus.formats.toLowerCase() && args.element.childNodes[index].classList.contains(_this.parent.format.types[index].cssClass))
278
- || (args.items[0].command === 'Font' && !isNOU(toolbarStatus.fontname) && _this.parent.fontFamily.items[index].value.toLowerCase() === toolbarStatus.fontname.toLowerCase() && args.element.childNodes[index].classList.contains(_this.parent.fontFamily.items[index].cssClass)))) {
279
+ || (args.items[0].subCommand === 'FontName' && args.items[0].command === 'Font' && !isNOU(toolbarStatus.fontname) && !isNOU(_this.parent.fontFamily.items[index]) && _this.parent.fontFamily.items[index].value.toLowerCase() === toolbarStatus.fontname.toLowerCase() && args.element.childNodes[index].classList.contains(_this.parent.fontFamily.items[index].cssClass)))) {
279
280
  if (!args.element.childNodes[index].classList.contains('e-active')) {
280
281
  addClass([args.element.childNodes[index]], 'e-active');
281
282
  }
@@ -332,7 +333,7 @@ var ToolbarRenderer = /** @class */ (function () {
332
333
  * @param {IDropDownModel} args - specifies the the arguments.
333
334
  * @returns {void}
334
335
  * @hidden
335
-
336
+ * @deprecated
336
337
  */
337
338
  ToolbarRenderer.prototype.renderListDropDown = function (args) {
338
339
  var _this = this;
@@ -441,7 +442,7 @@ var ToolbarRenderer = /** @class */ (function () {
441
442
  * @param {string} defaultColor -specifies the defaultColor.
442
443
  * @returns {void}
443
444
  * @hidden
444
-
445
+ * @deprecated
445
446
  */
446
447
  ToolbarRenderer.prototype.renderColorPickerDropDown = function (args, item, colorPicker, defaultColor) {
447
448
  var _this = this;
@@ -461,8 +462,6 @@ var ToolbarRenderer = /** @class */ (function () {
461
462
  target: colorPicker.element.parentElement, cssClass: css,
462
463
  enablePersistence: this.parent.enablePersistence, enableRtl: this.parent.enableRtl,
463
464
  beforeOpen: function (dropDownArgs) {
464
- colorPicker.inline = true;
465
- colorPicker.dataBind();
466
465
  if (proxy.parent.readonly || !proxy.parent.enabled) {
467
466
  dropDownArgs.cancel = true;
468
467
  return;
@@ -591,7 +590,7 @@ var ToolbarRenderer = /** @class */ (function () {
591
590
  * @param {string} item - specifies the string values
592
591
  * @returns {void}
593
592
  * @hidden
594
-
593
+ * @deprecated
595
594
  */
596
595
  ToolbarRenderer.prototype.renderColorPicker = function (args, item) {
597
596
  var _this = this;
@@ -601,14 +600,18 @@ var ToolbarRenderer = /** @class */ (function () {
601
600
  var colorPicker = new ColorPicker({
602
601
  enablePersistence: this.parent.enablePersistence,
603
602
  enableRtl: this.parent.enableRtl,
604
- inline: false,
605
- value: '#fff',
603
+ inline: true,
604
+ value: null,
605
+ cssClass: ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass + ' ' + 'e-rte-picker-init',
606
606
  created: function () {
607
607
  var value = (item === 'backgroundcolor') ? proxy.parent.backgroundColor.default : proxy.parent.fontColor.default;
608
- colorPicker.setProperties({ value: value });
608
+ colorPicker.cssClass = ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass;
609
+ colorPicker.value = value;
609
610
  },
610
611
  mode: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.mode : proxy.parent.fontColor.mode),
611
612
  modeSwitcher: ((item === 'backgroundcolor') ? proxy.parent.backgroundColor.modeSwitcher : proxy.parent.fontColor.modeSwitcher),
613
+ presetColors: (item === 'backgroundcolor') ? this.parent.backgroundColor.colorCode : this.parent.fontColor.colorCode,
614
+ columns: (item === 'backgroundcolor') ? this.parent.backgroundColor.columns : this.parent.fontColor.columns,
612
615
  beforeTileRender: function (args) {
613
616
  args.element.classList.add(CLS_COLOR_PALETTE);
614
617
  args.element.classList.add(CLS_CUSTOM_TILE);
@@ -653,20 +656,21 @@ var ToolbarRenderer = /** @class */ (function () {
653
656
  }
654
657
  });
655
658
  colorPicker.isStringTemplate = true;
656
- colorPicker.columns = (item === 'backgroundcolor') ? this.parent.backgroundColor.columns : this.parent.fontColor.columns;
657
- colorPicker.presetColors = (item === 'backgroundcolor') ? this.parent.backgroundColor.colorCode :
658
- this.parent.fontColor.colorCode;
659
- colorPicker.cssClass = ((item === 'backgroundcolor') ? CLS_BACKGROUND_COLOR_PICKER : CLS_FONT_COLOR_PICKER) + ' ' + args.cssClass;
660
659
  colorPicker.createElement = this.parent.createElement;
661
660
  colorPicker.appendTo(document.getElementById(args.target));
662
661
  return colorPicker;
663
662
  };
663
+ ToolbarRenderer.prototype.tooltipBeforeOpen = function (args) {
664
+ if (args.element) {
665
+ args.element.setAttribute('data-rte-id', this.parent.getID());
666
+ }
667
+ };
664
668
  /**
665
669
  * The function is used to render Rich Text Editor toolbar
666
670
  *
667
671
  * @returns {void}
668
672
  * @hidden
669
-
673
+ * @deprecated
670
674
  */
671
675
  ToolbarRenderer.prototype.renderPanel = function () {
672
676
  this.getPanel().classList.add(CLS_TOOLBAR);
@@ -676,7 +680,7 @@ var ToolbarRenderer = /** @class */ (function () {
676
680
  *
677
681
  * @returns {Element} - specifies the element.
678
682
  * @hidden
679
-
683
+ * @deprecated
680
684
  */
681
685
  ToolbarRenderer.prototype.getPanel = function () {
682
686
  return this.toolbarPanel;
@@ -687,7 +691,7 @@ var ToolbarRenderer = /** @class */ (function () {
687
691
  * @returns {void}
688
692
  * @param {Element} panel - specifies the element.
689
693
  * @hidden
690
-
694
+ * @deprecated
691
695
  */
692
696
  ToolbarRenderer.prototype.setPanel = function (panel) {
693
697
  this.toolbarPanel = panel;
@@ -95,7 +95,7 @@ export declare class Video {
95
95
  * @method destroy
96
96
  * @returns {void}
97
97
  * @hidden
98
-
98
+ * @deprecated
99
99
  */
100
100
  destroy(): void;
101
101
  /**
@@ -1081,7 +1081,12 @@ var Video = /** @class */ (function () {
1081
1081
  animationSettings: { effect: 'None' },
1082
1082
  close: function (event) {
1083
1083
  if (_this.isVideoUploaded) {
1084
- _this.uploadObj.removing();
1084
+ if (_this.dialogObj.element.querySelector('.e-file-abort-btn')) {
1085
+ _this.dialogObj.element.querySelector('.e-file-abort-btn').click();
1086
+ }
1087
+ else {
1088
+ _this.uploadObj.remove();
1089
+ }
1085
1090
  }
1086
1091
  _this.parent.isBlur = false;
1087
1092
  if (event && !isNOU(event.event) && event.event.returnValue) {
@@ -1434,7 +1439,7 @@ var Video = /** @class */ (function () {
1434
1439
  * @method destroy
1435
1440
  * @returns {void}
1436
1441
  * @hidden
1437
-
1442
+ * @deprecated
1438
1443
  */
1439
1444
  /* eslint-enable */
1440
1445
  Video.prototype.destroy = function () {
@@ -7,7 +7,7 @@ import { ClickEventArgs } from '@syncfusion/ej2-navigations';
7
7
  * Content module is used to render Rich Text Editor content
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  export declare class ViewSource {
13
13
  private parent;
@@ -41,7 +41,7 @@ export declare class ViewSource {
41
41
  * @param {ClickEventArgs} args - specifies the click event.
42
42
  * @returns {void}
43
43
  * @hidden
44
-
44
+ * @deprecated
45
45
  */
46
46
  sourceCode(args?: ClickEventArgs | IHtmlKeyboardEvent): void;
47
47
  /**
@@ -50,7 +50,7 @@ export declare class ViewSource {
50
50
  * @param {ClickEventArgs} args - specifies the click event.
51
51
  * @returns {void}
52
52
  * @hidden
53
-
53
+ * @deprecated
54
54
  */
55
55
  updateSourceCode(args?: ClickEventArgs | KeyboardEventArgs): void;
56
56
  private getTextAreaValue;
@@ -59,7 +59,7 @@ export declare class ViewSource {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  getPanel(): HTMLTextAreaElement | Element;
65
65
  /**
@@ -67,7 +67,7 @@ export declare class ViewSource {
67
67
  *
68
68
  * @returns {void}
69
69
  * @hidden
70
-
70
+ * @deprecated
71
71
  */
72
72
  getViewPanel(): HTMLTextAreaElement | Element;
73
73
  /**
@@ -75,7 +75,7 @@ export declare class ViewSource {
75
75
  *
76
76
  * @returns {void}
77
77
  * @hidden
78
-
78
+ * @deprecated
79
79
  */
80
80
  destroy(): void;
81
81
  private moduleDestroy;
@@ -8,7 +8,7 @@ import { KeyboardEvents } from '../actions/keyboard';
8
8
  * Content module is used to render Rich Text Editor content
9
9
  *
10
10
  * @hidden
11
-
11
+ * @deprecated
12
12
  */
13
13
  var ViewSource = /** @class */ (function () {
14
14
  /**
@@ -105,7 +105,7 @@ var ViewSource = /** @class */ (function () {
105
105
  * @param {ClickEventArgs} args - specifies the click event.
106
106
  * @returns {void}
107
107
  * @hidden
108
-
108
+ * @deprecated
109
109
  */
110
110
  ViewSource.prototype.sourceCode = function (args) {
111
111
  var _this = this;
@@ -179,7 +179,7 @@ var ViewSource = /** @class */ (function () {
179
179
  * @param {ClickEventArgs} args - specifies the click event.
180
180
  * @returns {void}
181
181
  * @hidden
182
-
182
+ * @deprecated
183
183
  */
184
184
  ViewSource.prototype.updateSourceCode = function (args) {
185
185
  this.parent.isBlur = false;
@@ -253,7 +253,7 @@ var ViewSource = /** @class */ (function () {
253
253
  *
254
254
  * @returns {void}
255
255
  * @hidden
256
-
256
+ * @deprecated
257
257
  */
258
258
  ViewSource.prototype.getPanel = function () {
259
259
  return this.parent.element && this.parent.element.querySelector('.e-rte-srctextarea');
@@ -263,7 +263,7 @@ var ViewSource = /** @class */ (function () {
263
263
  *
264
264
  * @returns {void}
265
265
  * @hidden
266
-
266
+ * @deprecated
267
267
  */
268
268
  ViewSource.prototype.getViewPanel = function () {
269
269
  return (this.parent.iframeSettings.enable && this.getPanel()) ? this.getPanel().parentElement : this.getPanel();
@@ -273,7 +273,7 @@ var ViewSource = /** @class */ (function () {
273
273
  *
274
274
  * @returns {void}
275
275
  * @hidden
276
-
276
+ * @deprecated
277
277
  */
278
278
  ViewSource.prototype.destroy = function () {
279
279
  if (isNullOrUndefined(this.parent)) {
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
4
4
  * RendererFactory
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class RendererFactory {
10
10
  rendererMap: {
@@ -17,7 +17,7 @@ export declare class RendererFactory {
17
17
  * @param {IRenderer} type - specifies the renderer.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  addRenderer(name: RenderType, type: IRenderer): void;
23
23
  /**
@@ -26,7 +26,7 @@ export declare class RendererFactory {
26
26
  * @param {RenderType} name - specifies the render type
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  getRenderer(name: RenderType): IRenderer;
32
32
  }
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
4
4
  * RendererFactory
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  var RendererFactory = /** @class */ (function () {
10
10
  function RendererFactory() {
@@ -17,7 +17,7 @@ var RendererFactory = /** @class */ (function () {
17
17
  * @param {IRenderer} type - specifies the renderer.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  RendererFactory.prototype.addRenderer = function (name, type) {
23
23
  var rName = getEnumValue(RenderType, name);
@@ -31,7 +31,7 @@ var RendererFactory = /** @class */ (function () {
31
31
  * @param {RenderType} name - specifies the render type
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  RendererFactory.prototype.getRenderer = function (name) {
37
37
  var rName = getEnumValue(RenderType, name);
@@ -2,7 +2,7 @@
2
2
  * ServiceLocator
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class ServiceLocator {
8
8
  private services;
@@ -13,7 +13,7 @@ export declare class ServiceLocator {
13
13
  * @param {T} type - specifies the type.
14
14
  * @returns {void}
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  register<T>(name: string, type: T): void;
19
19
  /**
@@ -22,7 +22,7 @@ export declare class ServiceLocator {
22
22
  * @param {string} name - specifies the name.
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  getService<T>(name: string): T;
28
28
  }
@@ -3,7 +3,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
3
3
  * ServiceLocator
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  var ServiceLocator = /** @class */ (function () {
9
9
  function ServiceLocator() {
@@ -17,7 +17,7 @@ var ServiceLocator = /** @class */ (function () {
17
17
  * @param {T} type - specifies the type.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  /* eslint-enable */
23
23
  ServiceLocator.prototype.register = function (name, type) {
@@ -31,7 +31,7 @@ var ServiceLocator = /** @class */ (function () {
31
31
  * @param {string} name - specifies the name.
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  ServiceLocator.prototype.getService = function (name) {
37
37
  if (isNullOrUndefined(this.services["" + name])) {