@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
@@ -35,7 +35,7 @@ export declare class QuickToolbar {
35
35
  * @param {RenderType} type - specifies the render type.
36
36
  * @returns {BaseQuickToolbar} - specifies the quick toolbar
37
37
  * @hidden
38
-
38
+ * @deprecated
39
39
  */
40
40
  createQTBar(popupType: string, mode: string, items: (string | IToolbarItems)[], type: RenderType): BaseQuickToolbar;
41
41
  private initializeQuickToolbars;
@@ -51,7 +51,7 @@ export declare class QuickToolbar {
51
51
  * @param {HTMLElement} target - specifies the target element.
52
52
  * @returns {void}
53
53
  * @hidden
54
-
54
+ * @deprecated
55
55
  */
56
56
  showInlineQTBar(x: number, y: number, target: HTMLElement): void;
57
57
  /**
@@ -59,7 +59,7 @@ export declare class QuickToolbar {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  hideInlineQTBar(): void;
65
65
  /**
@@ -67,11 +67,12 @@ export declare class QuickToolbar {
67
67
  *
68
68
  * @returns {void}
69
69
  * @hidden
70
-
70
+ * @deprecated
71
71
  */
72
72
  hideQuickToolbars(): void;
73
73
  private deBounce;
74
74
  private mouseUpHandler;
75
+ private isEmbedVidElem;
75
76
  private keyDownHandler;
76
77
  private inlineQTBarMouseDownHandler;
77
78
  private keyUpHandler;
@@ -82,7 +83,7 @@ export declare class QuickToolbar {
82
83
  *
83
84
  * @returns {void}
84
85
  * @hidden
85
-
86
+ * @deprecated
86
87
  */
87
88
  getInlineBaseToolbar(): BaseToolbar;
88
89
  /**
@@ -91,7 +92,7 @@ export declare class QuickToolbar {
91
92
  * @function destroy
92
93
  * @returns {void}
93
94
  * @hidden
94
-
95
+ * @deprecated
95
96
  */
96
97
  destroy(): void;
97
98
  private moduleDestroy;
@@ -103,7 +104,7 @@ export declare class QuickToolbar {
103
104
  *
104
105
  * @returns {void}
105
106
  * @hidden
106
-
107
+ * @deprecated
107
108
  */
108
109
  addEventListener(): void;
109
110
  private onKeyDown;
@@ -116,7 +117,7 @@ export declare class QuickToolbar {
116
117
  *
117
118
  * @returns {void}
118
119
  * @hidden
119
-
120
+ * @deprecated
120
121
  */
121
122
  removeEventListener(): void;
122
123
  /**
@@ -125,7 +126,7 @@ export declare class QuickToolbar {
125
126
  * @param {RichTextEditorModel} e - specifies the element.
126
127
  * @returns {void}
127
128
  * @hidden
128
-
129
+ * @deprecated
129
130
  */
130
131
  protected onPropertyChanged(e: {
131
132
  [key: string]: RichTextEditorModel;
@@ -137,4 +138,11 @@ export declare class QuickToolbar {
137
138
  * @hidden
138
139
  */
139
140
  private getModuleName;
141
+ /**
142
+ *
143
+ * @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
144
+ * @hidden
145
+ * @private
146
+ */
147
+ getQuickToolbarInstance(): BaseQuickToolbar[];
140
148
  }
@@ -4,7 +4,7 @@ import * as events from '../base/constant';
4
4
  import { pageYOffset, hasClass, isIDevice } from '../base/util';
5
5
  import { BaseQuickToolbar } from './base-quick-toolbar';
6
6
  import { PopupRenderer } from '../renderer/popup-renderer';
7
- import { CLS_INLINE_POP, CLS_INLINE } from '../base/classes';
7
+ import { CLS_INLINE_POP, CLS_INLINE, CLS_VID_CLICK_ELEM } from '../base/classes';
8
8
  /**
9
9
  * `Quick toolbar` module is used to handle Quick toolbar actions.
10
10
  */
@@ -47,7 +47,7 @@ var QuickToolbar = /** @class */ (function () {
47
47
  toolbarItems: items,
48
48
  mode: mode,
49
49
  renderType: type,
50
- cssClass: this.parent.cssClass
50
+ cssClass: this.parent.getCssClass()
51
51
  };
52
52
  };
53
53
  /**
@@ -59,7 +59,7 @@ var QuickToolbar = /** @class */ (function () {
59
59
  * @param {RenderType} type - specifies the render type.
60
60
  * @returns {BaseQuickToolbar} - specifies the quick toolbar
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  QuickToolbar.prototype.createQTBar = function (popupType, mode, items, type) {
65
65
  if (items.length < 1) {
@@ -146,10 +146,10 @@ var QuickToolbar = /** @class */ (function () {
146
146
  * @param {HTMLElement} target - specifies the target element.
147
147
  * @returns {void}
148
148
  * @hidden
149
-
149
+ * @deprecated
150
150
  */
151
151
  QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
152
- if (isNOU(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img') {
152
+ if (isNOU(this.parent) || this.parent.readonly || target.tagName.toLowerCase() === 'img' || this.inlineQTBar.element.querySelector('.e-rte-color-content')) {
153
153
  return;
154
154
  }
155
155
  this.inlineQTBar.showPopup(x, y, target);
@@ -159,7 +159,7 @@ var QuickToolbar = /** @class */ (function () {
159
159
  *
160
160
  * @returns {void}
161
161
  * @hidden
162
-
162
+ * @deprecated
163
163
  */
164
164
  QuickToolbar.prototype.hideInlineQTBar = function () {
165
165
  if (this.inlineQTBar && !hasClass(this.inlineQTBar.element, 'e-popup-close')) {
@@ -171,7 +171,7 @@ var QuickToolbar = /** @class */ (function () {
171
171
  *
172
172
  * @returns {void}
173
173
  * @hidden
174
-
174
+ * @deprecated
175
175
  */
176
176
  QuickToolbar.prototype.hideQuickToolbars = function () {
177
177
  if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close') && document.body.contains(this.linkQTBar.element)) {
@@ -238,6 +238,9 @@ var QuickToolbar = /** @class */ (function () {
238
238
  }
239
239
  }
240
240
  if (!isNOU(this.textQTBar) && !isNOU(this.parent.quickToolbarSettings.text) && !this.parent.inlineMode.enable) {
241
+ if (!isNOU(e) && !isNOU(e.name) && e.name === 'sourceCodeMouseDown') {
242
+ return;
243
+ }
241
244
  var args = e.args.touches ?
242
245
  e.args.changedTouches[0] : e.args;
243
246
  var target = e.args.target;
@@ -248,7 +251,7 @@ var QuickToolbar = /** @class */ (function () {
248
251
  this.offsetY = pageYOffset(args, this.parent.element, this.parent.iframeSettings.enable);
249
252
  var range = this.parent.getRange();
250
253
  if ((range.endContainer.parentElement.tagName === range.startContainer.parentElement.tagName && (range.startContainer.parentElement.tagName === 'A' && range.endContainer.parentElement.tagName === 'A')) ||
251
- (target.tagName === 'IMG') || (target.tagName === 'VIDEO') || (target.tagName === 'AUDIO') || (target.childNodes[0].nodeType === 1 && target.childNodes[0].classList.contains('e-rte-audio')) ||
254
+ (target.tagName === 'IMG') || (target.tagName === 'VIDEO' || this.isEmbedVidElem(target)) || (target.tagName === 'AUDIO') || (target.childNodes[0] && target.childNodes[0].nodeType === 1 && target.childNodes[0].classList.contains('e-rte-audio')) ||
252
255
  (this.parent.getRange().startOffset === this.parent.getRange().endOffset)) {
253
256
  return;
254
257
  }
@@ -256,10 +259,29 @@ var QuickToolbar = /** @class */ (function () {
256
259
  this.textQTBar.showPopup(this.offsetX, this.offsetY, target, 'text');
257
260
  }
258
261
  };
259
- QuickToolbar.prototype.keyDownHandler = function () {
260
- if ((this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice()))
261
- && !isNullOrUndefined(select('.' + CLS_INLINE_POP, document))) {
262
- this.hideInlineQTBar();
262
+ QuickToolbar.prototype.isEmbedVidElem = function (target) {
263
+ if ((target && target.nodeType !== 3 && target.nodeName !== 'BR' && (target.classList && target.classList.contains(CLS_VID_CLICK_ELEM))) ||
264
+ (target && target.nodeName === 'IFRAME')) {
265
+ return true;
266
+ }
267
+ else {
268
+ return false;
269
+ }
270
+ };
271
+ QuickToolbar.prototype.keyDownHandler = function (e) {
272
+ var preventHide = e.args.altKey;
273
+ if (this.parent.inlineMode.enable && e.args.metaKey && e.args.keyCode === 65) {
274
+ this.showInlineQTBar(this.offsetX, this.offsetY, e.args.target);
275
+ return;
276
+ }
277
+ if (!preventHide) {
278
+ if ((this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice()))
279
+ && !isNullOrUndefined(select('.' + CLS_INLINE_POP, document))) {
280
+ this.hideInlineQTBar();
281
+ }
282
+ if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
283
+ this.textQTBar.hidePopup();
284
+ }
263
285
  }
264
286
  };
265
287
  QuickToolbar.prototype.inlineQTBarMouseDownHandler = function () {
@@ -274,8 +296,8 @@ var QuickToolbar = /** @class */ (function () {
274
296
  }
275
297
  };
276
298
  QuickToolbar.prototype.keyUpHandler = function (e) {
299
+ var args = e.args;
277
300
  if (this.parent.inlineMode.enable && !Browser.isDevice) {
278
- var args = e.args;
279
301
  if (this.parent.inlineMode.onSelection) {
280
302
  if (this.parent.getSelection().length > 0) {
281
303
  if ((args.ctrlKey && args.keyCode === 65) || (args.shiftKey && (args.keyCode === 33 || args.keyCode === 34 ||
@@ -288,6 +310,13 @@ var QuickToolbar = /** @class */ (function () {
288
310
  }
289
311
  this.deBounce(this.offsetX, this.offsetY, args.target);
290
312
  }
313
+ if (this.parent.quickToolbarSettings.text && !Browser.isDevice) {
314
+ if ((args.ctrlKey && args.keyCode === 65) || (args.shiftKey && (args.keyCode === 33 || args.keyCode === 34 ||
315
+ args.keyCode === 35 || args.keyCode === 36 || args.keyCode === 37 || args.keyCode === 38 ||
316
+ args.keyCode === 39 || args.keyCode === 40))) {
317
+ this.textQTBar.showPopup(this.offsetX, this.offsetY, args.target, 'text');
318
+ }
319
+ }
291
320
  };
292
321
  QuickToolbar.prototype.selectionChangeHandler = function (e) {
293
322
  var _this = this;
@@ -310,7 +339,7 @@ var QuickToolbar = /** @class */ (function () {
310
339
  *
311
340
  * @returns {void}
312
341
  * @hidden
313
-
342
+ * @deprecated
314
343
  */
315
344
  QuickToolbar.prototype.getInlineBaseToolbar = function () {
316
345
  return this.inlineQTBar && this.inlineQTBar.quickTBarObj;
@@ -321,7 +350,7 @@ var QuickToolbar = /** @class */ (function () {
321
350
  * @function destroy
322
351
  * @returns {void}
323
352
  * @hidden
324
-
353
+ * @deprecated
325
354
  */
326
355
  QuickToolbar.prototype.destroy = function () {
327
356
  if (isNOU(this.parent)) {
@@ -411,7 +440,7 @@ var QuickToolbar = /** @class */ (function () {
411
440
  *
412
441
  * @returns {void}
413
442
  * @hidden
414
-
443
+ * @deprecated
415
444
  */
416
445
  QuickToolbar.prototype.addEventListener = function () {
417
446
  if (this.parent.isDestroyed) {
@@ -447,6 +476,15 @@ var QuickToolbar = /** @class */ (function () {
447
476
  if (this.videoQTBar && !hasClass(this.videoQTBar.element, 'e-popup-close')) {
448
477
  this.videoQTBar.hidePopup();
449
478
  }
479
+ if (this.tableQTBar && !hasClass(this.tableQTBar.element, 'e-popup-close')) {
480
+ this.tableQTBar.hidePopup();
481
+ }
482
+ if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close')) {
483
+ this.linkQTBar.hidePopup();
484
+ }
485
+ if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
486
+ this.textQTBar.hidePopup();
487
+ }
450
488
  }
451
489
  };
452
490
  QuickToolbar.prototype.onIframeMouseDown = function () {
@@ -496,9 +534,12 @@ var QuickToolbar = /** @class */ (function () {
496
534
  *
497
535
  * @returns {void}
498
536
  * @hidden
499
-
537
+ * @deprecated
500
538
  */
501
539
  QuickToolbar.prototype.removeEventListener = function () {
540
+ if (this.deBouncer) {
541
+ clearTimeout(this.deBouncer);
542
+ }
502
543
  if (this.parent.isDestroyed) {
503
544
  return;
504
545
  }
@@ -519,9 +560,6 @@ var QuickToolbar = /** @class */ (function () {
519
560
  this.parent.off(events.rtlMode, this.setRtl);
520
561
  this.parent.off(events.bindCssClass, this.setCssClass);
521
562
  this.parent.off(events.hidePopup, this.hideQuickToolbars);
522
- if (this.deBouncer) {
523
- clearTimeout(this.deBouncer);
524
- }
525
563
  };
526
564
  /**
527
565
  * Called internally if any of the property value changed.
@@ -529,7 +567,7 @@ var QuickToolbar = /** @class */ (function () {
529
567
  * @param {RichTextEditorModel} e - specifies the element.
530
568
  * @returns {void}
531
569
  * @hidden
532
-
570
+ * @deprecated
533
571
  */
534
572
  QuickToolbar.prototype.onPropertyChanged = function (e) {
535
573
  if (!isNullOrUndefined(e.newProp.quickToolbarSettings)) {
@@ -571,6 +609,15 @@ var QuickToolbar = /** @class */ (function () {
571
609
  QuickToolbar.prototype.getModuleName = function () {
572
610
  return 'quickToolbar';
573
611
  };
612
+ /**
613
+ *
614
+ * @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
615
+ * @hidden
616
+ * @private
617
+ */
618
+ QuickToolbar.prototype.getQuickToolbarInstance = function () {
619
+ return [this.linkQTBar, this.imageQTBar, this.audioQTBar, this.videoQTBar, this.tableQTBar, this.textQTBar, this.inlineQTBar];
620
+ };
574
621
  return QuickToolbar;
575
622
  }());
576
623
  export { QuickToolbar };
@@ -71,7 +71,8 @@ var Resize = /** @class */ (function () {
71
71
  this.parent.element.style.width = (!this.parent.enableRtl) ? eventType.clientX - boundRect.left + 'px' : boundRect.right - eventType.clientX + 'px';
72
72
  }
73
73
  if (!this.parent.toolbarSettings.enable) {
74
- this.parent.setContentHeight('', false);
74
+ var isExpand = this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
75
+ this.parent.setContentHeight('Resize', isExpand);
75
76
  }
76
77
  this.parent.refreshUI();
77
78
  };
@@ -39,7 +39,7 @@ var ToolbarAction = /** @class */ (function () {
39
39
  if (args.item.command === 'Lists') {
40
40
  if (args.originalEvent.target.classList.contains('e-caret') &&
41
41
  (args.originalEvent.target.parentElement.classList.contains('e-rte-bulletformatlist-dropdown') || args.originalEvent.target.parentElement.classList.contains('e-rte-numberformatlist-dropdown'))) {
42
- args.item.command = args.item.subCommand = null;
42
+ return;
43
43
  }
44
44
  }
45
45
  this.parent.notify(events.htmlToolbarClick, args);
@@ -4,6 +4,7 @@ import { IUpdateItemsModel } from '../base/interface';
4
4
  import { ServiceLocator } from '../services/service-locator';
5
5
  import { RendererFactory } from '../services/renderer-factory';
6
6
  import { BaseToolbar } from './base-toolbar';
7
+ import { DropDownButtons } from './dropdown-buttons';
7
8
  import { RichTextEditorModel } from '../base/rich-text-editor-model';
8
9
  /**
9
10
  * `Toolbar` module is used to handle Toolbar actions.
@@ -22,7 +23,7 @@ export declare class Toolbar {
22
23
  private isTransformChild;
23
24
  private contentRenderer;
24
25
  protected toolbarRenderer: IRenderer;
25
- private dropDownModule;
26
+ dropDownModule: DropDownButtons;
26
27
  private toolbarActionModule;
27
28
  protected renderFactory: RendererFactory;
28
29
  private keyBoardModule;
@@ -42,7 +43,7 @@ export declare class Toolbar {
42
43
  *
43
44
  * @returns {void}
44
45
  * @hidden
45
-
46
+ * @deprecated
46
47
  */
47
48
  addFixedTBarClass(): void;
48
49
  /**
@@ -50,7 +51,7 @@ export declare class Toolbar {
50
51
  *
51
52
  * @returns {void}
52
53
  * @hidden
53
-
54
+ * @deprecated
54
55
  */
55
56
  removeFixedTBarClass(): void;
56
57
  private showFixedTBar;
@@ -61,7 +62,7 @@ export declare class Toolbar {
61
62
  * @param {IUpdateItemsModel} args - specifies the arguments.
62
63
  * @returns {void}
63
64
  * @hidden
64
-
65
+ * @deprecated
65
66
  */
66
67
  updateItem(args: IUpdateItemsModel): void;
67
68
  private updateToolbarStatus;
@@ -72,7 +73,7 @@ export declare class Toolbar {
72
73
  *
73
74
  * @returns {void}
74
75
  * @hidden
75
-
76
+ * @deprecated
76
77
  */
77
78
  getBaseToolbar(): BaseToolbar;
78
79
  /**
@@ -82,7 +83,7 @@ export declare class Toolbar {
82
83
  * @param {number} index - specifies the index value.
83
84
  * @returns {void}
84
85
  * @hidden
85
-
86
+ * @deprecated
86
87
  */
87
88
  addTBarItem(args: IUpdateItemsModel, index: number): void;
88
89
  /**
@@ -94,7 +95,7 @@ export declare class Toolbar {
94
95
  * @param {boolean} muteToolbarUpdate - specifies the toolbar.
95
96
  * @returns {void}
96
97
  * @hidden
97
-
98
+ * @deprecated
98
99
  */
99
100
  enableTBarItems(baseToolbar: BaseToolbar, items: string | string[], isEnable: boolean, muteToolbarUpdate?: boolean): void;
100
101
  /**
@@ -103,7 +104,7 @@ export declare class Toolbar {
103
104
  * @param {string} items - specifies the string value.
104
105
  * @returns {void}
105
106
  * @hidden
106
-
107
+ * @deprecated
107
108
  */
108
109
  removeTBarItems(items: string | string[]): void;
109
110
  /**
@@ -111,7 +112,7 @@ export declare class Toolbar {
111
112
  *
112
113
  * @returns {void}
113
114
  * @hidden
114
-
115
+ * @deprecated
115
116
  */
116
117
  getExpandTBarPopHeight(): number;
117
118
  /**
@@ -119,7 +120,7 @@ export declare class Toolbar {
119
120
  *
120
121
  * @returns {void}
121
122
  * @hidden
122
-
123
+ * @deprecated
123
124
  */
124
125
  getToolbarHeight(): number;
125
126
  /**
@@ -127,7 +128,7 @@ export declare class Toolbar {
127
128
  *
128
129
  * @returns {void}
129
130
  * @hidden
130
-
131
+ * @deprecated
131
132
  */
132
133
  getToolbarElement(): Element;
133
134
  /**
@@ -135,7 +136,7 @@ export declare class Toolbar {
135
136
  *
136
137
  * @returns {void}
137
138
  * @hidden
138
-
139
+ * @deprecated
139
140
  */
140
141
  refreshToolbarOverflow(): void;
141
142
  private isToolbarDestroyed;
@@ -146,17 +147,16 @@ export declare class Toolbar {
146
147
  * @function destroy
147
148
  * @returns {void}
148
149
  * @hidden
149
-
150
+ * @deprecated
150
151
  */
151
152
  destroy(): void;
152
153
  private moduleDestroy;
153
- private scrollHandler;
154
- private getDOMVisibility;
155
154
  private mouseDownHandler;
156
155
  private focusChangeHandler;
157
156
  private dropDownBeforeOpenHandler;
158
157
  private tbFocusHandler;
159
158
  private toolbarClickHandler;
159
+ private adjustContentHeight;
160
160
  protected wireEvents(): void;
161
161
  protected unWireEvents(): void;
162
162
  protected addEventListener(): void;
@@ -169,7 +169,7 @@ export declare class Toolbar {
169
169
  * @param {RichTextEditorModel} e - specifies the string value
170
170
  * @returns {void}
171
171
  * @hidden
172
-
172
+ * @deprecated
173
173
  */
174
174
  protected onPropertyChanged(e: {
175
175
  [key: string]: RichTextEditorModel;