@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.41-569421

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 (272) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +1953 -1749
  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 +9971 -8025
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +8445 -6498
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/helpers/e2e/index.js +3 -3
  11. package/helpers/e2e/rte-helper.js +13 -13
  12. package/license +9 -9
  13. package/package.json +74 -74
  14. package/src/common/config.d.ts +7 -0
  15. package/src/common/config.js +12 -1
  16. package/src/common/constant.d.ts +6 -0
  17. package/src/common/constant.js +6 -0
  18. package/src/common/interface.d.ts +19 -7
  19. package/src/common/types.d.ts +6 -0
  20. package/src/common/util.d.ts +6 -0
  21. package/src/common/util.js +61 -20
  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/constant.d.ts +6 -0
  25. package/src/editor-manager/base/constant.js +6 -0
  26. package/src/editor-manager/base/editor-manager.d.ts +8 -3
  27. package/src/editor-manager/base/editor-manager.js +62 -3
  28. package/src/editor-manager/base/enum.d.ts +2 -2
  29. package/src/editor-manager/base/interface.d.ts +17 -9
  30. package/src/editor-manager/base/types.d.ts +1 -1
  31. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  32. package/src/editor-manager/plugin/alignments.js +2 -2
  33. package/src/editor-manager/plugin/audio.d.ts +3 -3
  34. package/src/editor-manager/plugin/audio.js +16 -6
  35. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  36. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  37. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  38. package/src/editor-manager/plugin/clearformat.js +1 -1
  39. package/src/editor-manager/plugin/dom-node.d.ts +39 -35
  40. package/src/editor-manager/plugin/dom-node.js +203 -62
  41. package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
  42. package/src/editor-manager/plugin/format-painter-actions.js +20 -2
  43. package/src/editor-manager/plugin/formats.d.ts +3 -2
  44. package/src/editor-manager/plugin/formats.js +40 -5
  45. package/src/editor-manager/plugin/image.d.ts +3 -3
  46. package/src/editor-manager/plugin/image.js +41 -18
  47. package/src/editor-manager/plugin/indents.d.ts +2 -2
  48. package/src/editor-manager/plugin/indents.js +3 -3
  49. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  50. package/src/editor-manager/plugin/insert-methods.js +4 -4
  51. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  52. package/src/editor-manager/plugin/insert-text.js +2 -2
  53. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  54. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  55. package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
  56. package/src/editor-manager/plugin/inserthtml.js +85 -22
  57. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  58. package/src/editor-manager/plugin/isformatted.js +8 -8
  59. package/src/editor-manager/plugin/link.d.ts +2 -2
  60. package/src/editor-manager/plugin/link.js +10 -5
  61. package/src/editor-manager/plugin/lists.d.ts +2 -2
  62. package/src/editor-manager/plugin/lists.js +161 -72
  63. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
  64. package/src/editor-manager/plugin/ms-word-clean-up.js +216 -86
  65. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  66. package/src/editor-manager/plugin/nodecutter.js +11 -8
  67. package/src/editor-manager/plugin/selection-commands.d.ts +3 -1
  68. package/src/editor-manager/plugin/selection-commands.js +249 -5
  69. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  70. package/src/editor-manager/plugin/selection-exec.js +2 -2
  71. package/src/editor-manager/plugin/table.d.ts +6 -3
  72. package/src/editor-manager/plugin/table.js +97 -51
  73. package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
  74. package/src/editor-manager/plugin/toolbar-status.js +22 -12
  75. package/src/editor-manager/plugin/undo.d.ts +7 -6
  76. package/src/editor-manager/plugin/undo.js +27 -7
  77. package/src/editor-manager/plugin/video.d.ts +3 -3
  78. package/src/editor-manager/plugin/video.js +3 -3
  79. package/src/global.d.ts +1 -0
  80. package/src/markdown-parser/base/interface.d.ts +10 -10
  81. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  82. package/src/markdown-parser/base/markdown-parser.js +3 -3
  83. package/src/markdown-parser/base/types.d.ts +1 -1
  84. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  85. package/src/markdown-parser/plugin/clearformat.js +2 -2
  86. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  87. package/src/markdown-parser/plugin/formats.js +2 -2
  88. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  89. package/src/markdown-parser/plugin/insert-text.js +2 -2
  90. package/src/markdown-parser/plugin/link.d.ts +2 -2
  91. package/src/markdown-parser/plugin/link.js +2 -2
  92. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  93. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  94. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  95. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  96. package/src/markdown-parser/plugin/table.d.ts +3 -3
  97. package/src/markdown-parser/plugin/table.js +3 -3
  98. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  99. package/src/markdown-parser/plugin/undo.js +6 -6
  100. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +13 -12
  101. package/src/rich-text-editor/actions/base-quick-toolbar.js +70 -23
  102. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  103. package/src/rich-text-editor/actions/base-toolbar.js +36 -37
  104. package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
  105. package/src/rich-text-editor/actions/color-picker.js +15 -5
  106. package/src/rich-text-editor/actions/count.d.ts +3 -3
  107. package/src/rich-text-editor/actions/count.js +4 -4
  108. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +3 -2
  109. package/src/rich-text-editor/actions/dropdown-buttons.js +13 -7
  110. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  111. package/src/rich-text-editor/actions/emoji-picker.js +17 -8
  112. package/src/rich-text-editor/actions/enter-key.js +10 -5
  113. package/src/rich-text-editor/actions/file-manager.js +1 -1
  114. package/src/rich-text-editor/actions/format-painter.js +5 -2
  115. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  116. package/src/rich-text-editor/actions/full-screen.js +8 -7
  117. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  118. package/src/rich-text-editor/actions/html-editor.js +134 -22
  119. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  120. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  121. package/src/rich-text-editor/actions/keyboard.js +23 -21
  122. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  123. package/src/rich-text-editor/actions/markdown-editor.js +5 -3
  124. package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -1
  125. package/src/rich-text-editor/actions/paste-clean-up.js +157 -29
  126. package/src/rich-text-editor/actions/quick-toolbar.d.ts +17 -9
  127. package/src/rich-text-editor/actions/quick-toolbar.js +68 -21
  128. package/src/rich-text-editor/actions/resize.js +2 -1
  129. package/src/rich-text-editor/actions/toolbar-action.js +1 -1
  130. package/src/rich-text-editor/actions/toolbar.d.ts +16 -16
  131. package/src/rich-text-editor/actions/toolbar.js +48 -109
  132. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  133. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  134. package/src/rich-text-editor/base/classes.d.ts +125 -125
  135. package/src/rich-text-editor/base/classes.js +125 -125
  136. package/src/rich-text-editor/base/constant.d.ts +195 -150
  137. package/src/rich-text-editor/base/constant.js +364 -150
  138. package/src/rich-text-editor/base/enum.d.ts +1 -1
  139. package/src/rich-text-editor/base/enum.js +1 -1
  140. package/src/rich-text-editor/base/interface.d.ts +96 -52
  141. package/src/rich-text-editor/base/interface.js +1 -1
  142. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  143. package/src/rich-text-editor/base/rich-text-editor.d.ts +76 -64
  144. package/src/rich-text-editor/base/rich-text-editor.js +247 -160
  145. package/src/rich-text-editor/base/util.d.ts +1 -1
  146. package/src/rich-text-editor/base/util.js +23 -5
  147. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  148. package/src/rich-text-editor/formatter/formatter.js +24 -12
  149. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  150. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  151. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  152. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  153. package/src/rich-text-editor/models/default-locale.js +31 -25
  154. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  155. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  156. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  157. package/src/rich-text-editor/models/inline-mode.js +19 -19
  158. package/src/rich-text-editor/models/items.js +3 -3
  159. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  160. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  161. package/src/rich-text-editor/models/toolbar-settings.js +20 -20
  162. package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
  163. package/src/rich-text-editor/renderer/audio-module.js +23 -5
  164. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  165. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  166. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
  167. package/src/rich-text-editor/renderer/dialog-renderer.js +24 -4
  168. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  169. package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
  170. package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
  171. package/src/rich-text-editor/renderer/image-module.js +265 -221
  172. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  173. package/src/rich-text-editor/renderer/link-module.js +54 -25
  174. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  175. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  176. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  177. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  178. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  179. package/src/rich-text-editor/renderer/render.js +2 -2
  180. package/src/rich-text-editor/renderer/table-module.d.ts +11 -2
  181. package/src/rich-text-editor/renderer/table-module.js +344 -169
  182. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +12 -15
  183. package/src/rich-text-editor/renderer/toolbar-renderer.js +115 -110
  184. package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
  185. package/src/rich-text-editor/renderer/video-module.js +83 -42
  186. package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
  187. package/src/rich-text-editor/renderer/view-source.js +21 -11
  188. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  189. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  190. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  191. package/src/rich-text-editor/services/service-locator.js +3 -3
  192. package/src/selection/selection.d.ts +22 -22
  193. package/src/selection/selection.js +25 -22
  194. package/styles/_all.scss +1 -1
  195. package/styles/bootstrap-dark.css +353 -103
  196. package/styles/bootstrap.css +357 -112
  197. package/styles/bootstrap4.css +338 -96
  198. package/styles/bootstrap5-dark.css +344 -97
  199. package/styles/bootstrap5.css +344 -97
  200. package/styles/fabric-dark.css +332 -90
  201. package/styles/fabric.css +333 -91
  202. package/styles/fluent-dark.css +360 -98
  203. package/styles/fluent.css +360 -98
  204. package/styles/highcontrast-light.css +332 -90
  205. package/styles/highcontrast.css +336 -91
  206. package/styles/material-dark.css +339 -92
  207. package/styles/material.css +339 -92
  208. package/styles/material3-dark.css +348 -100
  209. package/styles/material3-dark.scss +1 -1
  210. package/styles/material3.css +348 -100
  211. package/styles/material3.scss +1 -1
  212. package/styles/rich-text-editor/_all.scss +2 -2
  213. package/styles/rich-text-editor/_bds-definition.scss +279 -0
  214. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
  215. package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
  216. package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
  217. package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
  218. package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
  219. package/styles/rich-text-editor/_fabric-definition.scss +261 -257
  220. package/styles/rich-text-editor/_fluent-definition.scss +267 -263
  221. package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
  222. package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
  223. package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
  224. package/styles/rich-text-editor/_layout.scss +2249 -2072
  225. package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
  226. package/styles/rich-text-editor/_material-definition.scss +264 -260
  227. package/styles/rich-text-editor/_material3-definition.scss +266 -262
  228. package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
  229. package/styles/rich-text-editor/_theme.scss +926 -837
  230. package/styles/rich-text-editor/bootstrap-dark.css +353 -103
  231. package/styles/rich-text-editor/bootstrap.css +357 -112
  232. package/styles/rich-text-editor/bootstrap4.css +338 -96
  233. package/styles/rich-text-editor/bootstrap5-dark.css +344 -97
  234. package/styles/rich-text-editor/bootstrap5.css +344 -97
  235. package/styles/rich-text-editor/fabric-dark.css +332 -90
  236. package/styles/rich-text-editor/fabric.css +333 -91
  237. package/styles/rich-text-editor/fluent-dark.css +360 -98
  238. package/styles/rich-text-editor/fluent.css +360 -98
  239. package/styles/rich-text-editor/highcontrast-light.css +332 -90
  240. package/styles/rich-text-editor/highcontrast.css +336 -91
  241. package/styles/rich-text-editor/icons/_bds.scss +348 -0
  242. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  243. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  244. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  245. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  246. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  247. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  248. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  249. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  250. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  251. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  252. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  253. package/styles/rich-text-editor/icons/_material.scss +349 -349
  254. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  255. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  256. package/styles/rich-text-editor/material-dark.css +339 -92
  257. package/styles/rich-text-editor/material.css +339 -92
  258. package/styles/rich-text-editor/material3-dark.css +348 -100
  259. package/styles/rich-text-editor/material3-dark.scss +1 -1
  260. package/styles/rich-text-editor/material3.css +348 -100
  261. package/styles/rich-text-editor/material3.scss +1 -1
  262. package/styles/rich-text-editor/tailwind-dark.css +383 -113
  263. package/styles/rich-text-editor/tailwind.css +383 -113
  264. package/styles/tailwind-dark.css +383 -113
  265. package/styles/tailwind.css +383 -113
  266. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  267. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
  268. package/dist/ej2-richtexteditor.min.js +0 -10
  269. package/dist/global/ej2-richtexteditor.min.js +0 -11
  270. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  271. package/dist/global/index.d.ts +0 -14
  272. package/tslint.json +0 -111
@@ -15,7 +15,7 @@ var BaseQuickToolbar = /** @class */ (function () {
15
15
  function BaseQuickToolbar(parent, locator) {
16
16
  this.parent = parent;
17
17
  this.locator = locator;
18
- this.isDOMElement = false;
18
+ this.isRendered = false;
19
19
  this.renderFactory = this.locator.getService('rendererFactory');
20
20
  this.contentRenderer = this.renderFactory.getRenderer(RenderType.Content);
21
21
  this.popupRenderer = this.renderFactory.getRenderer(RenderType.Popup);
@@ -24,6 +24,9 @@ var BaseQuickToolbar = /** @class */ (function () {
24
24
  }
25
25
  BaseQuickToolbar.prototype.appendPopupContent = function () {
26
26
  this.toolbarElement = this.parent.createElement('div', { className: classes.CLS_QUICK_TB });
27
+ if (this.element.classList.contains(classes.CLS_TEXT_POP)) {
28
+ this.toolbarElement.classList.add(classes.CLS_TEXT_QUICK_TB);
29
+ }
27
30
  this.element.appendChild(this.toolbarElement);
28
31
  };
29
32
  /**
@@ -32,7 +35,7 @@ var BaseQuickToolbar = /** @class */ (function () {
32
35
  * @param {IQuickToolbarOptions} args - specifies the arguments
33
36
  * @returns {void}
34
37
  * @hidden
35
-
38
+ * @deprecated
36
39
  */
37
40
  BaseQuickToolbar.prototype.render = function (args) {
38
41
  var className;
@@ -76,7 +79,18 @@ var BaseQuickToolbar = /** @class */ (function () {
76
79
  e.target.classList.contains('e-imgbreak')) ? false : true;
77
80
  var target = !isNOU(imgWrapper) ? imgWrapper : e.target;
78
81
  addClass([this.toolbarElement], [classes.CLS_RM_WHITE_SPACE]);
79
- var targetOffsetTop = target.offsetTop;
82
+ var targetOffsetTop;
83
+ if (!isNOU(closest(target, 'table'))) {
84
+ targetOffsetTop = target.offsetTop;
85
+ var parentTable = closest(target, 'table');
86
+ while (!isNOU(parentTable)) {
87
+ targetOffsetTop += parentTable.offsetTop;
88
+ parentTable = closest(parentTable.parentElement, 'table');
89
+ }
90
+ }
91
+ else {
92
+ targetOffsetTop = (target.classList.contains("e-rte-audio")) ? target.parentElement.offsetTop : target.offsetTop;
93
+ }
80
94
  var parentOffsetTop = window.pageYOffset + e.parentData.top;
81
95
  if ((targetOffsetTop - e.editTop) > e.popHeight) {
82
96
  y = parentOffsetTop + e.tBarElementHeight + (targetOffsetTop - e.editTop) - e.popHeight - 5;
@@ -88,11 +102,23 @@ var BaseQuickToolbar = /** @class */ (function () {
88
102
  y = e.y;
89
103
  }
90
104
  target = isAligned ? e.target : target;
105
+ var targetOffsetLeft;
106
+ if (!isNOU(closest(target, 'table'))) {
107
+ targetOffsetLeft = target.offsetLeft;
108
+ var parentTable = closest(target.parentElement, 'td');
109
+ while (!isNOU(parentTable)) {
110
+ targetOffsetLeft += parentTable.offsetLeft;
111
+ parentTable = closest(parentTable.parentElement, 'table');
112
+ }
113
+ }
114
+ else {
115
+ targetOffsetLeft = (target.classList.contains("e-rte-audio")) ? target.parentElement.offsetLeft : target.offsetLeft;
116
+ }
91
117
  if (target.offsetWidth > e.popWidth) {
92
- x = (target.offsetWidth / 2) - (e.popWidth / 2) + e.parentData.left + target.offsetLeft;
118
+ x = (target.offsetWidth / 2) - (e.popWidth / 2) + e.parentData.left + targetOffsetLeft;
93
119
  }
94
120
  else {
95
- x = e.parentData.left + target.offsetLeft;
121
+ x = e.parentData.left + targetOffsetLeft;
96
122
  }
97
123
  this.popupObj.position.X = ((x + e.popWidth) > e.parentData.right) ? e.parentData.right - e.popWidth : x;
98
124
  this.popupObj.position.Y = (y >= 0) ? y : e.y + 5;
@@ -183,7 +209,7 @@ var BaseQuickToolbar = /** @class */ (function () {
183
209
  * @param {string} type - specifies the type
184
210
  * @returns {void}
185
211
  * @hidden
186
-
212
+ * @deprecated
187
213
  */
188
214
  BaseQuickToolbar.prototype.showPopup = function (x, y, target, type) {
189
215
  var _this = this;
@@ -216,18 +242,23 @@ var BaseQuickToolbar = /** @class */ (function () {
216
242
  editPanelTop = (cntEle) ? cntEle.scrollTop : 0;
217
243
  editPanelHeight = (cntEle) ? cntEle.offsetHeight : 0;
218
244
  }
219
- if (!_this.parent.inlineMode.enable && !closest(target, 'table') && type !== 'text') {
245
+ if ((!_this.parent.inlineMode.enable && !closest(target, 'table') && type !== 'text' && type !== 'link') || target.tagName === 'IMG') {
220
246
  _this.parent.disableToolbarItem(_this.parent.toolbarSettings.items);
221
247
  _this.parent.enableToolbarItem(['Undo', 'Redo']);
222
248
  }
249
+ else {
250
+ _this.parent.enableToolbarItem(_this.parent.toolbarSettings.items);
251
+ }
223
252
  append([_this.element], document.body);
224
253
  if (_this.parent.showTooltip) {
225
254
  _this.tooltip = new Tooltip({
226
255
  target: '#' + _this.element.id + ' [title]',
227
256
  openDelay: 400,
228
257
  showTipPointer: true,
258
+ beforeRender: _this.tooltipBeforeRender.bind(_this),
229
259
  windowCollision: true,
230
- position: 'BottomCenter'
260
+ position: 'BottomCenter',
261
+ cssClass: _this.parent.getCssClass()
231
262
  });
232
263
  _this.tooltip.appendTo(_this.element);
233
264
  }
@@ -261,9 +292,9 @@ var BaseQuickToolbar = /** @class */ (function () {
261
292
  parentData: parent_1.getBoundingClientRect(),
262
293
  tBarElementHeight: tBarHeight
263
294
  };
264
- if (target.tagName === 'IMG' || target.tagName === 'AUDIO' || target.tagName === 'VIDEO' || target.tagName === 'IFRAME' || (target.classList &&
295
+ if ((closest(target, 'TABLE') || target.tagName === 'IMG' || target.tagName === 'AUDIO' || target.tagName === 'VIDEO' || target.tagName === 'IFRAME' || (target.classList &&
265
296
  (target.classList.contains(classes.CLS_AUDIOWRAP) || target.classList.contains(classes.CLS_CLICKELEM) ||
266
- target.classList.contains(classes.CLS_VID_CLICK_ELEM)))) {
297
+ target.classList.contains(classes.CLS_VID_CLICK_ELEM)))) && (x == beforeQuickToolbarArgs.positionX || y == beforeQuickToolbarArgs.positionY)) {
267
298
  _this.setPosition(showPopupData);
268
299
  }
269
300
  if (!_this.parent.inlineMode.enable) {
@@ -281,16 +312,21 @@ var BaseQuickToolbar = /** @class */ (function () {
281
312
  maxWidth: window.outerWidth + 'px'
282
313
  });
283
314
  addClass([_this.element], [classes.CLS_POP]);
284
- _this.isDOMElement = true;
315
+ _this.isRendered = true;
285
316
  }
286
317
  });
287
318
  };
319
+ BaseQuickToolbar.prototype.tooltipBeforeRender = function (args) {
320
+ if (args.target.querySelector('.e-active')) {
321
+ args.cancel = true;
322
+ }
323
+ };
288
324
  /**
289
325
  * hidePopup method
290
326
  *
291
327
  * @returns {void}
292
328
  * @hidden
293
-
329
+ * @deprecated
294
330
  */
295
331
  BaseQuickToolbar.prototype.hidePopup = function () {
296
332
  var viewSourcePanel = this.parent.sourceCodeModule.getViewPanel();
@@ -318,14 +354,14 @@ var BaseQuickToolbar = /** @class */ (function () {
318
354
  }
319
355
  }
320
356
  this.removeEleFromDOM();
321
- this.isDOMElement = false;
357
+ this.isRendered = false;
322
358
  };
323
359
  /**
324
360
  * @param {string} item - specifies the string value
325
361
  * @param {number} index - specifies the index value
326
362
  * @returns {void}
327
363
  * @hidden
328
-
364
+ * @deprecated
329
365
  */
330
366
  BaseQuickToolbar.prototype.addQTBarItem = function (item, index) {
331
367
  this.quickTBarObj.toolbarObj.addItems(this.quickTBarObj.getItems(item, 'toolbar'), index);
@@ -334,14 +370,14 @@ var BaseQuickToolbar = /** @class */ (function () {
334
370
  * @param {number} index - specifies the index value
335
371
  * @returns {void}
336
372
  * @hidden
337
-
373
+ * @deprecated
338
374
  */
339
375
  BaseQuickToolbar.prototype.removeQTBarItem = function (index) {
340
376
  this.quickTBarObj.toolbarObj.removeItems(index);
341
377
  };
342
378
  BaseQuickToolbar.prototype.removeEleFromDOM = function () {
343
379
  var element = this.popupObj.element;
344
- if (this.isDOMElement) {
380
+ if (this.isRendered) {
345
381
  this.dropDownButtons.destroyDropDowns();
346
382
  this.colorPickerObj.destroyColorPicker();
347
383
  removeClass([this.element], [classes.CLS_POP]);
@@ -359,7 +395,18 @@ var BaseQuickToolbar = /** @class */ (function () {
359
395
  tbItems: this.quickTBarObj.toolbarObj.items
360
396
  };
361
397
  setToolbarStatus(options, true, this.parent);
362
- if (!select('.e-rte-srctextarea', this.parent.element)) {
398
+ if (this.parent.quickToolbarSettings.text && this.parent.quickToolbarModule.textQTBar) {
399
+ var options_1 = {
400
+ args: args,
401
+ dropDownModule: this.parent.quickToolbarModule.textQTBar.dropDownButtons,
402
+ parent: this.parent,
403
+ tbElements: selectAll('.' + classes.CLS_TB_ITEM, this.parent.quickToolbarModule.textQTBar.element),
404
+ tbItems: this.parent.quickToolbarModule.textQTBar.quickTBarObj.toolbarObj.items
405
+ };
406
+ setToolbarStatus(options_1, true, this.parent);
407
+ updateUndoRedoStatus(this.parent.quickToolbarModule.textQTBar.quickTBarObj, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
408
+ }
409
+ if (!select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element)) {
363
410
  updateUndoRedoStatus(this.parent.getBaseToolbarObject(), this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
364
411
  }
365
412
  };
@@ -369,7 +416,7 @@ var BaseQuickToolbar = /** @class */ (function () {
369
416
  * @function destroy
370
417
  * @returns {void}
371
418
  * @hidden
372
-
419
+ * @deprecated
373
420
  */
374
421
  BaseQuickToolbar.prototype.destroy = function () {
375
422
  if (this.popupObj && !this.popupObj.isDestroyed) {
@@ -383,7 +430,7 @@ var BaseQuickToolbar = /** @class */ (function () {
383
430
  *
384
431
  * @returns {void}
385
432
  * @hidden
386
-
433
+ * @deprecated
387
434
  */
388
435
  BaseQuickToolbar.prototype.addEventListener = function () {
389
436
  if (this.parent.isDestroyed) {
@@ -391,7 +438,7 @@ var BaseQuickToolbar = /** @class */ (function () {
391
438
  }
392
439
  this.parent.on(events.destroy, this.destroy, this);
393
440
  this.parent.on(events.modelChanged, this.onPropertyChanged, this);
394
- if (this.parent.inlineMode.enable) {
441
+ if (this.parent.inlineMode.enable || this.parent.quickToolbarSettings.text) {
395
442
  this.parent.on(events.toolbarUpdated, this.updateStatus, this);
396
443
  }
397
444
  };
@@ -401,7 +448,7 @@ var BaseQuickToolbar = /** @class */ (function () {
401
448
  * @param {RichTextEditorModel} e - specifies the model element
402
449
  * @returns {void}
403
450
  * @hidden
404
-
451
+ * @deprecated
405
452
  */
406
453
  BaseQuickToolbar.prototype.onPropertyChanged = function (e) {
407
454
  if (!isNullOrUndefined(e.newProp.inlineMode)) {
@@ -425,7 +472,7 @@ var BaseQuickToolbar = /** @class */ (function () {
425
472
  *
426
473
  * @returns {void}
427
474
  * @hidden
428
-
475
+ * @deprecated
429
476
  */
430
477
  BaseQuickToolbar.prototype.removeEventListener = function () {
431
478
  if (this.parent.isDestroyed) {
@@ -433,7 +480,7 @@ var BaseQuickToolbar = /** @class */ (function () {
433
480
  }
434
481
  this.parent.off(events.destroy, this.destroy);
435
482
  this.parent.off(events.modelChanged, this.onPropertyChanged);
436
- if (this.parent.inlineMode.enable) {
483
+ if (this.parent.inlineMode.enable || this.parent.quickToolbarSettings.text) {
437
484
  this.parent.off(events.toolbarUpdated, this.updateStatus);
438
485
  }
439
486
  };
@@ -32,7 +32,7 @@ export declare class BaseToolbar {
32
32
  * @param {string} container - specifies the value of string
33
33
  * @returns {IToolbarItemModel} - returns the model element
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  getObject(item: string, container: string): IToolbarItemModel;
38
38
  /**
@@ -40,7 +40,7 @@ export declare class BaseToolbar {
40
40
  * @param {string} container - specifies the container value
41
41
  * @returns {ItemModel} - retunrs the model element
42
42
  * @hidden
43
-
43
+ * @deprecated
44
44
  */
45
45
  getItems(tbItems: (string | IToolbarItems)[], container: string): ItemModel[];
46
46
  private getToolbarOptions;
@@ -50,7 +50,7 @@ export declare class BaseToolbar {
50
50
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
51
51
  * @returns {void}
52
52
  * @hidden
53
-
53
+ * @deprecated
54
54
  */
55
55
  render(args: IToolbarRenderOptions): void;
56
56
  }
@@ -1,9 +1,9 @@
1
1
  import { RenderType } from '../base/enum';
2
2
  import { CLS_HR_SEPARATOR } from '../base/classes';
3
3
  import * as events from '../base/constant';
4
- import { getTooltipText, isIDevice, toObjectLowerCase } from '../base/util';
4
+ import { getTooltipText, toObjectLowerCase } from '../base/util';
5
5
  import { tools, templateItems, windowKeys } from '../models/items';
6
- import { isNullOrUndefined, extend, Browser } from '@syncfusion/ej2-base';
6
+ import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';
7
7
  /**
8
8
  * `Toolbar` module is used to handle Toolbar actions.
9
9
  */
@@ -93,7 +93,7 @@ var BaseToolbar = /** @class */ (function () {
93
93
  * @param {string} container - specifies the value of string
94
94
  * @returns {IToolbarItemModel} - returns the model element
95
95
  * @hidden
96
-
96
+ * @deprecated
97
97
  */
98
98
  BaseToolbar.prototype.getObject = function (item, container) {
99
99
  var itemStr = item.toLowerCase();
@@ -107,23 +107,13 @@ var BaseToolbar = /** @class */ (function () {
107
107
  case '-':
108
108
  return { type: 'Separator', cssClass: CLS_HR_SEPARATOR };
109
109
  default:
110
- if (this.parent.showTooltip) {
111
- return {
112
- id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
113
- prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
114
- tooltipText: getTooltipText(itemStr, this.locator),
115
- command: this.tools[itemStr.toLocaleLowerCase()].command,
116
- subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
117
- };
118
- }
119
- else {
120
- return {
121
- id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
122
- prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
123
- command: this.tools[itemStr.toLocaleLowerCase()].command,
124
- subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
125
- };
126
- }
110
+ return {
111
+ id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
112
+ prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
113
+ tooltipText: getTooltipText(itemStr, this.locator),
114
+ command: this.tools[itemStr.toLocaleLowerCase()].command,
115
+ subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
116
+ };
127
117
  }
128
118
  }
129
119
  };
@@ -132,7 +122,7 @@ var BaseToolbar = /** @class */ (function () {
132
122
  * @param {string} container - specifies the container value
133
123
  * @returns {ItemModel} - retunrs the model element
134
124
  * @hidden
135
-
125
+ * @deprecated
136
126
  */
137
127
  BaseToolbar.prototype.getItems = function (tbItems, container) {
138
128
  var _this = this;
@@ -154,10 +144,14 @@ var BaseToolbar = /** @class */ (function () {
154
144
  _this.parent.formatter.saveData();
155
145
  }
156
146
  callback_1.call(_this);
157
- var currentContentElem = _this.parent.createElement('div');
158
- currentContentElem.appendChild(_this.parent.formatter.getUndoRedoStack()[_this.parent.formatter.getUndoRedoStack().length - 1].text);
159
- if (currentContentElem.innerHTML.trim() === _this.parent.inputElement.innerHTML.trim()) {
160
- return;
147
+ if (_this.parent.formatter.getUndoRedoStack().length > 0) {
148
+ var currentContentElem = _this.parent.createElement('div');
149
+ var stackItem = _this.parent.formatter.getUndoRedoStack()[_this.parent.formatter.getUndoRedoStack().length - 1];
150
+ var clonedItem = (stackItem.text).cloneNode(true);
151
+ currentContentElem.appendChild(clonedItem);
152
+ if (currentContentElem.innerHTML.trim() === _this.parent.inputElement.innerHTML.trim()) {
153
+ return;
154
+ }
161
155
  }
162
156
  if (proxy_1.undo) {
163
157
  _this.parent.formatter.saveData();
@@ -172,17 +166,22 @@ var BaseToolbar = /** @class */ (function () {
172
166
  var item = tbItems_1[_i];
173
167
  _loop_1(item);
174
168
  }
175
- for (var num = 0; num < items.length; num++) {
176
- var tooltipText = items[num].tooltipText;
177
- var shortCutKey = void 0;
178
- if (windowKeys["" + tooltipText]) {
179
- shortCutKey = Browser.isDevice && isIDevice() ? windowKeys["" + tooltipText].replace('Ctrl', 'Cmd') : windowKeys["" + tooltipText];
180
- }
181
- else {
182
- shortCutKey = tooltipText;
183
- }
184
- if (shortCutKey) {
185
- items[num].tooltipText = (tooltipText !== shortCutKey) ? tooltipText + ' (' + shortCutKey + ')' : tooltipText;
169
+ if (this.parent.showTooltip) {
170
+ for (var num = 0; num < items.length; num++) {
171
+ var tooltipText = items[num].tooltipText;
172
+ var shortCutKey = void 0;
173
+ var isMacDev = window.navigator.platform.toLocaleLowerCase().includes('mac');
174
+ if (windowKeys["" + tooltipText]) {
175
+ shortCutKey = isMacDev ? windowKeys["" + tooltipText].replace('Ctrl+', '⌘').replace('Shift+', '⇧').replace('Alt+', '⌥') : windowKeys["" + tooltipText];
176
+ }
177
+ else {
178
+ shortCutKey = tooltipText;
179
+ }
180
+ if (shortCutKey) {
181
+ if (!(items[num].command === "Images" && items[num].subCommand === "InsertLink")) {
182
+ items[num].tooltipText = (tooltipText !== shortCutKey) ? (isMacDev) ? shortCutKey : tooltipText + ' (' + shortCutKey + ')' : tooltipText;
183
+ }
184
+ }
186
185
  }
187
186
  }
188
187
  return items;
@@ -204,7 +203,7 @@ var BaseToolbar = /** @class */ (function () {
204
203
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
205
204
  * @returns {void}
206
205
  * @hidden
207
-
206
+ * @deprecated
208
207
  */
209
208
  BaseToolbar.prototype.render = function (args) {
210
209
  this.toolbarRenderer = this.renderFactory.getRenderer(RenderType.Toolbar);
@@ -23,7 +23,7 @@ export declare class ColorPickerInput {
23
23
  * @param {IColorPickerRenderArgs} args - specify the arguments.
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderColorPickerInput(args: IColorPickerRenderArgs): void;
29
29
  private destroy;
@@ -32,13 +32,14 @@ export declare class ColorPickerInput {
32
32
  *
33
33
  * @returns {void}
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  destroyColorPicker(): void;
38
38
  private setRtl;
39
39
  private setCssClass;
40
40
  private updateCss;
41
41
  protected addEventListener(): void;
42
+ private showColorPicker;
42
43
  private onPropertyChanged;
43
44
  protected removeEventListener(): void;
44
45
  }
@@ -30,7 +30,7 @@ var ColorPickerInput = /** @class */ (function () {
30
30
  * @param {IColorPickerRenderArgs} args - specify the arguments.
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  ColorPickerInput.prototype.renderColorPickerInput = function (args) {
36
36
  var _this = this;
@@ -58,7 +58,7 @@ var ColorPickerInput = /** @class */ (function () {
58
58
  document.body.appendChild(fontNode);
59
59
  options = {
60
60
  cssClass: _this.tools[item.toLocaleLowerCase()].icon
61
- + ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + ' ' + _this.parent.cssClass,
61
+ + ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + _this.parent.getCssClass(true),
62
62
  value: _this.tools[item.toLocaleLowerCase()].value,
63
63
  command: _this.tools[item.toLocaleLowerCase()].command,
64
64
  subCommand: _this.tools[item.toLocaleLowerCase()].subCommand,
@@ -85,7 +85,7 @@ var ColorPickerInput = /** @class */ (function () {
85
85
  document.body.appendChild(backNode);
86
86
  options = {
87
87
  cssClass: _this.tools[item.toLocaleLowerCase()].icon
88
- + ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + ' ' + _this.parent.cssClass,
88
+ + ' ' + classes.CLS_RTE_ELEMENTS + ' ' + classes.CLS_ICONS + _this.parent.getCssClass(true),
89
89
  value: _this.tools[item.toLocaleLowerCase()].value,
90
90
  command: _this.tools[item.toLocaleLowerCase()].command,
91
91
  subCommand: _this.tools[item.toLocaleLowerCase()].subCommand,
@@ -100,7 +100,7 @@ var ColorPickerInput = /** @class */ (function () {
100
100
  }
101
101
  });
102
102
  if (this.parent.inlineMode.enable) {
103
- this.setCssClass({ cssClass: this.parent.cssClass });
103
+ this.setCssClass({ cssClass: this.parent.getCssClass() });
104
104
  }
105
105
  };
106
106
  ColorPickerInput.prototype.destroy = function () {
@@ -112,7 +112,7 @@ var ColorPickerInput = /** @class */ (function () {
112
112
  *
113
113
  * @returns {void}
114
114
  * @hidden
115
-
115
+ * @deprecated
116
116
  */
117
117
  ColorPickerInput.prototype.destroyColorPicker = function () {
118
118
  if (this.fontColorPicker && !this.fontColorPicker.isDestroyed) {
@@ -170,6 +170,15 @@ var ColorPickerInput = /** @class */ (function () {
170
170
  this.parent.on(events.destroyColorPicker, this.destroyColorPicker, this);
171
171
  this.parent.on(events.modelChanged, this.onPropertyChanged, this);
172
172
  this.parent.on(events.bindCssClass, this.setCssClass, this);
173
+ this.parent.on(events.showColorPicker, this.showColorPicker, this);
174
+ };
175
+ ColorPickerInput.prototype.showColorPicker = function (e) {
176
+ if (!isNullOrUndefined(this.fontColorPicker) && (e.toolbarClick === "fontcolor")) {
177
+ this.fontColorDropDown.toggle();
178
+ }
179
+ else if (!isNullOrUndefined(this.backgroundColorPicker) && (e.toolbarClick === "backgroundcolor")) {
180
+ this.backgroundColorDropDown.toggle();
181
+ }
173
182
  };
174
183
  ColorPickerInput.prototype.onPropertyChanged = function (model) {
175
184
  var newProp = model.newProp;
@@ -243,6 +252,7 @@ var ColorPickerInput = /** @class */ (function () {
243
252
  this.parent.off(events.destroyColorPicker, this.destroyColorPicker);
244
253
  this.parent.off(events.modelChanged, this.onPropertyChanged);
245
254
  this.parent.off(events.bindCssClass, this.setCssClass);
255
+ this.parent.off(events.showColorPicker, this.showColorPicker);
246
256
  };
247
257
  return ColorPickerInput;
248
258
  }());
@@ -22,7 +22,7 @@ export declare class Count {
22
22
  *
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  renderCount(): void;
28
28
  private appendCount;
@@ -30,7 +30,7 @@ export declare class Count {
30
30
  /**
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  refresh(): void;
36
36
  /**
@@ -39,7 +39,7 @@ export declare class Count {
39
39
  * @function destroy
40
40
  * @returns {void}
41
41
  * @hidden
42
-
42
+ * @deprecated
43
43
  */
44
44
  destroy(): void;
45
45
  private toggle;
@@ -22,7 +22,7 @@ var Count = /** @class */ (function () {
22
22
  *
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  Count.prototype.renderCount = function () {
28
28
  this.initializeInstance();
@@ -35,7 +35,7 @@ var Count = /** @class */ (function () {
35
35
  };
36
36
  Count.prototype.appendCount = function () {
37
37
  var htmlText = this.parent.editorMode === 'Markdown' ? this.editPanel.value :
38
- this.editPanel.textContent;
38
+ (this.parent.getText().replace(/(\r\n|\n|\r|\t)/gm, ''));
39
39
  if (this.parent.editorMode !== 'Markdown' && htmlText.indexOf('\u200B') !== -1) {
40
40
  this.htmlLength = htmlText.replace(/\u200B/g, '').length;
41
41
  }
@@ -63,7 +63,7 @@ var Count = /** @class */ (function () {
63
63
  /**
64
64
  * @returns {void}
65
65
  * @hidden
66
-
66
+ * @deprecated
67
67
  */
68
68
  Count.prototype.refresh = function () {
69
69
  if (!isNullOrUndefined(this.editPanel)) {
@@ -79,7 +79,7 @@ var Count = /** @class */ (function () {
79
79
  * @function destroy
80
80
  * @returns {void}
81
81
  * @hidden
82
-
82
+ * @deprecated
83
83
  */
84
84
  Count.prototype.destroy = function () {
85
85
  if (this.element && !isNullOrUndefined(this.parent.element.querySelector('.' + CLS_COUNT))) {
@@ -16,6 +16,7 @@ export declare class DropDownButtons {
16
16
  displayDropDown: DropDownButton;
17
17
  tableRowsDropDown: DropDownButton;
18
18
  tableColumnsDropDown: DropDownButton;
19
+ tableCellDropDown: DropDownButton;
19
20
  tableCellVerticalAlignDropDown: DropDownButton;
20
21
  /**
21
22
  *
@@ -36,7 +37,7 @@ export declare class DropDownButtons {
36
37
  * @param {IDropDownRenderArgs} args - specifies the arguments
37
38
  * @returns {void}
38
39
  * @hidden
39
-
40
+ * @deprecated
40
41
  */
41
42
  renderDropDowns(args: IDropDownRenderArgs): void;
42
43
  private getUpdateItems;
@@ -55,7 +56,7 @@ export declare class DropDownButtons {
55
56
  *
56
57
  * @returns {void}
57
58
  * @hidden
58
-
59
+ * @deprecated
59
60
  */
60
61
  destroyDropDowns(): void;
61
62
  private setRtl;
@@ -39,7 +39,7 @@ var DropDownButtons = /** @class */ (function () {
39
39
  * @param {IDropDownRenderArgs} args - specifies the arguments
40
40
  * @returns {void}
41
41
  * @hidden
42
-
42
+ * @deprecated
43
43
  */
44
44
  DropDownButtons.prototype.renderDropDowns = function (args) {
45
45
  var _this = this;
@@ -134,7 +134,7 @@ var DropDownButtons = /** @class */ (function () {
134
134
  if (isNullOrUndefined(targetElement) || targetElement.classList.contains(classes.CLS_DROPDOWN_BTN)) {
135
135
  return;
136
136
  }
137
- var fontsize = _this.parent.fontSize.items.slice();
137
+ var fontsize = !isNullOrUndefined(_this.fontSizeDropDown) && !isNullOrUndefined(_this.fontSizeDropDown.items) && _this.fontSizeDropDown.items.length > 0 ? _this.fontSizeDropDown.items : JSON.parse(JSON.stringify(_this.parent.fontSize.items.slice()));
138
138
  fontsize.forEach(function (item) {
139
139
  Object.defineProperties(item, {
140
140
  command: { value: 'Font', enumerable: true }, subCommand: { value: 'FontSize', enumerable: true }
@@ -191,7 +191,7 @@ var DropDownButtons = /** @class */ (function () {
191
191
  }
192
192
  });
193
193
  if (this.parent.inlineMode.enable) {
194
- this.setCssClass({ cssClass: this.parent.cssClass });
194
+ this.setCssClass({ cssClass: this.parent.getCssClass() });
195
195
  }
196
196
  };
197
197
  DropDownButtons.prototype.getUpdateItems = function (items, value) {
@@ -333,7 +333,7 @@ var DropDownButtons = /** @class */ (function () {
333
333
  if (targetElement.classList.contains(classes.CLS_DROPDOWN_BTN)) {
334
334
  return;
335
335
  }
336
- this.tableRowsDropDown = this.toolbarRenderer.renderDropDownButton({
336
+ this.tableCellDropDown = this.toolbarRenderer.renderDropDownButton({
337
337
  iconCss: 'e-table-cell e-icons',
338
338
  cssClass: classes.CLS_DROPDOWN_POPUP + ' ' + classes.CLS_DROPDOWN_ITEMS + ' ' + classes.CLS_QUICK_DROPDOWN,
339
339
  itemName: 'TableCell',
@@ -406,7 +406,7 @@ var DropDownButtons = /** @class */ (function () {
406
406
  *
407
407
  * @returns {void}
408
408
  * @hidden
409
-
409
+ * @deprecated
410
410
  */
411
411
  DropDownButtons.prototype.destroyDropDowns = function () {
412
412
  if (this.formatDropDown) {
@@ -441,6 +441,10 @@ var DropDownButtons = /** @class */ (function () {
441
441
  this.removeDropDownClasses(this.tableColumnsDropDown.element);
442
442
  this.tableColumnsDropDown.destroy();
443
443
  }
444
+ if (this.tableCellDropDown) {
445
+ this.removeDropDownClasses(this.tableCellDropDown.element);
446
+ this.tableCellDropDown.destroy();
447
+ }
444
448
  if (this.tableCellVerticalAlignDropDown) {
445
449
  this.removeDropDownClasses(this.tableCellVerticalAlignDropDown.element);
446
450
  this.tableCellVerticalAlignDropDown.destroy();
@@ -494,7 +498,7 @@ var DropDownButtons = /** @class */ (function () {
494
498
  var dropDownObj = [
495
499
  this.formatDropDown, this.fontNameDropDown, this.fontSizeDropDown, this.alignDropDown, this.imageAlignDropDown,
496
500
  this.displayDropDown, this.numberFormatListDropDown, this.bulletFormatListDropDown, this.tableRowsDropDown,
497
- this.tableColumnsDropDown, this.tableCellVerticalAlignDropDown
501
+ this.tableColumnsDropDown, this.tableCellDropDown, this.tableCellVerticalAlignDropDown
498
502
  ];
499
503
  for (var i = 0; i < dropDownObj.length; i++) {
500
504
  this.updateCss(dropDownObj[i], e);
@@ -512,7 +516,9 @@ var DropDownButtons = /** @class */ (function () {
512
516
  this.parent.on(events.bindCssClass, this.setCssClass, this);
513
517
  };
514
518
  DropDownButtons.prototype.onIframeMouseDown = function () {
515
- dispatchEvent(document, 'mousedown');
519
+ if (!isNullOrUndefined(this.parent.getToolbarElement()) && (this.parent.getToolbarElement().querySelectorAll('.e-rte-dropdown-btn[aria-expanded="true"]').length > 0 || this.parent.getToolbarElement().querySelectorAll('.e-dropdown-btn.e-rte-inline-dropdown[aria-expanded="true"]').length > 0)) {
520
+ dispatchEvent(document, 'mousedown');
521
+ }
516
522
  };
517
523
  DropDownButtons.prototype.removeEventListener = function () {
518
524
  if (this.parent.isDestroyed) {
@@ -21,7 +21,7 @@ export declare class EmojiPicker {
21
21
  * @function destroy
22
22
  * @returns {void}
23
23
  * @hidden
24
-
24
+ * @deprecated
25
25
  */
26
26
  destroy(): void;
27
27
  protected addEventListener(): void;