@syncfusion/ej2-richtexteditor 28.1.39 → 28.1.41-640046

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 (183) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.json +260 -260
  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 +530 -460
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +639 -569
  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 +84 -84
  14. package/src/common/interface.d.ts +8 -8
  15. package/src/editor-manager/base/classes.d.ts +1 -1
  16. package/src/editor-manager/base/classes.js +1 -1
  17. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  18. package/src/editor-manager/base/editor-manager.js +3 -3
  19. package/src/editor-manager/base/enum.d.ts +2 -2
  20. package/src/editor-manager/base/interface.d.ts +9 -9
  21. package/src/editor-manager/base/types.d.ts +1 -1
  22. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  23. package/src/editor-manager/plugin/alignments.js +2 -2
  24. package/src/editor-manager/plugin/audio.d.ts +3 -3
  25. package/src/editor-manager/plugin/audio.js +3 -3
  26. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  27. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  28. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  29. package/src/editor-manager/plugin/clearformat.js +1 -1
  30. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  31. package/src/editor-manager/plugin/dom-node.js +36 -36
  32. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  33. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  34. package/src/editor-manager/plugin/formats.d.ts +2 -2
  35. package/src/editor-manager/plugin/formats.js +2 -2
  36. package/src/editor-manager/plugin/image.d.ts +3 -3
  37. package/src/editor-manager/plugin/image.js +3 -3
  38. package/src/editor-manager/plugin/indents.d.ts +2 -2
  39. package/src/editor-manager/plugin/indents.js +2 -2
  40. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  41. package/src/editor-manager/plugin/insert-methods.js +4 -4
  42. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  43. package/src/editor-manager/plugin/insert-text.js +2 -2
  44. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  46. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  47. package/src/editor-manager/plugin/inserthtml.js +2 -2
  48. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  49. package/src/editor-manager/plugin/isformatted.js +9 -9
  50. package/src/editor-manager/plugin/link.d.ts +2 -2
  51. package/src/editor-manager/plugin/link.js +2 -2
  52. package/src/editor-manager/plugin/lists.d.ts +2 -2
  53. package/src/editor-manager/plugin/lists.js +2 -2
  54. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  55. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  56. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  57. package/src/editor-manager/plugin/nodecutter.js +6 -6
  58. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  59. package/src/editor-manager/plugin/selection-commands.js +1 -1
  60. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  61. package/src/editor-manager/plugin/selection-exec.js +2 -2
  62. package/src/editor-manager/plugin/table.d.ts +2 -2
  63. package/src/editor-manager/plugin/table.js +2 -2
  64. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  65. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  66. package/src/editor-manager/plugin/undo.d.ts +6 -6
  67. package/src/editor-manager/plugin/undo.js +6 -6
  68. package/src/editor-manager/plugin/video.d.ts +3 -3
  69. package/src/editor-manager/plugin/video.js +3 -3
  70. package/src/markdown-parser/base/interface.d.ts +10 -10
  71. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  72. package/src/markdown-parser/base/markdown-parser.js +3 -3
  73. package/src/markdown-parser/base/types.d.ts +1 -1
  74. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  75. package/src/markdown-parser/plugin/clearformat.js +2 -2
  76. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  77. package/src/markdown-parser/plugin/formats.js +2 -2
  78. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  79. package/src/markdown-parser/plugin/insert-text.js +2 -2
  80. package/src/markdown-parser/plugin/link.d.ts +2 -2
  81. package/src/markdown-parser/plugin/link.js +2 -2
  82. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  83. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  84. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  85. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  86. package/src/markdown-parser/plugin/table.d.ts +3 -3
  87. package/src/markdown-parser/plugin/table.js +3 -3
  88. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  89. package/src/markdown-parser/plugin/undo.js +6 -6
  90. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  91. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  92. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  93. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  94. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  95. package/src/rich-text-editor/actions/color-picker.js +2 -2
  96. package/src/rich-text-editor/actions/count.d.ts +3 -3
  97. package/src/rich-text-editor/actions/count.js +3 -3
  98. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  99. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  100. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  101. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  102. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  103. package/src/rich-text-editor/actions/full-screen.js +3 -3
  104. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  105. package/src/rich-text-editor/actions/html-editor.js +23 -3
  106. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  107. package/src/rich-text-editor/actions/keyboard.js +20 -20
  108. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  109. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  110. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  111. package/src/rich-text-editor/actions/paste-clean-up.js +23 -32
  112. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  113. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  114. package/src/rich-text-editor/actions/resize.d.ts +2 -0
  115. package/src/rich-text-editor/actions/resize.js +13 -2
  116. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  117. package/src/rich-text-editor/actions/toolbar.js +13 -13
  118. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  119. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  120. package/src/rich-text-editor/base/classes.d.ts +125 -125
  121. package/src/rich-text-editor/base/classes.js +125 -125
  122. package/src/rich-text-editor/base/constant.d.ts +158 -158
  123. package/src/rich-text-editor/base/constant.js +158 -158
  124. package/src/rich-text-editor/base/enum.d.ts +1 -1
  125. package/src/rich-text-editor/base/enum.js +1 -1
  126. package/src/rich-text-editor/base/interface.d.ts +51 -51
  127. package/src/rich-text-editor/base/interface.js +1 -1
  128. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  129. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  130. package/src/rich-text-editor/base/rich-text-editor.js +66 -49
  131. package/src/rich-text-editor/base/util.d.ts +1 -1
  132. package/src/rich-text-editor/base/util.js +1 -1
  133. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  134. package/src/rich-text-editor/formatter/formatter.js +8 -8
  135. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  136. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  137. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  138. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  139. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  140. package/src/rich-text-editor/models/inline-mode.js +19 -19
  141. package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
  142. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  143. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  144. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  145. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  146. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  147. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  148. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  149. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  150. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  151. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  152. package/src/rich-text-editor/renderer/image-module.js +1 -1
  153. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  154. package/src/rich-text-editor/renderer/link-module.js +1 -1
  155. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  156. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  157. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  158. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  159. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  160. package/src/rich-text-editor/renderer/render.js +2 -2
  161. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  162. package/src/rich-text-editor/renderer/table-module.js +1 -1
  163. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  164. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
  165. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  166. package/src/rich-text-editor/renderer/video-module.js +1 -1
  167. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  168. package/src/rich-text-editor/renderer/view-source.js +5 -5
  169. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  170. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  171. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  172. package/src/rich-text-editor/services/service-locator.js +3 -3
  173. package/src/selection/selection.d.ts +22 -22
  174. package/src/selection/selection.js +22 -22
  175. package/styles/material3-dark.scss +1 -1
  176. package/styles/material3.scss +1 -1
  177. package/styles/rich-text-editor/material3-dark.scss +1 -1
  178. package/styles/rich-text-editor/material3.scss +1 -1
  179. package/dist/ej2-richtexteditor.min.js +0 -10
  180. package/dist/global/ej2-richtexteditor.min.js +0 -11
  181. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  182. package/dist/global/index.d.ts +0 -14
  183. package/tslint.json +0 -111
@@ -2506,185 +2506,185 @@ var windowKeys = {
2506
2506
  'inlineCode': 'ctrl+`'
2507
2507
  };
2508
2508
  var defaultEmojiIcons = [{
2509
- name: 'Smilies & People', code: '1F600', iconCss: 'e-emoji', icons: [{ code: '1F600', desc: 'Grinning face' },
2510
- { code: '1F603', desc: 'Grinning face with big eyes' },
2511
- { code: '1F604', desc: 'Grinning face with smiling eyes' },
2512
- { code: '1F606', desc: 'Grinning squinting face' },
2513
- { code: '1F605', desc: 'Grinning face with sweat' },
2514
- { code: '1F602', desc: 'Face with tears of joy' },
2515
- { code: '1F923', desc: 'Rolling on the floor laughing' },
2516
- { code: '1F60A', desc: 'Smiling face with smiling eyes' },
2517
- { code: '1F607', desc: 'Smiling face with halo' },
2518
- { code: '1F642', desc: 'Slightly smiling face' },
2519
- { code: '1F643', desc: 'Upside-down face' },
2520
- { code: '1F60D', desc: 'Smiling face with heart-eyes' },
2521
- { code: '1F618', desc: 'Face blowing a kiss' },
2522
- { code: '1F61B', desc: 'Face with tongue' },
2523
- { code: '1F61C', desc: 'Winking face with tongue' },
2524
- { code: '1F604', desc: 'Grinning face with smiling eyes' },
2525
- { code: '1F469', desc: 'Woman' },
2526
- { code: '1F468', desc: 'Man' },
2527
- { code: '1F467', desc: 'Girl' },
2528
- { code: '1F466', desc: 'Boy' },
2529
- { code: '1F476', desc: 'Baby' },
2530
- { code: '1F475', desc: 'Old woman' },
2531
- { code: '1F474', desc: 'Old man' },
2532
- { code: '1F46E', desc: 'Police officer' },
2533
- { code: '1F477', desc: 'Construction worker' },
2534
- { code: '1F482', desc: 'Guard' },
2535
- { code: '1F575', desc: 'Detective' },
2536
- { code: '1F9D1', desc: 'Cook' }]
2537
- }, {
2538
- name: 'Animals & Nature', code: '1F435', iconCss: 'e-animals', icons: [{ code: '1F436', desc: 'Dog face' },
2539
- { code: '1F431', desc: 'Cat face' },
2540
- { code: '1F42D', desc: 'Mouse face' },
2541
- { code: '1F439', desc: 'Hamster face' },
2542
- { code: '1F430', desc: 'Rabbit face' },
2543
- { code: '1F98A', desc: 'Fox face' },
2544
- { code: '1F43B', desc: 'Bear face' },
2545
- { code: '1F43C', desc: 'Panda face' },
2546
- { code: '1F428', desc: 'Koala' },
2547
- { code: '1F42F', desc: 'Tiger face' },
2548
- { code: '1F981', desc: 'Lion face' },
2549
- { code: '1F42E', desc: 'Cow face' },
2550
- { code: '1F437', desc: 'Pig face' },
2551
- { code: '1F43D', desc: 'Pig nose' },
2552
- { code: '1F438', desc: 'Frog face' },
2553
- { code: '1F435', desc: 'Monkey face' },
2554
- { code: '1F649', desc: 'Hear-no-evil monkey' },
2555
- { code: '1F64A', desc: 'Speak-no-evil monkey' },
2556
- { code: '1F412', desc: 'Monkey' },
2557
- { code: '1F414', desc: 'Chicken' },
2558
- { code: '1F427', desc: 'Penguin' },
2559
- { code: '1F426', desc: 'Bird' },
2560
- { code: '1F424', desc: 'Baby chick' },
2561
- { code: '1F986', desc: 'Duck' },
2562
- { code: '1F985', desc: 'Eagle' }]
2563
- }, {
2564
- name: 'Food & Drink', code: '1F347', iconCss: 'e-food-and-drinks', icons: [{ code: '1F34E', desc: 'Red apple' },
2565
- { code: '1F34C', desc: 'Banana' },
2566
- { code: '1F347', desc: 'Grapes' },
2567
- { code: '1F353', desc: 'Strawberry' },
2568
- { code: '1F35E', desc: 'Bread' },
2569
- { code: '1F950', desc: 'Croissant' },
2570
- { code: '1F955', desc: 'Carrot' },
2571
- { code: '1F354', desc: 'Hamburger' },
2572
- { code: '1F355', desc: 'Pizza' },
2573
- { code: '1F32D', desc: 'Hot dog' },
2574
- { code: '1F35F', desc: 'French fries' },
2575
- { code: '1F37F', desc: 'Popcorn' },
2576
- { code: '1F366', desc: 'Soft ice cream' },
2577
- { code: '1F367', desc: 'Shaved ice' },
2578
- { code: '1F36A', desc: 'Cookie' },
2579
- { code: '1F382', desc: 'Birthday cake' },
2580
- { code: '1F370', desc: 'Shortcake' },
2581
- { code: '1F36B', desc: 'Chocolate bar' },
2582
- { code: '1F369', desc: 'Donut' },
2583
- { code: '1F36E', desc: 'Custard' },
2584
- { code: '1F36D', desc: 'Lollipop' },
2585
- { code: '1F36C', desc: 'Candy' },
2586
- { code: '1F377', desc: 'Wine glass' },
2587
- { code: '1F37A', desc: 'Beer mug' },
2588
- { code: '1F37E', desc: 'Bottle with popping cork' }]
2589
- }, {
2590
- name: 'Activities', code: '1F383', iconCss: 'e-activities', icons: [{ code: '26BD', desc: 'Soccer ball' },
2591
- { code: '1F3C0', desc: 'Basketball' },
2592
- { code: '1F3C8', desc: 'American football' },
2593
- { code: '26BE', desc: 'Baseball' },
2594
- { code: '1F3BE', desc: 'Tennis' },
2595
- { code: '1F3D0', desc: 'Volleyball' },
2596
- { code: '1F3C9', desc: 'Rugby football' },
2597
- { code: '1F3B1', desc: 'Pool 8 ball' },
2598
- { code: '1F3D3', desc: 'Ping pong' },
2599
- { code: '1F3F8', desc: 'Badminton' },
2600
- { code: '1F94A', desc: 'Boxing glove' },
2601
- { code: '1F3CA', desc: 'Swimmer' },
2602
- { code: '1F3CB', desc: 'Weightlifter' },
2603
- { code: '1F6B4', desc: 'Bicyclist' },
2604
- { code: '1F6F9', desc: 'Skateboard' },
2605
- { code: '1F3AE', desc: 'Video game' },
2606
- { code: '1F579', desc: 'Joystick' },
2607
- { code: '1F3CF', desc: 'Cricket' },
2608
- { code: '1F3C7', desc: 'Horse racing' },
2609
- { code: '1F3AF', desc: 'Direct hit' },
2610
- { code: '1F3D1', desc: 'Field hockey' },
2611
- { code: '1F3B0', desc: 'Slot machine' },
2612
- { code: '1F3B3', desc: 'Bowling' },
2613
- { code: '1F3B2', desc: 'Game die' },
2614
- { code: '265F', desc: 'Chess pawn' }]
2615
- }, {
2616
- name: 'Travel & Places', code: '1F30D', iconCss: 'e-travel-and-places', icons: [{ code: '2708', desc: 'Airplane' },
2617
- { code: '1F697', desc: 'Automobile' },
2618
- { code: '1F695', desc: 'Taxi' },
2619
- { code: '1F6B2', desc: 'Bicycle' },
2620
- { code: '1F68C', desc: 'Bus' },
2621
- { code: '1F682', desc: 'Locomotive' },
2622
- { code: '1F6F3', desc: 'Passenger ship' },
2623
- { code: '1F680', desc: 'Rocket' },
2624
- { code: '1F681', desc: 'Helicopter' },
2625
- { code: '1F6A2', desc: 'Ship' },
2626
- { code: '1F3DF', desc: 'Stadium' },
2627
- { code: '1F54C', desc: 'Mosque' },
2628
- { code: '26EA', desc: 'Church' },
2629
- { code: '1F6D5', desc: 'Hindu Temple' },
2630
- { code: '1F3D4', desc: 'Snow-capped mountain' },
2631
- { code: '1F3EB', desc: 'School' },
2632
- { code: '1F30B', desc: 'Volcano' },
2633
- { code: '1F3D6', desc: 'Beach with umbrella' },
2634
- { code: '1F3DD', desc: 'Desert island' },
2635
- { code: '1F3DE', desc: 'National park' },
2636
- { code: '1F3F0', desc: 'Castle' },
2637
- { code: '1F5FC', desc: 'Tokyo tower' },
2638
- { code: '1F5FD', desc: 'Statue of liberty' },
2639
- { code: '26E9', desc: 'Shinto shrine' },
2640
- { code: '1F3EF', desc: 'Japanese castle' },
2641
- { code: '1F3A2', desc: 'Roller coaster' }]
2642
- }, {
2643
- name: 'Objects', code: '1F507', iconCss: 'e-objects', icons: [{ code: '1F4A1', desc: 'Light bulb' },
2644
- { code: '1F526', desc: 'Flashlight' },
2645
- { code: '1F4BB', desc: 'Laptop computer' },
2646
- { code: '1F5A5', desc: 'Desktop computer' },
2647
- { code: '1F5A8', desc: 'Printer' },
2648
- { code: '1F4F7', desc: 'Camera' },
2649
- { code: '1F4F8', desc: 'Camera with flash' },
2650
- { code: '1F4FD', desc: 'Film projector' },
2651
- { code: '1F3A5', desc: 'Movie camera' },
2652
- { code: '1F4FA', desc: 'Television' },
2653
- { code: '1F4FB', desc: 'Radio' },
2654
- { code: '1F50B', desc: 'Battery' },
2655
- { code: '231A', desc: 'Watch' },
2656
- { code: '1F4F1', desc: 'Mobile phone' },
2657
- { code: '260E', desc: 'Telephone' },
2658
- { code: '1F4BE', desc: 'Floppy disk' },
2659
- { code: '1F4BF', desc: 'Optical disk' },
2660
- { code: '1F4C0', desc: 'Digital versatile disc' },
2661
- { code: '1F4BD', desc: 'Computer disk' },
2662
- { code: '1F3A7', desc: 'Headphone' },
2663
- { code: '1F3A4', desc: 'Microphone' },
2664
- { code: '1F3B6', desc: 'Multiple musical notes' },
2665
- { code: '1F4DA', desc: 'Books' }]
2666
- }, {
2667
- name: 'Symbols', code: '1F3E7', iconCss: 'e-symbols', icons: [{ code: '274C', desc: 'Cross mark' },
2668
- { code: '2714', desc: 'Check mark' },
2669
- { code: '26A0', desc: 'Warning sign' },
2670
- { code: '1F6AB', desc: 'Prohibited' },
2671
- { code: '2139', desc: 'Information' },
2672
- { code: '267B', desc: 'Recycling symbol' },
2673
- { code: '1F6AD', desc: 'No smoking' },
2674
- { code: '1F4F5', desc: 'No mobile phones' },
2675
- { code: '1F6AF', desc: 'No littering' },
2676
- { code: '1F6B3', desc: 'No bicycles' },
2677
- { code: '1F6B7', desc: 'No pedestrians' },
2678
- { code: '2795', desc: 'Plus' },
2679
- { code: '2796', desc: 'Minus' },
2680
- { code: '2797', desc: 'Divide' },
2681
- { code: '2716', desc: 'Multiplication' },
2682
- { code: '1F4B2', desc: 'Dollar banknote' },
2683
- { code: '1F4AC', desc: 'Speech balloon' },
2684
- { code: '2755', desc: 'White exclamation mark' },
2685
- { code: '2754', desc: 'White question mark' },
2686
- { code: '2764', desc: 'Heart' }]
2687
- }];
2509
+ name: 'Smilies & People', code: '1F600', iconCss: 'e-emoji', icons: [{ code: '1F600', desc: 'Grinning face' },
2510
+ { code: '1F603', desc: 'Grinning face with big eyes' },
2511
+ { code: '1F604', desc: 'Grinning face with smiling eyes' },
2512
+ { code: '1F606', desc: 'Grinning squinting face' },
2513
+ { code: '1F605', desc: 'Grinning face with sweat' },
2514
+ { code: '1F602', desc: 'Face with tears of joy' },
2515
+ { code: '1F923', desc: 'Rolling on the floor laughing' },
2516
+ { code: '1F60A', desc: 'Smiling face with smiling eyes' },
2517
+ { code: '1F607', desc: 'Smiling face with halo' },
2518
+ { code: '1F642', desc: 'Slightly smiling face' },
2519
+ { code: '1F643', desc: 'Upside-down face' },
2520
+ { code: '1F60D', desc: 'Smiling face with heart-eyes' },
2521
+ { code: '1F618', desc: 'Face blowing a kiss' },
2522
+ { code: '1F61B', desc: 'Face with tongue' },
2523
+ { code: '1F61C', desc: 'Winking face with tongue' },
2524
+ { code: '1F604', desc: 'Grinning face with smiling eyes' },
2525
+ { code: '1F469', desc: 'Woman' },
2526
+ { code: '1F468', desc: 'Man' },
2527
+ { code: '1F467', desc: 'Girl' },
2528
+ { code: '1F466', desc: 'Boy' },
2529
+ { code: '1F476', desc: 'Baby' },
2530
+ { code: '1F475', desc: 'Old woman' },
2531
+ { code: '1F474', desc: 'Old man' },
2532
+ { code: '1F46E', desc: 'Police officer' },
2533
+ { code: '1F477', desc: 'Construction worker' },
2534
+ { code: '1F482', desc: 'Guard' },
2535
+ { code: '1F575', desc: 'Detective' },
2536
+ { code: '1F9D1', desc: 'Cook' }]
2537
+ }, {
2538
+ name: 'Animals & Nature', code: '1F435', iconCss: 'e-animals', icons: [{ code: '1F436', desc: 'Dog face' },
2539
+ { code: '1F431', desc: 'Cat face' },
2540
+ { code: '1F42D', desc: 'Mouse face' },
2541
+ { code: '1F439', desc: 'Hamster face' },
2542
+ { code: '1F430', desc: 'Rabbit face' },
2543
+ { code: '1F98A', desc: 'Fox face' },
2544
+ { code: '1F43B', desc: 'Bear face' },
2545
+ { code: '1F43C', desc: 'Panda face' },
2546
+ { code: '1F428', desc: 'Koala' },
2547
+ { code: '1F42F', desc: 'Tiger face' },
2548
+ { code: '1F981', desc: 'Lion face' },
2549
+ { code: '1F42E', desc: 'Cow face' },
2550
+ { code: '1F437', desc: 'Pig face' },
2551
+ { code: '1F43D', desc: 'Pig nose' },
2552
+ { code: '1F438', desc: 'Frog face' },
2553
+ { code: '1F435', desc: 'Monkey face' },
2554
+ { code: '1F649', desc: 'Hear-no-evil monkey' },
2555
+ { code: '1F64A', desc: 'Speak-no-evil monkey' },
2556
+ { code: '1F412', desc: 'Monkey' },
2557
+ { code: '1F414', desc: 'Chicken' },
2558
+ { code: '1F427', desc: 'Penguin' },
2559
+ { code: '1F426', desc: 'Bird' },
2560
+ { code: '1F424', desc: 'Baby chick' },
2561
+ { code: '1F986', desc: 'Duck' },
2562
+ { code: '1F985', desc: 'Eagle' }]
2563
+ }, {
2564
+ name: 'Food & Drink', code: '1F347', iconCss: 'e-food-and-drinks', icons: [{ code: '1F34E', desc: 'Red apple' },
2565
+ { code: '1F34C', desc: 'Banana' },
2566
+ { code: '1F347', desc: 'Grapes' },
2567
+ { code: '1F353', desc: 'Strawberry' },
2568
+ { code: '1F35E', desc: 'Bread' },
2569
+ { code: '1F950', desc: 'Croissant' },
2570
+ { code: '1F955', desc: 'Carrot' },
2571
+ { code: '1F354', desc: 'Hamburger' },
2572
+ { code: '1F355', desc: 'Pizza' },
2573
+ { code: '1F32D', desc: 'Hot dog' },
2574
+ { code: '1F35F', desc: 'French fries' },
2575
+ { code: '1F37F', desc: 'Popcorn' },
2576
+ { code: '1F366', desc: 'Soft ice cream' },
2577
+ { code: '1F367', desc: 'Shaved ice' },
2578
+ { code: '1F36A', desc: 'Cookie' },
2579
+ { code: '1F382', desc: 'Birthday cake' },
2580
+ { code: '1F370', desc: 'Shortcake' },
2581
+ { code: '1F36B', desc: 'Chocolate bar' },
2582
+ { code: '1F369', desc: 'Donut' },
2583
+ { code: '1F36E', desc: 'Custard' },
2584
+ { code: '1F36D', desc: 'Lollipop' },
2585
+ { code: '1F36C', desc: 'Candy' },
2586
+ { code: '1F377', desc: 'Wine glass' },
2587
+ { code: '1F37A', desc: 'Beer mug' },
2588
+ { code: '1F37E', desc: 'Bottle with popping cork' }]
2589
+ }, {
2590
+ name: 'Activities', code: '1F383', iconCss: 'e-activities', icons: [{ code: '26BD', desc: 'Soccer ball' },
2591
+ { code: '1F3C0', desc: 'Basketball' },
2592
+ { code: '1F3C8', desc: 'American football' },
2593
+ { code: '26BE', desc: 'Baseball' },
2594
+ { code: '1F3BE', desc: 'Tennis' },
2595
+ { code: '1F3D0', desc: 'Volleyball' },
2596
+ { code: '1F3C9', desc: 'Rugby football' },
2597
+ { code: '1F3B1', desc: 'Pool 8 ball' },
2598
+ { code: '1F3D3', desc: 'Ping pong' },
2599
+ { code: '1F3F8', desc: 'Badminton' },
2600
+ { code: '1F94A', desc: 'Boxing glove' },
2601
+ { code: '1F3CA', desc: 'Swimmer' },
2602
+ { code: '1F3CB', desc: 'Weightlifter' },
2603
+ { code: '1F6B4', desc: 'Bicyclist' },
2604
+ { code: '1F6F9', desc: 'Skateboard' },
2605
+ { code: '1F3AE', desc: 'Video game' },
2606
+ { code: '1F579', desc: 'Joystick' },
2607
+ { code: '1F3CF', desc: 'Cricket' },
2608
+ { code: '1F3C7', desc: 'Horse racing' },
2609
+ { code: '1F3AF', desc: 'Direct hit' },
2610
+ { code: '1F3D1', desc: 'Field hockey' },
2611
+ { code: '1F3B0', desc: 'Slot machine' },
2612
+ { code: '1F3B3', desc: 'Bowling' },
2613
+ { code: '1F3B2', desc: 'Game die' },
2614
+ { code: '265F', desc: 'Chess pawn' }]
2615
+ }, {
2616
+ name: 'Travel & Places', code: '1F30D', iconCss: 'e-travel-and-places', icons: [{ code: '2708', desc: 'Airplane' },
2617
+ { code: '1F697', desc: 'Automobile' },
2618
+ { code: '1F695', desc: 'Taxi' },
2619
+ { code: '1F6B2', desc: 'Bicycle' },
2620
+ { code: '1F68C', desc: 'Bus' },
2621
+ { code: '1F682', desc: 'Locomotive' },
2622
+ { code: '1F6F3', desc: 'Passenger ship' },
2623
+ { code: '1F680', desc: 'Rocket' },
2624
+ { code: '1F681', desc: 'Helicopter' },
2625
+ { code: '1F6A2', desc: 'Ship' },
2626
+ { code: '1F3DF', desc: 'Stadium' },
2627
+ { code: '1F54C', desc: 'Mosque' },
2628
+ { code: '26EA', desc: 'Church' },
2629
+ { code: '1F6D5', desc: 'Hindu Temple' },
2630
+ { code: '1F3D4', desc: 'Snow-capped mountain' },
2631
+ { code: '1F3EB', desc: 'School' },
2632
+ { code: '1F30B', desc: 'Volcano' },
2633
+ { code: '1F3D6', desc: 'Beach with umbrella' },
2634
+ { code: '1F3DD', desc: 'Desert island' },
2635
+ { code: '1F3DE', desc: 'National park' },
2636
+ { code: '1F3F0', desc: 'Castle' },
2637
+ { code: '1F5FC', desc: 'Tokyo tower' },
2638
+ { code: '1F5FD', desc: 'Statue of liberty' },
2639
+ { code: '26E9', desc: 'Shinto shrine' },
2640
+ { code: '1F3EF', desc: 'Japanese castle' },
2641
+ { code: '1F3A2', desc: 'Roller coaster' }]
2642
+ }, {
2643
+ name: 'Objects', code: '1F507', iconCss: 'e-objects', icons: [{ code: '1F4A1', desc: 'Light bulb' },
2644
+ { code: '1F526', desc: 'Flashlight' },
2645
+ { code: '1F4BB', desc: 'Laptop computer' },
2646
+ { code: '1F5A5', desc: 'Desktop computer' },
2647
+ { code: '1F5A8', desc: 'Printer' },
2648
+ { code: '1F4F7', desc: 'Camera' },
2649
+ { code: '1F4F8', desc: 'Camera with flash' },
2650
+ { code: '1F4FD', desc: 'Film projector' },
2651
+ { code: '1F3A5', desc: 'Movie camera' },
2652
+ { code: '1F4FA', desc: 'Television' },
2653
+ { code: '1F4FB', desc: 'Radio' },
2654
+ { code: '1F50B', desc: 'Battery' },
2655
+ { code: '231A', desc: 'Watch' },
2656
+ { code: '1F4F1', desc: 'Mobile phone' },
2657
+ { code: '260E', desc: 'Telephone' },
2658
+ { code: '1F4BE', desc: 'Floppy disk' },
2659
+ { code: '1F4BF', desc: 'Optical disk' },
2660
+ { code: '1F4C0', desc: 'Digital versatile disc' },
2661
+ { code: '1F4BD', desc: 'Computer disk' },
2662
+ { code: '1F3A7', desc: 'Headphone' },
2663
+ { code: '1F3A4', desc: 'Microphone' },
2664
+ { code: '1F3B6', desc: 'Multiple musical notes' },
2665
+ { code: '1F4DA', desc: 'Books' }]
2666
+ }, {
2667
+ name: 'Symbols', code: '1F3E7', iconCss: 'e-symbols', icons: [{ code: '274C', desc: 'Cross mark' },
2668
+ { code: '2714', desc: 'Check mark' },
2669
+ { code: '26A0', desc: 'Warning sign' },
2670
+ { code: '1F6AB', desc: 'Prohibited' },
2671
+ { code: '2139', desc: 'Information' },
2672
+ { code: '267B', desc: 'Recycling symbol' },
2673
+ { code: '1F6AD', desc: 'No smoking' },
2674
+ { code: '1F4F5', desc: 'No mobile phones' },
2675
+ { code: '1F6AF', desc: 'No littering' },
2676
+ { code: '1F6B3', desc: 'No bicycles' },
2677
+ { code: '1F6B7', desc: 'No pedestrians' },
2678
+ { code: '2795', desc: 'Plus' },
2679
+ { code: '2796', desc: 'Minus' },
2680
+ { code: '2797', desc: 'Divide' },
2681
+ { code: '2716', desc: 'Multiplication' },
2682
+ { code: '1F4B2', desc: 'Dollar banknote' },
2683
+ { code: '1F4AC', desc: 'Speech balloon' },
2684
+ { code: '2755', desc: 'White exclamation mark' },
2685
+ { code: '2754', desc: 'White question mark' },
2686
+ { code: '2764', desc: 'Heart' }]
2687
+ }];
2688
2688
 
2689
2689
  /* eslint-disable */
2690
2690
  /**
@@ -3230,7 +3230,7 @@ function setToolbarStatus(e, isPopToolbar, self) {
3230
3230
  var itemStr = item && item.toLocaleLowerCase();
3231
3231
  if (item && (itemStr === key) || (item === 'UL' && key === 'unorderedlist') || (item === 'OL' && key === 'orderedlist') ||
3232
3232
  (itemStr === 'pre' && key === 'insertcode') || (item === 'NumberFormatList' && key === 'numberFormatList' ||
3233
- item === 'BulletFormatList' && key === 'bulletFormatList')) {
3233
+ item === 'BulletFormatList' && key === 'bulletFormatList')) {
3234
3234
  if (typeof data["" + key] === 'boolean') {
3235
3235
  if (data["" + key] === true) {
3236
3236
  addClass([e.tbElements[j]], [CLS_ACTIVE]);
@@ -3742,7 +3742,7 @@ function updateDropDownFontFormatLocale(self) {
3742
3742
  * @hidden
3743
3743
  * @deprecated
3744
3744
  */
3745
- var ContentRender = /** @__PURE__ @class */ (function () {
3745
+ var ContentRender = /** @class */ (function () {
3746
3746
  /**
3747
3747
  * Constructor for content renderer module
3748
3748
  *
@@ -3839,7 +3839,7 @@ var ContentRender = /** @__PURE__ @class */ (function () {
3839
3839
  * @hidden
3840
3840
  * @deprecated
3841
3841
  */
3842
- var Render = /** @__PURE__ @class */ (function () {
3842
+ var Render = /** @class */ (function () {
3843
3843
  /**
3844
3844
  * Constructor for render module
3845
3845
  *
@@ -3938,7 +3938,7 @@ var Render = /** @__PURE__ @class */ (function () {
3938
3938
  * @hidden
3939
3939
  * @deprecated
3940
3940
  */
3941
- var IsFormatted = /** @__PURE__ @class */ (function () {
3941
+ var IsFormatted = /** @class */ (function () {
3942
3942
  function IsFormatted() {
3943
3943
  }
3944
3944
  /**
@@ -4050,7 +4050,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
4050
4050
  }
4051
4051
  else if (this.inlineTags.indexOf(node.nodeName.toLowerCase()) !== -1 &&
4052
4052
  node.style && (node.style.textDecoration === 'underline' ||
4053
- node.style.textDecorationLine === 'underline')) {
4053
+ node.style.textDecorationLine === 'underline')) {
4054
4054
  /* eslint-enable */
4055
4055
  return true;
4056
4056
  }
@@ -4074,7 +4074,7 @@ var IsFormatted = /** @__PURE__ @class */ (function () {
4074
4074
  }
4075
4075
  else if (this.inlineTags.indexOf(node.nodeName.toLowerCase()) !== -1 &&
4076
4076
  node.style && (node.style.textDecoration === 'line-through' ||
4077
- node.style.textDecorationLine === 'line-through')) {
4077
+ node.style.textDecorationLine === 'line-through')) {
4078
4078
  /* eslint-enable */
4079
4079
  return true;
4080
4080
  }
@@ -4307,7 +4307,7 @@ var ALLOWED_TABLE_BLOCK_TAGS = ['article', 'aside', 'blockquote', 'body', 'canva
4307
4307
  /**
4308
4308
  * `Selection` module is used to handle RTE Selections.
4309
4309
  */
4310
- var NodeSelection = /** @__PURE__ @class */ (function () {
4310
+ var NodeSelection = /** @class */ (function () {
4311
4311
  function NodeSelection(editElement) {
4312
4312
  this.startNodeName = [];
4313
4313
  this.endNodeName = [];
@@ -4332,7 +4332,7 @@ var NodeSelection = /** @__PURE__ @class */ (function () {
4332
4332
  var range = select && select.rangeCount > 0 ? select.getRangeAt(select.rangeCount - 1) : docElement.createRange();
4333
4333
  return (range.startContainer !== docElement || range.endContainer !== docElement
4334
4334
  || range.startOffset || range.endOffset || (range.setStart(docElement.body, 0),
4335
- range.collapse(!0)),
4335
+ range.collapse(!0)),
4336
4336
  range);
4337
4337
  };
4338
4338
  /**
@@ -5080,7 +5080,7 @@ function removeClassWithAttr(elements, classes) {
5080
5080
  * @deprecated
5081
5081
  */
5082
5082
  var statusCollection = getDefaultHtmlTbStatus();
5083
- var ToolbarStatus = /** @__PURE__ @class */ (function () {
5083
+ var ToolbarStatus = /** @class */ (function () {
5084
5084
  function ToolbarStatus() {
5085
5085
  }
5086
5086
  /**
@@ -5478,7 +5478,7 @@ var ToolbarStatus = /** @__PURE__ @class */ (function () {
5478
5478
  * @hidden
5479
5479
  * @deprecated
5480
5480
  */
5481
- var ToolbarRenderer = /** @__PURE__ @class */ (function () {
5481
+ var ToolbarRenderer = /** @class */ (function () {
5482
5482
  /**
5483
5483
  * Constructor for toolbar renderer module
5484
5484
  *
@@ -5994,13 +5994,18 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
5994
5994
  (proxy.parent.iframeSettings.enable && !hasClass(parentNode.ownerDocument.querySelector('body'), 'e-lib')))
5995
5995
  && range.collapsed && args.subCommand === 'BackgroundColor' && (closest(closestElement, '.' + CLS_RTE) || proxy.parent.iframeSettings.enable)) {
5996
5996
  proxy.parent.notify(tableColorPickerChanged, {
5997
- item: { command: args.command, subCommand: args.subCommand,
5998
- value: colorpickerValue }
5997
+ item: {
5998
+ command: args.command, subCommand: args.subCommand,
5999
+ value: colorpickerValue
6000
+ }
5999
6001
  });
6000
6002
  }
6001
6003
  else {
6002
- proxy.parent.notify(colorPickerChanged, { item: { command: args.command, subCommand: args.subCommand,
6003
- value: colorpickerValue }
6004
+ proxy.parent.notify(colorPickerChanged, {
6005
+ item: {
6006
+ command: args.command, subCommand: args.subCommand,
6007
+ value: colorpickerValue
6008
+ }
6004
6009
  });
6005
6010
  }
6006
6011
  return;
@@ -6041,15 +6046,19 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
6041
6046
  range = proxy.parent.formatter.editorManager.nodeSelection.getRange(proxy.parent.contentModule.getDocument());
6042
6047
  if ((range.startContainer.nodeName === 'TD' || range.startContainer.nodeName === 'TH' ||
6043
6048
  closest(range.startContainer.parentNode, 'td,th')) && range.collapsed) {
6044
- proxy.parent.notify(tableColorPickerChanged, { item: {
6049
+ proxy.parent.notify(tableColorPickerChanged, {
6050
+ item: {
6045
6051
  command: args.command, subCommand: args.subCommand,
6046
6052
  value: colorpickerValue
6047
6053
  }
6048
6054
  });
6049
6055
  }
6050
6056
  else {
6051
- proxy.parent.notify(colorPickerChanged, { item: { command: args.command, subCommand: args.subCommand,
6052
- value: colorpickerValue }
6057
+ proxy.parent.notify(colorPickerChanged, {
6058
+ item: {
6059
+ command: args.command, subCommand: args.subCommand,
6060
+ value: colorpickerValue
6061
+ }
6053
6062
  });
6054
6063
  }
6055
6064
  return;
@@ -6232,7 +6241,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
6232
6241
  /**
6233
6242
  * `Link` module is used to handle undo actions.
6234
6243
  */
6235
- var Link = /** @__PURE__ @class */ (function () {
6244
+ var Link = /** @class */ (function () {
6236
6245
  function Link(parent, serviceLocator) {
6237
6246
  this.parent = parent;
6238
6247
  this.rteID = parent.element.id;
@@ -6523,8 +6532,10 @@ var Link = /** @__PURE__ @class */ (function () {
6523
6532
  var linkText = linkContent.querySelector('.e-rte-linkText');
6524
6533
  var linkTitle = linkContent.querySelector('.e-rte-linkTitle');
6525
6534
  var linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
6526
- this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl,
6527
- cssClass: this.parent.getCssClass() });
6535
+ this.checkBoxObj = new CheckBox({
6536
+ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl,
6537
+ cssClass: this.parent.getCssClass()
6538
+ });
6528
6539
  this.checkBoxObj.isStringTemplate = true;
6529
6540
  this.checkBoxObj.createElement = this.parent.createElement;
6530
6541
  this.checkBoxObj.appendTo(linkTarget);
@@ -6543,10 +6554,10 @@ var Link = /** @__PURE__ @class */ (function () {
6543
6554
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '310px',
6544
6555
  isModal: Browser.isDevice,
6545
6556
  buttons: [{
6546
- click: this.insertlink.bind(selectObj),
6547
- buttonModel: { content: linkInsert, cssClass: 'e-flat e-insertLink' + this.parent.getCssClass(true), isPrimary: true }
6548
- },
6549
- { click: this.cancelDialog.bind(selectObj), buttonModel: { cssClass: 'e-flat' + this.parent.getCssClass(true), content: linkCancel } }],
6557
+ click: this.insertlink.bind(selectObj),
6558
+ buttonModel: { content: linkInsert, cssClass: 'e-flat e-insertLink' + this.parent.getCssClass(true), isPrimary: true }
6559
+ },
6560
+ { click: this.cancelDialog.bind(selectObj), buttonModel: { cssClass: 'e-flat' + this.parent.getCssClass(true), content: linkCancel } }],
6550
6561
  target: (Browser.isDevice) ? document.body : this.parent.element,
6551
6562
  animationSettings: { effect: 'None' },
6552
6563
  close: function (event) {
@@ -6768,8 +6779,8 @@ var Link = /** @__PURE__ @class */ (function () {
6768
6779
  Link.prototype.onDocumentClick = function (e) {
6769
6780
  var target = e.target;
6770
6781
  if (!isNullOrUndefined(this.dialogObj) && ((
6771
- // eslint-disable-next-line
6772
- !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable &&
6782
+ // eslint-disable-next-line
6783
+ !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable &&
6773
6784
  this.parent.getToolbarElement() && !this.parent.getToolbarElement().contains(e.target)) ||
6774
6785
  (((this.parent.getToolbarElement() && this.parent.getToolbarElement().contains(e.target)) ||
6775
6786
  this.parent.inlineMode.enable && !closest(target, '#' + this.dialogObj.element.id)) &&
@@ -6968,7 +6979,7 @@ var mentionRestrictKeys = [
6968
6979
  /**
6969
6980
  * `Image` module is used to handle image actions.
6970
6981
  */
6971
- var Image$1 = /** @__PURE__ @class */ (function () {
6982
+ var Image$1 = /** @class */ (function () {
6972
6983
  function Image(parent, serviceLocator) {
6973
6984
  this.isImgUploaded = false;
6974
6985
  this.isAllowedTypes = true;
@@ -8027,14 +8038,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8027
8038
  header: this.parent.localeObj.getConstant('imageInsertLinkHeader'),
8028
8039
  content: linkWrap,
8029
8040
  buttons: [{
8030
- // eslint-disable-next-line
8031
- click: function (e) {
8032
- _this.insertlink(linkargs_1);
8033
- },
8034
- buttonModel: {
8035
- content: linkUpdate, cssClass: 'e-flat e-update-link' + this.parent.getCssClass(true), isPrimary: true
8036
- }
8037
- }],
8041
+ // eslint-disable-next-line
8042
+ click: function (e) {
8043
+ _this.insertlink(linkargs_1);
8044
+ },
8045
+ buttonModel: {
8046
+ content: linkUpdate, cssClass: 'e-flat e-update-link' + this.parent.getCssClass(true), isPrimary: true
8047
+ }
8048
+ }],
8038
8049
  cssClass: this.dialogObj.cssClass + ' e-rte-img-link-dialog'
8039
8050
  });
8040
8051
  if (!isNullOrUndefined(this.parent.cssClass)) {
@@ -8076,14 +8087,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8076
8087
  this.dialogObj.setProperties({
8077
8088
  width: '290px', header: altHeader, content: altWrap,
8078
8089
  buttons: [{
8079
- // eslint-disable-next-line
8080
- click: function (e) {
8081
- _this.insertAlt(altArgs_1);
8082
- },
8083
- buttonModel: {
8084
- content: linkUpdate, cssClass: 'e-flat e-update-alt' + this.parent.getCssClass(true), isPrimary: true
8085
- }
8086
- }],
8090
+ // eslint-disable-next-line
8091
+ click: function (e) {
8092
+ _this.insertAlt(altArgs_1);
8093
+ },
8094
+ buttonModel: {
8095
+ content: linkUpdate, cssClass: 'e-flat e-update-alt' + this.parent.getCssClass(true), isPrimary: true
8096
+ }
8097
+ }],
8087
8098
  cssClass: this.dialogObj.cssClass + ' e-rte-img-alt-dialog'
8088
8099
  });
8089
8100
  if (!isNullOrUndefined(this.parent.cssClass)) {
@@ -8239,8 +8250,10 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8239
8250
  attrs: { contenteditable: 'false', draggable: 'false', style: 'width:' + this.parent.insertImageSettings.width }
8240
8251
  });
8241
8252
  var imgWrap = this.parent.createElement('span', { className: 'e-img-wrap' + this.parent.getCssClass(true) });
8242
- var imgInner = this.parent.createElement('span', { className: 'e-img-inner' + this.parent.getCssClass(true),
8243
- attrs: { contenteditable: 'true' } });
8253
+ var imgInner = this.parent.createElement('span', {
8254
+ className: 'e-img-inner' + this.parent.getCssClass(true),
8255
+ attrs: { contenteditable: 'true' }
8256
+ });
8244
8257
  var parent_1 = e.selectNode[0].parentElement;
8245
8258
  if (parent_1.tagName === 'A') {
8246
8259
  parent_1.setAttribute('contenteditable', 'true');
@@ -8287,14 +8300,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8287
8300
  this.dialogObj.setProperties({
8288
8301
  width: '290px', header: imgSizeHeader, content: dialogContent,
8289
8302
  buttons: [{
8290
- // eslint-disable-next-line
8291
- click: function (e) {
8292
- _this.insertSize(selectObj_1);
8293
- },
8294
- buttonModel: {
8295
- content: linkUpdate, cssClass: 'e-flat e-update-size' + this.parent.getCssClass(true), isPrimary: true
8296
- }
8297
- }],
8303
+ // eslint-disable-next-line
8304
+ click: function (e) {
8305
+ _this.insertSize(selectObj_1);
8306
+ },
8307
+ buttonModel: {
8308
+ content: linkUpdate, cssClass: 'e-flat e-update-size' + this.parent.getCssClass(true), isPrimary: true
8309
+ }
8310
+ }],
8298
8311
  cssClass: this.dialogObj.cssClass + ' e-rte-img-size-dialog'
8299
8312
  });
8300
8313
  if (!isNullOrUndefined(this.parent.cssClass)) {
@@ -8380,13 +8393,13 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8380
8393
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
8381
8394
  isModal: Browser.isDevice,
8382
8395
  buttons: [{
8383
- click: this.insertImageUrl.bind(selectObj),
8384
- buttonModel: { content: imgInsert, cssClass: 'e-flat e-insertImage' + this.parent.getCssClass(true), isPrimary: true, disabled: this.parent.editorMode === 'Markdown' ? false : true }
8385
- },
8386
- {
8387
- click: this.cancelDialog.bind(this),
8388
- buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: imglinkCancel }
8389
- }],
8396
+ click: this.insertImageUrl.bind(selectObj),
8397
+ buttonModel: { content: imgInsert, cssClass: 'e-flat e-insertImage' + this.parent.getCssClass(true), isPrimary: true, disabled: this.parent.editorMode === 'Markdown' ? false : true }
8398
+ },
8399
+ {
8400
+ click: this.cancelDialog.bind(this),
8401
+ buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: imglinkCancel }
8402
+ }],
8390
8403
  target: (Browser.isDevice) ? document.body : this.parent.element,
8391
8404
  animationSettings: { effect: 'None' },
8392
8405
  close: function (event) {
@@ -8476,14 +8489,14 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8476
8489
  this.parent.currentTarget = e.target;
8477
8490
  }
8478
8491
  if (!isNullOrUndefined(this.dialogObj) && ((
8479
- // eslint-disable-next-line
8480
- !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
8492
+ // eslint-disable-next-line
8493
+ !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
8481
8494
  !this.parent.getToolbarElement().contains(e.target)) ||
8482
8495
  (this.parent.getToolbarElement() && this.parent.getToolbarElement().contains(e.target) &&
8483
8496
  !closest(target, '#' + this.parent.getID() + '_toolbar_Image') &&
8484
8497
  !target.querySelector('#' + this.parent.getID() + '_toolbar_Image')))) {
8485
8498
  /* eslint-disable */
8486
- if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) ;
8499
+ if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight);
8487
8500
  else {
8488
8501
  this.parent.notify(documentClickClosedBy, { closedBy: "outside click" });
8489
8502
  this.dialogObj.hide({ returnValue: true });
@@ -8494,7 +8507,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8494
8507
  }
8495
8508
  if (!(this.parent.iframeSettings.enable && !isNullOrUndefined(this.parent.currentTarget) && this.parent.currentTarget.nodeName === 'IMG') &&
8496
8509
  e.target.tagName !== 'IMG' && this.imgResizeDiv && !(this.quickToolObj &&
8497
- this.quickToolObj.imageQTBar && this.quickToolObj.imageQTBar.element.contains(e.target)) &&
8510
+ this.quickToolObj.imageQTBar && this.quickToolObj.imageQTBar.element.contains(e.target)) &&
8498
8511
  this.contentModule.getEditPanel().contains(this.imgResizeDiv)) {
8499
8512
  this.cancelResizeAction();
8500
8513
  }
@@ -8594,8 +8607,8 @@ var Image$1 = /** @__PURE__ @class */ (function () {
8594
8607
  }
8595
8608
  else if (url !== '') {
8596
8609
  if (proxy.parent.editorMode === 'HTML' && isNullOrUndefined(closest(
8597
- // eslint-disable-next-line
8598
- this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
8610
+ // eslint-disable-next-line
8611
+ this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
8599
8612
  proxy.contentModule.getEditPanel().focus();
8600
8613
  var range = proxy.parent.formatter.editorManager.nodeSelection.getRange(proxy.contentModule.getDocument());
8601
8614
  this.selection = proxy.parent.formatter.editorManager.nodeSelection.save(range, proxy.contentModule.getDocument());
@@ -9460,7 +9473,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
9460
9473
  /**
9461
9474
  * `Audio` module is used to handle audio actions.
9462
9475
  */
9463
- var Audio = /** @__PURE__ @class */ (function () {
9476
+ var Audio = /** @class */ (function () {
9464
9477
  function Audio(parent, serviceLocator) {
9465
9478
  this.isAudioUploaded = false;
9466
9479
  this.isAllowedTypes = true;
@@ -9833,14 +9846,14 @@ var Audio = /** @__PURE__ @class */ (function () {
9833
9846
  this.audEle = target.querySelector('audio');
9834
9847
  }
9835
9848
  if (!isNullOrUndefined(this.dialogObj) && ((
9836
- // eslint-disable-next-line
9837
- !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
9849
+ // eslint-disable-next-line
9850
+ !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
9838
9851
  !this.parent.getToolbarElement().contains(e.target)) ||
9839
9852
  (this.parent.getToolbarElement() && this.parent.getToolbarElement().contains(e.target) &&
9840
9853
  !closest(target, '#' + this.parent.getID() + '_toolbar_Audio') &&
9841
9854
  !target.querySelector('#' + this.parent.getID() + '_toolbar_Audio')))) {
9842
9855
  /* eslint-disable */
9843
- if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) ;
9856
+ if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight);
9844
9857
  else {
9845
9858
  this.parent.notify(documentClickClosedBy, { closedBy: "outside click" });
9846
9859
  this.dialogObj.hide({ returnValue: true });
@@ -10042,15 +10055,15 @@ var Audio = /** @__PURE__ @class */ (function () {
10042
10055
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
10043
10056
  isModal: Browser.isDevice,
10044
10057
  buttons: [{
10045
- click: this.insertAudioUrl.bind(selectObj),
10046
- buttonModel: { content: audioInsert, cssClass: 'e-flat e-insertAudio', isPrimary: true, disabled: true }
10058
+ click: this.insertAudioUrl.bind(selectObj),
10059
+ buttonModel: { content: audioInsert, cssClass: 'e-flat e-insertAudio', isPrimary: true, disabled: true }
10060
+ },
10061
+ {
10062
+ click: function (e) {
10063
+ _this.cancelDialog(e);
10047
10064
  },
10048
- {
10049
- click: function (e) {
10050
- _this.cancelDialog(e);
10051
- },
10052
- buttonModel: { cssClass: 'e-flat e-cancel', content: audiolinkCancel }
10053
- }],
10065
+ buttonModel: { cssClass: 'e-flat e-cancel', content: audiolinkCancel }
10066
+ }],
10054
10067
  target: (Browser.isDevice) ? document.body : this.parent.element,
10055
10068
  animationSettings: { effect: 'None' },
10056
10069
  close: function (event) {
@@ -10302,8 +10315,8 @@ var Audio = /** @__PURE__ @class */ (function () {
10302
10315
  }
10303
10316
  else if (url !== '') {
10304
10317
  if (proxy.parent.editorMode === 'HTML' && isNullOrUndefined(closest(
10305
- // eslint-disable-next-line
10306
- this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
10318
+ // eslint-disable-next-line
10319
+ this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
10307
10320
  proxy.contentModule.getEditPanel().focus();
10308
10321
  var range = proxy.parent.formatter.editorManager.nodeSelection.getRange(proxy.contentModule.getDocument());
10309
10322
  this.selection = proxy.parent.formatter.editorManager.nodeSelection.save(range, proxy.contentModule.getDocument());
@@ -10357,7 +10370,7 @@ var Audio = /** @__PURE__ @class */ (function () {
10357
10370
  return Audio;
10358
10371
  }());
10359
10372
 
10360
- var Video = /** @__PURE__ @class */ (function () {
10373
+ var Video = /** @class */ (function () {
10361
10374
  function Video(parent, serviceLocator) {
10362
10375
  this.isVideoUploaded = false;
10363
10376
  this.isAllowedTypes = true;
@@ -10537,14 +10550,14 @@ var Video = /** @__PURE__ @class */ (function () {
10537
10550
  this.dialogObj.setProperties({
10538
10551
  width: '290px', header: vidSizeHeader, content: dialogContent,
10539
10552
  buttons: [{
10540
- // eslint-disable-next-line
10541
- click: function (e) {
10542
- _this.insertSize(selectObj_1);
10543
- },
10544
- buttonModel: {
10545
- content: linkUpdate, cssClass: 'e-flat e-update-size', isPrimary: true
10546
- }
10547
- }]
10553
+ // eslint-disable-next-line
10554
+ click: function (e) {
10555
+ _this.insertSize(selectObj_1);
10556
+ },
10557
+ buttonModel: {
10558
+ content: linkUpdate, cssClass: 'e-flat e-update-size', isPrimary: true
10559
+ }
10560
+ }]
10548
10561
  });
10549
10562
  this.dialogObj.element.style.maxHeight = 'inherit';
10550
10563
  this.dialogObj.content.querySelector('input').focus();
@@ -11148,7 +11161,7 @@ var Video = /** @__PURE__ @class */ (function () {
11148
11161
  Video.prototype.checkVideoBack = function (range) {
11149
11162
  if (range.startContainer.nodeName === '#text' && range.startOffset === 0 &&
11150
11163
  !isNullOrUndefined(range.startContainer.previousSibling) && (range.startContainer.previousSibling.nodeName === 'VIDEO' ||
11151
- this.isEmbedVidElem(range.startContainer.previousSibling))) {
11164
+ this.isEmbedVidElem(range.startContainer.previousSibling))) {
11152
11165
  this.deletedVid.push(range.startContainer.previousSibling);
11153
11166
  }
11154
11167
  else if (range.startContainer.nodeName !== '#text' && !isNullOrUndefined(range.startContainer.childNodes[range.startOffset - 1]) &&
@@ -11160,7 +11173,7 @@ var Video = /** @__PURE__ @class */ (function () {
11160
11173
  Video.prototype.checkVideoDel = function (range) {
11161
11174
  if (range.startContainer.nodeName === '#text' && range.startOffset === range.startContainer.textContent.length &&
11162
11175
  !isNullOrUndefined(range.startContainer.nextSibling) && (range.startContainer.nextSibling.nodeName === 'VIDEO' ||
11163
- this.isEmbedVidElem(range.startContainer.nextSibling))) {
11176
+ this.isEmbedVidElem(range.startContainer.nextSibling))) {
11164
11177
  this.deletedVid.push(range.startContainer.nextSibling);
11165
11178
  }
11166
11179
  else if (range.startContainer.nodeName !== '#text' && !isNullOrUndefined(range.startContainer.childNodes[range.startOffset]) &&
@@ -11277,14 +11290,14 @@ var Video = /** @__PURE__ @class */ (function () {
11277
11290
  this.videoEle = !this.isEmbedVidElem(target) ? target : target.querySelector('iframe');
11278
11291
  }
11279
11292
  if (!isNullOrUndefined(this.dialogObj) && ((
11280
- // eslint-disable-next-line
11281
- !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
11293
+ // eslint-disable-next-line
11294
+ !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
11282
11295
  !this.parent.getToolbarElement().contains(e.target)) ||
11283
11296
  (this.parent.getToolbarElement() && this.parent.getToolbarElement().contains(e.target) &&
11284
11297
  !closest(target, '#' + this.parent.getID() + '_toolbar_Video') &&
11285
11298
  !target.querySelector('#' + this.parent.getID() + '_toolbar_Video')))) {
11286
11299
  /* eslint-disable */
11287
- if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) ;
11300
+ if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight);
11288
11301
  else {
11289
11302
  this.parent.notify(documentClickClosedBy, { closedBy: "outside click" });
11290
11303
  this.dialogObj.hide({ returnValue: true });
@@ -11475,15 +11488,15 @@ var Video = /** @__PURE__ @class */ (function () {
11475
11488
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px',
11476
11489
  isModal: Browser.isDevice,
11477
11490
  buttons: [{
11478
- click: this.insertVideoUrl.bind(selectObj),
11479
- buttonModel: { content: videoInsert, cssClass: 'e-flat e-insertVideo', isPrimary: true, disabled: true }
11491
+ click: this.insertVideoUrl.bind(selectObj),
11492
+ buttonModel: { content: videoInsert, cssClass: 'e-flat e-insertVideo', isPrimary: true, disabled: true }
11493
+ },
11494
+ {
11495
+ click: function (e) {
11496
+ _this.cancelDialog(e);
11480
11497
  },
11481
- {
11482
- click: function (e) {
11483
- _this.cancelDialog(e);
11484
- },
11485
- buttonModel: { cssClass: 'e-flat e-cancel', content: videolinkCancel }
11486
- }],
11498
+ buttonModel: { cssClass: 'e-flat e-cancel', content: videolinkCancel }
11499
+ }],
11487
11500
  target: (Browser.isDevice) ? document.body : this.parent.element,
11488
11501
  animationSettings: { effect: 'None' },
11489
11502
  close: function (event) {
@@ -11820,8 +11833,8 @@ var Video = /** @__PURE__ @class */ (function () {
11820
11833
  }
11821
11834
  else if (proxy.parent.editorMode === 'HTML' && (url !== '' || embedUrl !== '')) {
11822
11835
  if (proxy.parent.editorMode === 'HTML' && isNullOrUndefined(closest(
11823
- // eslint-disable-next-line
11824
- this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
11836
+ // eslint-disable-next-line
11837
+ this.selection.range.startContainer.parentNode, '[id=' + "'" + proxy.contentModule.getPanel().id + "'" + ']'))) {
11825
11838
  proxy.contentModule.getEditPanel().focus();
11826
11839
  var range = proxy.parent.formatter.editorManager.nodeSelection.getRange(proxy.contentModule.getDocument());
11827
11840
  this.selection = proxy.parent.formatter.editorManager.nodeSelection.save(range, proxy.contentModule.getDocument());
@@ -12090,7 +12103,7 @@ var keyCode = {
12090
12103
  * @hidden
12091
12104
  * @deprecated
12092
12105
  */
12093
- var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
12106
+ var KeyboardEvents = /** @class */ (function (_super) {
12094
12107
  __extends(KeyboardEvents, _super);
12095
12108
  /**
12096
12109
  * Initializes the KeyboardEvents
@@ -12236,7 +12249,7 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
12236
12249
  * @hidden
12237
12250
  * @deprecated
12238
12251
  */
12239
- var ViewSource = /** @__PURE__ @class */ (function () {
12252
+ var ViewSource = /** @class */ (function () {
12240
12253
  /**
12241
12254
  * Constructor for view source module
12242
12255
  *
@@ -12475,7 +12488,7 @@ var ViewSource = /** @__PURE__ @class */ (function () {
12475
12488
  /**
12476
12489
  * `Table` module is used to handle table actions.
12477
12490
  */
12478
- var Table = /** @__PURE__ @class */ (function () {
12491
+ var Table = /** @class */ (function () {
12479
12492
  function Table(parent, serviceLocator) {
12480
12493
  this.ensureInsideTableList = true;
12481
12494
  this.pageX = null;
@@ -13061,7 +13074,7 @@ var Table = /** @__PURE__ @class */ (function () {
13061
13074
  var eventArgs = e.args;
13062
13075
  if (this.previousTableElement !== ele && !isNullOrUndefined(this.previousTableElement)
13063
13076
  && !eventArgs.shiftKey && (eventArgs.keyCode === 39 || eventArgs.keyCode === 37 ||
13064
- eventArgs.keyCode === 38 || eventArgs.keyCode === 40)) {
13077
+ eventArgs.keyCode === 38 || eventArgs.keyCode === 40)) {
13065
13078
  removeClassWithAttr([this.previousTableElement], CLS_TABLE_SEL);
13066
13079
  this.removeTableSelection();
13067
13080
  }
@@ -13326,7 +13339,7 @@ var Table = /** @__PURE__ @class */ (function () {
13326
13339
  var ismacRightClick = /Version\/\d+\.\d+.*Safari/.test(Browser.userAgent) && !/Chrome|Edg|Firefox/.test(Browser.userAgent) && args.which === 3;
13327
13340
  if (target && target.nodeName !== 'A' && isAnchorEle.nodeName !== 'A' && target.nodeName !== 'IMG' && target.nodeName !== 'VIDEO' && !target.classList.contains(CLS_CLICKELEM) &&
13328
13341
  target.nodeName !== 'AUDIO' && (startNode === endNode || ismacRightClick) && (target.nodeName === 'TD' || target.nodeName === 'TH' ||
13329
- target.nodeName === 'TABLE' || (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable)))
13342
+ target.nodeName === 'TABLE' || (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable)))
13330
13343
  && !(range.startContainer.nodeType === 3 && !(range.collapsed || ismacRightClick)) &&
13331
13344
  currentTime - this.resizeEndTime > 100 && !(ismacRightClick && (range.collapsed && range.startOffset !== 0)) && !(ismacRightClick && range.endContainer.nodeName === '#text')) {
13332
13345
  var range_1 = this.parent.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
@@ -13438,7 +13451,7 @@ var Table = /** @__PURE__ @class */ (function () {
13438
13451
  var selection = proxy.parent.formatter.editorManager.nodeSelection.get(proxy.contentModule.getDocument());
13439
13452
  if (!isNullOrUndefined(selection) && !isNullOrUndefined(selection.anchorNode) &&
13440
13453
  selection.anchorNode.nodeType === Node.ELEMENT_NODE && (selection.anchorNode.tagName === 'TD'
13441
- || selection.anchorNode.tagName === 'TH')) {
13454
+ || selection.anchorNode.tagName === 'TH')) {
13442
13455
  proxy.curTable = closest(selection.anchorNode, 'table');
13443
13456
  proxy.activeCell = selection.anchorNode;
13444
13457
  }
@@ -13795,7 +13808,7 @@ var Table = /** @__PURE__ @class */ (function () {
13795
13808
  this.helper.classList.add('e-column-helper');
13796
13809
  this.helper.style.cssText = 'height: ' + getComputedStyle(this.curTable).height + '; top: ' +
13797
13810
  pos.top + 'px; left:' + ((pos.left + this.calcPos(this.columnEle).left) +
13798
- (this.currentColumnResize === 'last' ? this.columnEle.offsetWidth : 0) - 1) + 'px;';
13811
+ (this.currentColumnResize === 'last' ? this.columnEle.offsetWidth : 0) - 1) + 'px;';
13799
13812
  }
13800
13813
  else {
13801
13814
  this.helper.classList.add('e-row-helper');
@@ -14339,15 +14352,15 @@ var Table = /** @__PURE__ @class */ (function () {
14339
14352
  this.editdlgObj.setProperties({
14340
14353
  height: 'initial', width: '290px', content: editContent, header: editHeader,
14341
14354
  buttons: [{
14342
- click: this.applyProperties.bind(this, args),
14343
- buttonModel: { content: update, cssClass: 'e-flat e-size-update' + this.parent.getCssClass(true), isPrimary: true }
14355
+ click: this.applyProperties.bind(this, args),
14356
+ buttonModel: { content: update, cssClass: 'e-flat e-size-update' + this.parent.getCssClass(true), isPrimary: true }
14357
+ },
14358
+ {
14359
+ click: function (e) {
14360
+ _this.cancelDialog(e);
14344
14361
  },
14345
- {
14346
- click: function (e) {
14347
- _this.cancelDialog(e);
14348
- },
14349
- buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: cancel }
14350
- }],
14362
+ buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: cancel }
14363
+ }],
14351
14364
  cssClass: this.editdlgObj.cssClass + ' e-rte-edit-table-prop-dialog'
14352
14365
  });
14353
14366
  this.editdlgObj.element.style.maxHeight = 'none';
@@ -14369,15 +14382,15 @@ var Table = /** @__PURE__ @class */ (function () {
14369
14382
  proxy.editdlgObj.setProperties({
14370
14383
  height: 'initial', width: '290px', content: dlgContent,
14371
14384
  buttons: [{
14372
- click: proxy.customTable.bind(this, args),
14373
- buttonModel: { content: insert, cssClass: 'e-flat e-insert-table' + ' ' + proxy.parent.cssClass, isPrimary: true }
14385
+ click: proxy.customTable.bind(this, args),
14386
+ buttonModel: { content: insert, cssClass: 'e-flat e-insert-table' + ' ' + proxy.parent.cssClass, isPrimary: true }
14387
+ },
14388
+ {
14389
+ click: function (e) {
14390
+ proxy.cancelDialog(e);
14374
14391
  },
14375
- {
14376
- click: function (e) {
14377
- proxy.cancelDialog(e);
14378
- },
14379
- buttonModel: { cssClass: 'e-flat e-cancel' + ' ' + proxy.parent.cssClass, content: cancel }
14380
- }]
14392
+ buttonModel: { cssClass: 'e-flat e-cancel' + ' ' + proxy.parent.cssClass, content: cancel }
14393
+ }]
14381
14394
  });
14382
14395
  if (!isNullOrUndefined(proxy.parent.cssClass)) {
14383
14396
  proxy.editdlgObj.setProperties({ cssClass: proxy.parent.cssClass });
@@ -14450,14 +14463,14 @@ var Table = /** @__PURE__ @class */ (function () {
14450
14463
  position: { X: 'center', Y: (Browser.isDevice) ? 'center' : 'top' },
14451
14464
  isModal: Browser.isDevice,
14452
14465
  buttons: [{
14453
- buttonModel: { content: insert, cssClass: 'e-flat e-insert-table' + this.parent.getCssClass(true), isPrimary: true }
14466
+ buttonModel: { content: insert, cssClass: 'e-flat e-insert-table' + this.parent.getCssClass(true), isPrimary: true }
14467
+ },
14468
+ {
14469
+ click: function (e) {
14470
+ _this.cancelDialog(e);
14454
14471
  },
14455
- {
14456
- click: function (e) {
14457
- _this.cancelDialog(e);
14458
- },
14459
- buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: cancel }
14460
- }],
14472
+ buttonModel: { cssClass: 'e-flat e-cancel' + this.parent.getCssClass(true), content: cancel }
14473
+ }],
14461
14474
  target: (Browser.isDevice) ? document.body : this.parent.element,
14462
14475
  animationSettings: { effect: 'None' },
14463
14476
  close: function (event) {
@@ -14668,7 +14681,7 @@ var Table = /** @__PURE__ @class */ (function () {
14668
14681
  /**
14669
14682
  * Dialog Renderer
14670
14683
  */
14671
- var DialogRenderer = /** @__PURE__ @class */ (function () {
14684
+ var DialogRenderer = /** @class */ (function () {
14672
14685
  function DialogRenderer(parent) {
14673
14686
  this.parent = parent;
14674
14687
  this.addEventListener();
@@ -14809,7 +14822,7 @@ var IFRAMEHEADER = "\n <!DOCTYPE html> \n <html>\n <head>\n
14809
14822
  * @hidden
14810
14823
  * @deprecated
14811
14824
  */
14812
- var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
14825
+ var IframeContentRender = /** @class */ (function (_super) {
14813
14826
  __extends$1(IframeContentRender, _super);
14814
14827
  function IframeContentRender() {
14815
14828
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14917,7 +14930,7 @@ var IframeContentRender = /** @__PURE__ @class */ (function (_super) {
14917
14930
  * @hidden
14918
14931
  * @deprecated
14919
14932
  */
14920
- var MarkdownRender = /** @__PURE__ @class */ (function () {
14933
+ var MarkdownRender = /** @class */ (function () {
14921
14934
  /**
14922
14935
  * Constructor for content renderer module
14923
14936
  *
@@ -15003,7 +15016,7 @@ var MarkdownRender = /** @__PURE__ @class */ (function () {
15003
15016
  * @hidden
15004
15017
  * @deprecated
15005
15018
  */
15006
- var PopupRenderer = /** @__PURE__ @class */ (function () {
15019
+ var PopupRenderer = /** @class */ (function () {
15007
15020
  /**
15008
15021
  * Constructor for popup renderer module
15009
15022
  *
@@ -15091,7 +15104,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
15091
15104
  /**
15092
15105
  * Configures the slash menu settings of the RichTextEditor.
15093
15106
  */
15094
- var SlashMenuSettings = /** @__PURE__ @class */ (function (_super) {
15107
+ var SlashMenuSettings = /** @class */ (function (_super) {
15095
15108
  __extends$2(SlashMenuSettings, _super);
15096
15109
  function SlashMenuSettings() {
15097
15110
  return _super !== null && _super.apply(this, arguments) || this;
@@ -15211,7 +15224,7 @@ var injectibleSlashMenuDataModel = [
15211
15224
  }
15212
15225
  ];
15213
15226
 
15214
- var SlashMenu = /** @__PURE__ @class */ (function () {
15227
+ var SlashMenu = /** @class */ (function () {
15215
15228
  function SlashMenu(options, serviceLocator) {
15216
15229
  this.parent = options;
15217
15230
  this.currentDocument = this.parent.element.ownerDocument;
@@ -15421,7 +15434,7 @@ var SlashMenu = /** @__PURE__ @class */ (function () {
15421
15434
  /**
15422
15435
  * `Toolbar` module is used to handle Toolbar actions.
15423
15436
  */
15424
- var BaseToolbar = /** @__PURE__ @class */ (function () {
15437
+ var BaseToolbar = /** @class */ (function () {
15425
15438
  function BaseToolbar(parent, serviceLocator) {
15426
15439
  this.tools = {};
15427
15440
  this.parent = parent;
@@ -15659,7 +15672,7 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
15659
15672
  /**
15660
15673
  * `Toolbar` module is used to handle Toolbar actions.
15661
15674
  */
15662
- var DropDownButtons = /** @__PURE__ @class */ (function () {
15675
+ var DropDownButtons = /** @class */ (function () {
15663
15676
  function DropDownButtons(parent, serviceLocator) {
15664
15677
  this.parent = parent;
15665
15678
  this.locator = serviceLocator;
@@ -16194,7 +16207,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
16194
16207
  /**
16195
16208
  * `ToolbarAction` module is used to toolbar click action
16196
16209
  */
16197
- var ToolbarAction = /** @__PURE__ @class */ (function () {
16210
+ var ToolbarAction = /** @class */ (function () {
16198
16211
  function ToolbarAction(parent) {
16199
16212
  this.parent = parent;
16200
16213
  this.addEventListener();
@@ -16236,7 +16249,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
16236
16249
  this.parent.notify(selectionRestore, {});
16237
16250
  if (!(document.body.contains(document.body.querySelector('.e-rte-quick-toolbar'))
16238
16251
  && e.item && (e.item.command === 'Images' || e.item.command === 'Audios' || e.item.command === 'Videos' ||
16239
- e.item.command === 'VideoLayoutOption' || e.item.command === 'Display' || e.item.command === 'Table'))) {
16252
+ e.item.command === 'VideoLayoutOption' || e.item.command === 'Display' || e.item.command === 'Table'))) {
16240
16253
  var value = e.item.controlParent && this.parent.quickToolbarModule && this.parent.quickToolbarModule.tableQTBar
16241
16254
  && this.parent.quickToolbarModule.tableQTBar.element.contains(e.item.controlParent.element) ? 'Table' : null;
16242
16255
  if (e.item.command === 'Lists') {
@@ -16266,7 +16279,7 @@ var ToolbarAction = /** @__PURE__ @class */ (function () {
16266
16279
  /**
16267
16280
  * `Color Picker` module is used to handle ColorPicker actions.
16268
16281
  */
16269
- var ColorPickerInput = /** @__PURE__ @class */ (function () {
16282
+ var ColorPickerInput = /** @class */ (function () {
16270
16283
  function ColorPickerInput(parent, serviceLocator) {
16271
16284
  this.tools = {};
16272
16285
  this.parent = parent;
@@ -16521,7 +16534,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
16521
16534
  /**
16522
16535
  * `Toolbar` module is used to handle Toolbar actions.
16523
16536
  */
16524
- var Toolbar = /** @__PURE__ @class */ (function () {
16537
+ var Toolbar = /** @class */ (function () {
16525
16538
  function Toolbar(parent, serviceLocator) {
16526
16539
  this.tools = {};
16527
16540
  this.parent = parent;
@@ -17143,7 +17156,7 @@ var Toolbar = /** @__PURE__ @class */ (function () {
17143
17156
  /**
17144
17157
  * `Quick toolbar` module is used to handle Quick toolbar actions.
17145
17158
  */
17146
- var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
17159
+ var BaseQuickToolbar = /** @class */ (function () {
17147
17160
  function BaseQuickToolbar(parent, locator) {
17148
17161
  this.parent = parent;
17149
17162
  this.locator = locator;
@@ -17364,8 +17377,10 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
17364
17377
  */
17365
17378
  BaseQuickToolbar.prototype.showPopup = function (x, y, target, type) {
17366
17379
  var _this = this;
17367
- var eventArgs = { popup: this.popupObj, cancel: false, targetElement: target,
17368
- positionX: x, positionY: y };
17380
+ var eventArgs = {
17381
+ popup: this.popupObj, cancel: false, targetElement: target,
17382
+ positionX: x, positionY: y
17383
+ };
17369
17384
  this.parent.trigger(beforeQuickToolbarOpen, eventArgs, function (beforeQuickToolbarArgs) {
17370
17385
  if (!beforeQuickToolbarArgs.cancel) {
17371
17386
  var editPanelTop = void 0;
@@ -17666,7 +17681,7 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
17666
17681
  /**
17667
17682
  * `Quick toolbar` module is used to handle Quick toolbar actions.
17668
17683
  */
17669
- var QuickToolbar = /** @__PURE__ @class */ (function () {
17684
+ var QuickToolbar = /** @class */ (function () {
17670
17685
  function QuickToolbar(parent, locator) {
17671
17686
  this.debounceTimeout = 1000;
17672
17687
  this.parent = parent;
@@ -18278,7 +18293,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
18278
18293
  /**
18279
18294
  * `Count` module is used to handle Count actions.
18280
18295
  */
18281
- var Count = /** @__PURE__ @class */ (function () {
18296
+ var Count = /** @class */ (function () {
18282
18297
  function Count(parent, serviceLocator) {
18283
18298
  this.parent = parent;
18284
18299
  this.locator = serviceLocator;
@@ -18422,7 +18437,7 @@ var Count = /** @__PURE__ @class */ (function () {
18422
18437
  * @hidden
18423
18438
  * @deprecated
18424
18439
  */
18425
- var MarkdownSelection = /** @__PURE__ @class */ (function () {
18440
+ var MarkdownSelection = /** @class */ (function () {
18426
18441
  function MarkdownSelection() {
18427
18442
  }
18428
18443
  /**
@@ -18637,7 +18652,7 @@ var MarkdownSelection = /** @__PURE__ @class */ (function () {
18637
18652
  /**
18638
18653
  * MarkdownToolbarStatus module for refresh the toolbar status
18639
18654
  */
18640
- var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
18655
+ var MarkdownToolbarStatus = /** @class */ (function () {
18641
18656
  function MarkdownToolbarStatus(parent) {
18642
18657
  this.toolbarStatus = this.prevToolbarStatus = getDefaultMDTbStatus();
18643
18658
  this.selection = new MarkdownSelection();
@@ -18760,7 +18775,7 @@ var MarkdownToolbarStatus = /** @__PURE__ @class */ (function () {
18760
18775
  /**
18761
18776
  * `ExecCommandCallBack` module is used to run the editor manager command
18762
18777
  */
18763
- var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
18778
+ var ExecCommandCallBack = /** @class */ (function () {
18764
18779
  function ExecCommandCallBack(parent) {
18765
18780
  this.parent = parent;
18766
18781
  this.addEventListener();
@@ -18790,7 +18805,7 @@ var ExecCommandCallBack = /** @__PURE__ @class */ (function () {
18790
18805
  * @hidden
18791
18806
  * @deprecated
18792
18807
  */
18793
- var Formatter = /** @__PURE__ @class */ (function () {
18808
+ var Formatter = /** @class */ (function () {
18794
18809
  function Formatter() {
18795
18810
  }
18796
18811
  /**
@@ -19105,7 +19120,7 @@ var INSERT_TEXT_COMMAND = 'insert-text';
19105
19120
  *
19106
19121
  * @hidden
19107
19122
  */
19108
- var MDLists = /** @__PURE__ @class */ (function () {
19123
+ var MDLists = /** @class */ (function () {
19109
19124
  /**
19110
19125
  * Constructor for creating the Lists plugin
19111
19126
  *
@@ -19226,9 +19241,9 @@ var MDLists = /** @__PURE__ @class */ (function () {
19226
19241
  }
19227
19242
  this.restore(textArea, start, end + addedLength, event);
19228
19243
  };
19229
- MDLists.prototype.changeTextAreaValue = function (splitText, prefixValue, event,
19230
- // eslint-disable-next-line
19231
- textArea, parents, k, end) {
19244
+ MDLists.prototype.changeTextAreaValue = function (splitText, prefixValue, event,
19245
+ // eslint-disable-next-line
19246
+ textArea, parents, k, end) {
19232
19247
  var prefix = prefixValue;
19233
19248
  splitText.splice(0, 1);
19234
19249
  var textAreaLength = this.selection.getAllParents(textArea.value).length;
@@ -19585,7 +19600,7 @@ var MDLists = /** @__PURE__ @class */ (function () {
19585
19600
  * @hidden
19586
19601
  * @deprecated
19587
19602
  */
19588
- var MDFormats = /** @__PURE__ @class */ (function () {
19603
+ var MDFormats = /** @class */ (function () {
19589
19604
  /**
19590
19605
  * Constructor for creating the Formats plugin
19591
19606
  *
@@ -19820,7 +19835,7 @@ var MDFormats = /** @__PURE__ @class */ (function () {
19820
19835
  * @hidden
19821
19836
  * @deprecated
19822
19837
  */
19823
- var MDSelectionFormats = /** @__PURE__ @class */ (function () {
19838
+ var MDSelectionFormats = /** @class */ (function () {
19824
19839
  function MDSelectionFormats(parent) {
19825
19840
  extend(this, this, parent, true);
19826
19841
  this.selection = this.parent.markdownSelection;
@@ -20157,7 +20172,7 @@ var MDSelectionFormats = /** @__PURE__ @class */ (function () {
20157
20172
  /**
20158
20173
  * `Undo` module is used to handle undo actions.
20159
20174
  */
20160
- var UndoRedoCommands = /** @__PURE__ @class */ (function () {
20175
+ var UndoRedoCommands = /** @class */ (function () {
20161
20176
  function UndoRedoCommands(parent, options) {
20162
20177
  this.undoRedoStack = [];
20163
20178
  this.parent = parent;
@@ -20354,7 +20369,7 @@ var UndoRedoCommands = /** @__PURE__ @class */ (function () {
20354
20369
  * @hidden
20355
20370
  * @deprecated
20356
20371
  */
20357
- var MDLink = /** @__PURE__ @class */ (function () {
20372
+ var MDLink = /** @class */ (function () {
20358
20373
  /**
20359
20374
  * Constructor for creating the Formats plugin
20360
20375
  *
@@ -20413,7 +20428,7 @@ var MDLink = /** @__PURE__ @class */ (function () {
20413
20428
  * @hidden
20414
20429
  * @deprecated
20415
20430
  */
20416
- var MDTable = /** @__PURE__ @class */ (function () {
20431
+ var MDTable = /** @class */ (function () {
20417
20432
  /**
20418
20433
  * Constructor for creating the Formats plugin
20419
20434
  *
@@ -20574,9 +20589,9 @@ var MDTable = /** @__PURE__ @class */ (function () {
20574
20589
  return this.element.value.substr(0, this.element.selectionStart) + text +
20575
20590
  this.element.value.substr(this.element.selectionEnd, this.element.value.length);
20576
20591
  };
20577
- MDTable.prototype.checkValid = function (start, end, text, textAreaInitial,
20578
- // eslint-disable-next-line
20579
- e, formatSplit, parentText, syntaxArr) {
20592
+ MDTable.prototype.checkValid = function (start, end, text, textAreaInitial,
20593
+ // eslint-disable-next-line
20594
+ e, formatSplit, parentText, syntaxArr) {
20580
20595
  if (this.ensureStartValid(parentText[0].start, parentText) &&
20581
20596
  this.ensureEndValid(parentText[parentText.length - 1].start, formatSplit[0].length)) {
20582
20597
  if (start === parentText[0].start) {
@@ -20643,7 +20658,7 @@ var MDTable = /** @__PURE__ @class */ (function () {
20643
20658
  * @hidden
20644
20659
  * @deprecated
20645
20660
  */
20646
- var ClearFormat = /** @__PURE__ @class */ (function () {
20661
+ var ClearFormat = /** @class */ (function () {
20647
20662
  /**
20648
20663
  * Constructor for creating the clear format plugin
20649
20664
  *
@@ -20767,7 +20782,7 @@ var ClearFormat = /** @__PURE__ @class */ (function () {
20767
20782
  * @hidden
20768
20783
  * @deprecated
20769
20784
  */
20770
- var MDInsertText = /** @__PURE__ @class */ (function () {
20785
+ var MDInsertText = /** @class */ (function () {
20771
20786
  /**
20772
20787
  * Constructor for creating the insert text plugin
20773
20788
  *
@@ -20825,7 +20840,7 @@ var MDInsertText = /** @__PURE__ @class */ (function () {
20825
20840
  * @hidden
20826
20841
  * @deprecated
20827
20842
  */
20828
- var MarkdownParser = /** @__PURE__ @class */ (function () {
20843
+ var MarkdownParser = /** @class */ (function () {
20829
20844
  /**
20830
20845
  * Constructor for creating the component
20831
20846
  *
@@ -20918,8 +20933,10 @@ var MarkdownParser = /** @__PURE__ @class */ (function () {
20918
20933
  this.observer.notify(CLEAR_COMMAND, { subCommand: value, event: event, callBack: callBack });
20919
20934
  break;
20920
20935
  case 'inserttext':
20921
- this.observer.notify(INSERT_TEXT_COMMAND, { subCommand: value, event: event, callBack: callBack,
20922
- value: { text: exeValue } });
20936
+ this.observer.notify(INSERT_TEXT_COMMAND, {
20937
+ subCommand: value, event: event, callBack: callBack,
20938
+ value: { text: exeValue }
20939
+ });
20923
20940
  break;
20924
20941
  }
20925
20942
  };
@@ -20949,7 +20966,7 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
20949
20966
  * @hidden
20950
20967
  * @deprecated
20951
20968
  */
20952
- var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
20969
+ var MarkdownFormatter = /** @class */ (function (_super) {
20953
20970
  __extends$3(MarkdownFormatter, _super);
20954
20971
  function MarkdownFormatter(options) {
20955
20972
  var _this = _super.call(this) || this;
@@ -20993,7 +21010,7 @@ var MarkdownFormatter = /** @__PURE__ @class */ (function (_super) {
20993
21010
  /**
20994
21011
  * `MarkdownEditor` module is used to markdown editor
20995
21012
  */
20996
- var MarkdownEditor = /** @__PURE__ @class */ (function () {
21013
+ var MarkdownEditor = /** @class */ (function () {
20997
21014
  function MarkdownEditor(parent, serviceLocator) {
20998
21015
  this.parent = parent;
20999
21016
  this.locator = serviceLocator;
@@ -21132,8 +21149,10 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
21132
21149
  // On property code change here
21133
21150
  if (!isNullOrUndefined(e.newProp.formatter)) {
21134
21151
  var editElement = this.contentRenderer.getEditPanel();
21135
- var option = { undoRedoSteps: this.parent.undoRedoSteps,
21136
- undoRedoTimer: this.parent.undoRedoTimer };
21152
+ var option = {
21153
+ undoRedoSteps: this.parent.undoRedoSteps,
21154
+ undoRedoTimer: this.parent.undoRedoTimer
21155
+ };
21137
21156
  this.parent.formatter.updateFormatter(editElement, this.contentRenderer.getDocument(), option);
21138
21157
  }
21139
21158
  };
@@ -21172,7 +21191,7 @@ var MarkdownEditor = /** @__PURE__ @class */ (function () {
21172
21191
  *
21173
21192
  * @hidden
21174
21193
  */
21175
- var InsertMethods = /** @__PURE__ @class */ (function () {
21194
+ var InsertMethods = /** @class */ (function () {
21176
21195
  function InsertMethods() {
21177
21196
  }
21178
21197
  /**
@@ -21249,7 +21268,7 @@ var InsertMethods = /** @__PURE__ @class */ (function () {
21249
21268
  * @hidden
21250
21269
  * @deprecated
21251
21270
  */
21252
- var NodeCutter = /** @__PURE__ @class */ (function () {
21271
+ var NodeCutter = /** @class */ (function () {
21253
21272
  function NodeCutter() {
21254
21273
  this.enterAction = 'P';
21255
21274
  this.position = -1;
@@ -21466,7 +21485,7 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
21466
21485
  * @hidden
21467
21486
  * @deprecated
21468
21487
  */
21469
- var InsertHtml = /** @__PURE__ @class */ (function () {
21488
+ var InsertHtml = /** @class */ (function () {
21470
21489
  function InsertHtml() {
21471
21490
  }
21472
21491
  InsertHtml.Insert = function (docElement, insertNode, editNode, isExternal, enterAction) {
@@ -22287,7 +22306,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
22287
22306
  /**
22288
22307
  * Utilities to handle the table cell selection
22289
22308
  */
22290
- var TableSelection = /** @__PURE__ @class */ (function () {
22309
+ var TableSelection = /** @class */ (function () {
22291
22310
  function TableSelection(root, currentDocument) {
22292
22311
  this.BLOCK_TAGS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'li', 'pre', 'td', 'th', 'div', 'hr', 'section', 'figure'];
22293
22312
  this.BASIC_FORMATS = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
@@ -22522,7 +22541,7 @@ var markerClassName = {
22522
22541
  * @hidden
22523
22542
  * @deprecated
22524
22543
  */
22525
- var DOMNode = /** @__PURE__ @class */ (function () {
22544
+ var DOMNode = /** @class */ (function () {
22526
22545
  /**
22527
22546
  * Constructor for creating the DOMNode plugin
22528
22547
  *
@@ -23354,8 +23373,8 @@ var DOMNode = /** @__PURE__ @class */ (function () {
23354
23373
  }
23355
23374
  else if (node && node.nodeType !== 8 && (node.tagName === 'BR' || (node.nodeType === Node.TEXT_NODE &&
23356
23375
  node.textContent.trim() !== '') || (node.nodeType !== Node.TEXT_NODE &&
23357
- (node.classList.contains(markerClassName.startSelection) ||
23358
- node.classList.contains(markerClassName.endSelection)))) &&
23376
+ (node.classList.contains(markerClassName.startSelection) ||
23377
+ node.classList.contains(markerClassName.endSelection)))) &&
23359
23378
  IGNORE_BLOCK_TAGS.indexOf(node.parentNode.tagName.toLocaleLowerCase()) >= 0) {
23360
23379
  node = this_1.createTempNode(node);
23361
23380
  }
@@ -23554,7 +23573,7 @@ var DOMNode = /** @__PURE__ @class */ (function () {
23554
23573
  * @hidden
23555
23574
  * @deprecated
23556
23575
  */
23557
- var Lists = /** @__PURE__ @class */ (function () {
23576
+ var Lists = /** @class */ (function () {
23558
23577
  /**
23559
23578
  * Constructor for creating the Lists plugin
23560
23579
  *
@@ -24126,7 +24145,7 @@ var Lists = /** @__PURE__ @class */ (function () {
24126
24145
  if (range.startContainer === range.endContainer && range.startContainer === this.parent.editableElement &&
24127
24146
  range.startOffset === range.endOffset && range.startOffset === 0 &&
24128
24147
  this.parent.editableElement.textContent.length === 0 && (this.parent.editableElement.childNodes[0].nodeName !== 'TABLE' &&
24129
- this.parent.editableElement.childNodes[0].nodeName !== 'IMG')) {
24148
+ this.parent.editableElement.childNodes[0].nodeName !== 'IMG')) {
24130
24149
  var focusNode = range.startContainer.childNodes[0];
24131
24150
  this.parent.nodeSelection.setSelectionText(this.parent.currentDocument, focusNode, focusNode, 0, 0);
24132
24151
  range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
@@ -24460,11 +24479,11 @@ var Lists = /** @__PURE__ @class */ (function () {
24460
24479
  }
24461
24480
  if (element.parentNode.insertBefore(this.closeTag(parentNode.tagName), element),
24462
24481
  'LI' === parentNode.parentNode.tagName || 'OL' === parentNode.parentNode.tagName ||
24463
- 'UL' === parentNode.parentNode.tagName) {
24482
+ 'UL' === parentNode.parentNode.tagName) {
24464
24483
  element.parentNode.insertBefore(this.closeTag('LI'), element);
24465
24484
  }
24466
24485
  else {
24467
- if ( 0 === element.querySelectorAll(BLOCK_TAGS.join(', ')).length) {
24486
+ if (0 === element.querySelectorAll(BLOCK_TAGS.join(', ')).length) {
24468
24487
  var wrapperclass = isNullOrUndefined(className) ? ' class="e-rte-wrap-inner"' :
24469
24488
  ' class="' + className + ' e-rte-wrap-inner"';
24470
24489
  var parentElement = parentNode;
@@ -24580,7 +24599,7 @@ var Lists = /** @__PURE__ @class */ (function () {
24580
24599
  * @hidden
24581
24600
  * @deprecated
24582
24601
  */
24583
- var Formats = /** @__PURE__ @class */ (function () {
24602
+ var Formats = /** @class */ (function () {
24584
24603
  /**
24585
24604
  * Constructor for creating the Formats plugin
24586
24605
  *
@@ -24676,8 +24695,8 @@ var Formats = /** @__PURE__ @class */ (function () {
24676
24695
  var startParent = this.getBlockParent(range.startContainer, blockquoteEle);
24677
24696
  if ((startParent.textContent.charCodeAt(0) === 8203 &&
24678
24697
  startParent.textContent.length === 1) || (startParent.textContent.length === 0 &&
24679
- startParent.querySelectorAll('img').length === 0 &&
24680
- startParent.querySelectorAll('table').length === 0)) {
24698
+ startParent.querySelectorAll('img').length === 0 &&
24699
+ startParent.querySelectorAll('table').length === 0)) {
24681
24700
  e.event.preventDefault();
24682
24701
  if (isNullOrUndefined(startParent.nextElementSibling)) {
24683
24702
  this.paraFocus(startParent.parentElement === this.parent.editableElement ?
@@ -25114,7 +25133,7 @@ var Formats = /** @__PURE__ @class */ (function () {
25114
25133
  /**
25115
25134
  * DOMTreeMethods - A `TreeWalkder` API implementation to get the block and text nodes in the selection.
25116
25135
  */
25117
- var DOMMethods = /** @__PURE__ @class */ (function () {
25136
+ var DOMMethods = /** @class */ (function () {
25118
25137
  function DOMMethods(editElement) {
25119
25138
  this.directRangeElems = ['IMG', 'TABLE', 'AUDIO', 'VIDEO', 'HR'];
25120
25139
  this.BLOCK_TAGS = ['address', 'article', 'aside', 'audio', 'blockquote',
@@ -25297,13 +25316,13 @@ var DOMMethods = /** @__PURE__ @class */ (function () {
25297
25316
  DOMMethods.prototype.getParentBlockNode = function (node) {
25298
25317
  var _this = this;
25299
25318
  var treeWalker = this.currentDocument.createTreeWalker(this.editableElement, // root
25300
- NodeFilter.SHOW_ELEMENT, // whatToShow
25301
- {
25302
- acceptNode: function (currentNode) {
25303
- // Check if the node is a block element
25304
- return _this.isBlockNode(currentNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
25305
- }
25306
- });
25319
+ NodeFilter.SHOW_ELEMENT, // whatToShow
25320
+ {
25321
+ acceptNode: function (currentNode) {
25322
+ // Check if the node is a block element
25323
+ return _this.isBlockNode(currentNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
25324
+ }
25325
+ });
25307
25326
  treeWalker.currentNode = node;
25308
25327
  var blockParent = treeWalker.parentNode();
25309
25328
  return blockParent;
@@ -25344,7 +25363,7 @@ var DOMMethods = /** @__PURE__ @class */ (function () {
25344
25363
  * @hidden
25345
25364
  * @deprecated
25346
25365
  */
25347
- var LinkCommand = /** @__PURE__ @class */ (function () {
25366
+ var LinkCommand = /** @class */ (function () {
25348
25367
  /**
25349
25368
  * Constructor for creating the Formats plugin
25350
25369
  *
@@ -25603,9 +25622,9 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
25603
25622
  }
25604
25623
  else {
25605
25624
  this.parent.nodeSelection.setSelectionText(this.parent.currentDocument, appliedNodes[0], // Start Node
25606
- appliedNodes[appliedNodes.length - 1], // end Node
25607
- 0, // start offset
25608
- appliedNodes[appliedNodes.length - 1].textContent.length // end offset
25625
+ appliedNodes[appliedNodes.length - 1], // end Node
25626
+ 0, // start offset
25627
+ appliedNodes[appliedNodes.length - 1].textContent.length // end offset
25609
25628
  );
25610
25629
  }
25611
25630
  }
@@ -25761,7 +25780,7 @@ var LinkCommand = /** @__PURE__ @class */ (function () {
25761
25780
  * @hidden
25762
25781
  * @deprecated
25763
25782
  */
25764
- var Alignments = /** @__PURE__ @class */ (function () {
25783
+ var Alignments = /** @class */ (function () {
25765
25784
  /**
25766
25785
  * Constructor for creating the Formats plugin
25767
25786
  *
@@ -25876,7 +25895,7 @@ var Alignments = /** @__PURE__ @class */ (function () {
25876
25895
  * @hidden
25877
25896
  * @deprecated
25878
25897
  */
25879
- var Indents = /** @__PURE__ @class */ (function () {
25898
+ var Indents = /** @class */ (function () {
25880
25899
  /**
25881
25900
  * Constructor for creating the Formats plugin
25882
25901
  *
@@ -26023,7 +26042,7 @@ var CLASS_VIDEO_INLINE = 'e-video-inline';
26023
26042
  * @hidden
26024
26043
  * @deprecated
26025
26044
  */
26026
- var ImageCommand = /** @__PURE__ @class */ (function () {
26045
+ var ImageCommand = /** @class */ (function () {
26027
26046
  /**
26028
26047
  * Constructor for creating the Formats plugin
26029
26048
  *
@@ -26115,7 +26134,8 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
26115
26134
  }
26116
26135
  if (!isNullOrUndefined(e.selector) && e.selector === 'pasteCleanupModule') {
26117
26136
  if (!isNullOrUndefined(this.parent.currentDocument)) {
26118
- e.callBack({ requestType: 'Images',
26137
+ e.callBack({
26138
+ requestType: 'Images',
26119
26139
  editorMode: 'HTML',
26120
26140
  event: e.event,
26121
26141
  range: this.parent.nodeSelection.getRange(this.parent.currentDocument),
@@ -26428,7 +26448,7 @@ var ImageCommand = /** @__PURE__ @class */ (function () {
26428
26448
  * @hidden
26429
26449
  * @deprecated
26430
26450
  */
26431
- var AudioCommand = /** @__PURE__ @class */ (function () {
26451
+ var AudioCommand = /** @class */ (function () {
26432
26452
  /**
26433
26453
  * Constructor for creating the Audio plugin
26434
26454
  *
@@ -26581,7 +26601,7 @@ var AudioCommand = /** @__PURE__ @class */ (function () {
26581
26601
  * @hidden
26582
26602
  * @deprecated
26583
26603
  */
26584
- var VideoCommand = /** @__PURE__ @class */ (function () {
26604
+ var VideoCommand = /** @class */ (function () {
26585
26605
  /**
26586
26606
  * Constructor for creating the Video plugin
26587
26607
  *
@@ -26901,7 +26921,7 @@ var VideoCommand = /** @__PURE__ @class */ (function () {
26901
26921
  * @hidden
26902
26922
  * @deprecated
26903
26923
  */
26904
- var TableCommand = /** @__PURE__ @class */ (function () {
26924
+ var TableCommand = /** @class */ (function () {
26905
26925
  /**
26906
26926
  * Constructor for creating the Formats plugin
26907
26927
  *
@@ -27451,9 +27471,9 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27451
27471
  this.updateColSpanStyle(minMaxIndexes.startColumn, minMaxIndexes.endColumn, this.getCorrespondingColumns());
27452
27472
  e.item.selection.setSelectionText(this.parent.currentDocument, e.item.selection.range.startContainer, e.item.selection.range.startContainer, 0, 0);
27453
27473
  if (this.parent.nodeSelection && firstCell) {
27454
- this.parent.nodeSelection.setCursorPoint(this.parent.currentDocument,
27455
- // eslint-disable-next-line
27456
- firstCell, 0);
27474
+ this.parent.nodeSelection.setCursorPoint(this.parent.currentDocument,
27475
+ // eslint-disable-next-line
27476
+ firstCell, 0);
27457
27477
  }
27458
27478
  if (e.callBack) {
27459
27479
  e.callBack({
@@ -27521,7 +27541,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27521
27541
  if (!(min < rowValue && eleArray[rowValue][0] === eleArray[rowValue - 1][0])
27522
27542
  // eslint-disable-next-line no-cond-assign
27523
27543
  && eleArray[rowValue][0] && 1 < (index = Math.min(parseInt(eleArray[rowValue][0].getAttribute('rowspan'), 10) ||
27524
- 1, max - min + 1)) && eleArray[rowValue][0] === eleArray[rowValue + 1][0]) {
27544
+ 1, max - min + 1)) && eleArray[rowValue][0] === eleArray[rowValue + 1][0]) {
27525
27545
  for (count = index - 1, colIndex = 1; colIndex < eleArray[0].length; colIndex++) {
27526
27546
  if (eleArray[rowValue][colIndex] !== eleArray[rowValue][colIndex - 1]) {
27527
27547
  for (rowMin = rowValue; rowMin < rowValue + index; rowMin++) {
@@ -27556,7 +27576,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27556
27576
  spanCount = parseInt(elements[rowIndex][colIndex].getAttribute(attr), 10) || 1;
27557
27577
  if (min < rowIndex && elements[rowIndex][colIndex] === elements[rowIndex - 1][colIndex] ||
27558
27578
  firstIndex < colIndex && elements[rowIndex][colIndex] ===
27559
- elements[rowIndex][colIndex - 1] || 1 < (spanCount)) {
27579
+ elements[rowIndex][colIndex - 1] || 1 < (spanCount)) {
27560
27580
  if ((1 < spanCount - index)) {
27561
27581
  elements[rowIndex][colIndex].setAttribute(attr, (spanCount - index).toString());
27562
27582
  }
@@ -27626,9 +27646,9 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27626
27646
  for (avgRowIndex = activeCellIndex[0] + Math.ceil(activeCellRowSpan / 2),
27627
27647
  colIndex = 0 === activeCellIndex[1] ? activeCellIndex[1]
27628
27648
  : activeCellIndex[1] - 1; 0 <= colIndex && (correspondingCells[avgRowIndex][colIndex] ===
27629
- // eslint-disable-next-line max-len
27630
- correspondingCells[avgRowIndex][colIndex - 1] || 0 < avgRowIndex && correspondingCells[avgRowIndex][colIndex]
27631
- === correspondingCells[avgRowIndex - 1][colIndex]);) {
27649
+ // eslint-disable-next-line max-len
27650
+ correspondingCells[avgRowIndex][colIndex - 1] || 0 < avgRowIndex && correspondingCells[avgRowIndex][colIndex]
27651
+ === correspondingCells[avgRowIndex - 1][colIndex]);) {
27632
27652
  colIndex--;
27633
27653
  }
27634
27654
  if (colIndex === -1) {
@@ -27958,7 +27978,7 @@ var TableCommand = /** @__PURE__ @class */ (function () {
27958
27978
  };
27959
27979
  return TableCommand;
27960
27980
  }());
27961
- var MinMax = /** @__PURE__ @class */ (function () {
27981
+ var MinMax = /** @class */ (function () {
27962
27982
  function MinMax() {
27963
27983
  }
27964
27984
  return MinMax;
@@ -27967,7 +27987,7 @@ var MinMax = /** @__PURE__ @class */ (function () {
27967
27987
  /**
27968
27988
  * `Selection` module is used to handle RTE Selections.
27969
27989
  */
27970
- var SelectionCommands = /** @__PURE__ @class */ (function () {
27990
+ var SelectionCommands = /** @class */ (function () {
27971
27991
  function SelectionCommands() {
27972
27992
  }
27973
27993
  /**
@@ -28066,8 +28086,8 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
28066
28086
  else if (range.startContainer.nodeType === 3 && ((range.startContainer.parentElement.childElementCount > 0 &&
28067
28087
  range.startOffset > 0 && range.startContainer.parentElement.firstElementChild.tagName.toLowerCase() !== 'br') ||
28068
28088
  !isNullOrUndefined(currentFormatNode) && currentFormatNode ===
28069
- (range.startContainer.parentElement.closest(currentSelector)) &&
28070
- ((range.startContainer.parentElement.closest(currentSelector)).textContent.replace(new RegExp('\u200B', 'g'), '').trim().length !== 0))) {
28089
+ (range.startContainer.parentElement.closest(currentSelector)) &&
28090
+ ((range.startContainer.parentElement.closest(currentSelector)).textContent.replace(new RegExp('\u200B', 'g'), '').trim().length !== 0))) {
28071
28091
  isCollapsed = true;
28072
28092
  range = nodeCutter.GetCursorRange(docElement, range, range.startContainer);
28073
28093
  nodes.push(range.startContainer);
@@ -28395,9 +28415,9 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
28395
28415
  if (child[0] && !isFontStyle) {
28396
28416
  var nodeTraverse = child[index] ? child[index] : child[0];
28397
28417
  var textNode = nodeTraverse;
28398
- for (; nodeTraverse && nodeTraverse.parentElement && nodeTraverse.parentElement !== endNode;
28399
- // eslint-disable-next-line
28400
- nodeTraverse = nodeTraverse) {
28418
+ for (; nodeTraverse && nodeTraverse.parentElement && nodeTraverse.parentElement !== endNode;
28419
+ // eslint-disable-next-line
28420
+ nodeTraverse = nodeTraverse) {
28401
28421
  var nodeTraverseCondition = void 0;
28402
28422
  if (formatNode.nodeName === 'SPAN') {
28403
28423
  nodeTraverseCondition = nodeTraverse.parentElement.tagName.toLocaleLowerCase()
@@ -28490,7 +28510,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
28490
28510
  var isNestedListItem = false;
28491
28511
  if (!isNullOrUndefined(liElement) && liElement.childNodes) {
28492
28512
  for (var num_1 = 0; num_1 < liElement.childNodes.length; num_1++) {
28493
- if (liElement.childNodes[num_1].nodeName === ('OL' )) {
28513
+ if (liElement.childNodes[num_1].nodeName === ('OL')) {
28494
28514
  nestedListCount++;
28495
28515
  isNestedList = true;
28496
28516
  }
@@ -28516,7 +28536,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
28516
28536
  }
28517
28537
  if (isNestedListItem) {
28518
28538
  for (var num_3 = 0; num_3 < liElement.childNodes.length; num_3++) {
28519
- if (liElement.childNodes[num_3].nodeName === ('OL' )) {
28539
+ if (liElement.childNodes[num_3].nodeName === ('OL')) {
28520
28540
  liElement.childNodes[num_3].style.fontSize = 'initial';
28521
28541
  }
28522
28542
  }
@@ -29004,7 +29024,7 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
29004
29024
  * @hidden
29005
29025
  * @deprecated
29006
29026
  */
29007
- var SelectionBasedExec = /** @__PURE__ @class */ (function () {
29027
+ var SelectionBasedExec = /** @class */ (function () {
29008
29028
  /**
29009
29029
  * Constructor for creating the Formats plugin
29010
29030
  *
@@ -29062,7 +29082,7 @@ var SelectionBasedExec = /** @__PURE__ @class */ (function () {
29062
29082
  * @hidden
29063
29083
  * @deprecated
29064
29084
  */
29065
- var InsertHtmlExec = /** @__PURE__ @class */ (function () {
29085
+ var InsertHtmlExec = /** @class */ (function () {
29066
29086
  /**
29067
29087
  * Constructor for creating the Formats plugin
29068
29088
  *
@@ -29117,7 +29137,7 @@ var InsertHtmlExec = /** @__PURE__ @class */ (function () {
29117
29137
  /**
29118
29138
  * `Clear Format` module is used to handle Clear Format.
29119
29139
  */
29120
- var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29140
+ var ClearFormat$1 = /** @class */ (function () {
29121
29141
  function ClearFormat() {
29122
29142
  }
29123
29143
  /**
@@ -29321,7 +29341,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29321
29341
  }
29322
29342
  else if (this.BLOCK_TAGS.indexOf(childNodes[index2].nodeName.toLocaleLowerCase()) > -1 &&
29323
29343
  childNodes[index2].parentNode.nodeName.toLocaleLowerCase() ===
29324
- childNodes[index2].nodeName.toLocaleLowerCase()) {
29344
+ childNodes[index2].nodeName.toLocaleLowerCase()) {
29325
29345
  InsertMethods.unwrap(childNodes[index2]);
29326
29346
  }
29327
29347
  }
@@ -29332,9 +29352,9 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29332
29352
  }
29333
29353
  }
29334
29354
  };
29335
- ClearFormat.clearInlines = function (textNodes, nodes, range, nodeCutter,
29336
- // eslint-disable-next-line
29337
- endNode) {
29355
+ ClearFormat.clearInlines = function (textNodes, nodes, range, nodeCutter,
29356
+ // eslint-disable-next-line
29357
+ endNode) {
29338
29358
  for (var index = 0; index < textNodes.length; index++) {
29339
29359
  var currentInlineNode = textNodes[index];
29340
29360
  var currentNode = void 0;
@@ -29379,7 +29399,7 @@ var ClearFormat$1 = /** @__PURE__ @class */ (function () {
29379
29399
  * @hidden
29380
29400
  * @deprecated
29381
29401
  */
29382
- var ClearFormatExec = /** @__PURE__ @class */ (function () {
29402
+ var ClearFormatExec = /** @class */ (function () {
29383
29403
  /**
29384
29404
  * Constructor for creating the Formats plugin
29385
29405
  *
@@ -29433,7 +29453,7 @@ var ClearFormatExec = /** @__PURE__ @class */ (function () {
29433
29453
  /**
29434
29454
  * `Undo` module is used to handle undo actions.
29435
29455
  */
29436
- var UndoRedoManager = /** @__PURE__ @class */ (function () {
29456
+ var UndoRedoManager = /** @class */ (function () {
29437
29457
  function UndoRedoManager(parent, options) {
29438
29458
  this.undoRedoStack = [];
29439
29459
  this.parent = parent;
@@ -29699,7 +29719,7 @@ var UndoRedoManager = /** @__PURE__ @class */ (function () {
29699
29719
  * @hidden
29700
29720
  * @deprecated
29701
29721
  */
29702
- var MsWordPaste = /** @__PURE__ @class */ (function () {
29722
+ var MsWordPaste = /** @class */ (function () {
29703
29723
  function MsWordPaste(parent) {
29704
29724
  this.olData = [
29705
29725
  'decimal',
@@ -30078,8 +30098,8 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
30078
30098
  if (allElements[i].children.length === 0 && allElements[i].innerHTML === '&nbsp;' &&
30079
30099
  (allElements[i].innerHTML === '&nbsp;' && !allElements[i].closest('li')) &&
30080
30100
  !allElements[i].closest('td') && (allElements[i].nodeName !== 'SPAN' ||
30081
- allElements[i].nodeName === 'SPAN' && (isNullOrUndefined(allElements[i].previousElementSibling) &&
30082
- isNullOrUndefined(allElements[i].nextElementSibling)))) {
30101
+ allElements[i].nodeName === 'SPAN' && (isNullOrUndefined(allElements[i].previousElementSibling) &&
30102
+ isNullOrUndefined(allElements[i].nextElementSibling)))) {
30083
30103
  var detachableElement = this.findDetachElem(allElements[i]);
30084
30104
  var brElement = createElement('br');
30085
30105
  var hasNbsp = detachableElement.textContent.length > 0 && detachableElement.textContent.match(/\u00a0/g)
@@ -30830,7 +30850,7 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
30830
30850
  * @hidden
30831
30851
  * @deprecated
30832
30852
  */
30833
- var InsertTextExec = /** @__PURE__ @class */ (function () {
30853
+ var InsertTextExec = /** @class */ (function () {
30834
30854
  /**
30835
30855
  * Constructor for creating the InsertText plugin
30836
30856
  *
@@ -30869,7 +30889,7 @@ var InsertTextExec = /** @__PURE__ @class */ (function () {
30869
30889
  return InsertTextExec;
30870
30890
  }());
30871
30891
 
30872
- var EmojiPickerAction = /** @__PURE__ @class */ (function () {
30892
+ var EmojiPickerAction = /** @class */ (function () {
30873
30893
  function EmojiPickerAction(parent) {
30874
30894
  this.parent = parent;
30875
30895
  this.addEventListener();
@@ -30954,7 +30974,7 @@ var EmojiPickerAction = /** @__PURE__ @class */ (function () {
30954
30974
  return EmojiPickerAction;
30955
30975
  }());
30956
30976
 
30957
- var FormatPainterActions = /** @__PURE__ @class */ (function () {
30977
+ var FormatPainterActions = /** @class */ (function () {
30958
30978
  function FormatPainterActions(parent, options) {
30959
30979
  this.INVALID_TAGS = ['A', 'AUDIO', 'IMG', 'VIDEO', 'IFRAME'];
30960
30980
  this.parent = parent;
@@ -31599,7 +31619,7 @@ var FormatPainterActions = /** @__PURE__ @class */ (function () {
31599
31619
  * @hidden
31600
31620
  * @deprecated
31601
31621
  */
31602
- var EditorManager = /** @__PURE__ @class */ (function () {
31622
+ var EditorManager = /** @class */ (function () {
31603
31623
  /**
31604
31624
  * Constructor for creating the component
31605
31625
  *
@@ -31691,11 +31711,14 @@ var EditorManager = /** @__PURE__ @class */ (function () {
31691
31711
  EditorManager.prototype.execCommand = function (command, value, event, callBack, text, exeValue, selector, enterAction) {
31692
31712
  switch (command.toLowerCase()) {
31693
31713
  case 'lists':
31694
- this.observer.notify(LIST_TYPE, { subCommand: value, event: event, callBack: callBack,
31695
- selector: selector, item: exeValue, enterAction: enterAction });
31714
+ this.observer.notify(LIST_TYPE, {
31715
+ subCommand: value, event: event, callBack: callBack,
31716
+ selector: selector, item: exeValue, enterAction: enterAction
31717
+ });
31696
31718
  break;
31697
31719
  case 'formats':
31698
- this.observer.notify(FORMAT_TYPE, { subCommand: value, event: event, callBack: callBack,
31720
+ this.observer.notify(FORMAT_TYPE, {
31721
+ subCommand: value, event: event, callBack: callBack,
31699
31722
  selector: selector, exeValue: exeValue, enterAction: enterAction
31700
31723
  });
31701
31724
  break;
@@ -31712,8 +31735,10 @@ var EditorManager = /** @__PURE__ @class */ (function () {
31712
31735
  });
31713
31736
  break;
31714
31737
  case 'links':
31715
- this.observer.notify(LINK, { command: command, value: value, item: exeValue, event: event, callBack: callBack,
31716
- enterAction: enterAction });
31738
+ this.observer.notify(LINK, {
31739
+ command: command, value: value, item: exeValue, event: event, callBack: callBack,
31740
+ enterAction: enterAction
31741
+ });
31717
31742
  break;
31718
31743
  case 'files':
31719
31744
  this.observer.notify(IMAGE, {
@@ -31798,8 +31823,10 @@ var EditorManager = /** @__PURE__ @class */ (function () {
31798
31823
  this.observer.notify(FORMAT_PAINTER_ACTIONS, { item: exeValue, subCommand: value, event: event, callBack: callBack });
31799
31824
  break;
31800
31825
  case 'emojipicker':
31801
- this.observer.notify(EMOJI_PICKER_ACTIONS, { item: exeValue, subCommand: value, value: text,
31802
- event: event, callBack: callBack });
31826
+ this.observer.notify(EMOJI_PICKER_ACTIONS, {
31827
+ item: exeValue, subCommand: value, value: text,
31828
+ event: event, callBack: callBack
31829
+ });
31803
31830
  }
31804
31831
  };
31805
31832
  EditorManager.prototype.editorMouseDown = function (e) {
@@ -31841,19 +31868,19 @@ var EditorManager = /** @__PURE__ @class */ (function () {
31841
31868
  };
31842
31869
  EditorManager.prototype.getParentBlockNode = function (node) {
31843
31870
  var treeWalker = this.currentDocument.createTreeWalker(this.editableElement, // root
31844
- NodeFilter.SHOW_ELEMENT, // whatToShow
31845
- {
31846
- acceptNode: function (currentNode) {
31847
- // Check if the node is a block element
31848
- var displayStyle = window.getComputedStyle(currentNode).display;
31849
- if (displayStyle.indexOf('inline') < 0) {
31850
- return NodeFilter.FILTER_ACCEPT;
31851
- }
31852
- else {
31853
- return NodeFilter.FILTER_SKIP;
31871
+ NodeFilter.SHOW_ELEMENT, // whatToShow
31872
+ {
31873
+ acceptNode: function (currentNode) {
31874
+ // Check if the node is a block element
31875
+ var displayStyle = window.getComputedStyle(currentNode).display;
31876
+ if (displayStyle.indexOf('inline') < 0) {
31877
+ return NodeFilter.FILTER_ACCEPT;
31878
+ }
31879
+ else {
31880
+ return NodeFilter.FILTER_SKIP;
31881
+ }
31854
31882
  }
31855
- }
31856
- });
31883
+ });
31857
31884
  treeWalker.currentNode = node;
31858
31885
  var blockParent = treeWalker.parentNode();
31859
31886
  return blockParent;
@@ -31968,7 +31995,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
31968
31995
  * @hidden
31969
31996
  * @deprecated
31970
31997
  */
31971
- var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
31998
+ var HTMLFormatter = /** @class */ (function (_super) {
31972
31999
  __extends$4(HTMLFormatter, _super);
31973
32000
  function HTMLFormatter(options) {
31974
32001
  var _this = _super.call(this) || this;
@@ -32009,7 +32036,7 @@ var HTMLFormatter = /** @__PURE__ @class */ (function (_super) {
32009
32036
  /**
32010
32037
  * HtmlToolbarStatus module for refresh the toolbar status
32011
32038
  */
32012
- var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
32039
+ var HtmlToolbarStatus = /** @class */ (function () {
32013
32040
  function HtmlToolbarStatus(parent) {
32014
32041
  this.parent = parent;
32015
32042
  this.toolbarStatus = this.prevToolbarStatus = getDefaultHtmlTbStatus();
@@ -32055,7 +32082,7 @@ var HtmlToolbarStatus = /** @__PURE__ @class */ (function () {
32055
32082
  /**
32056
32083
  * XhtmlValidation module called when set enableXhtml as true
32057
32084
  */
32058
- var XhtmlValidation = /** @__PURE__ @class */ (function () {
32085
+ var XhtmlValidation = /** @class */ (function () {
32059
32086
  function XhtmlValidation(parent) {
32060
32087
  this.parent = parent;
32061
32088
  this.addEventListener();
@@ -32226,7 +32253,7 @@ var XhtmlValidation = /** @__PURE__ @class */ (function () {
32226
32253
  /**
32227
32254
  * `HtmlEditor` module is used to HTML editor
32228
32255
  */
32229
- var HtmlEditor = /** @__PURE__ @class */ (function () {
32256
+ var HtmlEditor = /** @class */ (function () {
32230
32257
  function HtmlEditor(parent, serviceLocator) {
32231
32258
  this.rangeCollection = [];
32232
32259
  this.isImageDelete = false;
@@ -32779,6 +32806,26 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
32779
32806
  if (isNullOrUndefined(this.oldRangeElement)) {
32780
32807
  return;
32781
32808
  }
32809
+ else if (findBlockElement[0].previousSibling) {
32810
+ var prevSibling = findBlockElement[0].previousSibling;
32811
+ var currentElement = findBlockElement[0];
32812
+ if (prevSibling.textContent.trim()) {
32813
+ if (prevSibling.lastChild.nodeName === 'BR') {
32814
+ prevSibling.removeChild(prevSibling.lastChild);
32815
+ }
32816
+ var cursorpointer = prevSibling.lastChild.textContent.length;
32817
+ var lastChild = prevSibling.lastChild;
32818
+ var childNodes = Array.from(currentElement.childNodes);
32819
+ for (var i = 0; i < childNodes.length; i++) {
32820
+ prevSibling.appendChild(childNodes[i].cloneNode(true));
32821
+ }
32822
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), lastChild, cursorpointer);
32823
+ currentElement.parentNode.removeChild(currentElement);
32824
+ }
32825
+ else {
32826
+ prevSibling.parentNode.removeChild(prevSibling);
32827
+ }
32828
+ }
32782
32829
  else {
32783
32830
  if (this.oldRangeElement.tagName === 'OL' || this.oldRangeElement.tagName === 'UL') {
32784
32831
  this.oldRangeElement = this.oldRangeElement.lastElementChild.lastElementChild
@@ -32794,9 +32841,9 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
32794
32841
  this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), lastNode.parentElement, lastNode.parentElement.childNodes.length);
32795
32842
  }
32796
32843
  else {
32797
- this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(),
32798
- // eslint-disable-next-line
32799
- lastNode, lastNode.textContent.length);
32844
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(),
32845
+ // eslint-disable-next-line
32846
+ lastNode, lastNode.textContent.length);
32800
32847
  }
32801
32848
  var checkParent = false;
32802
32849
  if (this.oldRangeElement && this.oldRangeElement.nodeName !== '#text' && this.oldRangeElement.querySelectorAll('BR').length === 1) {
@@ -33286,8 +33333,10 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
33286
33333
  }
33287
33334
  if (!isNullOrUndefined(e.newProp.formatter)) {
33288
33335
  var editElement = this.contentRenderer.getEditPanel();
33289
- var option = { undoRedoSteps: this.parent.undoRedoSteps,
33290
- undoRedoTimer: this.parent.undoRedoTimer };
33336
+ var option = {
33337
+ undoRedoSteps: this.parent.undoRedoSteps,
33338
+ undoRedoTimer: this.parent.undoRedoTimer
33339
+ };
33291
33340
  this.parent.formatter.updateFormatter(editElement, this.contentRenderer.getDocument(), option);
33292
33341
  }
33293
33342
  };
@@ -33385,7 +33434,7 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
33385
33434
  /**
33386
33435
  * PasteCleanup module called when pasting content in RichTextEditor
33387
33436
  */
33388
- var PasteCleanup = /** @__PURE__ @class */ (function () {
33437
+ var PasteCleanup = /** @class */ (function () {
33389
33438
  function PasteCleanup(parent, serviceLocator) {
33390
33439
  this.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
33391
33440
  'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
@@ -33560,28 +33609,6 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33560
33609
  value = tempDivElem.innerHTML;
33561
33610
  var isValueNotEmpty = tempDivElem.textContent !== '' || !isNullOrUndefined(tempDivElem.querySelector('img')) ||
33562
33611
  !isNullOrUndefined(tempDivElem.querySelector('table'));
33563
- var imgElements = tempDivElem.querySelectorAll('img');
33564
- var base_1 = this.parent.contentModule.getDocument().location.origin;
33565
- imgElements.forEach(function (imgElement) {
33566
- var imageFileFormat;
33567
- var imgElementSrc = imgElement.getAttribute('src');
33568
- if (!isNullOrUndefined(imgElementSrc) && imgElementSrc !== '') {
33569
- if (imgElementSrc.indexOf('base64') > -1 && imgElementSrc.indexOf('data:') > -1) {
33570
- imageFileFormat = imgElementSrc.split(';')[0].split('/')[1];
33571
- }
33572
- else {
33573
- var parsedUrl = imgElementSrc.indexOf('http') > -1 ? new URL(imgElementSrc) : new URL(imgElementSrc, base_1);
33574
- var path = parsedUrl.pathname;
33575
- imageFileFormat = path.split('.').pop().toLowerCase();
33576
- }
33577
- if (!isNullOrUndefined(imageFileFormat) &&
33578
- allowedTypes.every(function (type) { return imageFileFormat !== type.substring(1).toLowerCase(); }) &&
33579
- imgElementSrc.indexOf('blob') === -1) {
33580
- detach(imgElement);
33581
- }
33582
- }
33583
- });
33584
- value = tempDivElem.innerHTML;
33585
33612
  this.parent.notify(cleanupResizeElements, {
33586
33613
  value: value,
33587
33614
  callBack: function (currentValue) {
@@ -33811,14 +33838,14 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33811
33838
  });
33812
33839
  this.uploadObj.appendTo(this.popupObj.element.childNodes[0]);
33813
33840
  var fileInfo = [{
33814
- name: file.name,
33815
- rawFile: file,
33816
- size: file.size,
33817
- type: file.type,
33818
- status: 'Ready to Upload',
33819
- validationMessages: { minSize: '', maxSize: '' },
33820
- statusCode: '1'
33821
- }];
33841
+ name: file.name,
33842
+ rawFile: file,
33843
+ size: file.size,
33844
+ type: file.type,
33845
+ status: 'Ready to Upload',
33846
+ validationMessages: { minSize: '', maxSize: '' },
33847
+ statusCode: '1'
33848
+ }];
33822
33849
  this.uploadObj.createFileList(fileInfo);
33823
33850
  this.uploadObj.upload(fileInfo);
33824
33851
  this.popupObj.element.getElementsByClassName('e-file-select-wrap')[0].style.display = 'none';
@@ -33831,7 +33858,11 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33831
33858
  this.parent.inputElement.contentEditable = 'true';
33832
33859
  detach(imgElem);
33833
33860
  if (popupObj) {
33834
- popupObj.close();
33861
+ this.parent.isBlur = false;
33862
+ popupObj.destroy();
33863
+ if (!isNullOrUndefined(popupObj.element)) {
33864
+ detach(popupObj.element);
33865
+ }
33835
33866
  }
33836
33867
  this.parent.trigger(imageUploadFailed, e);
33837
33868
  if (uploadObj && document.body.contains(uploadObj.element)) {
@@ -33848,7 +33879,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33848
33879
  this.parent.trigger(imageUploadSuccess, e, function (e) {
33849
33880
  if (!isNullOrUndefined(_this.parent.insertImageSettings.path)) {
33850
33881
  var url = _this.parent.insertImageSettings.path + e.file.name;
33851
- if (!_this.parent.inputElement.contains(imgElem)) {
33882
+ if (!_this.parent.inputElement.contains(imgElem) && imgElem.id) {
33852
33883
  var imgHtmlElems = _this.parent.inputElement.querySelectorAll('#' + imgElem.id);
33853
33884
  for (var i = 0; i < imgHtmlElems.length; i++) {
33854
33885
  var imgHtmlElem = imgHtmlElems[i];
@@ -33873,13 +33904,22 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33873
33904
  });
33874
33905
  }
33875
33906
  this.popupCloseTime = setTimeout(function () {
33876
- popupObj.close();
33877
- if (!_this.parent.inputElement.contains(imgElem)) {
33878
- var imgHtmlElems = _this.parent.inputElement.querySelectorAll('#' + imgElem.id);
33879
- for (var i = 0; i < imgHtmlElems.length; i++) {
33880
- var imgHtmlElem = imgHtmlElems[i];
33881
- if (imgHtmlElem && imgHtmlElem.style && imgHtmlElem.style.opacity === '0.5') {
33882
- imgHtmlElem.style.opacity = '1';
33907
+ if (popupObj) {
33908
+ _this.parent.isBlur = false;
33909
+ popupObj.destroy();
33910
+ if (!isNullOrUndefined(popupObj.element)) {
33911
+ detach(popupObj.element);
33912
+ }
33913
+ }
33914
+ if (!_this.parent.inputElement.contains(imgElem) && (imgElem.id || imgElem.alt)) {
33915
+ var selector = imgElem.id ? "#" + imgElem.id : "[alt=\"" + imgElem.alt + "\"]";
33916
+ if (selector) {
33917
+ var imgHtmlElems = _this.parent.inputElement.querySelectorAll(selector);
33918
+ for (var i = 0; i < imgHtmlElems.length; i++) {
33919
+ var imgHtmlElem = imgHtmlElems[i];
33920
+ if (imgHtmlElem && imgHtmlElem.style && imgHtmlElem.style.opacity === '0.5') {
33921
+ imgHtmlElem.style.opacity = '1';
33922
+ }
33883
33923
  }
33884
33924
  }
33885
33925
  }
@@ -33961,8 +34001,10 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
33961
34001
  }
33962
34002
  };
33963
34003
  PasteCleanup.prototype.radioRender = function () {
33964
- this.keepRadioButton = new RadioButton({ label: this.i10n.getConstant('keepFormat'),
33965
- name: 'pasteOption', checked: true });
34004
+ this.keepRadioButton = new RadioButton({
34005
+ label: this.i10n.getConstant('keepFormat'),
34006
+ name: 'pasteOption', checked: true
34007
+ });
33966
34008
  this.keepRadioButton.isStringTemplate = true;
33967
34009
  var keepFormatElement = this.parent.element.querySelector('#keepFormating');
33968
34010
  this.keepRadioButton.appendTo(keepFormatElement);
@@ -34653,7 +34695,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
34653
34695
  /**
34654
34696
  * `Resize` module is used to resize the editor
34655
34697
  */
34656
- var Resize = /** @__PURE__ @class */ (function () {
34698
+ var Resize = /** @class */ (function () {
34657
34699
  function Resize(parent) {
34658
34700
  this.parent = parent;
34659
34701
  this.addEventListener();
@@ -34685,13 +34727,24 @@ var Resize = /** @__PURE__ @class */ (function () {
34685
34727
  this.iframeElement = this.parent.contentModule.getDocument().querySelectorAll('iframe');
34686
34728
  if (!isNullOrUndefined(this.iframeElement)) {
34687
34729
  this.iframeElement.forEach(function (iframe) {
34688
- EventHandler.add(iframe.contentDocument, 'mouseup', _this.stopResize, _this);
34730
+ EventHandler.add(iframe, 'load', _this.onIFrameLoad, _this);
34689
34731
  });
34690
34732
  }
34691
34733
  this.touchStartEvent = (Browser.info.name === 'msie') ? 'pointerdown' : 'touchstart';
34692
34734
  EventHandler.add(this.resizer, 'mousedown', this.resizeStart, this);
34693
34735
  EventHandler.add(this.resizer, this.touchStartEvent, this.resizeStart, this);
34694
34736
  };
34737
+ Resize.prototype.onIFrameLoad = function (e) {
34738
+ var iframe = e.target;
34739
+ if (iframe.nodeName === 'IFRAME' && iframe.contentDocument) {
34740
+ EventHandler.add(iframe.contentDocument, 'mouseup', this.stopResize, this);
34741
+ }
34742
+ };
34743
+ Resize.prototype.removeMouseUpEventListener = function (iframe) {
34744
+ if (iframe.contentDocument) {
34745
+ EventHandler.remove(iframe.contentDocument, 'mouseup', this.stopResize);
34746
+ }
34747
+ };
34695
34748
  Resize.prototype.resizeStart = function (e) {
34696
34749
  var _this = this;
34697
34750
  this.isResizing = false;
@@ -34798,7 +34851,7 @@ var Resize = /** @__PURE__ @class */ (function () {
34798
34851
  }
34799
34852
  if (!isNullOrUndefined(this.iframeElement)) {
34800
34853
  this.iframeElement.forEach(function (iframe) {
34801
- EventHandler.remove(iframe.contentDocument, 'mouseup', _this.stopResize);
34854
+ _this.removeMouseUpEventListener(iframe);
34802
34855
  });
34803
34856
  }
34804
34857
  if (this.resizer) {
@@ -34832,7 +34885,7 @@ var Resize = /** @__PURE__ @class */ (function () {
34832
34885
  /**
34833
34886
  * `FileManager` module is used to display the directories and images inside the editor.
34834
34887
  */
34835
- var FileManager = /** @__PURE__ @class */ (function () {
34888
+ var FileManager = /** @class */ (function () {
34836
34889
  function FileManager(parent, locator) {
34837
34890
  FileManager$1.Inject(ContextMenu, DetailsView, NavigationPane, Toolbar$2);
34838
34891
  this.parent = parent;
@@ -34861,13 +34914,13 @@ var FileManager = /** @__PURE__ @class */ (function () {
34861
34914
  var dlgHeader = this.parent.localeObj.getConstant('fileDialogHeader');
34862
34915
  var dlgCancel = this.i10n.getConstant('dialogCancel');
34863
34916
  this.dlgButtons = [{
34864
- click: this.insertImageBoundFn,
34865
- buttonModel: { content: dlgInsert, cssClass: 'e-flat e-insertImage', isPrimary: true, disabled: true }
34866
- },
34867
- {
34868
- click: this.cancelDialogBoundFn,
34869
- buttonModel: { cssClass: 'e-flat e-cancel', content: dlgCancel }
34870
- }];
34917
+ click: this.insertImageBoundFn,
34918
+ buttonModel: { content: dlgInsert, cssClass: 'e-flat e-insertImage', isPrimary: true, disabled: true }
34919
+ },
34920
+ {
34921
+ click: this.cancelDialogBoundFn,
34922
+ buttonModel: { cssClass: 'e-flat e-cancel', content: dlgCancel }
34923
+ }];
34871
34924
  this.selectObj = { selection: e.selection, args: e.args, selectParent: e.selectParent };
34872
34925
  var dlgTarget = this.parent.createElement('div', {
34873
34926
  className: 'e-rte-file-manager-dialog', id: this.parent.getID() + '_file-manager-dialog',
@@ -35089,7 +35142,7 @@ var FileManager = /** @__PURE__ @class */ (function () {
35089
35142
  /**
35090
35143
  * `FullScreen` module is used to maximize and minimize screen
35091
35144
  */
35092
- var FullScreen = /** @__PURE__ @class */ (function () {
35145
+ var FullScreen = /** @class */ (function () {
35093
35146
  function FullScreen(parent) {
35094
35147
  this.parent = parent;
35095
35148
  this.addEventListener();
@@ -35311,7 +35364,7 @@ function setAttributes(htmlAttributes, rte, isFrame, initial) {
35311
35364
  }
35312
35365
  }
35313
35366
 
35314
- var FormatPainter = /** @__PURE__ @class */ (function () {
35367
+ var FormatPainter = /** @class */ (function () {
35315
35368
  function FormatPainter(parent) {
35316
35369
  this.isSticky = false;
35317
35370
  this.isActive = false;
@@ -35470,7 +35523,7 @@ var FormatPainter = /** @__PURE__ @class */ (function () {
35470
35523
  return FormatPainter;
35471
35524
  }());
35472
35525
 
35473
- var EmojiPicker = /** @__PURE__ @class */ (function () {
35526
+ var EmojiPicker = /** @class */ (function () {
35474
35527
  function EmojiPicker(parent, serviceLocator) {
35475
35528
  this.noResultsFoundCount = 0;
35476
35529
  this.parent = parent;
@@ -36351,7 +36404,7 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
36351
36404
  /**
36352
36405
  * ImportExport module called when import and export content in RichTextEditor
36353
36406
  */
36354
- var ImportExport = /** @__PURE__ @class */ (function () {
36407
+ var ImportExport = /** @class */ (function () {
36355
36408
  function ImportExport(parent) {
36356
36409
  this.parent = parent;
36357
36410
  this.addEventListener();
@@ -36422,26 +36475,26 @@ var ImportExport = /** @__PURE__ @class */ (function () {
36422
36475
  body: JSON.stringify({ html: actionBeginArgs.exportValue })
36423
36476
  })
36424
36477
  .then(function (response) {
36425
- if (!response.ok) {
36426
- throw new Error("HTTP error! Status: " + response.status);
36427
- }
36428
- return response.blob().then(function (blob) { return ({ blob: blob, filename: filename }); });
36429
- })
36478
+ if (!response.ok) {
36479
+ throw new Error("HTTP error! Status: " + response.status);
36480
+ }
36481
+ return response.blob().then(function (blob) { return ({ blob: blob, filename: filename }); });
36482
+ })
36430
36483
  .then(function (_a) {
36431
- var blob = _a.blob, filename = _a.filename;
36432
- var url = window.URL.createObjectURL(blob);
36433
- var a = document.createElement('a');
36434
- a.href = url;
36435
- a.download = filename;
36436
- document.body.appendChild(a);
36437
- a.click();
36438
- document.body.removeChild(a);
36439
- window.URL.revokeObjectURL(url);
36440
- _this.parent.trigger(actionComplete, { requestType: args.member });
36441
- })
36484
+ var blob = _a.blob, filename = _a.filename;
36485
+ var url = window.URL.createObjectURL(blob);
36486
+ var a = document.createElement('a');
36487
+ a.href = url;
36488
+ a.download = filename;
36489
+ document.body.appendChild(a);
36490
+ a.click();
36491
+ document.body.removeChild(a);
36492
+ window.URL.revokeObjectURL(url);
36493
+ _this.parent.trigger(actionComplete, { requestType: args.member });
36494
+ })
36442
36495
  .catch(function (error) {
36443
- console.error('Fetch error:', error);
36444
- });
36496
+ console.error('Fetch error:', error);
36497
+ });
36445
36498
  }
36446
36499
  });
36447
36500
  };
@@ -36670,7 +36723,7 @@ var executeGroup = {
36670
36723
  * @hidden
36671
36724
  * @deprecated
36672
36725
  */
36673
- var ServiceLocator = /** @__PURE__ @class */ (function () {
36726
+ var ServiceLocator = /** @class */ (function () {
36674
36727
  function ServiceLocator() {
36675
36728
  this.services = {};
36676
36729
  }
@@ -36717,7 +36770,7 @@ var ServiceLocator = /** @__PURE__ @class */ (function () {
36717
36770
  * @hidden
36718
36771
  * @deprecated
36719
36772
  */
36720
- var RendererFactory = /** @__PURE__ @class */ (function () {
36773
+ var RendererFactory = /** @class */ (function () {
36721
36774
  function RendererFactory() {
36722
36775
  this.rendererMap = {};
36723
36776
  }
@@ -36782,7 +36835,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
36782
36835
  /**
36783
36836
  * Configures the toolbar settings of the RichTextEditor.
36784
36837
  */
36785
- var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
36838
+ var ToolbarSettings = /** @class */ (function (_super) {
36786
36839
  __extends$5(ToolbarSettings, _super);
36787
36840
  function ToolbarSettings() {
36788
36841
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36807,7 +36860,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
36807
36860
  /**
36808
36861
  * Configures the importWord settings of the RichTextEditor.
36809
36862
  */
36810
- var ImportWord = /** @__PURE__ @class */ (function (_super) {
36863
+ var ImportWord = /** @class */ (function (_super) {
36811
36864
  __extends$5(ImportWord, _super);
36812
36865
  function ImportWord() {
36813
36866
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36820,7 +36873,7 @@ var ImportWord = /** @__PURE__ @class */ (function (_super) {
36820
36873
  /**
36821
36874
  * Configures the export word of the RichTextEditor.
36822
36875
  */
36823
- var ExportWord = /** @__PURE__ @class */ (function (_super) {
36876
+ var ExportWord = /** @class */ (function (_super) {
36824
36877
  __extends$5(ExportWord, _super);
36825
36878
  function ExportWord() {
36826
36879
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36839,7 +36892,7 @@ var ExportWord = /** @__PURE__ @class */ (function (_super) {
36839
36892
  /**
36840
36893
  * Configures the export settings of the RichTextEditor.
36841
36894
  */
36842
- var ExportPdf = /** @__PURE__ @class */ (function (_super) {
36895
+ var ExportPdf = /** @class */ (function (_super) {
36843
36896
  __extends$5(ExportPdf, _super);
36844
36897
  function ExportPdf() {
36845
36898
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36858,7 +36911,7 @@ var ExportPdf = /** @__PURE__ @class */ (function (_super) {
36858
36911
  /**
36859
36912
  * Configures the image settings of the RichTextEditor.
36860
36913
  */
36861
- var ImageSettings = /** @__PURE__ @class */ (function (_super) {
36914
+ var ImageSettings = /** @class */ (function (_super) {
36862
36915
  __extends$5(ImageSettings, _super);
36863
36916
  function ImageSettings() {
36864
36917
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36910,7 +36963,7 @@ var ImageSettings = /** @__PURE__ @class */ (function (_super) {
36910
36963
  /**
36911
36964
  * Configures the audio settings of the RichTextEditor.
36912
36965
  */
36913
- var AudioSettings = /** @__PURE__ @class */ (function (_super) {
36966
+ var AudioSettings = /** @class */ (function (_super) {
36914
36967
  __extends$5(AudioSettings, _super);
36915
36968
  function AudioSettings() {
36916
36969
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36938,7 +36991,7 @@ var AudioSettings = /** @__PURE__ @class */ (function (_super) {
36938
36991
  /**
36939
36992
  * Configures the video settings of the RichTextEditor.
36940
36993
  */
36941
- var VideoSettings = /** @__PURE__ @class */ (function (_super) {
36994
+ var VideoSettings = /** @class */ (function (_super) {
36942
36995
  __extends$5(VideoSettings, _super);
36943
36996
  function VideoSettings() {
36944
36997
  return _super !== null && _super.apply(this, arguments) || this;
@@ -36990,7 +37043,7 @@ var VideoSettings = /** @__PURE__ @class */ (function (_super) {
36990
37043
  /**
36991
37044
  * Configures the file manager settings of the RichTextEditor.
36992
37045
  */
36993
- var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
37046
+ var FileManagerSettings = /** @class */ (function (_super) {
36994
37047
  __extends$5(FileManagerSettings, _super);
36995
37048
  function FileManagerSettings() {
36996
37049
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37051,7 +37104,7 @@ var FileManagerSettings = /** @__PURE__ @class */ (function (_super) {
37051
37104
  ], FileManagerSettings.prototype, "view", void 0);
37052
37105
  return FileManagerSettings;
37053
37106
  }(ChildProperty));
37054
- var TableSettings = /** @__PURE__ @class */ (function (_super) {
37107
+ var TableSettings = /** @class */ (function (_super) {
37055
37108
  __extends$5(TableSettings, _super);
37056
37109
  function TableSettings() {
37057
37110
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37076,7 +37129,7 @@ var TableSettings = /** @__PURE__ @class */ (function (_super) {
37076
37129
  /**
37077
37130
  * Configures the quick toolbar settings of the RichTextEditor.
37078
37131
  */
37079
- var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
37132
+ var QuickToolbarSettings = /** @class */ (function (_super) {
37080
37133
  __extends$5(QuickToolbarSettings, _super);
37081
37134
  function QuickToolbarSettings() {
37082
37135
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37113,7 +37166,7 @@ var QuickToolbarSettings = /** @__PURE__ @class */ (function (_super) {
37113
37166
  /**
37114
37167
  * Configure the format painter settings of the Rich Text Editor.
37115
37168
  */
37116
- var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
37169
+ var FormatPainterSettings = /** @class */ (function (_super) {
37117
37170
  __extends$5(FormatPainterSettings, _super);
37118
37171
  function FormatPainterSettings() {
37119
37172
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37129,7 +37182,7 @@ var FormatPainterSettings = /** @__PURE__ @class */ (function (_super) {
37129
37182
  /**
37130
37183
  * Specifies the emoji picker options in Rich Text Editor with the following properties.
37131
37184
  */
37132
- var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
37185
+ var EmojiSettings = /** @class */ (function (_super) {
37133
37186
  __extends$5(EmojiSettings, _super);
37134
37187
  function EmojiSettings() {
37135
37188
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37145,7 +37198,7 @@ var EmojiSettings = /** @__PURE__ @class */ (function (_super) {
37145
37198
  /**
37146
37199
  * Configures the Paste Cleanup settings of the RichTextEditor.
37147
37200
  */
37148
- var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
37201
+ var PasteCleanupSettings = /** @class */ (function (_super) {
37149
37202
  __extends$5(PasteCleanupSettings, _super);
37150
37203
  function PasteCleanupSettings() {
37151
37204
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37173,7 +37226,7 @@ var PasteCleanupSettings = /** @__PURE__ @class */ (function (_super) {
37173
37226
  /**
37174
37227
  * Configures the font family settings of the RichTextEditor.
37175
37228
  */
37176
- var FontFamily = /** @__PURE__ @class */ (function (_super) {
37229
+ var FontFamily = /** @class */ (function (_super) {
37177
37230
  __extends$5(FontFamily, _super);
37178
37231
  function FontFamily() {
37179
37232
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37192,7 +37245,7 @@ var FontFamily = /** @__PURE__ @class */ (function (_super) {
37192
37245
  /**
37193
37246
  * Configures the font size settings of the RichTextEditor.
37194
37247
  */
37195
- var FontSize = /** @__PURE__ @class */ (function (_super) {
37248
+ var FontSize = /** @class */ (function (_super) {
37196
37249
  __extends$5(FontSize, _super);
37197
37250
  function FontSize() {
37198
37251
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37211,7 +37264,7 @@ var FontSize = /** @__PURE__ @class */ (function (_super) {
37211
37264
  /**
37212
37265
  * Configures the format settings of the RichTextEditor.
37213
37266
  */
37214
- var Format = /** @__PURE__ @class */ (function (_super) {
37267
+ var Format = /** @class */ (function (_super) {
37215
37268
  __extends$5(Format, _super);
37216
37269
  function Format() {
37217
37270
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37230,7 +37283,7 @@ var Format = /** @__PURE__ @class */ (function (_super) {
37230
37283
  /**
37231
37284
  * Configures the font Color settings of the RichTextEditor.
37232
37285
  */
37233
- var FontColor = /** @__PURE__ @class */ (function (_super) {
37286
+ var FontColor = /** @class */ (function (_super) {
37234
37287
  __extends$5(FontColor, _super);
37235
37288
  function FontColor() {
37236
37289
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37255,7 +37308,7 @@ var FontColor = /** @__PURE__ @class */ (function (_super) {
37255
37308
  /**
37256
37309
  * Configures the background Color settings of the RichTextEditor.
37257
37310
  */
37258
- var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
37311
+ var BackgroundColor = /** @class */ (function (_super) {
37259
37312
  __extends$5(BackgroundColor, _super);
37260
37313
  function BackgroundColor() {
37261
37314
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37280,7 +37333,7 @@ var BackgroundColor = /** @__PURE__ @class */ (function (_super) {
37280
37333
  /**
37281
37334
  * Configures the numberFormatList settings of the RichTextEditor.
37282
37335
  */
37283
- var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
37336
+ var NumberFormatList = /** @class */ (function (_super) {
37284
37337
  __extends$5(NumberFormatList, _super);
37285
37338
  function NumberFormatList() {
37286
37339
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37293,7 +37346,7 @@ var NumberFormatList = /** @__PURE__ @class */ (function (_super) {
37293
37346
  /**
37294
37347
  * Configures the bulletFormatList settings of the RichTextEditor.
37295
37348
  */
37296
- var BulletFormatList = /** @__PURE__ @class */ (function (_super) {
37349
+ var BulletFormatList = /** @class */ (function (_super) {
37297
37350
  __extends$5(BulletFormatList, _super);
37298
37351
  function BulletFormatList() {
37299
37352
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37326,7 +37379,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
37326
37379
  /**
37327
37380
  * Objects used for configuring the iframe resources properties.
37328
37381
  */
37329
- var Resources = /** @__PURE__ @class */ (function (_super) {
37382
+ var Resources = /** @class */ (function (_super) {
37330
37383
  __extends$6(Resources, _super);
37331
37384
  function Resources() {
37332
37385
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37342,7 +37395,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
37342
37395
  /**
37343
37396
  * Configures the iframe settings of the RTE.
37344
37397
  */
37345
- var IFrameSettings = /** @__PURE__ @class */ (function (_super) {
37398
+ var IFrameSettings = /** @class */ (function (_super) {
37346
37399
  __extends$6(IFrameSettings, _super);
37347
37400
  function IFrameSettings() {
37348
37401
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37387,7 +37440,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
37387
37440
  /**
37388
37441
  * Configures the inlineMode property of the RTE.
37389
37442
  */
37390
- var InlineMode = /** @__PURE__ @class */ (function (_super) {
37443
+ var InlineMode = /** @class */ (function (_super) {
37391
37444
  __extends$7(InlineMode, _super);
37392
37445
  function InlineMode() {
37393
37446
  return _super !== null && _super.apply(this, arguments) || this;
@@ -37404,7 +37457,7 @@ var InlineMode = /** @__PURE__ @class */ (function (_super) {
37404
37457
  /**
37405
37458
  * `EnterKey` module is used to handle enter key press actions.
37406
37459
  */
37407
- var EnterKeyAction = /** @__PURE__ @class */ (function () {
37460
+ var EnterKeyAction = /** @class */ (function () {
37408
37461
  function EnterKeyAction(parent) {
37409
37462
  this.parent = parent;
37410
37463
  this.addEventListener();
@@ -37584,7 +37637,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37584
37637
  }
37585
37638
  if (_this.range.startOffset !== 0 && _this.range.endOffset !== 0 &&
37586
37639
  _this.range.startContainer === _this.range.endContainer && !(!isNullOrUndefined(nearBlockNode.childNodes[0])
37587
- && (nearBlockNode.childNodes[0].nodeName === 'IMG' || nearBlockNode.querySelectorAll('img, audio, video').length > 0))) {
37640
+ && (nearBlockNode.childNodes[0].nodeName === 'IMG' || nearBlockNode.querySelectorAll('img, audio, video').length > 0))) {
37588
37641
  var startNodeText = _this.range.startContainer.textContent;
37589
37642
  var splitFirstText = startNodeText.substring(0, _this.range.startOffset);
37590
37643
  var lastCharBeforeCursor = splitFirstText.charCodeAt(_this.range.startOffset - 1);
@@ -37835,7 +37888,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37835
37888
  _this.range.startContainer.textContent.length : currentParent.textContent.length;
37836
37889
  var isImageElement = (_this.range.startContainer.nodeName === 'IMG' || (_this.range.startContainer.childNodes.length > 0
37837
37890
  && !isNullOrUndefined(_this.range.startContainer.childNodes[_this.range.startOffset]) && _this.range.startContainer.childNodes[_this.range.startOffset].nodeName === 'IMG') || (_this.range.startContainer.nodeType === 1 &&
37838
- _this.range.startContainer.querySelector('img') !== null));
37891
+ _this.range.startContainer.querySelector('img') !== null));
37839
37892
  if (currentParent !== _this.parent.inputElement &&
37840
37893
  _this.parent.formatter.editorManager.domNode.isBlockNode(currentParent) &&
37841
37894
  _this.range.startOffset === _this.range.endOffset &&
@@ -37928,7 +37981,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
37928
37981
  EnterKeyAction.prototype.removeBRElement = function (currentElement) {
37929
37982
  if (Browser.userAgent.indexOf('Firefox') !== -1 &&
37930
37983
  this.range.endOffset === currentElement.textContent.length && (currentElement.textContent.length !== 0 ||
37931
- currentElement.querySelectorAll('BR').length > 1) &&
37984
+ currentElement.querySelectorAll('BR').length > 1) &&
37932
37985
  !isNullOrUndefined(currentElement.lastChild) && currentElement.lastChild.nodeName === 'BR') {
37933
37986
  detach(currentElement.lastChild);
37934
37987
  }
@@ -38142,7 +38195,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
38142
38195
  };
38143
38196
  })();
38144
38197
  var __assign = (undefined && undefined.__assign) || function () {
38145
- __assign = Object.assign || function(t) {
38198
+ __assign = Object.assign || function (t) {
38146
38199
  for (var s, i = 1, n = arguments.length; i < n; i++) {
38147
38200
  s = arguments[i];
38148
38201
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -38168,7 +38221,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
38168
38221
  * </script>
38169
38222
  * ```
38170
38223
  */
38171
- var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
38224
+ var RichTextEditor = /** @class */ (function (_super) {
38172
38225
  __extends$8(RichTextEditor, _super);
38173
38226
  function RichTextEditor(options, element) {
38174
38227
  var _this = _super.call(this, options, element) || this;
@@ -38548,8 +38601,10 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
38548
38601
  break;
38549
38602
  case 'insertTable':
38550
38603
  if (isNullOrUndefined(value.width)) {
38551
- value.width = { minWidth: this.tableSettings.minWidth,
38552
- maxWidth: this.tableSettings.maxWidth, width: this.tableSettings.width };
38604
+ value.width = {
38605
+ minWidth: this.tableSettings.minWidth,
38606
+ maxWidth: this.tableSettings.maxWidth, width: this.tableSettings.width
38607
+ };
38553
38608
  }
38554
38609
  break;
38555
38610
  case 'insertImage': {
@@ -38568,12 +38623,16 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
38568
38623
  url = !isNullOrUndefined(url) ? url : '';
38569
38624
  value.url = url;
38570
38625
  if (isNullOrUndefined(value.width)) {
38571
- value.width = { minWidth: this.insertImageSettings.minWidth,
38572
- maxWidth: this.insertImageSettings.maxWidth, width: this.insertImageSettings.width };
38626
+ value.width = {
38627
+ minWidth: this.insertImageSettings.minWidth,
38628
+ maxWidth: this.insertImageSettings.maxWidth, width: this.insertImageSettings.width
38629
+ };
38573
38630
  }
38574
38631
  if (isNullOrUndefined(value.height)) {
38575
- value.height = { minHeight: this.insertImageSettings.minHeight,
38576
- maxHeight: this.insertImageSettings.maxHeight, height: this.insertImageSettings.height };
38632
+ value.height = {
38633
+ minHeight: this.insertImageSettings.minHeight,
38634
+ maxHeight: this.insertImageSettings.maxHeight, height: this.insertImageSettings.height
38635
+ };
38577
38636
  }
38578
38637
  break;
38579
38638
  }
@@ -38626,12 +38685,16 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
38626
38685
  url = !isNullOrUndefined(url) ? url : '';
38627
38686
  value.url = url;
38628
38687
  if (isNullOrUndefined(value.width)) {
38629
- value.width = { minWidth: this.insertVideoSettings.minWidth,
38630
- maxWidth: this.insertVideoSettings.maxWidth, width: this.insertVideoSettings.width };
38688
+ value.width = {
38689
+ minWidth: this.insertVideoSettings.minWidth,
38690
+ maxWidth: this.insertVideoSettings.maxWidth, width: this.insertVideoSettings.width
38691
+ };
38631
38692
  }
38632
38693
  if (isNullOrUndefined(value.height)) {
38633
- value.height = { minHeight: this.insertVideoSettings.minHeight,
38634
- maxHeight: this.insertVideoSettings.maxHeight, height: this.insertVideoSettings.height };
38694
+ value.height = {
38695
+ minHeight: this.insertVideoSettings.minHeight,
38696
+ maxHeight: this.insertVideoSettings.maxHeight, height: this.insertVideoSettings.height
38697
+ };
38635
38698
  }
38636
38699
  break;
38637
38700
  }
@@ -39045,9 +39108,12 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
39045
39108
  };
39046
39109
  RichTextEditor.prototype.notifyMouseUp = function (e) {
39047
39110
  var touch = (e.touches ? e.changedTouches[0] : e);
39048
- this.notify(mouseUp, { member: 'mouseUp', args: e,
39049
- touchData: { prevClientX: this.clickPoints.clientX, prevClientY: this.clickPoints.clientY,
39050
- clientX: touch.clientX, clientY: touch.clientY }
39111
+ this.notify(mouseUp, {
39112
+ member: 'mouseUp', args: e,
39113
+ touchData: {
39114
+ prevClientX: this.clickPoints.clientX, prevClientY: this.clickPoints.clientY,
39115
+ clientX: touch.clientX, clientY: touch.clientY
39116
+ }
39051
39117
  });
39052
39118
  if (this.inputElement && ((this.editorMode === 'HTML' && ((this.inputElement.textContent.length !== 0) || e.target && !isNullOrUndefined(e.target.querySelector('li')))) ||
39053
39119
  (this.editorMode === 'Markdown' && this.inputElement.value.length !== 0)) ||
@@ -40392,7 +40458,11 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
40392
40458
  this.removeSelectionClassStates(this.inputElement);
40393
40459
  this.notify(focusChange, {});
40394
40460
  var value = this.getUpdatedValue();
40395
- this.setProperties({ value: value });
40461
+ if (!this.rootContainer.classList.contains('e-source-code-enabled')) {
40462
+ this.setProperties({ value: value }, true);
40463
+ } else {
40464
+ this.setProperties({ value: value });
40465
+ }
40396
40466
  this.valueContainer.value = this.value;
40397
40467
  this.isValueChangeBlurhandler = true;
40398
40468
  this.invokeChangeEvent();