@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
@@ -88,7 +88,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
88
88
  * @param {string} type - specifies the string type.
89
89
  * @returns {void}
90
90
  * @hidden
91
-
91
+ * @deprecated
92
92
  */
93
93
  export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
94
94
  /**
@@ -230,7 +230,12 @@ export function setToolbarStatus(e, isPopToolbar, self) {
230
230
  }
231
231
  case 'bulletFormatList':
232
232
  case 'numberFormatList': {
233
- removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
233
+ if (value !== '') {
234
+ addClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
235
+ }
236
+ else {
237
+ removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
238
+ }
234
239
  }
235
240
  }
236
241
  }
@@ -265,11 +270,11 @@ export function getTBarItemsIndex(items, toolbarItems) {
265
270
  continue;
266
271
  }
267
272
  else {
268
- if (items[i] === 'OrderedList' && toolbarItems[j].subCommand === 'OL') {
273
+ if ((items[i] === 'OrderedList' || items[i] === 'NumberFormatList') && toolbarItems[j].subCommand === 'OL') {
269
274
  itemsIndex.push(j);
270
275
  break;
271
276
  }
272
- else if (items[i] === 'UnorderedList' && toolbarItems[j].subCommand === 'UL') {
277
+ else if ((items[i] === 'UnorderedList' || items[i] === 'BulletFormatList') && toolbarItems[j].subCommand === 'UL') {
273
278
  itemsIndex.push(j);
274
279
  break;
275
280
  }
@@ -321,7 +326,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
321
326
  * @param {string} type - specifies the string type.
322
327
  * @returns {void}
323
328
  * @hidden
324
-
329
+ * @deprecated
325
330
  */
326
331
  export function dispatchEvent(element, type) {
327
332
  var evt = document.createEvent('HTMLEvents');
@@ -422,6 +427,15 @@ export function updateTextNode(value, rteObj) {
422
427
  for (var i = 0; i < emptyBlockElem.length; i++) {
423
428
  emptyBlockElem[i].innerHTML = '<br>';
424
429
  }
430
+ // To handle the Empty block node with \n
431
+ var allPNodes = tempNode.querySelectorAll('p');
432
+ for (var i = 0; i < allPNodes.length; i++) {
433
+ if (allPNodes[i].textContent.trim().length === 0 && allPNodes[i].childNodes.length === 1
434
+ && allPNodes[i].childNodes[0].nodeName === '#text' &&
435
+ isNOU(allPNodes[i].childNodes[0].textContent.match(/\u00a0/g))) {
436
+ allPNodes[i].innerHTML = '<br>';
437
+ }
438
+ }
425
439
  var emptyInlineElem = tempNode.querySelectorAll(CONSTANT.inlineEmptyNodes);
426
440
  for (var i = 0; i < emptyInlineElem.length; i++) {
427
441
  emptyInlineElem[i].innerHTML = '&ZeroWidthSpace;';
@@ -456,11 +470,15 @@ export function updateTextNode(value, rteObj) {
456
470
  }
457
471
  var imageElm = resultElm.querySelectorAll('img');
458
472
  for (var i = 0; i < imageElm.length; i++) {
473
+ if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
474
+ continue; // Should not add the class if the image is Broken.
475
+ }
459
476
  if (!imageElm[i].classList.contains(classes.CLS_RTE_IMAGE)) {
460
477
  imageElm[i].classList.add(classes.CLS_RTE_IMAGE);
461
478
  }
462
479
  if (!(imageElm[i].classList.contains(classes.CLS_IMGINLINE) ||
463
- imageElm[i].classList.contains(classes.CLS_IMGBREAK))) {
480
+ imageElm[i].classList.contains(classes.CLS_IMGBREAK)) &&
481
+ !(imageElm[i].classList.contains('e-imgleft') || imageElm[i].classList.contains('e-imgright') || imageElm[i].classList.contains('e-imgcenter'))) {
464
482
  imageElm[i].classList.add(classes.CLS_IMGINLINE);
465
483
  }
466
484
  }
@@ -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().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,10 @@ var Formatter = /** @class */ (function () {
124
133
  _this.saveData();
125
134
  }
126
135
  self.isBlur = false;
127
- self.contentModule.getEditPanel().focus();
136
+ var quickToolbarAction = !isNOU(event) && !isNOU(event.target) && (!isNOU(closest(event.target, ".e-rte-elements.e-dropdown-popup.e-rte-dropdown-popup.e-quick-dropdown.e-popup-open")) || !isNOU(closest(event.target, ".e-rte-elements.e-rte-quick-popup.e-popup-open")));
137
+ if (isNOU(saveSelection) || (!quickToolbarAction && (isNOU(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption")) ? true : !(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption").getAttribute("contenteditable") == "false")))) {
138
+ self.contentModule.getEditPanel().focus();
139
+ }
128
140
  if (self.editorMode === 'HTML' && !isKeyboardVideoInsert) {
129
141
  if (isNOU(args.selectType) || (!isNOU(args.selectType) && args.selectType !== 'showDialog')) {
130
142
  saveSelection.restore();
@@ -157,7 +169,7 @@ var Formatter = /** @class */ (function () {
157
169
  * @param {KeyboardEvent} e - specifies the keyboard event.
158
170
  * @returns {void}
159
171
  * @hidden
160
-
172
+ * @deprecated
161
173
  */
162
174
  Formatter.prototype.onKeyHandler = function (self, e) {
163
175
  var _this = this;
@@ -175,7 +187,7 @@ var Formatter = /** @class */ (function () {
175
187
  * @param {IMarkdownFormatterCallBack} events - specifies the event call back
176
188
  * @returns {void}
177
189
  * @hidden
178
-
190
+ * @deprecated
179
191
  */
180
192
  Formatter.prototype.onSuccess = function (self, events) {
181
193
  self.notify(CONSTANT.contentChanged, {});
@@ -209,7 +221,7 @@ var Formatter = /** @class */ (function () {
209
221
  * @param {KeyboardEvent} e - specifies the keyboard event.
210
222
  * @returns {void}
211
223
  * @hidden
212
-
224
+ * @deprecated
213
225
  */
214
226
  Formatter.prototype.saveData = function (e) {
215
227
  this.editorManager.undoRedoManager.saveData(e);
@@ -219,7 +231,7 @@ var Formatter = /** @class */ (function () {
219
231
  *
220
232
  * @returns {void}
221
233
  * @hidden
222
-
234
+ * @deprecated
223
235
  */
224
236
  Formatter.prototype.getUndoStatus = function () {
225
237
  return this.editorManager.undoRedoManager.getUndoStatus();
@@ -231,7 +243,7 @@ var Formatter = /** @class */ (function () {
231
243
  * @param {IHtmlUndoRedoData} - specifies the redo data.
232
244
  * @returns {void}
233
245
  * @hidden
234
-
246
+ * @deprecated
235
247
  */
236
248
  /* eslint-enable */
237
249
  Formatter.prototype.getUndoRedoStack = function () {
@@ -243,7 +255,7 @@ var Formatter = /** @class */ (function () {
243
255
  * @param {IRichTextEditor} self - specifies the self element.
244
256
  * @returns {void}
245
257
  * @hidden
246
-
258
+ * @deprecated
247
259
  */
248
260
  Formatter.prototype.enableUndo = function (self) {
249
261
  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',
@@ -227,6 +231,7 @@ export var toolsLocale = {
227
231
  'bulletformatlist': 'bulletFormatList',
228
232
  'undo': 'undo',
229
233
  'redo': 'redo',
234
+ 'filemanager': 'fileManager',
230
235
  'superscript': 'superscript',
231
236
  'subscript': 'subscript',
232
237
  'createlink': 'createLink',
@@ -253,7 +258,7 @@ export var toolsLocale = {
253
258
  'remove': 'remove',
254
259
  'insertlink': 'insertLink',
255
260
  'display': 'display',
256
- 'alttext': 'altText',
261
+ 'alttext': 'alternateHeader',
257
262
  'dimension': 'dimension',
258
263
  'fullscreen': 'fullscreen',
259
264
  'maximize': 'maximize',
@@ -288,11 +293,12 @@ export var toolsLocale = {
288
293
  'deleterow': 'deleteRow',
289
294
  'formatpainter': 'formatPainter',
290
295
  'emojipicker': 'emojiPicker',
291
- 'embeddedCode': 'Embedded Code',
292
- 'pasteEmbeddedCodeHere': 'Paste Embedded Code here',
296
+ 'embeddedCode': 'Embedded code',
297
+ 'pasteEmbeddedCodeHere': 'Paste embedded code here',
293
298
  'emojiPickerTypeToFind': 'Type to find',
294
299
  'emojiPickerNoResultFound': 'No results found',
295
300
  'emojiPickerTrySomethingElse': 'Try something else',
301
+ 'imageLinkAriaLabel': 'Open in new window',
296
302
  };
297
303
  export var fontNameLocale = [
298
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
  }
@@ -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, ChildProperty, Complex } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Objects used for configuring the iframe resources properties.