@syncfusion/ej2-richtexteditor 24.1.41 → 24.1.43-569781

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 (269) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +1927 -1775
  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 +2601 -1077
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +2706 -1181
  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 +11 -0
  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 +3 -3
  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 -49
  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 +15 -19
  47. package/src/editor-manager/plugin/indents.d.ts +2 -2
  48. package/src/editor-manager/plugin/indents.js +2 -2
  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 +64 -7
  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 +6 -3
  61. package/src/editor-manager/plugin/lists.d.ts +2 -2
  62. package/src/editor-manager/plugin/lists.js +123 -67
  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 +213 -86
  65. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  66. package/src/editor-manager/plugin/nodecutter.js +8 -8
  67. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  68. package/src/editor-manager/plugin/selection-commands.js +127 -4
  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 +2 -3
  72. package/src/editor-manager/plugin/table.js +35 -32
  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/markdown-parser/base/interface.d.ts +10 -10
  80. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  81. package/src/markdown-parser/base/markdown-parser.js +3 -3
  82. package/src/markdown-parser/base/types.d.ts +1 -1
  83. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  84. package/src/markdown-parser/plugin/clearformat.js +2 -2
  85. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  86. package/src/markdown-parser/plugin/formats.js +2 -2
  87. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  88. package/src/markdown-parser/plugin/insert-text.js +2 -2
  89. package/src/markdown-parser/plugin/link.d.ts +2 -2
  90. package/src/markdown-parser/plugin/link.js +2 -2
  91. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  92. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  93. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  94. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  95. package/src/markdown-parser/plugin/table.d.ts +3 -3
  96. package/src/markdown-parser/plugin/table.js +3 -3
  97. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  98. package/src/markdown-parser/plugin/undo.js +6 -6
  99. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +12 -12
  100. package/src/rich-text-editor/actions/base-quick-toolbar.js +57 -20
  101. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  102. package/src/rich-text-editor/actions/base-toolbar.js +35 -37
  103. package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
  104. package/src/rich-text-editor/actions/color-picker.js +12 -2
  105. package/src/rich-text-editor/actions/count.d.ts +3 -3
  106. package/src/rich-text-editor/actions/count.js +4 -4
  107. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  108. package/src/rich-text-editor/actions/dropdown-buttons.js +23 -4
  109. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  110. package/src/rich-text-editor/actions/emoji-picker.js +4 -4
  111. package/src/rich-text-editor/actions/enter-key.js +4 -3
  112. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  113. package/src/rich-text-editor/actions/full-screen.js +6 -5
  114. package/src/rich-text-editor/actions/html-editor.d.ts +5 -5
  115. package/src/rich-text-editor/actions/html-editor.js +129 -45
  116. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  117. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  118. package/src/rich-text-editor/actions/keyboard.js +23 -21
  119. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  120. package/src/rich-text-editor/actions/markdown-editor.js +5 -3
  121. package/src/rich-text-editor/actions/paste-clean-up.d.ts +4 -1
  122. package/src/rich-text-editor/actions/paste-clean-up.js +87 -12
  123. package/src/rich-text-editor/actions/quick-toolbar.d.ts +16 -9
  124. package/src/rich-text-editor/actions/quick-toolbar.js +33 -18
  125. package/src/rich-text-editor/actions/resize.js +2 -1
  126. package/src/rich-text-editor/actions/toolbar-action.js +1 -1
  127. package/src/rich-text-editor/actions/toolbar.d.ts +15 -16
  128. package/src/rich-text-editor/actions/toolbar.js +31 -100
  129. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  130. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  131. package/src/rich-text-editor/base/classes.d.ts +121 -126
  132. package/src/rich-text-editor/base/classes.js +121 -126
  133. package/src/rich-text-editor/base/constant.d.ts +190 -150
  134. package/src/rich-text-editor/base/constant.js +359 -150
  135. package/src/rich-text-editor/base/enum.d.ts +1 -1
  136. package/src/rich-text-editor/base/enum.js +1 -1
  137. package/src/rich-text-editor/base/interface.d.ts +87 -53
  138. package/src/rich-text-editor/base/interface.js +1 -1
  139. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  140. package/src/rich-text-editor/base/rich-text-editor.d.ts +68 -65
  141. package/src/rich-text-editor/base/rich-text-editor.js +232 -199
  142. package/src/rich-text-editor/base/util.d.ts +5 -1
  143. package/src/rich-text-editor/base/util.js +47 -4
  144. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  145. package/src/rich-text-editor/formatter/formatter.js +23 -12
  146. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  147. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  148. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  149. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  150. package/src/rich-text-editor/models/default-locale.js +30 -26
  151. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  152. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  153. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  154. package/src/rich-text-editor/models/inline-mode.js +19 -19
  155. package/src/rich-text-editor/models/items.js +2 -2
  156. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  157. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  158. package/src/rich-text-editor/models/toolbar-settings.js +20 -20
  159. package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
  160. package/src/rich-text-editor/renderer/audio-module.js +14 -1
  161. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  162. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  163. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
  164. package/src/rich-text-editor/renderer/dialog-renderer.js +14 -3
  165. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  166. package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
  167. package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
  168. package/src/rich-text-editor/renderer/image-module.js +200 -168
  169. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  170. package/src/rich-text-editor/renderer/link-module.js +11 -2
  171. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  172. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  173. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  174. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  175. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  176. package/src/rich-text-editor/renderer/render.js +2 -2
  177. package/src/rich-text-editor/renderer/table-module.d.ts +9 -2
  178. package/src/rich-text-editor/renderer/table-module.js +289 -137
  179. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +13 -9
  180. package/src/rich-text-editor/renderer/toolbar-renderer.js +103 -24
  181. package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
  182. package/src/rich-text-editor/renderer/video-module.js +62 -35
  183. package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
  184. package/src/rich-text-editor/renderer/view-source.js +18 -10
  185. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  186. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  187. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  188. package/src/rich-text-editor/services/service-locator.js +3 -3
  189. package/src/selection/selection.d.ts +22 -22
  190. package/src/selection/selection.js +25 -22
  191. package/styles/_all.scss +1 -1
  192. package/styles/bootstrap-dark.css +153 -49
  193. package/styles/bootstrap.css +158 -57
  194. package/styles/bootstrap4.css +145 -45
  195. package/styles/bootstrap5-dark.css +150 -45
  196. package/styles/bootstrap5.css +150 -45
  197. package/styles/fabric-dark.css +139 -39
  198. package/styles/fabric.css +140 -40
  199. package/styles/fluent-dark.css +147 -41
  200. package/styles/fluent.css +147 -41
  201. package/styles/highcontrast-light.css +139 -39
  202. package/styles/highcontrast.css +143 -40
  203. package/styles/material-dark.css +143 -39
  204. package/styles/material.css +143 -39
  205. package/styles/material3-dark.css +155 -49
  206. package/styles/material3-dark.scss +1 -1
  207. package/styles/material3.css +155 -49
  208. package/styles/material3.scss +1 -1
  209. package/styles/rich-text-editor/_all.scss +2 -2
  210. package/styles/rich-text-editor/_bds-definition.scss +279 -0
  211. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
  212. package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
  213. package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
  214. package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
  215. package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
  216. package/styles/rich-text-editor/_fabric-definition.scss +261 -257
  217. package/styles/rich-text-editor/_fluent-definition.scss +267 -263
  218. package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
  219. package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
  220. package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
  221. package/styles/rich-text-editor/_layout.scss +2249 -2147
  222. package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
  223. package/styles/rich-text-editor/_material-definition.scss +264 -260
  224. package/styles/rich-text-editor/_material3-definition.scss +266 -262
  225. package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
  226. package/styles/rich-text-editor/_theme.scss +906 -837
  227. package/styles/rich-text-editor/bootstrap-dark.css +153 -49
  228. package/styles/rich-text-editor/bootstrap.css +158 -57
  229. package/styles/rich-text-editor/bootstrap4.css +145 -45
  230. package/styles/rich-text-editor/bootstrap5-dark.css +150 -45
  231. package/styles/rich-text-editor/bootstrap5.css +150 -45
  232. package/styles/rich-text-editor/fabric-dark.css +139 -39
  233. package/styles/rich-text-editor/fabric.css +140 -40
  234. package/styles/rich-text-editor/fluent-dark.css +147 -41
  235. package/styles/rich-text-editor/fluent.css +147 -41
  236. package/styles/rich-text-editor/highcontrast-light.css +139 -39
  237. package/styles/rich-text-editor/highcontrast.css +143 -40
  238. package/styles/rich-text-editor/icons/_bds.scss +348 -0
  239. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  240. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  241. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  242. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  243. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  244. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  245. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  246. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  247. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  248. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  249. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  250. package/styles/rich-text-editor/icons/_material.scss +349 -349
  251. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  252. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  253. package/styles/rich-text-editor/material-dark.css +143 -39
  254. package/styles/rich-text-editor/material.css +143 -39
  255. package/styles/rich-text-editor/material3-dark.css +155 -49
  256. package/styles/rich-text-editor/material3-dark.scss +1 -1
  257. package/styles/rich-text-editor/material3.css +155 -49
  258. package/styles/rich-text-editor/material3.scss +1 -1
  259. package/styles/rich-text-editor/tailwind-dark.css +194 -66
  260. package/styles/rich-text-editor/tailwind.css +194 -66
  261. package/styles/tailwind-dark.css +194 -66
  262. package/styles/tailwind.css +194 -66
  263. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  264. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
  265. package/dist/ej2-richtexteditor.min.js +0 -10
  266. package/dist/global/ej2-richtexteditor.min.js +0 -11
  267. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  268. package/dist/global/index.d.ts +0 -14
  269. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';import { Base, EmitType } from '@syncfusion/ej2-base';import { KeyboardEventsModel } from '@syncfusion/ej2-base';
1
+ import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from '@syncfusion/ej2-base';
2
2
  import {KeyboardEventArgs} from "./keyboard";
3
3
 
4
4
  /**
@@ -7,24 +7,24 @@ import {KeyboardEventArgs} from "./keyboard";
7
7
  export interface KeyboardEventsModel {
8
8
 
9
9
  /**
10
- * Specifies key combination and it respective action name.
11
- *
12
- * @default null
13
- */
14
- keyConfigs?: { [key: string]: string };
10
+ * Specifies key combination and it respective action name.
11
+ *
12
+ * @default null
13
+ */
14
+ keyConfigs?: { [key: string]: string };
15
15
 
16
16
  /**
17
- * Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
18
- *
19
- * @default 'keyup'
20
- */
21
- eventName?: string;
17
+ * Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
18
+ *
19
+ * @default 'keyup'
20
+ */
21
+ eventName?: string;
22
22
 
23
23
  /**
24
- * Specifies the listener when keyboard actions is performed.
25
- *
26
- * @event 'keyAction'
27
- */
28
- keyAction?: EmitType<KeyboardEventArgs>;
24
+ * Specifies the listener when keyboard actions is performed.
25
+ *
26
+ * @event 'keyAction'
27
+ */
28
+ keyAction?: EmitType<KeyboardEventArgs>;
29
29
 
30
30
  }
@@ -27,7 +27,7 @@ export interface KeyboardEventArgs extends KeyboardEvent {
27
27
  * ```
28
28
  *
29
29
  * @hidden
30
-
30
+ * @deprecated
31
31
  */
32
32
  export declare class KeyboardEvents extends Base<HTMLElement> implements INotifyPropertyChanged {
33
33
  /**
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, NotifyPropertyChanges, Event } from '@syncfusion/ej2-base';
21
21
  import { Base } from '@syncfusion/ej2-base';
22
22
  var keyCode = {
@@ -65,7 +65,9 @@ var keyCode = {
65
65
  'singlequote': 222,
66
66
  ']': 221,
67
67
  '[': 219,
68
- '=': 187
68
+ '=': 187,
69
+ '<': 188,
70
+ '>': 190
69
71
  };
70
72
  /**
71
73
  * KeyboardEvents class enables you to bind key action desired key combinations for ex., Ctrl+A, Delete, Alt+Space etc.
@@ -84,7 +86,7 @@ var keyCode = {
84
86
  * ```
85
87
  *
86
88
  * @hidden
87
-
89
+ * @deprecated
88
90
  */
89
91
  var KeyboardEvents = /** @class */ (function (_super) {
90
92
  __extends(KeyboardEvents, _super);
@@ -19,7 +19,7 @@ export declare class MarkdownEditor {
19
19
  * @function destroy
20
20
  * @returns {void}
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  destroy(): void;
25
25
  private moduleDestroy;
@@ -37,7 +37,7 @@ export declare class MarkdownEditor {
37
37
  * @param {RichTextEditorModel} e - specifies the editor model
38
38
  * @returns {void}
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  protected onPropertyChanged(e: {
43
43
  [key: string]: RichTextEditorModel;
@@ -22,7 +22,7 @@ var MarkdownEditor = /** @class */ (function () {
22
22
  * @function destroy
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  MarkdownEditor.prototype.destroy = function () {
28
28
  if (isNullOrUndefined(this.parent)) {
@@ -74,7 +74,9 @@ var MarkdownEditor = /** @class */ (function () {
74
74
  MarkdownEditor.prototype.onToolbarClick = function (args) {
75
75
  var item = args.item;
76
76
  var textArea = this.parent.contentModule.getEditPanel();
77
- textArea.focus();
77
+ if (item.command !== 'Formats') {
78
+ textArea.focus();
79
+ }
78
80
  var startOffset = textArea.selectionStart;
79
81
  var endOffset = textArea.selectionEnd;
80
82
  var text = textArea.value.substring(startOffset, endOffset);
@@ -147,7 +149,7 @@ var MarkdownEditor = /** @class */ (function () {
147
149
  * @param {RichTextEditorModel} e - specifies the editor model
148
150
  * @returns {void}
149
151
  * @hidden
150
-
152
+ * @deprecated
151
153
  */
152
154
  MarkdownEditor.prototype.onPropertyChanged = function (e) {
153
155
  // On property code change here
@@ -46,7 +46,7 @@ export declare class PasteCleanup {
46
46
  * @param {Element []} imgElement - specifies the array elements.
47
47
  * @returns {void}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  private imageFormatting;
52
52
  private radioRender;
@@ -55,6 +55,7 @@ export declare class PasteCleanup {
55
55
  private updateCss;
56
56
  private setCssClass;
57
57
  private destroyDialog;
58
+ private docClick;
58
59
  private cleanAppleClass;
59
60
  private formatting;
60
61
  private cropImageHandler;
@@ -75,6 +76,8 @@ export declare class PasteCleanup {
75
76
  private deniedTags;
76
77
  private deniedAttributes;
77
78
  private allowedStyle;
79
+ private findLastElement;
80
+ private processPictureElement;
78
81
  /**
79
82
  * For internal use only - Get the module name.
80
83
  *
@@ -2,7 +2,7 @@ import * as events from '../base/constant';
2
2
  import { Popup } from '@syncfusion/ej2-popups';
3
3
  import { RadioButton } from '@syncfusion/ej2-buttons';
4
4
  import { isNullOrUndefined as isNOU, isNullOrUndefined, detach, extend, addClass, removeClass } from '@syncfusion/ej2-base';
5
- import { getUniqueID, Browser } from '@syncfusion/ej2-base';
5
+ import { getUniqueID, Browser, closest } from '@syncfusion/ej2-base';
6
6
  import { CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT } from '../base/classes';
7
7
  import { CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT } from '../base/classes';
8
8
  import { CLS_RTE_IMAGE, CLS_IMGINLINE, CLS_IMGBREAK } from '../base/classes';
@@ -46,6 +46,7 @@ var PasteCleanup = /** @class */ (function () {
46
46
  this.parent.on(events.pasteClean, this.pasteClean, this);
47
47
  this.parent.on(events.bindCssClass, this.setCssClass, this);
48
48
  this.parent.on(events.destroy, this.destroy, this);
49
+ this.parent.on(events.docClick, this.docClick, this);
49
50
  };
50
51
  PasteCleanup.prototype.destroy = function () {
51
52
  this.removeEventListener();
@@ -57,6 +58,7 @@ var PasteCleanup = /** @class */ (function () {
57
58
  this.parent.off(events.pasteClean, this.pasteClean);
58
59
  this.parent.off(events.bindCssClass, this.setCssClass);
59
60
  this.parent.off(events.destroy, this.destroy);
61
+ this.parent.off(events.docClick, this.docClick);
60
62
  };
61
63
  PasteCleanup.prototype.pasteClean = function (e) {
62
64
  var _this = this;
@@ -113,7 +115,8 @@ var PasteCleanup = /** @class */ (function () {
113
115
  args: e.args,
114
116
  text: e.text,
115
117
  allowedStylePropertiesArray: this.parent.pasteCleanupSettings.allowedStyleProps,
116
- callBack: function (a, cropImageData) {
118
+ callBack: function (a, cropImageData, pasteTableSource) {
119
+ args.pasteTableSource = pasteTableSource;
117
120
  value = a.trim();
118
121
  _this.cropImageData = cropImageData;
119
122
  }
@@ -125,10 +128,19 @@ var PasteCleanup = /** @class */ (function () {
125
128
  this.saveSelection = this.nodeSelectionObj.save(range, currentDocument);
126
129
  var tempDivElem = this.parent.createElement('div');
127
130
  tempDivElem.innerHTML = value;
131
+ var unsupportedImg = tempDivElem.querySelectorAll('.e-rte-image-unsupported');
132
+ for (var index = 0; index < unsupportedImg.length; index++) {
133
+ unsupportedImg[index].setAttribute('alt', this.i10n.getConstant('unsupportedImage'));
134
+ unsupportedImg[index].classList.remove('e-rte-image-unsupported');
135
+ }
136
+ value = tempDivElem.innerHTML;
128
137
  var isValueNotEmpty = tempDivElem.textContent !== '' || !isNOU(tempDivElem.querySelector('img')) ||
129
138
  !isNOU(tempDivElem.querySelector('table'));
130
- this.parent.trigger(events.cleanupResizeElements, { value: value }, function (args) {
131
- value = args.value;
139
+ this.parent.notify(events.cleanupResizeElements, {
140
+ value: value,
141
+ callBack: function (currentValue) {
142
+ value = currentValue;
143
+ }
132
144
  });
133
145
  if (this.parent.pasteCleanupSettings.prompt) {
134
146
  if (isValueNotEmpty) {
@@ -407,7 +419,9 @@ var PasteCleanup = /** @class */ (function () {
407
419
  });
408
420
  popupObj.close();
409
421
  imgElem.style.opacity = '1';
410
- uploadObj.destroy();
422
+ if (!uploadObj.isDestroyed) {
423
+ uploadObj.destroy();
424
+ }
411
425
  this.toolbarEnableDisable(false);
412
426
  };
413
427
  PasteCleanup.prototype.refreshPopup = function (imageElement, popupObj) {
@@ -452,7 +466,7 @@ var PasteCleanup = /** @class */ (function () {
452
466
  * @param {Element []} imgElement - specifies the array elements.
453
467
  * @returns {void}
454
468
  * @hidden
455
-
469
+ * @deprecated
456
470
  */
457
471
  PasteCleanup.prototype.imageFormatting = function (pasteArgs, imgElement) {
458
472
  if (!isNOU(imgElement.elements[0].getAttribute('src'))) {
@@ -558,7 +572,7 @@ var PasteCleanup = /** @class */ (function () {
558
572
  width: '300px',
559
573
  height: '265px',
560
574
  cssClass: CLS_RTE_DIALOG_MIN_HEIGHT,
561
- isModal: true,
575
+ isModal: Browser.isDevice,
562
576
  visible: false
563
577
  };
564
578
  this.dialogObj = this.dialogRenderObj.render(dialogModel);
@@ -612,13 +626,22 @@ var PasteCleanup = /** @class */ (function () {
612
626
  this.updateCss(this.keepRadioButton, e);
613
627
  };
614
628
  PasteCleanup.prototype.destroyDialog = function (rteDialogWrapper) {
615
- var rteDialogContainer = this.parent.element.querySelector('.e-dlg-container');
629
+ var rteDialogContainer = this.parent.element.querySelector('.e-rte-dialog-minheight');
616
630
  detach(rteDialogContainer);
617
631
  var rteDialogWrapperChildLength = rteDialogWrapper.children.length;
618
632
  for (var i = 0; i < rteDialogWrapperChildLength; i++) {
619
633
  detach(rteDialogWrapper.children[0]);
620
634
  }
621
635
  };
636
+ PasteCleanup.prototype.docClick = function (e) {
637
+ var target = e.args.target;
638
+ if (target && target.classList && ((this.dialogObj && !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']')))
639
+ && (!target.classList.contains('e-toolbar-item'))) {
640
+ if (this.dialogObj) {
641
+ this.dialogObj.hide();
642
+ }
643
+ }
644
+ };
622
645
  PasteCleanup.prototype.cleanAppleClass = function (elem) {
623
646
  var appleClassElem = elem.querySelectorAll('br.Apple-interchange-newline');
624
647
  for (var i = 0; i < appleClassElem.length; i++) {
@@ -656,6 +679,9 @@ var PasteCleanup = /** @class */ (function () {
656
679
  this.setImageProperties(allImg[i]);
657
680
  }
658
681
  this.addTempClass(clipBoardElem);
682
+ if (clipBoardElem.querySelectorAll('picture').length > 0) {
683
+ this.processPictureElement(clipBoardElem);
684
+ }
659
685
  if (clipBoardElem.textContent !== '' || !isNOU(clipBoardElem.querySelector('img')) ||
660
686
  !isNOU(clipBoardElem.querySelector('table'))) {
661
687
  var tempWrapperElem = this.parent.createElement('div');
@@ -687,11 +713,26 @@ var PasteCleanup = /** @class */ (function () {
687
713
  }
688
714
  }
689
715
  this.parent.trigger(events.afterPasteCleanup, { value: clipBoardElem.innerHTML, filesData: filesData }, function (updatedArgs) { value = updatedArgs.value; });
690
- clipBoardElem.innerHTML = value;
691
- clipBoardElem = this.addTableClass(clipBoardElem);
716
+ clipBoardElem.innerHTML = this.parent.addAnchorAriaLabel(value);
717
+ clipBoardElem = this.addTableClass(clipBoardElem, args.pasteTableSource);
692
718
  this.parent.formatter.editorManager.execCommand('inserthtml', 'pasteCleanup', args, function (returnArgs) {
693
719
  extend(args, { elements: returnArgs.elements, imageElements: returnArgs.imgElem }, true);
694
720
  _this.parent.formatter.onSuccess(_this.parent, args);
721
+ if (!isNOU(returnArgs.elements) && !isNOU(returnArgs.imgElem) &&
722
+ returnArgs.imgElem.length > 0) {
723
+ var pasteContent = returnArgs.elements;
724
+ var imageContent = returnArgs.imgElem;
725
+ var lastElementChild = _this.findLastElement(pasteContent[pasteContent.length - 1]);
726
+ var isImageAtLast = !isNOU(lastElementChild) ? lastElementChild.nodeName === 'IMG' : false;
727
+ if (isImageAtLast || pasteContent[pasteContent.length - 1] === imageContent[imageContent.length - 1]) {
728
+ _this.parent.notify(events.insertCompleted, {
729
+ args: args.event,
730
+ type: 'Images',
731
+ isNotify: true,
732
+ elements: imageContent[imageContent.length - 1]
733
+ });
734
+ }
735
+ }
695
736
  }, clipBoardElem, null, null, this.parent.enterKey);
696
737
  this.removeTempClass();
697
738
  this.parent.notify(events.toolbarRefresh, {});
@@ -746,12 +787,16 @@ var PasteCleanup = /** @class */ (function () {
746
787
  }
747
788
  }
748
789
  };
749
- PasteCleanup.prototype.addTableClass = function (element) {
790
+ PasteCleanup.prototype.addTableClass = function (element, source) {
791
+ source = isNOU(source) ? '' : source;
750
792
  var tableElement = element.querySelectorAll('table');
751
793
  for (var i = 0; i < tableElement.length; i++) {
752
- if (!tableElement[i].classList.contains('e-rte-table')) {
794
+ if (!tableElement[i].classList.contains('e-rte-table') && (source === 'html' || source === '')) {
753
795
  tableElement[i].classList.add('e-rte-table');
754
796
  }
797
+ else if (source && source !== 'html') {
798
+ tableElement[i].classList.add('e-rte-paste-' + source + '-table');
799
+ }
755
800
  }
756
801
  return element;
757
802
  };
@@ -1086,6 +1131,36 @@ var PasteCleanup = /** @class */ (function () {
1086
1131
  }
1087
1132
  return clipBoardElem;
1088
1133
  };
1134
+ PasteCleanup.prototype.findLastElement = function (element) {
1135
+ if (!isNOU(element) && !isNOU(element.lastElementChild)) {
1136
+ var lastChild = element.lastElementChild;
1137
+ while (lastChild && lastChild.lastElementChild) {
1138
+ lastChild = lastChild.lastElementChild;
1139
+ }
1140
+ return lastChild;
1141
+ }
1142
+ return null;
1143
+ };
1144
+ PasteCleanup.prototype.processPictureElement = function (clipBoardElem) {
1145
+ var pictureElems = clipBoardElem.querySelectorAll('picture');
1146
+ for (var i = 0; i < pictureElems.length; i++) {
1147
+ var imgElem = pictureElems[i].querySelector('img');
1148
+ var sourceElems = pictureElems[i].querySelectorAll('source');
1149
+ if (imgElem && imgElem.getAttribute('src')) {
1150
+ var srcValue = imgElem.getAttribute('src');
1151
+ var url = new URL(srcValue);
1152
+ for (var j = 0; j < sourceElems.length; j++) {
1153
+ var srcset = sourceElems[j].getAttribute('srcset');
1154
+ if (srcset) {
1155
+ if (srcset.indexOf('http') === -1) {
1156
+ var fullPath = url.origin + srcset;
1157
+ sourceElems[j].setAttribute('srcset', fullPath);
1158
+ }
1159
+ }
1160
+ }
1161
+ }
1162
+ }
1163
+ };
1089
1164
  /**
1090
1165
  * For internal use only - Get the module name.
1091
1166
  *
@@ -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,7 +67,7 @@ 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;
@@ -82,7 +82,7 @@ export declare class QuickToolbar {
82
82
  *
83
83
  * @returns {void}
84
84
  * @hidden
85
-
85
+ * @deprecated
86
86
  */
87
87
  getInlineBaseToolbar(): BaseToolbar;
88
88
  /**
@@ -91,7 +91,7 @@ export declare class QuickToolbar {
91
91
  * @function destroy
92
92
  * @returns {void}
93
93
  * @hidden
94
-
94
+ * @deprecated
95
95
  */
96
96
  destroy(): void;
97
97
  private moduleDestroy;
@@ -103,7 +103,7 @@ export declare class QuickToolbar {
103
103
  *
104
104
  * @returns {void}
105
105
  * @hidden
106
-
106
+ * @deprecated
107
107
  */
108
108
  addEventListener(): void;
109
109
  private onKeyDown;
@@ -116,7 +116,7 @@ export declare class QuickToolbar {
116
116
  *
117
117
  * @returns {void}
118
118
  * @hidden
119
-
119
+ * @deprecated
120
120
  */
121
121
  removeEventListener(): void;
122
122
  /**
@@ -125,7 +125,7 @@ export declare class QuickToolbar {
125
125
  * @param {RichTextEditorModel} e - specifies the element.
126
126
  * @returns {void}
127
127
  * @hidden
128
-
128
+ * @deprecated
129
129
  */
130
130
  protected onPropertyChanged(e: {
131
131
  [key: string]: RichTextEditorModel;
@@ -137,4 +137,11 @@ export declare class QuickToolbar {
137
137
  * @hidden
138
138
  */
139
139
  private getModuleName;
140
+ /**
141
+ *
142
+ * @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
143
+ * @hidden
144
+ * @private
145
+ */
146
+ getQuickToolbarInstance(): BaseQuickToolbar[];
140
147
  }
@@ -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') || (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,13 +259,16 @@ 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();
263
- }
264
- if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
265
- this.textQTBar.hidePopup();
262
+ QuickToolbar.prototype.keyDownHandler = function (e) {
263
+ var preventHide = e.args.altKey;
264
+ if (!preventHide) {
265
+ if ((this.parent.inlineMode.enable && (!Browser.isDevice || isIDevice()))
266
+ && !isNullOrUndefined(select('.' + CLS_INLINE_POP, document))) {
267
+ this.hideInlineQTBar();
268
+ }
269
+ if (this.textQTBar && !hasClass(this.textQTBar.element, 'e-popup-close')) {
270
+ this.textQTBar.hidePopup();
271
+ }
266
272
  }
267
273
  };
268
274
  QuickToolbar.prototype.inlineQTBarMouseDownHandler = function () {
@@ -320,7 +326,7 @@ var QuickToolbar = /** @class */ (function () {
320
326
  *
321
327
  * @returns {void}
322
328
  * @hidden
323
-
329
+ * @deprecated
324
330
  */
325
331
  QuickToolbar.prototype.getInlineBaseToolbar = function () {
326
332
  return this.inlineQTBar && this.inlineQTBar.quickTBarObj;
@@ -331,7 +337,7 @@ var QuickToolbar = /** @class */ (function () {
331
337
  * @function destroy
332
338
  * @returns {void}
333
339
  * @hidden
334
-
340
+ * @deprecated
335
341
  */
336
342
  QuickToolbar.prototype.destroy = function () {
337
343
  if (isNOU(this.parent)) {
@@ -421,7 +427,7 @@ var QuickToolbar = /** @class */ (function () {
421
427
  *
422
428
  * @returns {void}
423
429
  * @hidden
424
-
430
+ * @deprecated
425
431
  */
426
432
  QuickToolbar.prototype.addEventListener = function () {
427
433
  if (this.parent.isDestroyed) {
@@ -515,7 +521,7 @@ var QuickToolbar = /** @class */ (function () {
515
521
  *
516
522
  * @returns {void}
517
523
  * @hidden
518
-
524
+ * @deprecated
519
525
  */
520
526
  QuickToolbar.prototype.removeEventListener = function () {
521
527
  if (this.deBouncer) {
@@ -548,7 +554,7 @@ var QuickToolbar = /** @class */ (function () {
548
554
  * @param {RichTextEditorModel} e - specifies the element.
549
555
  * @returns {void}
550
556
  * @hidden
551
-
557
+ * @deprecated
552
558
  */
553
559
  QuickToolbar.prototype.onPropertyChanged = function (e) {
554
560
  if (!isNullOrUndefined(e.newProp.quickToolbarSettings)) {
@@ -590,6 +596,15 @@ var QuickToolbar = /** @class */ (function () {
590
596
  QuickToolbar.prototype.getModuleName = function () {
591
597
  return 'quickToolbar';
592
598
  };
599
+ /**
600
+ *
601
+ * @returns {BaseQuickToolbar[]} - specifies the quick toolbar instance.
602
+ * @hidden
603
+ * @private
604
+ */
605
+ QuickToolbar.prototype.getQuickToolbarInstance = function () {
606
+ return [this.linkQTBar, this.imageQTBar, this.audioQTBar, this.videoQTBar, this.tableQTBar, this.textQTBar, this.inlineQTBar];
607
+ };
593
608
  return QuickToolbar;
594
609
  }());
595
610
  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);