@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
@@ -51,6 +51,10 @@ export declare function pageYOffset(e: MouseEvent | Touch, parentElement: HTMLEl
51
51
  * @hidden
52
52
  */
53
53
  export declare function getTooltipText(item: string, serviceLocator: ServiceLocator): string;
54
+ export declare function getTooltipTextDropdownItems(item: string, serviceLocator: ServiceLocator, localeItems: {
55
+ [ket: string]: string;
56
+ }[], rteObj?: IRichTextEditor): string;
57
+ export declare function getQuickToolbarTooltipText(item: string): string;
54
58
  /**
55
59
  * @param {ISetToolbarStatusArgs} e - specifies the e element
56
60
  * @param {boolean} isPopToolbar - specifies the boolean value
@@ -88,7 +92,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
88
92
  * @param {string} type - specifies the string type.
89
93
  * @returns {void}
90
94
  * @hidden
91
-
95
+ * @deprecated
92
96
  */
93
97
  export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
94
98
  /**
@@ -6,7 +6,7 @@ import { Browser, detach, SanitizeHtmlHelper, extend } from '@syncfusion/ej2-bas
6
6
  import * as classes from '../base/classes';
7
7
  import * as CONSTANT from '../base/constant';
8
8
  import * as model from '../models/items';
9
- import { toolsLocale, fontNameLocale, formatsLocale, numberFormatListLocale, bulletFormatListLocale } from '../models/default-locale';
9
+ import { toolsLocale, fontNameLocale, formatsLocale, numberFormatListLocale, bulletFormatListLocale, defaultLocale } from '../models/default-locale';
10
10
  var undoRedoItems = ['Undo', 'Redo'];
11
11
  var inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
12
12
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -134,6 +134,40 @@ export function getTooltipText(item, serviceLocator) {
134
134
  var tooltipText = i10n.getConstant(itemLocale);
135
135
  return tooltipText;
136
136
  }
137
+ export function getTooltipTextDropdownItems(item, serviceLocator, localeItems, rteObj) {
138
+ if (localeItems) {
139
+ var i10n = serviceLocator.getService('rteLocale');
140
+ for (var i = 0; i < localeItems.length; i++) {
141
+ var itemLocale = localeItems[i].value.toLocaleLowerCase();
142
+ var numberValue = localeItems[i].locale;
143
+ var numberLocale = defaultLocale["" + numberValue].toLocaleLowerCase();
144
+ if (item === itemLocale || item === numberLocale) {
145
+ var tooltipText = localeItems[i].locale;
146
+ return i10n.getConstant(tooltipText);
147
+ }
148
+ }
149
+ }
150
+ else {
151
+ var fontsize = rteObj.fontSize.items;
152
+ for (var i = 0; i < fontsize.length; i++) {
153
+ if (item === rteObj.fontSize.items[i].value) {
154
+ var fontSize = rteObj.fontSize.items[i].text;
155
+ return fontSize;
156
+ }
157
+ }
158
+ }
159
+ return '';
160
+ }
161
+ export function getQuickToolbarTooltipText(item) {
162
+ var keys = Object.keys(defaultLocale);
163
+ for (var i = 0; i < keys.length; i++) {
164
+ var tooltipText = defaultLocale["" + keys[i]];
165
+ if (item === tooltipText) {
166
+ return tooltipText;
167
+ }
168
+ }
169
+ return '';
170
+ }
137
171
  /**
138
172
  * @param {ISetToolbarStatusArgs} e - specifies the e element
139
173
  * @param {boolean} isPopToolbar - specifies the boolean value
@@ -230,7 +264,12 @@ export function setToolbarStatus(e, isPopToolbar, self) {
230
264
  }
231
265
  case 'bulletFormatList':
232
266
  case 'numberFormatList': {
233
- removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
267
+ if (value !== '') {
268
+ addClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
269
+ }
270
+ else {
271
+ removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
272
+ }
234
273
  }
235
274
  }
236
275
  }
@@ -321,7 +360,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
321
360
  * @param {string} type - specifies the string type.
322
361
  * @returns {void}
323
362
  * @hidden
324
-
363
+ * @deprecated
325
364
  */
326
365
  export function dispatchEvent(element, type) {
327
366
  var evt = document.createEvent('HTMLEvents');
@@ -465,11 +504,15 @@ export function updateTextNode(value, rteObj) {
465
504
  }
466
505
  var imageElm = resultElm.querySelectorAll('img');
467
506
  for (var i = 0; i < imageElm.length; i++) {
507
+ if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
508
+ continue; // Should not add the class if the image is Broken.
509
+ }
468
510
  if (!imageElm[i].classList.contains(classes.CLS_RTE_IMAGE)) {
469
511
  imageElm[i].classList.add(classes.CLS_RTE_IMAGE);
470
512
  }
471
513
  if (!(imageElm[i].classList.contains(classes.CLS_IMGINLINE) ||
472
- imageElm[i].classList.contains(classes.CLS_IMGBREAK))) {
514
+ imageElm[i].classList.contains(classes.CLS_IMGBREAK)) &&
515
+ !(imageElm[i].classList.contains('e-imgleft') || imageElm[i].classList.contains('e-imgright') || imageElm[i].classList.contains('e-imgcenter'))) {
473
516
  imageElm[i].classList.add(classes.CLS_IMGINLINE);
474
517
  }
475
518
  }
@@ -7,7 +7,7 @@ import { IHtmlUndoRedoData } from '../../editor-manager/base/interface';
7
7
  * Formatter
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  export declare class Formatter {
13
13
  editorManager: IEditorModel;
@@ -21,7 +21,7 @@ export declare class Formatter {
21
21
  * @param {IItemCollectionArgs} value - specifies the collection arguments
22
22
  * @returns {void}
23
23
  * @hidden
24
-
24
+ * @deprecated
25
25
  */
26
26
  process(self: IRichTextEditor, args: ActionBeginEventArgs, event: MouseEvent | KeyboardEvent, value: IItemCollectionArgs): void;
27
27
  private getAncestorNode;
@@ -32,7 +32,7 @@ export declare class Formatter {
32
32
  * @param {KeyboardEvent} e - specifies the keyboard event.
33
33
  * @returns {void}
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  onKeyHandler(self: IRichTextEditor, e: KeyboardEvent): void;
38
38
  /**
@@ -42,7 +42,7 @@ export declare class Formatter {
42
42
  * @param {IMarkdownFormatterCallBack} events - specifies the event call back
43
43
  * @returns {void}
44
44
  * @hidden
45
-
45
+ * @deprecated
46
46
  */
47
47
  onSuccess(self: IRichTextEditor, events: IMarkdownFormatterCallBack | IHtmlFormatterCallBack): void;
48
48
  /**
@@ -51,7 +51,7 @@ export declare class Formatter {
51
51
  * @param {KeyboardEvent} e - specifies the keyboard event.
52
52
  * @returns {void}
53
53
  * @hidden
54
-
54
+ * @deprecated
55
55
  */
56
56
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
57
57
  /**
@@ -59,7 +59,7 @@ export declare class Formatter {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  getUndoStatus(): {
65
65
  [key: string]: boolean;
@@ -70,7 +70,7 @@ export declare class Formatter {
70
70
  * @param {IHtmlUndoRedoData} - specifies the redo data.
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  getUndoRedoStack(): IHtmlUndoRedoData[] | MarkdownUndoRedoData[];
76
76
  /**
@@ -79,7 +79,7 @@ export declare class Formatter {
79
79
  * @param {IRichTextEditor} self - specifies the self element.
80
80
  * @returns {void}
81
81
  * @hidden
82
-
82
+ * @deprecated
83
83
  */
84
84
  enableUndo(self: IRichTextEditor): void;
85
85
  }
@@ -1,4 +1,4 @@
1
- import { extend, isNullOrUndefined as isNOU, Browser } from '@syncfusion/ej2-base';
1
+ import { extend, isNullOrUndefined as isNOU, Browser, closest } from '@syncfusion/ej2-base';
2
2
  import * as CONSTANT from '../base/constant';
3
3
  import { updateUndoRedoStatus, isIDevice } from '../base/util';
4
4
  import { KEY_DOWN, KEY_UP } from './../../common/constant';
@@ -6,7 +6,7 @@ import { KEY_DOWN, KEY_UP } from './../../common/constant';
6
6
  * Formatter
7
7
  *
8
8
  * @hidden
9
-
9
+ * @deprecated
10
10
  */
11
11
  var Formatter = /** @class */ (function () {
12
12
  function Formatter() {
@@ -20,19 +20,28 @@ var Formatter = /** @class */ (function () {
20
20
  * @param {IItemCollectionArgs} value - specifies the collection arguments
21
21
  * @returns {void}
22
22
  * @hidden
23
-
23
+ * @deprecated
24
24
  */
25
25
  Formatter.prototype.process = function (self, args, event, value) {
26
26
  var _this = this;
27
27
  var selection = self.contentModule.getDocument().getSelection();
28
28
  var range = (selection.rangeCount > 0) ? selection.getRangeAt(selection.rangeCount - 1) : null;
29
29
  var saveSelection;
30
+ var newRange;
31
+ if (!isNOU(value) && !isNOU(value.selection)) {
32
+ newRange = value.selection.range;
33
+ }
30
34
  var isKeyboardVideoInsert = (!isNOU(value) && !isNOU(value.cssClass) &&
31
35
  value.cssClass !== 'e-video-inline');
32
36
  if (self.editorMode === 'HTML') {
33
37
  if (!isNOU(args) && !isKeyboardVideoInsert) {
34
38
  if (isNOU(args.name) || (!isNOU(args.name) && args.name !== 'showDialog')) {
35
- saveSelection = this.editorManager.nodeSelection.save(range, self.contentModule.getDocument());
39
+ if (newRange) {
40
+ saveSelection = this.editorManager.nodeSelection.save(newRange, self.contentModule.getDocument());
41
+ }
42
+ else {
43
+ saveSelection = this.editorManager.nodeSelection.save(range, self.contentModule.getDocument());
44
+ }
36
45
  }
37
46
  }
38
47
  }
@@ -60,7 +69,7 @@ var Formatter = /** @class */ (function () {
60
69
  if (args.item.command === 'Images' || args.item.command === 'Videos' || args.item.command === 'Table' || args.item.command === 'Files') {
61
70
  currentInsertContentLength = 1;
62
71
  }
63
- var currentLength = self.getText().trim().replace(/(\r\n|\n|\r)/gm, '').replace(/\u200B/g, '').length;
72
+ var currentLength = self.getText().trim().replace(/(\r\n|\n|\r|\t)/gm, '').replace(/\u200B/g, '').length;
64
73
  var selectionLength = self.getSelection().length;
65
74
  var totalLength = (currentLength - selectionLength) + currentInsertContentLength;
66
75
  if (!(self.maxLength === -1 || totalLength <= self.maxLength)) {
@@ -124,7 +133,9 @@ var Formatter = /** @class */ (function () {
124
133
  _this.saveData();
125
134
  }
126
135
  self.isBlur = false;
127
- self.contentModule.getEditPanel().focus();
136
+ if (isNOU(saveSelection) || isNOU(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption")) ? true : !(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption").getAttribute("contenteditable") == "false")) {
137
+ self.contentModule.getEditPanel().focus();
138
+ }
128
139
  if (self.editorMode === 'HTML' && !isKeyboardVideoInsert) {
129
140
  if (isNOU(args.selectType) || (!isNOU(args.selectType) && args.selectType !== 'showDialog')) {
130
141
  saveSelection.restore();
@@ -157,7 +168,7 @@ var Formatter = /** @class */ (function () {
157
168
  * @param {KeyboardEvent} e - specifies the keyboard event.
158
169
  * @returns {void}
159
170
  * @hidden
160
-
171
+ * @deprecated
161
172
  */
162
173
  Formatter.prototype.onKeyHandler = function (self, e) {
163
174
  var _this = this;
@@ -175,7 +186,7 @@ var Formatter = /** @class */ (function () {
175
186
  * @param {IMarkdownFormatterCallBack} events - specifies the event call back
176
187
  * @returns {void}
177
188
  * @hidden
178
-
189
+ * @deprecated
179
190
  */
180
191
  Formatter.prototype.onSuccess = function (self, events) {
181
192
  self.notify(CONSTANT.contentChanged, {});
@@ -209,7 +220,7 @@ var Formatter = /** @class */ (function () {
209
220
  * @param {KeyboardEvent} e - specifies the keyboard event.
210
221
  * @returns {void}
211
222
  * @hidden
212
-
223
+ * @deprecated
213
224
  */
214
225
  Formatter.prototype.saveData = function (e) {
215
226
  this.editorManager.undoRedoManager.saveData(e);
@@ -219,7 +230,7 @@ var Formatter = /** @class */ (function () {
219
230
  *
220
231
  * @returns {void}
221
232
  * @hidden
222
-
233
+ * @deprecated
223
234
  */
224
235
  Formatter.prototype.getUndoStatus = function () {
225
236
  return this.editorManager.undoRedoManager.getUndoStatus();
@@ -231,7 +242,7 @@ var Formatter = /** @class */ (function () {
231
242
  * @param {IHtmlUndoRedoData} - specifies the redo data.
232
243
  * @returns {void}
233
244
  * @hidden
234
-
245
+ * @deprecated
235
246
  */
236
247
  /* eslint-enable */
237
248
  Formatter.prototype.getUndoRedoStack = function () {
@@ -243,7 +254,7 @@ var Formatter = /** @class */ (function () {
243
254
  * @param {IRichTextEditor} self - specifies the self element.
244
255
  * @returns {void}
245
256
  * @hidden
246
-
257
+ * @deprecated
247
258
  */
248
259
  Formatter.prototype.enableUndo = function (self) {
249
260
  var status = this.getUndoStatus();
@@ -5,7 +5,7 @@ import { FormatPainterSettingsModel } from '../models';
5
5
  * HTML adapter
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  export declare class HTMLFormatter extends Formatter {
11
11
  keyConfig: {
@@ -26,7 +26,7 @@ export declare class HTMLFormatter extends Formatter {
26
26
  * @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  updateFormatter(editElement: Element, doc?: Document, options?: {
32
32
  [key: string]: number;
@@ -1,16 +1,16 @@
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
- })();
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
14
  import { Formatter } from './formatter';
15
15
  import { EditorManager } from './../../editor-manager/base/editor-manager';
16
16
  import { extend } from '@syncfusion/ej2-base';
@@ -19,7 +19,7 @@ import { htmlKeyConfig } from './../../common/config';
19
19
  * HTML adapter
20
20
  *
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  var HTMLFormatter = /** @class */ (function (_super) {
25
25
  __extends(HTMLFormatter, _super);
@@ -44,7 +44,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
44
44
  * @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
45
45
  * @returns {void}
46
46
  * @hidden
47
-
47
+ * @deprecated
48
48
  */
49
49
  HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options, formatPainterSettings) {
50
50
  if (editElement && doc) {
@@ -4,7 +4,7 @@ import { IEditorModel, IMarkdownFormatterModel } from './../base/interface';
4
4
  * Markdown adapter
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class MarkdownFormatter extends Formatter {
10
10
  keyConfig: {
@@ -31,7 +31,7 @@ export declare class MarkdownFormatter extends Formatter {
31
31
  * @param {number} options - specifies the options
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  updateFormatter(editElement: Element, doc?: Document, options?: {
37
37
  [key: string]: number;
@@ -1,16 +1,16 @@
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
- })();
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
14
  import { Formatter } from './formatter';
15
15
  import { MarkdownParser } from './../../markdown-parser/base/markdown-parser';
16
16
  import { extend } from '@syncfusion/ej2-base';
@@ -19,7 +19,7 @@ import { markdownKeyConfig, markdownListsTags, markdownFormatTags, markdownSelec
19
19
  * Markdown adapter
20
20
  *
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  var MarkdownFormatter = /** @class */ (function (_super) {
25
25
  __extends(MarkdownFormatter, _super);
@@ -46,7 +46,7 @@ var MarkdownFormatter = /** @class */ (function (_super) {
46
46
  * @param {number} options - specifies the options
47
47
  * @returns {void}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  MarkdownFormatter.prototype.updateFormatter = function (editElement, doc, options) {
52
52
  if (editElement) {
@@ -48,11 +48,11 @@ export var defaultLocale = {
48
48
  'audioLayoutOption': 'Layout option',
49
49
  'videoLayoutOption': 'Layout option',
50
50
  'align': 'Align',
51
- 'caption': 'Image Caption',
51
+ 'caption': 'Caption',
52
52
  'remove': 'Remove',
53
53
  'insertLink': 'Insert Link',
54
54
  'display': 'Display',
55
- 'altText': 'Alternative Text',
55
+ 'altText': 'Alternative text',
56
56
  'dimension': 'Change Size',
57
57
  'fullscreen': 'Maximize',
58
58
  'maximize': 'Maximize',
@@ -65,12 +65,12 @@ export var defaultLocale = {
65
65
  'preview': 'Preview',
66
66
  'viewside': 'ViewSide',
67
67
  'insertCode': 'Insert Code',
68
- 'linkText': 'Display Text',
68
+ 'linkText': 'Display text',
69
69
  'linkTooltipLabel': 'Title',
70
- 'linkWebUrl': 'Web Address',
70
+ 'linkWebUrl': 'Web address',
71
71
  'linkTitle': 'Enter a title',
72
- 'linkurl': 'http://example.com',
73
- 'linkOpenInNewWindow': 'Open Link in New Window',
72
+ 'linkurl': 'https://example.com',
73
+ 'linkOpenInNewWindow': 'Open link in new window',
74
74
  'linkHeader': 'Insert Link',
75
75
  'dialogInsert': 'Insert',
76
76
  'dialogCancel': 'Cancel',
@@ -92,9 +92,9 @@ export var defaultLocale = {
92
92
  'imageAlternateText': 'Alternate Text',
93
93
  'alternateHeader': 'Alternative Text',
94
94
  'browse': 'Browse',
95
- 'imageUrl': 'http://example.com/image.png',
96
- 'audioUrl': 'http://example.com/audio.mp3',
97
- 'videoUrl': 'http://example.com/video.mp3',
95
+ 'imageUrl': 'https://example.com/image.png',
96
+ 'audioUrl': 'https://example.com/audio.mp3',
97
+ 'videoUrl': 'https://example.com/video.mp4',
98
98
  'webUrl': 'Web URL',
99
99
  'embedUrl': 'Embed Code',
100
100
  'imageCaption': 'Caption',
@@ -104,7 +104,7 @@ export var defaultLocale = {
104
104
  'imageWidth': 'Width',
105
105
  'videoHeight': 'Height',
106
106
  'videoWidth': 'Width',
107
- 'textPlaceholder': 'Enter Text',
107
+ 'textPlaceholder': 'Enter text',
108
108
  'inserttablebtn': 'Insert Table',
109
109
  'tabledialogHeader': 'Insert Table',
110
110
  'tableWidth': 'Width',
@@ -112,14 +112,14 @@ export var defaultLocale = {
112
112
  'cellspacing': 'Cell Spacing',
113
113
  'columns': 'Number of columns',
114
114
  'rows': 'Number of rows',
115
- 'tableRows': 'Table Rows',
116
- 'tableColumns': 'Table Columns',
115
+ 'tableRows': 'Row',
116
+ 'tableColumns': 'Column',
117
117
  'tableCellHorizontalAlign': 'Table Cell Horizontal Align',
118
- 'tableCellVerticalAlign': 'Table Cell Vertical Align',
118
+ 'tableCellVerticalAlign': 'Vertical Align',
119
119
  'createTable': 'Create Table',
120
120
  'removeTable': 'Remove Table',
121
- 'tableHeader': 'Table Header',
122
- 'tableRemove': 'Table Remove',
121
+ 'tableHeader': 'Header Row',
122
+ 'tableRemove': 'Delete Table',
123
123
  'tableCellBackground': 'Table Cell Background',
124
124
  'tableEditProperties': 'Table Edit Properties',
125
125
  'styles': 'Styles',
@@ -181,11 +181,11 @@ export var defaultLocale = {
181
181
  'fontNameTimesNewRoman': 'Times New Roman',
182
182
  'fontNameVerdana': 'Verdana',
183
183
  'numberFormatListNumber': 'Number',
184
- 'numberFormatListLowerAlpha': 'LowerAlpha',
185
- 'numberFormatListUpperAlpha': 'UpperAlpha',
186
- 'numberFormatListLowerRoman': 'LowerRoman',
187
- 'numberFormatListUpperRoman': 'UpperRoman',
188
- 'numberFormatListLowerGreek': 'LowerGreek',
184
+ 'numberFormatListLowerAlpha': 'Lower Alpha',
185
+ 'numberFormatListUpperAlpha': 'Upper Alpha',
186
+ 'numberFormatListLowerRoman': 'Lower Roman',
187
+ 'numberFormatListUpperRoman': 'Upper Roman',
188
+ 'numberFormatListLowerGreek': 'Lower Greek',
189
189
  'bulletFormatListDisc': 'Disc',
190
190
  'bulletFormatListCircle': 'Circle',
191
191
  'bulletFormatListSquare': 'Square',
@@ -193,12 +193,16 @@ export var defaultLocale = {
193
193
  'bulletFormatListNone': 'None',
194
194
  'formatPainter': 'Format Painter',
195
195
  'emojiPicker': 'Emoji Picker',
196
- 'embeddedCode': 'Embedded Code',
197
- 'pasteEmbeddedCodeHere': 'Paste Embedded Code here',
196
+ 'embeddedCode': 'Embedded code',
197
+ 'pasteEmbeddedCodeHere': 'Paste embedded code here',
198
198
  'emojiPickerTypeToFind': 'Type to find',
199
199
  'emojiPickerNoResultFound': 'No results found',
200
200
  'emojiPickerTrySomethingElse': 'Try something else',
201
201
  'linkAriaLabel': 'Open in new window',
202
+ 'unsupportedImage': 'Unsupported file format',
203
+ 'mergecells': 'Merge cells',
204
+ 'verticalsplit': 'Vertical split',
205
+ 'horizontalsplit': 'Horizontal split'
202
206
  };
203
207
  export var toolsLocale = {
204
208
  'alignments': 'alignments',
@@ -254,7 +258,7 @@ export var toolsLocale = {
254
258
  'remove': 'remove',
255
259
  'insertlink': 'insertLink',
256
260
  'display': 'display',
257
- 'alttext': 'altText',
261
+ 'alttext': 'alternateHeader',
258
262
  'dimension': 'dimension',
259
263
  'fullscreen': 'fullscreen',
260
264
  'maximize': 'maximize',
@@ -289,12 +293,12 @@ export var toolsLocale = {
289
293
  'deleterow': 'deleteRow',
290
294
  'formatpainter': 'formatPainter',
291
295
  'emojipicker': 'emojiPicker',
292
- 'embeddedCode': 'Embedded Code',
293
- 'pasteEmbeddedCodeHere': 'Paste Embedded Code here',
296
+ 'embeddedCode': 'Embedded code',
297
+ 'pasteEmbeddedCodeHere': 'Paste embedded code here',
294
298
  'emojiPickerTypeToFind': 'Type to find',
295
299
  'emojiPickerNoResultFound': 'No results found',
296
300
  'emojiPickerTrySomethingElse': 'Try something else',
297
- 'ImageLinkAriaLabel': 'Open in new window',
301
+ 'imageLinkAriaLabel': 'Open in new window',
298
302
  };
299
303
  export var fontNameLocale = [
300
304
  { locale: 'fontNameSegoeUI', value: 'Segoe UI' },
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
1
+ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class Resources
@@ -6,18 +6,18 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
6
6
  export interface ResourcesModel {
7
7
 
8
8
  /**
9
- * Specifies styles that inject into iframe.
10
- *
11
- * @default []
12
- */
13
- styles?: string[];
9
+ * Specifies styles that inject into iframe.
10
+ *
11
+ * @default []
12
+ */
13
+ styles?: string[];
14
14
 
15
15
  /**
16
- * Specifies scripts that inject into iframe.
17
- *
18
- * @default []
19
- */
20
- scripts?: string[];
16
+ * Specifies scripts that inject into iframe.
17
+ *
18
+ * @default []
19
+ */
20
+ scripts?: string[];
21
21
 
22
22
  }
23
23
 
@@ -27,24 +27,24 @@ export interface ResourcesModel {
27
27
  export interface IFrameSettingsModel {
28
28
 
29
29
  /**
30
- * Specifies whether to render iframe based editable element in RTE.
31
- *
32
- * @default false
33
- */
34
- enable?: boolean;
30
+ * Specifies whether to render iframe based editable element in RTE.
31
+ *
32
+ * @default false
33
+ */
34
+ enable?: boolean;
35
35
 
36
36
  /**
37
- * Defines additional attributes to render iframe.
38
- *
39
- * @default 'null'
40
- */
41
- attributes?: { [key: string]: string };
37
+ * Defines additional attributes to render iframe.
38
+ *
39
+ * @default 'null'
40
+ */
41
+ attributes?: { [key: string]: string };
42
42
 
43
43
  /**
44
- * The object used for inject styles and scripts.
45
- *
46
- * @default {}
47
- */
48
- resources?: ResourcesModel;
44
+ * The object used for inject styles and scripts.
45
+ *
46
+ * @default {}
47
+ */
48
+ resources?: ResourcesModel;
49
49
 
50
50
  }