@syncfusion/ej2-richtexteditor 29.2.4-738301 → 29.2.4-760237

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 (365) hide show
  1. package/.eslintrc.json +262 -260
  2. package/aceconfig.js +17 -0
  3. package/blazorGlobalSrc/common/config.d.ts +63 -0
  4. package/blazorGlobalSrc/common/config.js +123 -0
  5. package/blazorGlobalSrc/common/constant.d.ts +117 -0
  6. package/blazorGlobalSrc/common/constant.js +23 -0
  7. package/blazorGlobalSrc/common/editor-styles.d.ts +1 -0
  8. package/blazorGlobalSrc/common/editor-styles.js +5 -0
  9. package/blazorGlobalSrc/common/index.d.ts +7 -0
  10. package/blazorGlobalSrc/common/index.js +9 -0
  11. package/blazorGlobalSrc/common/interface.d.ts +119 -0
  12. package/blazorGlobalSrc/common/interface.js +4 -0
  13. package/blazorGlobalSrc/common/types.d.ts +25 -0
  14. package/blazorGlobalSrc/common/types.js +4 -0
  15. package/blazorGlobalSrc/common/user-agent.d.ts +41 -0
  16. package/blazorGlobalSrc/common/user-agent.js +71 -0
  17. package/blazorGlobalSrc/common/util.d.ts +70 -0
  18. package/blazorGlobalSrc/common/util.js +222 -0
  19. package/blazorGlobalSrc/components.d.ts +8 -0
  20. package/blazorGlobalSrc/components.js +12 -0
  21. package/blazorGlobalSrc/editor-manager/base/classes.d.ts +31 -0
  22. package/blazorGlobalSrc/editor-manager/base/classes.js +28 -0
  23. package/blazorGlobalSrc/editor-manager/base/constant.d.ts +97 -0
  24. package/blazorGlobalSrc/editor-manager/base/constant.js +41 -0
  25. package/blazorGlobalSrc/editor-manager/base/editor-manager.d.ts +95 -0
  26. package/blazorGlobalSrc/editor-manager/base/editor-manager.js +339 -0
  27. package/blazorGlobalSrc/editor-manager/base/enum.d.ts +17 -0
  28. package/blazorGlobalSrc/editor-manager/base/enum.js +4 -0
  29. package/blazorGlobalSrc/editor-manager/base/interface.d.ts +263 -0
  30. package/blazorGlobalSrc/editor-manager/base/interface.js +4 -0
  31. package/blazorGlobalSrc/editor-manager/base/types.d.ts +7 -0
  32. package/blazorGlobalSrc/editor-manager/base/types.js +4 -0
  33. package/blazorGlobalSrc/editor-manager/base.d.ts +8 -0
  34. package/blazorGlobalSrc/editor-manager/base.js +10 -0
  35. package/blazorGlobalSrc/editor-manager/index.d.ts +5 -0
  36. package/blazorGlobalSrc/editor-manager/index.js +9 -0
  37. package/blazorGlobalSrc/editor-manager/plugin/alignments.d.ts +26 -0
  38. package/blazorGlobalSrc/editor-manager/plugin/alignments.js +105 -0
  39. package/blazorGlobalSrc/editor-manager/plugin/audio.d.ts +34 -0
  40. package/blazorGlobalSrc/editor-manager/plugin/audio.js +145 -0
  41. package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.d.ts +24 -0
  42. package/blazorGlobalSrc/editor-manager/plugin/clearformat-exec.js +47 -0
  43. package/blazorGlobalSrc/editor-manager/plugin/clearformat.d.ts +29 -0
  44. package/blazorGlobalSrc/editor-manager/plugin/clearformat.js +249 -0
  45. package/blazorGlobalSrc/editor-manager/plugin/dom-node.d.ts +351 -0
  46. package/blazorGlobalSrc/editor-manager/plugin/dom-node.js +737 -0
  47. package/blazorGlobalSrc/editor-manager/plugin/dom-tree.d.ts +84 -0
  48. package/blazorGlobalSrc/editor-manager/plugin/dom-tree.js +164 -0
  49. package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.d.ts +10 -0
  50. package/blazorGlobalSrc/editor-manager/plugin/emoji-picker-action.js +86 -0
  51. package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.d.ts +47 -0
  52. package/blazorGlobalSrc/editor-manager/plugin/format-painter-actions.js +622 -0
  53. package/blazorGlobalSrc/editor-manager/plugin/formats.d.ts +43 -0
  54. package/blazorGlobalSrc/editor-manager/plugin/formats.js +597 -0
  55. package/blazorGlobalSrc/editor-manager/plugin/image.d.ts +48 -0
  56. package/blazorGlobalSrc/editor-manager/plugin/image.js +399 -0
  57. package/blazorGlobalSrc/editor-manager/plugin/indents.d.ts +24 -0
  58. package/blazorGlobalSrc/editor-manager/plugin/indents.js +106 -0
  59. package/blazorGlobalSrc/editor-manager/plugin/insert-methods.d.ts +48 -0
  60. package/blazorGlobalSrc/editor-manager/plugin/insert-methods.js +37 -0
  61. package/blazorGlobalSrc/editor-manager/plugin/insert-text.d.ts +22 -0
  62. package/blazorGlobalSrc/editor-manager/plugin/insert-text.js +36 -0
  63. package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.d.ts +22 -0
  64. package/blazorGlobalSrc/editor-manager/plugin/inserthtml-exec.js +49 -0
  65. package/blazorGlobalSrc/editor-manager/plugin/inserthtml.d.ts +51 -0
  66. package/blazorGlobalSrc/editor-manager/plugin/inserthtml.js +985 -0
  67. package/blazorGlobalSrc/editor-manager/plugin/isformatted.d.ts +89 -0
  68. package/blazorGlobalSrc/editor-manager/plugin/isformatted.js +199 -0
  69. package/blazorGlobalSrc/editor-manager/plugin/link.d.ts +41 -0
  70. package/blazorGlobalSrc/editor-manager/plugin/link.js +550 -0
  71. package/blazorGlobalSrc/editor-manager/plugin/lists.d.ts +74 -0
  72. package/blazorGlobalSrc/editor-manager/plugin/lists.js +1503 -0
  73. package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.d.ts +61 -0
  74. package/blazorGlobalSrc/editor-manager/plugin/ms-word-clean-up.js +1136 -0
  75. package/blazorGlobalSrc/editor-manager/plugin/nodecutter.d.ts +64 -0
  76. package/blazorGlobalSrc/editor-manager/plugin/nodecutter.js +167 -0
  77. package/blazorGlobalSrc/editor-manager/plugin/selection-commands.d.ts +41 -0
  78. package/blazorGlobalSrc/editor-manager/plugin/selection-commands.js +1069 -0
  79. package/blazorGlobalSrc/editor-manager/plugin/selection-exec.d.ts +24 -0
  80. package/blazorGlobalSrc/editor-manager/plugin/selection-exec.js +49 -0
  81. package/blazorGlobalSrc/editor-manager/plugin/table-selection.d.ts +26 -0
  82. package/blazorGlobalSrc/editor-manager/plugin/table-selection.js +210 -0
  83. package/blazorGlobalSrc/editor-manager/plugin/table.d.ts +56 -0
  84. package/blazorGlobalSrc/editor-manager/plugin/table.js +1100 -0
  85. package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.d.ts +39 -0
  86. package/blazorGlobalSrc/editor-manager/plugin/toolbar-status.js +384 -0
  87. package/blazorGlobalSrc/editor-manager/plugin/undo.d.ts +85 -0
  88. package/blazorGlobalSrc/editor-manager/plugin/undo.js +216 -0
  89. package/blazorGlobalSrc/editor-manager/plugin/video.d.ts +38 -0
  90. package/blazorGlobalSrc/editor-manager/plugin/video.js +311 -0
  91. package/blazorGlobalSrc/editor-manager/plugin.d.ts +27 -0
  92. package/blazorGlobalSrc/editor-manager/plugin.js +31 -0
  93. package/blazorGlobalSrc/global.d.ts +1 -0
  94. package/blazorGlobalSrc/global.js +3 -0
  95. package/blazorGlobalSrc/index.d.ts +8 -0
  96. package/blazorGlobalSrc/index.js +12 -0
  97. package/blazorGlobalSrc/markdown-parser/base/constant.d.ts +39 -0
  98. package/blazorGlobalSrc/markdown-parser/base/constant.js +10 -0
  99. package/blazorGlobalSrc/markdown-parser/base/interface.d.ts +169 -0
  100. package/blazorGlobalSrc/markdown-parser/base/interface.js +4 -0
  101. package/blazorGlobalSrc/markdown-parser/base/markdown-parser.d.ts +69 -0
  102. package/blazorGlobalSrc/markdown-parser/base/markdown-parser.js +87 -0
  103. package/blazorGlobalSrc/markdown-parser/base/types.d.ts +7 -0
  104. package/blazorGlobalSrc/markdown-parser/base/types.js +4 -0
  105. package/blazorGlobalSrc/markdown-parser/base.d.ts +7 -0
  106. package/blazorGlobalSrc/markdown-parser/base.js +9 -0
  107. package/blazorGlobalSrc/markdown-parser/index.d.ts +5 -0
  108. package/blazorGlobalSrc/markdown-parser/index.js +9 -0
  109. package/blazorGlobalSrc/markdown-parser/plugin/clearformat.d.ts +28 -0
  110. package/blazorGlobalSrc/markdown-parser/plugin/clearformat.js +110 -0
  111. package/blazorGlobalSrc/markdown-parser/plugin/formats.d.ts +32 -0
  112. package/blazorGlobalSrc/markdown-parser/plugin/formats.js +225 -0
  113. package/blazorGlobalSrc/markdown-parser/plugin/insert-text.d.ts +24 -0
  114. package/blazorGlobalSrc/markdown-parser/plugin/insert-text.js +49 -0
  115. package/blazorGlobalSrc/markdown-parser/plugin/link.d.ts +24 -0
  116. package/blazorGlobalSrc/markdown-parser/plugin/link.js +50 -0
  117. package/blazorGlobalSrc/markdown-parser/plugin/lists.d.ts +39 -0
  118. package/blazorGlobalSrc/markdown-parser/plugin/lists.js +462 -0
  119. package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.d.ts +140 -0
  120. package/blazorGlobalSrc/markdown-parser/plugin/markdown-selection.js +104 -0
  121. package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.d.ts +31 -0
  122. package/blazorGlobalSrc/markdown-parser/plugin/md-selection-formats.js +335 -0
  123. package/blazorGlobalSrc/markdown-parser/plugin/table.d.ts +52 -0
  124. package/blazorGlobalSrc/markdown-parser/plugin/table.js +216 -0
  125. package/blazorGlobalSrc/markdown-parser/plugin/undo.d.ts +83 -0
  126. package/blazorGlobalSrc/markdown-parser/plugin/undo.js +147 -0
  127. package/blazorGlobalSrc/markdown-parser/plugin.d.ts +11 -0
  128. package/blazorGlobalSrc/markdown-parser/plugin.js +15 -0
  129. package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.d.ts +114 -0
  130. package/blazorGlobalSrc/rich-text-editor/actions/base-quick-toolbar.js +465 -0
  131. package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.d.ts +58 -0
  132. package/blazorGlobalSrc/rich-text-editor/actions/base-toolbar.js +216 -0
  133. package/blazorGlobalSrc/rich-text-editor/actions/color-picker.d.ts +52 -0
  134. package/blazorGlobalSrc/rich-text-editor/actions/color-picker.js +241 -0
  135. package/blazorGlobalSrc/rich-text-editor/actions/count.d.ts +55 -0
  136. package/blazorGlobalSrc/rich-text-editor/actions/count.js +117 -0
  137. package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.d.ts +72 -0
  138. package/blazorGlobalSrc/rich-text-editor/actions/dropdown-buttons.js +552 -0
  139. package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.d.ts +51 -0
  140. package/blazorGlobalSrc/rich-text-editor/actions/emoji-picker.js +853 -0
  141. package/blazorGlobalSrc/rich-text-editor/actions/enter-key.d.ts +28 -0
  142. package/blazorGlobalSrc/rich-text-editor/actions/enter-key.js +821 -0
  143. package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.d.ts +11 -0
  144. package/blazorGlobalSrc/rich-text-editor/actions/execute-command-callback.js +28 -0
  145. package/blazorGlobalSrc/rich-text-editor/actions/file-manager.d.ts +45 -0
  146. package/blazorGlobalSrc/rich-text-editor/actions/file-manager.js +249 -0
  147. package/blazorGlobalSrc/rich-text-editor/actions/format-painter.d.ts +25 -0
  148. package/blazorGlobalSrc/rich-text-editor/actions/format-painter.js +156 -0
  149. package/blazorGlobalSrc/rich-text-editor/actions/full-screen.d.ts +40 -0
  150. package/blazorGlobalSrc/rich-text-editor/actions/full-screen.js +148 -0
  151. package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.d.ts +15 -0
  152. package/blazorGlobalSrc/rich-text-editor/actions/html-attributes.js +50 -0
  153. package/blazorGlobalSrc/rich-text-editor/actions/html-editor.d.ts +120 -0
  154. package/blazorGlobalSrc/rich-text-editor/actions/html-editor.js +1244 -0
  155. package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.d.ts +14 -0
  156. package/blazorGlobalSrc/rich-text-editor/actions/html-toolbar-status.js +47 -0
  157. package/blazorGlobalSrc/rich-text-editor/actions/import-export.d.ts +21 -0
  158. package/blazorGlobalSrc/rich-text-editor/actions/import-export.js +117 -0
  159. package/blazorGlobalSrc/rich-text-editor/actions/keyboard-model.d.ts +30 -0
  160. package/blazorGlobalSrc/rich-text-editor/actions/keyboard.d.ts +110 -0
  161. package/blazorGlobalSrc/rich-text-editor/actions/keyboard.js +163 -0
  162. package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.d.ts +66 -0
  163. package/blazorGlobalSrc/rich-text-editor/actions/markdown-editor.js +142 -0
  164. package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.d.ts +23 -0
  165. package/blazorGlobalSrc/rich-text-editor/actions/markdown-toolbar-status.js +124 -0
  166. package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.d.ts +86 -0
  167. package/blazorGlobalSrc/rich-text-editor/actions/paste-clean-up.js +1071 -0
  168. package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.d.ts +151 -0
  169. package/blazorGlobalSrc/rich-text-editor/actions/quick-toolbar.js +548 -0
  170. package/blazorGlobalSrc/rich-text-editor/actions/resize.d.ts +37 -0
  171. package/blazorGlobalSrc/rich-text-editor/actions/resize.js +188 -0
  172. package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.d.ts +11 -0
  173. package/blazorGlobalSrc/rich-text-editor/actions/sanitize-helper.js +168 -0
  174. package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.d.ts +18 -0
  175. package/blazorGlobalSrc/rich-text-editor/actions/toolbar-action.js +76 -0
  176. package/blazorGlobalSrc/rich-text-editor/actions/toolbar.d.ts +185 -0
  177. package/blazorGlobalSrc/rich-text-editor/actions/toolbar.js +512 -0
  178. package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.d.ts +25 -0
  179. package/blazorGlobalSrc/rich-text-editor/actions/xhtml-validation.js +166 -0
  180. package/blazorGlobalSrc/rich-text-editor/actions.d.ts +26 -0
  181. package/blazorGlobalSrc/rich-text-editor/actions.js +30 -0
  182. package/blazorGlobalSrc/rich-text-editor/audio.d.ts +4 -0
  183. package/blazorGlobalSrc/rich-text-editor/audio.js +8 -0
  184. package/blazorGlobalSrc/rich-text-editor/base/classes.d.ts +628 -0
  185. package/blazorGlobalSrc/rich-text-editor/base/classes.js +129 -0
  186. package/blazorGlobalSrc/rich-text-editor/base/constant.d.ts +808 -0
  187. package/blazorGlobalSrc/rich-text-editor/base/constant.js +334 -0
  188. package/blazorGlobalSrc/rich-text-editor/base/enum.d.ts +81 -0
  189. package/blazorGlobalSrc/rich-text-editor/base/enum.js +37 -0
  190. package/blazorGlobalSrc/rich-text-editor/base/interface.d.ts +1577 -0
  191. package/blazorGlobalSrc/rich-text-editor/base/interface.js +194 -0
  192. package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor-model.d.ts +1032 -0
  193. package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.d.ts +1699 -0
  194. package/blazorGlobalSrc/rich-text-editor/base/rich-text-editor.js +2645 -0
  195. package/blazorGlobalSrc/rich-text-editor/base/util.d.ts +212 -0
  196. package/blazorGlobalSrc/rich-text-editor/base/util.js +610 -0
  197. package/blazorGlobalSrc/rich-text-editor/base.d.ts +10 -0
  198. package/blazorGlobalSrc/rich-text-editor/base.js +13 -0
  199. package/blazorGlobalSrc/rich-text-editor/formatter/formatter.d.ts +87 -0
  200. package/blazorGlobalSrc/rich-text-editor/formatter/formatter.js +223 -0
  201. package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.d.ts +34 -0
  202. package/blazorGlobalSrc/rich-text-editor/formatter/html-formatter.js +44 -0
  203. package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.d.ts +39 -0
  204. package/blazorGlobalSrc/rich-text-editor/formatter/markdown-formatter.js +48 -0
  205. package/blazorGlobalSrc/rich-text-editor/formatter.d.ts +6 -0
  206. package/blazorGlobalSrc/rich-text-editor/formatter.js +10 -0
  207. package/blazorGlobalSrc/rich-text-editor/html-editor.d.ts +4 -0
  208. package/blazorGlobalSrc/rich-text-editor/html-editor.js +8 -0
  209. package/blazorGlobalSrc/rich-text-editor/image.d.ts +4 -0
  210. package/blazorGlobalSrc/rich-text-editor/image.js +8 -0
  211. package/blazorGlobalSrc/rich-text-editor/index.d.ts +9 -0
  212. package/blazorGlobalSrc/rich-text-editor/index.js +12 -0
  213. package/blazorGlobalSrc/rich-text-editor/link.d.ts +4 -0
  214. package/blazorGlobalSrc/rich-text-editor/link.js +8 -0
  215. package/blazorGlobalSrc/rich-text-editor/markdown-editor.d.ts +4 -0
  216. package/blazorGlobalSrc/rich-text-editor/markdown-editor.js +8 -0
  217. package/blazorGlobalSrc/rich-text-editor/models/default-locale.d.ts +25 -0
  218. package/blazorGlobalSrc/rich-text-editor/models/default-locale.js +391 -0
  219. package/blazorGlobalSrc/rich-text-editor/models/iframe-settings-model.d.ts +68 -0
  220. package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.d.ts +61 -0
  221. package/blazorGlobalSrc/rich-text-editor/models/iframe-settings.js +60 -0
  222. package/blazorGlobalSrc/rich-text-editor/models/inline-mode-model.d.ts +24 -0
  223. package/blazorGlobalSrc/rich-text-editor/models/inline-mode.d.ts +20 -0
  224. package/blazorGlobalSrc/rich-text-editor/models/inline-mode.js +37 -0
  225. package/blazorGlobalSrc/rich-text-editor/models/items.d.ts +36 -0
  226. package/blazorGlobalSrc/rich-text-editor/models/items.js +1011 -0
  227. package/blazorGlobalSrc/rich-text-editor/models/models.d.ts +7 -0
  228. package/blazorGlobalSrc/rich-text-editor/models/models.js +4 -0
  229. package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings-model.d.ts +40 -0
  230. package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.d.ts +50 -0
  231. package/blazorGlobalSrc/rich-text-editor/models/slash-menu-settings.js +143 -0
  232. package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings-model.d.ts +1130 -0
  233. package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.d.ts +992 -0
  234. package/blazorGlobalSrc/rich-text-editor/models/toolbar-settings.js +510 -0
  235. package/blazorGlobalSrc/rich-text-editor/models.d.ts +4 -0
  236. package/blazorGlobalSrc/rich-text-editor/models.js +4 -0
  237. package/blazorGlobalSrc/rich-text-editor/quick-toolbar.d.ts +4 -0
  238. package/blazorGlobalSrc/rich-text-editor/quick-toolbar.js +8 -0
  239. package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.d.ts +82 -0
  240. package/blazorGlobalSrc/rich-text-editor/renderer/audio-module.js +886 -0
  241. package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.d.ts +65 -0
  242. package/blazorGlobalSrc/rich-text-editor/renderer/content-renderer.js +49 -0
  243. package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.d.ts +39 -0
  244. package/blazorGlobalSrc/rich-text-editor/renderer/dialog-renderer.js +111 -0
  245. package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.d.ts +33 -0
  246. package/blazorGlobalSrc/rich-text-editor/renderer/iframe-content-renderer.js +101 -0
  247. package/blazorGlobalSrc/rich-text-editor/renderer/image-module.d.ts +199 -0
  248. package/blazorGlobalSrc/rich-text-editor/renderer/image-module.js +2494 -0
  249. package/blazorGlobalSrc/rich-text-editor/renderer/link-module.d.ts +63 -0
  250. package/blazorGlobalSrc/rich-text-editor/renderer/link-module.js +596 -0
  251. package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.d.ts +65 -0
  252. package/blazorGlobalSrc/rich-text-editor/renderer/markdown-renderer.js +38 -0
  253. package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.d.ts +54 -0
  254. package/blazorGlobalSrc/rich-text-editor/renderer/popup-renderer.js +35 -0
  255. package/blazorGlobalSrc/rich-text-editor/renderer/render.d.ts +46 -0
  256. package/blazorGlobalSrc/rich-text-editor/renderer/render.js +70 -0
  257. package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.d.ts +20 -0
  258. package/blazorGlobalSrc/rich-text-editor/renderer/slash-menu.js +224 -0
  259. package/blazorGlobalSrc/rich-text-editor/renderer/table-module.d.ts +155 -0
  260. package/blazorGlobalSrc/rich-text-editor/renderer/table-module.js +2206 -0
  261. package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.d.ts +131 -0
  262. package/blazorGlobalSrc/rich-text-editor/renderer/toolbar-renderer.js +747 -0
  263. package/blazorGlobalSrc/rich-text-editor/renderer/video-module.d.ts +120 -0
  264. package/blazorGlobalSrc/rich-text-editor/renderer/video-module.js +1507 -0
  265. package/blazorGlobalSrc/rich-text-editor/renderer/view-source.d.ts +74 -0
  266. package/blazorGlobalSrc/rich-text-editor/renderer/view-source.js +225 -0
  267. package/blazorGlobalSrc/rich-text-editor/renderer.d.ts +17 -0
  268. package/blazorGlobalSrc/rich-text-editor/renderer.js +21 -0
  269. package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.d.ts +33 -0
  270. package/blazorGlobalSrc/rich-text-editor/services/renderer-factory.js +29 -0
  271. package/blazorGlobalSrc/rich-text-editor/services/service-locator.d.ts +29 -0
  272. package/blazorGlobalSrc/rich-text-editor/services/service-locator.js +25 -0
  273. package/blazorGlobalSrc/rich-text-editor/services.d.ts +5 -0
  274. package/blazorGlobalSrc/rich-text-editor/services.js +9 -0
  275. package/blazorGlobalSrc/rich-text-editor/toolbar.d.ts +4 -0
  276. package/blazorGlobalSrc/rich-text-editor/toolbar.js +8 -0
  277. package/blazorGlobalSrc/rich-text-editor/video.d.ts +4 -0
  278. package/blazorGlobalSrc/rich-text-editor/video.js +8 -0
  279. package/blazorGlobalSrc/rich-text-editor.d.ts +4 -0
  280. package/blazorGlobalSrc/rich-text-editor.js +8 -0
  281. package/blazorGlobalSrc/selection/index.d.ts +4 -0
  282. package/blazorGlobalSrc/selection/index.js +8 -0
  283. package/blazorGlobalSrc/selection/selection.d.ts +244 -0
  284. package/blazorGlobalSrc/selection/selection.js +309 -0
  285. package/dist/ej2-richtexteditor.umd.min.js +1 -1
  286. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  287. package/dist/es6/ej2-richtexteditor.es2015.js +6 -4
  288. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  289. package/dist/es6/ej2-richtexteditor.es5.js +6 -4
  290. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  291. package/helpers/e2e/index.d.ts +1 -0
  292. package/helpers/e2e/index.js +8 -0
  293. package/helpers/e2e/rte-helper.d.ts +79 -0
  294. package/helpers/e2e/rte-helper.js +81 -0
  295. package/package.json +1 -1
  296. package/src/editor-manager/plugin/dom-tree.js +6 -4
  297. package/src/global.d.ts +1 -0
  298. package/styles/bds-lite.css +7 -17
  299. package/styles/bds.css +11 -22
  300. package/styles/bootstrap-dark-lite.css +3 -13
  301. package/styles/bootstrap-dark.css +3 -14
  302. package/styles/bootstrap-lite.css +3 -13
  303. package/styles/bootstrap.css +3 -14
  304. package/styles/bootstrap4-lite.css +3 -13
  305. package/styles/bootstrap4.css +3 -14
  306. package/styles/bootstrap5-dark-lite.css +3 -13
  307. package/styles/bootstrap5-dark.css +3 -14
  308. package/styles/bootstrap5-lite.css +3 -13
  309. package/styles/bootstrap5.3-lite.css +3 -13
  310. package/styles/bootstrap5.3.css +3 -14
  311. package/styles/bootstrap5.css +3 -14
  312. package/styles/fabric-dark-lite.css +3 -13
  313. package/styles/fabric-dark.css +3 -14
  314. package/styles/fabric-lite.css +3 -13
  315. package/styles/fabric.css +3 -14
  316. package/styles/fluent-dark-lite.css +3 -13
  317. package/styles/fluent-dark.css +3 -14
  318. package/styles/fluent-lite.css +3 -13
  319. package/styles/fluent.css +3 -14
  320. package/styles/fluent2-lite.css +3 -13
  321. package/styles/fluent2.css +3 -14
  322. package/styles/highcontrast-light-lite.css +3 -13
  323. package/styles/highcontrast-light.css +3 -14
  324. package/styles/highcontrast-lite.css +3 -13
  325. package/styles/highcontrast.css +3 -14
  326. package/styles/material-dark-lite.css +3 -13
  327. package/styles/material-dark.css +3 -14
  328. package/styles/material-lite.css +3 -13
  329. package/styles/material.css +3 -14
  330. package/styles/material3-dark-lite.css +3 -13
  331. package/styles/material3-dark.css +3 -14
  332. package/styles/material3-lite.css +3 -13
  333. package/styles/material3.css +3 -14
  334. package/styles/rich-text-editor/_bds-definition.scss +2 -2
  335. package/styles/rich-text-editor/_bigger.scss +0 -1
  336. package/styles/rich-text-editor/_layout.scss +0 -9
  337. package/styles/rich-text-editor/_theme.scss +3 -0
  338. package/styles/rich-text-editor/bds.css +11 -22
  339. package/styles/rich-text-editor/bootstrap-dark.css +3 -14
  340. package/styles/rich-text-editor/bootstrap.css +3 -14
  341. package/styles/rich-text-editor/bootstrap4.css +3 -14
  342. package/styles/rich-text-editor/bootstrap5-dark.css +3 -14
  343. package/styles/rich-text-editor/bootstrap5.3.css +3 -14
  344. package/styles/rich-text-editor/bootstrap5.css +3 -14
  345. package/styles/rich-text-editor/fabric-dark.css +3 -14
  346. package/styles/rich-text-editor/fabric.css +3 -14
  347. package/styles/rich-text-editor/fluent-dark.css +3 -14
  348. package/styles/rich-text-editor/fluent.css +3 -14
  349. package/styles/rich-text-editor/fluent2.css +3 -14
  350. package/styles/rich-text-editor/highcontrast-light.css +3 -14
  351. package/styles/rich-text-editor/highcontrast.css +3 -14
  352. package/styles/rich-text-editor/material-dark.css +3 -14
  353. package/styles/rich-text-editor/material.css +3 -14
  354. package/styles/rich-text-editor/material3-dark.css +3 -14
  355. package/styles/rich-text-editor/material3.css +3 -14
  356. package/styles/rich-text-editor/tailwind-dark.css +3 -14
  357. package/styles/rich-text-editor/tailwind.css +3 -14
  358. package/styles/rich-text-editor/tailwind3.css +3 -14
  359. package/styles/tailwind-dark-lite.css +3 -13
  360. package/styles/tailwind-dark.css +3 -14
  361. package/styles/tailwind-lite.css +3 -13
  362. package/styles/tailwind.css +3 -14
  363. package/styles/tailwind3-lite.css +3 -13
  364. package/styles/tailwind3.css +3 -14
  365. package/tslint.json +111 -0
@@ -0,0 +1,123 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.markdownFormatTags = {
5
+ 'h6': '###### ',
6
+ 'h5': '##### ',
7
+ 'h4': '#### ',
8
+ 'h3': '### ',
9
+ 'h2': '## ',
10
+ 'h1': '# ',
11
+ 'blockquote': '> ',
12
+ 'pre': '```\n',
13
+ 'p': ''
14
+ };
15
+ exports.markdownSelectionTags = {
16
+ 'Bold': '**',
17
+ 'Italic': '*',
18
+ 'StrikeThrough': '~~',
19
+ 'InlineCode': '`',
20
+ 'SubScript': '<sub>',
21
+ 'SuperScript': '<sup>',
22
+ 'UpperCase': 'A-Z',
23
+ 'LowerCase': 'a-z'
24
+ };
25
+ exports.markdownListsTags = {
26
+ 'OL': '1. ',
27
+ 'UL': '- '
28
+ };
29
+ exports.htmlKeyConfig = {
30
+ 'toolbar-focus': 'alt+f10',
31
+ 'escape': 'escape',
32
+ 'backspace': 'backspace',
33
+ 'insert-link': 'ctrl+k',
34
+ 'insert-image': 'ctrl+shift+i',
35
+ 'insert-audio': 'ctrl+shift+a',
36
+ 'insert-video': 'ctrl+alt+v',
37
+ 'insert-table': 'ctrl+shift+e',
38
+ 'undo': 'ctrl+z',
39
+ 'redo': 'ctrl+y',
40
+ 'copy': 'ctrl+c',
41
+ 'cut': 'ctrl+x',
42
+ 'paste': 'ctrl+v',
43
+ 'bold': 'ctrl+b',
44
+ 'italic': 'ctrl+i',
45
+ 'underline': 'ctrl+u',
46
+ 'strikethrough': 'ctrl+shift+s',
47
+ 'uppercase': 'ctrl+shift+u',
48
+ 'lowercase': 'ctrl+shift+l',
49
+ 'superscript': 'ctrl+shift+=',
50
+ 'subscript': 'ctrl+=',
51
+ 'indents': 'ctrl+]',
52
+ 'outdents': 'ctrl+[',
53
+ 'html-source': 'ctrl+shift+h',
54
+ 'full-screen': 'ctrl+shift+f',
55
+ 'decrease-fontsize': 'ctrl+shift+<',
56
+ 'increase-fontsize': 'ctrl+shift+>',
57
+ 'justify-center': 'ctrl+e',
58
+ 'justify-full': 'ctrl+j',
59
+ 'justify-left': 'ctrl+l',
60
+ 'justify-right': 'ctrl+r',
61
+ 'clear-format': 'ctrl+shift+r',
62
+ 'ordered-list': 'ctrl+shift+o',
63
+ 'unordered-list': 'ctrl+alt+o',
64
+ 'space': 'space',
65
+ 'enter': 'enter',
66
+ 'tab': 'tab',
67
+ 'delete': 'delete',
68
+ 'format-copy': 'alt+shift+c',
69
+ 'format-paste': 'alt+shift+v',
70
+ 'inlinecode': 'ctrl+`'
71
+ };
72
+ exports.markdownKeyConfig = {
73
+ 'toolbar-focus': 'alt+f10',
74
+ 'escape': '27',
75
+ 'insert-link': 'ctrl+k',
76
+ 'insert-image': 'ctrl+shift+i',
77
+ 'insert-table': 'ctrl+shift+e',
78
+ 'undo': 'ctrl+z',
79
+ 'redo': 'ctrl+y',
80
+ 'copy': 'ctrl+c',
81
+ 'cut': 'ctrl+x',
82
+ 'paste': 'ctrl+v',
83
+ 'bold': 'ctrl+b',
84
+ 'italic': 'ctrl+i',
85
+ 'strikethrough': 'ctrl+shift+s',
86
+ 'uppercase': 'ctrl+shift+u',
87
+ 'lowercase': 'ctrl+shift+l',
88
+ 'superscript': 'ctrl+shift+=',
89
+ 'subscript': 'ctrl+=',
90
+ 'full-screen': 'ctrl+shift+f',
91
+ 'ordered-list': 'ctrl+shift+o',
92
+ 'unordered-list': 'ctrl+alt+o'
93
+ };
94
+ exports.pasteCleanupGroupingTags = {
95
+ 'b': ['strong'],
96
+ 'strong': ['b'],
97
+ 'i': ['emp', 'cite'],
98
+ 'emp': ['i', 'cite'],
99
+ 'cite': ['i', 'emp']
100
+ };
101
+ exports.listConversionFilters = {
102
+ 'first': 'MsoListParagraphCxSpFirst',
103
+ 'middle': 'MsoListParagraphCxSpMiddle',
104
+ 'last': 'MsoListParagraphCxSpLast'
105
+ };
106
+ exports.selfClosingTags = [
107
+ 'BR',
108
+ 'IMG'
109
+ ];
110
+ exports.imageResizeFactor = {
111
+ topLeft: [-1, -1],
112
+ topRight: [1, -1],
113
+ botRight: [1, 1],
114
+ botLeft: [-1, 1]
115
+ };
116
+ exports.mentionRestrictKeys = [
117
+ 'ArrowUp',
118
+ 'ArrowDown',
119
+ 'Enter',
120
+ 'Tab',
121
+ 'Escape'
122
+ ];
123
+ });
@@ -0,0 +1,117 @@
1
+ /**
2
+ * Constant values for Common
3
+ */
4
+ /**
5
+ * Keydown event trigger
6
+ *
7
+ * @hidden
8
+ */
9
+ export declare const KEY_DOWN: string;
10
+ /**
11
+ * Undo and Redo action HTML plugin events
12
+ *
13
+ * @hidden
14
+ */
15
+ export declare const ACTION: string;
16
+ /**
17
+ * Formats plugin events
18
+ *
19
+ * @hidden
20
+ */
21
+ export declare const FORMAT_TYPE: string;
22
+ /**
23
+ * Keydown handler event trigger
24
+ *
25
+ * @hidden
26
+ */
27
+ export declare const KEY_DOWN_HANDLER: string;
28
+ /**
29
+ * List plugin events
30
+ *
31
+ * @hidden
32
+ */
33
+ export declare const LIST_TYPE: string;
34
+ /**
35
+ * Keyup handler event trigger
36
+ *
37
+ * @hidden
38
+ */
39
+ export declare const KEY_UP_HANDLER: string;
40
+ /**
41
+ * Keyup event trigger
42
+ *
43
+ * @hidden
44
+ */
45
+ export declare const KEY_UP: string;
46
+ /**
47
+ * Model changed plugin event trigger
48
+ *
49
+ * @hidden
50
+ */
51
+ export declare const MODEL_CHANGED_PLUGIN: string;
52
+ /**
53
+ * Model changed event trigger
54
+ *
55
+ * @hidden
56
+ */
57
+ export declare const MODEL_CHANGED: string;
58
+ /**
59
+ * PasteCleanup plugin for MSWord content
60
+ *
61
+ * @hidden
62
+ */
63
+ export declare const MS_WORD_CLEANUP_PLUGIN: string;
64
+ /**
65
+ * PasteCleanup for MSWord content
66
+ *
67
+ * @hidden
68
+ */
69
+ export declare const MS_WORD_CLEANUP: string;
70
+ /**
71
+ * ActionBegin event callback
72
+ *
73
+ * @hidden
74
+ */
75
+ export declare const ON_BEGIN: string;
76
+ /**
77
+ * Callback for spacelist action
78
+ *
79
+ * @hidden
80
+ */
81
+ export declare const SPACE_ACTION: string;
82
+ /**
83
+ * Format painter event constant
84
+ *
85
+ * @hidden
86
+ */
87
+ export declare const FORMAT_PAINTER_ACTIONS: string;
88
+ /**
89
+ * Blockquotes enter prevent when on list is applied event constant
90
+ *
91
+ * @hidden
92
+ */
93
+ export declare const BLOCKQUOTE_LIST_HANDLE: string;
94
+ /**
95
+ * Emoji picker event constant
96
+ *
97
+ * @hidden
98
+ */
99
+ export declare const EMOJI_PICKER_ACTIONS: string;
100
+ /**
101
+ * Mouse down event constant
102
+ *
103
+ * @hidden
104
+ */
105
+ export declare const MOUSE_DOWN: string;
106
+ /**
107
+ * destroy event constant
108
+ *
109
+ * @hidden
110
+ */
111
+ export declare const DESTROY: string;
112
+ /**
113
+ * internal_destroy event constant
114
+ *
115
+ * @hidden
116
+ */
117
+ export declare const INTERNAL_DESTROY: string;
@@ -0,0 +1,23 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.KEY_DOWN = 'keydown';
5
+ exports.ACTION = 'action';
6
+ exports.FORMAT_TYPE = 'format-type';
7
+ exports.KEY_DOWN_HANDLER = 'keydown-handler';
8
+ exports.LIST_TYPE = 'list-type';
9
+ exports.KEY_UP_HANDLER = 'keyup-handler';
10
+ exports.KEY_UP = 'keyup';
11
+ exports.MODEL_CHANGED_PLUGIN = 'model_changed_plugin';
12
+ exports.MODEL_CHANGED = 'model_changed';
13
+ exports.MS_WORD_CLEANUP_PLUGIN = 'ms_word_cleanup_plugin';
14
+ exports.MS_WORD_CLEANUP = 'ms_word_cleanup';
15
+ exports.ON_BEGIN = 'onBegin';
16
+ exports.SPACE_ACTION = 'actionBegin';
17
+ exports.FORMAT_PAINTER_ACTIONS = 'format_painter_actions';
18
+ exports.BLOCKQUOTE_LIST_HANDLE = 'blockquote_list_handled';
19
+ exports.EMOJI_PICKER_ACTIONS = 'emoji_picker_actions';
20
+ exports.MOUSE_DOWN = 'mouseDown';
21
+ exports.DESTROY = 'destroy';
22
+ exports.INTERNAL_DESTROY = 'internal_destroy';
23
+ });
@@ -0,0 +1 @@
1
+ export declare const IFRAME_EDITOR_STYLES: string;
@@ -0,0 +1,5 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IFRAME_EDITOR_STYLES = "\n@charset \"UTF-8\";\n\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: auto;\n}\n\nhtml, body {\n margin: 0;\n}\n\nbody {\n color: #333;\n word-wrap: break-word;\n}\n\n.e-content {\n background: unset;\n min-height: 100px;\n outline: 0 solid transparent;\n padding: 16px;\n position: relative;\n overflow-x: auto;\n font-weight: normal;\n line-height: 1.5;\n font-size: 14px;\n text-align: inherit;\n font-family: \"Roboto\", \"Segoe UI\", \"GeezaPro\", \"DejaVu Serif\", \"sans-serif\", \"-apple-system\", \"BlinkMacSystemFont\";\n}\n\n.e-content p {\n margin: 0 0 10px;\n margin-bottom: 10px;\n}\n\n.e-content h1 {\n font-size: 2.857em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h2 {\n font-size: 2.285em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h3 {\n font-size: 2em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h4 {\n font-size: 1.714em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h5 {\n font-size: 1.428em;\n font-weight: 600;\n line-height: 1.2;\n margin: 10px 0;\n}\n\n.e-content h6 {\n font-size: 1.142em;\n font-weight: 600;\n line-height: 1.5;\n margin: 10px 0;\n}\n\n.e-content blockquote {\n margin: 10px 0;\n padding-left: 12px;\n border-left: 2px solid #5c5c5c;\n}\n\n.e-rtl.e-content blockquote {\n padding-left: 0;\n padding-right: 12px;\n}\n\n.e-content pre {\n border: 0;\n border-radius: 0;\n color: #333;\n font-size: inherit;\n line-height: inherit;\n margin: 0 0 10px;\n overflow: visible;\n padding: 0;\n white-space: pre-wrap;\n word-break: inherit;\n word-wrap: break-word;\n}\n\n.e-content code {\n background: #9d9d9d26;\n color: #ed484c;\n}\n\n.e-content strong,\n.e-content b {\n font-weight: bold;\n}\n\n.e-content a {\n text-decoration: none;\n user-select: auto;\n}\n\n.e-content a:hover {\n text-decoration: underline;\n}\n\n.e-content li {\n margin-bottom: 10px;\n}\n\n.e-content li ol,\n.e-content li ul {\n margin-block-start: 10px;\n}\n\n.e-content ul {\n list-style-type: disc;\n}\n\n.e-content ul ul,\n.e-content ol ul {\n list-style-type: circle;\n}\n\n.e-content ul ul ul,\n.e-content ol ul ul,\n.e-content ul ol ul,\n.e-content ol ol ul {\n list-style-type: square;\n}\n\n.e-content p:last-child,\n.e-content pre:last-child,\n.e-content blockquote:last-child {\n margin-bottom: 0;\n}\n\n.e-content h3 + h4,\n.e-content h4 + h5,\n.e-content h5 + h6 {\n margin-top: 0.6em;\n}\n\n.e-content ul:last-child {\n margin-bottom: 0;\n}\n\n.e-content table {\n margin-bottom: 10px;\n border-collapse: collapse;\n empty-cells: show;\n}\n\n.e-content table.e-cell-select {\n position: relative;\n}\n\n.e-content table.e-cell-select::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid #4a90e2;\n pointer-events: none;\n}\n\ntable .e-cell-select {\n border: 1px double #4a90e2 !important;\n}\n\n.e-content table.e-rte-table th {\n background-color: rgba(157, 157, 157, .15);\n}\n\n.e-rte-table td,\n.e-rte-table th {\n border: 1px solid #BDBDBD;\n height: 20px;\n min-width: 20px;\n padding: 2px 5px;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select,\n.e-rte-table th.e-cell-select.e-multi-cells-select {\n position: relative;\n}\n\n.e-rte-table td.e-cell-select.e-multi-cells-select::after,\n.e-rte-table th.e-cell-select.e-multi-cells-select::after {\n background-color: rgba(13, 110, 253, 0.08);\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n bottom: 0;\n pointer-events: none;\n right: 0;\n}\n\ntable td.e-multi-cells-select ::selection,\ntable th.e-multi-cells-select ::selection {\n background-color: transparent;\n}\n\ntd.e-multi-cells-select,\nth.e-multi-cells-select {\n user-select: none !important;\n}\n\n.e-rte-table.e-dashed-border > tbody > tr > td,\n.e-rte-table.e-dashed-border > tbody > tr > th {\n border-style: dashed;\n}\n\n.e-rte-table.e-alternate-border tbody tr:nth-child(2n) {\n background-color: #F5F5F5;\n}\n\n.e-rte-image,\n.e-rte-audio,\n.e-rte-video {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imginline,\n.e-rte-audio.e-audio-inline,\n.e-rte-video.e-video-inline {\n margin-left: 5px;\n margin-right: 5px;\n display: inline-block;\n float: none;\n max-width: 100%;\n padding: 1px;\n vertical-align: bottom;\n}\n\n.e-rte-image.e-imgcenter,\n.e-rte-video.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-imgright,\n.e-rte-video.e-video-right {\n float: right;\n margin: 0 auto;\n margin-left: 5px;\n text-align: right;\n}\n\n.e-rte-image.e-imgleft,\n.e-rte-video.e-video-left {\n float: left;\n margin: 0 auto;\n margin-right: 5px;\n text-align: left;\n}\n\n.e-rte-img-caption {\n display: inline-block;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-img-caption.e-caption-inline {\n display: inline-block;\n margin: 5px auto;\n margin-left: 5px;\n margin-right: 5px;\n max-width: calc(100% - (2 * 5px));\n position: relative;\n text-align: center;\n vertical-align: bottom;\n}\n\n.e-rte-img-caption.e-imgcenter {\n display: contents;\n margin-left: auto;\n margin-right: auto;\n}\n\n.e-rte-img-caption.e-imgright {\n display: contents;\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption.e-imgleft {\n display: contents;\n margin-left: 0;\n margin-right: auto;\n}\n\n.e-img-caption.e-rte-img-caption.e-imgbreak {\n display: contents;\n}\n\n.e-rte-img-caption .e-img-inner {\n display: block;\n font-size: 16px;\n font-weight: initial;\n margin: auto;\n opacity: .9;\n position: relative;\n text-align: center;\n width: 100%;\n}\n\n.e-img-wrap {\n display: inline-block;\n margin: auto;\n padding: 0;\n text-align: center;\n width: 100%;\n}\n\n.e-imgleft,\n.e-video-left {\n float: left;\n margin: 0 5px 0 0;\n text-align: left;\n}\n\n.e-imgright,\n.e-video-right {\n float: right;\n margin: 0 0 0 5px;\n text-align: right;\n}\n\n.e-imgcenter,\n.e-video-center {\n cursor: pointer;\n display: block;\n float: none;\n height: auto;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-control img:not(.e-resize) {\n border: 2px solid transparent;\n z-index: 1000\n}\n\n.e-imginline,\n.e-audio-inline,\n.e-video-inline {\n display: inline-block;\n float: none;\n margin-left: 5px;\n margin-right: 5px;\n vertical-align: bottom;\n}\n\n.e-imgbreak,\n.e-audio-break,\n.e-video-break {\n border: 0;\n cursor: pointer;\n display: block;\n float: none;\n margin: 5px auto;\n max-width: 100%;\n position: relative;\n}\n\n.e-rte-image.e-img-focus:not(.e-resize),\n.e-audio-focus:not(.e-resize),\n.e-video-focus:not(.e-resize) {\n border: solid 2px #4a90e2;\n}\n\nimg.e-img-focus::selection,\naudio.e-audio-focus::selection,\n.e-video-focus::selection {\n background: transparent;\n color: transparent;\n}\n\nspan.e-rte-imageboxmark,\nspan.e-rte-videoboxmark {\n width: 10px;\n height: 10px;\n position: absolute;\n display: block;\n background: #4a90e2;\n border: 1px solid #fff;\n z-index: 1000;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-mob-rte span.e-rte-imageboxmark,\n.e-mob-rte span.e-rte-videoboxmark {\n background: #fff;\n border: 1px solid #4a90e2;\n border-radius: 15px;\n height: 20px;\n width: 20px;\n}\n\n.e-mob-rte.e-mob-span span.e-rte-imageboxmark,\n.e-mob-rte.e-mob-span span.e-rte-videoboxmark {\n background: #4a90e2;\n border: 1px solid #fff;\n}\n\n.e-content img.e-resize,\n.e-content video.e-resize {\n z-index: 1000;\n}\n\n.e-img-caption .e-img-inner {\n outline: 0;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-inner {\n float: left;\n text-align: left;\n}\n\n.e-rte-img-caption.e-imgright .e-img-inner {\n float: right;\n text-align: right;\n}\n\n.e-rte-img-caption.e-imgleft .e-img-wrap,\n.e-rte-img-caption.e-imgright .e-img-wrap {\n display: contents;\n}\n\n.e-img-caption a:focus-visible {\n outline: none;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgright {\n margin-left: auto;\n margin-right: 0;\n}\n\n.e-rte-img-caption .e-rte-image.e-imgleft {\n margin: 0;\n}\n\nspan.e-table-box {\n cursor: nwse-resize;\n display: block;\n height: 10px;\n position: absolute;\n width: 10px;\n background-color: #ffffff;\n border: 1px solid #BDBDBD;\n}\n\nspan.e-table-box.e-rmob {\n height: 14px;\n width: 14px;\n background-color: #BDBDBD;\n border: 1px solid #BDBDBD;\n}\n\n.e-row-resize,\n.e-column-resize {\n background-color: transparent;\n background-repeat: repeat;\n bottom: 0;\n cursor: col-resize;\n height: 1px;\n overflow: visible;\n position: absolute;\n width: 1px;\n}\n\n.e-row-resize {\n cursor: row-resize;\n height: 1px;\n}\n\n.e-table-rhelper {\n cursor: col-resize;\n opacity: .87;\n position: absolute;\n}\n\n.e-table-rhelper.e-column-helper {\n width: 1px;\n}\n\n.e-table-rhelper.e-row-helper {\n height: 1px;\n}\n\n.e-reicon::before {\n border-bottom: 6px solid transparent;\n border-right: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n position: absolute;\n right: 4px;\n top: 4px;\n width: 20px;\n}\n\n.e-reicon::after {\n border-bottom: 6px solid transparent;\n border-left: 6px solid;\n border-top: 6px solid transparent;\n content: '';\n display: block;\n height: 0;\n left: 4px;\n position: absolute;\n top: 4px;\n width: 20px;\n z-index: 3;\n}\n\n.e-row-helper.e-reicon::after {\n top: 10px;\n transform: rotate(90deg);\n}\n\n.e-row-helper.e-reicon::before {\n left: 4px;\n top: -20px;\n transform: rotate(90deg);\n}\n\n\n.e-table-rhelper {\n background-color: #4a90e2;\n}\n\n.e-rtl {\n direction: rtl;\n}\n\n.e-rte-placeholder::before {\n content: attr(placeholder);\n opacity: 0.54;\n overflow: hidden;\n padding-top: 16px;\n position: absolute;\n text-align: start;\n top: 0;\n z-index: 1;\n}\n\n.e-resize-enabled,\n.e-count-enabled {\n padding-bottom: 0px;\n}\n";
5
+ });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Export the common module
3
+ */
4
+ export * from './config';
5
+ export * from './constant';
6
+ export * from './interface';
7
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ define(["require", "exports", "./config", "./constant"], function (require, exports, config_1, constant_1) {
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ __export(config_1);
8
+ __export(constant_1);
9
+ });
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Specifies common models interfaces.
3
+ *
4
+ * @hidden
5
+ * @deprecated
6
+ */
7
+ import { EditorMode } from './types';
8
+ /**
9
+ * @deprecated
10
+ */
11
+ export interface IAdvanceListItem {
12
+ listStyle?: string;
13
+ listImage?: string;
14
+ type?: string;
15
+ }
16
+ /**
17
+ * @deprecated
18
+ */
19
+ export interface IMarkdownFormatterCallBack {
20
+ selectedText?: string;
21
+ editorMode?: EditorMode;
22
+ action?: string;
23
+ event?: KeyboardEvent | MouseEvent;
24
+ requestType?: string;
25
+ }
26
+ /**
27
+ * @deprecated
28
+ */
29
+ export interface IHtmlFormatterCallBack {
30
+ selectedNode?: Element;
31
+ requestType?: string;
32
+ range?: Range;
33
+ editorMode?: EditorMode;
34
+ action?: string;
35
+ elements?: Element | Element[];
36
+ imgElem?: Element | Element[];
37
+ event?: KeyboardEvent | MouseEvent;
38
+ }
39
+ /**
40
+ * @deprecated
41
+ */
42
+ export interface IMarkdownToolbarStatus {
43
+ OrderedList: boolean;
44
+ UnorderedList: boolean;
45
+ Formats: string;
46
+ }
47
+ /**
48
+ * @deprecated
49
+ */
50
+ export interface IUndoCallBack {
51
+ callBack?: Function;
52
+ event?: Object;
53
+ }
54
+ /**
55
+ * @deprecated
56
+ */
57
+ export interface IToolbarStatus {
58
+ bold?: boolean;
59
+ italic?: boolean;
60
+ underline?: boolean;
61
+ strikethrough?: boolean;
62
+ superscript?: boolean;
63
+ subscript?: boolean;
64
+ fontcolor?: string;
65
+ fontname?: string;
66
+ fontsize?: string;
67
+ backgroundcolor?: string;
68
+ formats?: string;
69
+ alignments?: string;
70
+ orderedlist?: boolean;
71
+ unorderedlist?: boolean;
72
+ inlinecode?: boolean;
73
+ uppercase?: boolean;
74
+ lowercase?: boolean;
75
+ createlink?: boolean;
76
+ insertcode?: boolean;
77
+ blockquote?: boolean;
78
+ numberFormatList?: string | boolean;
79
+ bulletFormatList?: string | boolean;
80
+ InlineCode?: boolean;
81
+ }
82
+ /**
83
+ * @deprecated
84
+ * @private
85
+ *
86
+ *
87
+ * */
88
+ export interface IImageResizeFactor {
89
+ topLeft: [number, number];
90
+ topRight: [number, number];
91
+ botLeft: [number, number];
92
+ botRight: [number, number];
93
+ }
94
+ /**
95
+ * The `ImageOrTableCursor` is used to specify the image or table cursor in Enter key Module.
96
+ *
97
+ * @private
98
+ * @hidden
99
+ *
100
+ *
101
+ * */
102
+ export interface ImageOrTableCursor {
103
+ start: boolean;
104
+ startName: string;
105
+ end: boolean;
106
+ endName: string;
107
+ startNode?: HTMLElement;
108
+ endNode?: HTMLElement;
109
+ }
110
+ /**
111
+ * The `ImageDimension` is used to specify the width and height of the editor image.
112
+ *
113
+ * @private
114
+ * @hidden
115
+ */
116
+ export interface ImageDimension {
117
+ width: number;
118
+ height: number;
119
+ }
@@ -0,0 +1,4 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Specifies the modes available for rendering the Rich Text Editor.
3
+ * Options are either in HTML or Markdown format.
4
+ */
5
+ export declare type EditorMode = 'HTML' | 'Markdown';
6
+ /**
7
+ * Specifies the formats available for saving images.
8
+ * Options include saving as Base64 or Blob.
9
+ */
10
+ export declare type SaveFormat = 'Base64' | 'Blob';
11
+ /**
12
+ * Specifies the layout options for displaying audio or video content.
13
+ * Options are Inline or Break.
14
+ */
15
+ export declare type DisplayLayoutOptions = 'Inline' | 'Break';
16
+ /**
17
+ * Specifies the HTML tag used when the enter key is pressed.
18
+ * Options include P, DIV, or BR.
19
+ */
20
+ export declare type EnterKey = 'P' | 'DIV' | 'BR';
21
+ /**
22
+ * Specifies the HTML tag used when shift + enter keys are pressed.
23
+ * Options include P, DIV, or BR.
24
+ */
25
+ export declare type ShiftEnterKey = 'P' | 'DIV' | 'BR';
@@ -0,0 +1,4 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ });
@@ -0,0 +1,41 @@
1
+ declare type BrowserList = 'Chrome' | 'Firefox' | 'Safari' | 'Edge' | 'Unknown';
2
+ declare type Platform = 'Windows' | 'macOS' | 'Linux' | 'iOS' | 'Android' | 'Unknown';
3
+ /**
4
+ * This class returns the browser platform details from the user agent string.
5
+ */
6
+ export declare class CustomUserAgentData {
7
+ private userAgent;
8
+ private isTesting;
9
+ constructor(userAgent: string, testing: boolean);
10
+ /**
11
+ *
12
+ * To get the platform name from the user agent string.
13
+ *
14
+ * @hidden
15
+ * @returns {Platform} - Returns the platform name.
16
+ */
17
+ getPlatform(): Platform;
18
+ /**
19
+ *
20
+ * To get the platform name from the user agent string.
21
+ *
22
+ * @hidden
23
+ * @returns {BrowserList} - Returns the platform name.
24
+ */
25
+ getBrowser(): BrowserList;
26
+ /**
27
+ * To check whether the browser is a mobile device.
28
+ *
29
+ * @hidden
30
+ * @returns {boolean} - Returns true if the device is a mobile device.
31
+ */
32
+ isMobileDevice(): boolean;
33
+ /**
34
+ * To check whether the browser is a mobile device.
35
+ *
36
+ * @hidden
37
+ * @returns {boolean} - Returns true if the device is a mobile device.
38
+ */
39
+ isSafari(): boolean;
40
+ }
41
+ export {};
@@ -0,0 +1,71 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ var CustomUserAgentData = (function () {
5
+ function CustomUserAgentData(userAgent, testing) {
6
+ this.userAgent = userAgent;
7
+ this.isTesting = testing;
8
+ }
9
+ CustomUserAgentData.prototype.getPlatform = function () {
10
+ if (!this.isTesting && window.navigator.userAgentData) {
11
+ return window.navigator.userAgentData.platform;
12
+ }
13
+ if (/windows/i.test(this.userAgent)) {
14
+ return 'Windows';
15
+ }
16
+ if (/macintosh|mac os/i.test(this.userAgent) && !(/iphone|ipad|ipod/i.test(this.userAgent))) {
17
+ return 'macOS';
18
+ }
19
+ if (/linux/i.test(this.userAgent) && !(/android/i.test(this.userAgent))) {
20
+ return 'Linux';
21
+ }
22
+ if (/iphone|ipad|ipod/i.test(this.userAgent)) {
23
+ return 'iOS';
24
+ }
25
+ if (/android/i.test(this.userAgent)) {
26
+ return 'Android';
27
+ }
28
+ return 'Unknown';
29
+ };
30
+ CustomUserAgentData.prototype.getBrowser = function () {
31
+ var brands = [];
32
+ if (!this.isTesting && window.navigator.userAgentData) {
33
+ brands = window.navigator.userAgentData.brands;
34
+ for (var _i = 0, brands_1 = brands; _i < brands_1.length; _i++) {
35
+ var brand = brands_1[_i];
36
+ if (brand.brand === 'Google Chrome') {
37
+ return 'Chrome';
38
+ }
39
+ else if (brand.brand === 'Microsoft Edge') {
40
+ return 'Edge';
41
+ }
42
+ }
43
+ }
44
+ if (/chrome|chromium|crios/i.test(this.userAgent) && !/edg/i.test(this.userAgent)) {
45
+ return 'Chrome';
46
+ }
47
+ if (/firefox|fxios/i.test(this.userAgent) && !/edg/i.test(this.userAgent)) {
48
+ return 'Firefox';
49
+ }
50
+ if (/safari/i.test(this.userAgent) && !/chrome|chromium|crios/i.test(this.userAgent)) {
51
+ return 'Safari';
52
+ }
53
+ if (/edg/i.test(this.userAgent)) {
54
+ return 'Edge';
55
+ }
56
+ return 'Unknown';
57
+ };
58
+ CustomUserAgentData.prototype.isMobileDevice = function () {
59
+ if (!this.isTesting && window.navigator.userAgentData) {
60
+ return window.navigator.userAgentData.mobile;
61
+ }
62
+ return /(iphone|ipod|ipad|android|blackberry|bb|playbook|windows phone|webos|opera mini|mobile)/i.test(this.userAgent);
63
+ };
64
+ CustomUserAgentData.prototype.isSafari = function () {
65
+ var platform = this.getPlatform();
66
+ return this.getBrowser() === 'Safari' && (platform === 'macOS' || platform === 'iOS');
67
+ };
68
+ return CustomUserAgentData;
69
+ }());
70
+ exports.CustomUserAgentData = CustomUserAgentData;
71
+ });
@@ -0,0 +1,70 @@
1
+ import { IToolbarStatus } from './interface';
2
+ /**
3
+ * @returns {void}
4
+ * @hidden
5
+ */
6
+ export declare function isIDevice(): boolean;
7
+ /**
8
+ * @param {Element} editableElement - specifies the editable element.
9
+ * @param {string} selector - specifies the string values.
10
+ * @returns {void}
11
+ * @hidden
12
+ */
13
+ export declare function setEditFrameFocus(editableElement: Element, selector: string): void;
14
+ /**
15
+ * @param {string} value - specifies the string value
16
+ * @returns {void}
17
+ * @hidden
18
+ */
19
+ export declare function updateTextNode(value: string): string;
20
+ /**
21
+ * @param {Node} startChildNodes - specifies the node
22
+ * @returns {void}
23
+ * @hidden
24
+ */
25
+ export declare function getLastTextNode(startChildNodes: Node): Node;
26
+ /**
27
+ * @returns {void}
28
+ * @hidden
29
+ */
30
+ export declare function getDefaultHtmlTbStatus(): IToolbarStatus;
31
+ /**
32
+ * @returns {void}
33
+ * @hidden
34
+ */
35
+ export declare function getDefaultMDTbStatus(): IToolbarStatus;
36
+ /**
37
+ * @param {Range} range - specifies the range
38
+ * @param {Node} parentNode - specifies the parent node
39
+ * @returns {void}
40
+ * @hidden
41
+ */
42
+ export declare function nestedListCleanUp(range: Range, parentNode: Node): void;
43
+ /**
44
+ * Method to scroll the content to the cursor position
45
+ *
46
+ * @param {Document} document - specifies the document.
47
+ * @param {HTMLElement | HTMLBodyElement} inputElement - specifies the input element.
48
+ * @returns {void}
49
+ */
50
+ export declare function scrollToCursor(document: Document, inputElement: HTMLElement | HTMLBodyElement): void;
51
+ /**
52
+ * Inserts items at a specific index in an array.
53
+ *
54
+ * @template T
55
+ * @param {Array<T>} oldArray - Specifies the old array.
56
+ * @param {Array<T>} newArray - Specifies the elements to insert.
57
+ * @param {number} indexToInsert - Specifies the index to insert.
58
+ * @returns {Array<T>} - Returns the array after inserting the elements.
59
+ */
60
+ export declare function insertItemsAtIndex<T>(oldArray: Array<T>, newArray: Array<T>, indexToInsert: number): Array<T>;
61
+ /**
62
+ * Wrapper function to remove a class from the element and remove the attribute if the class is empty.
63
+ *
64
+ * @param {Element[]|NodeList} elements - An array of elements that need to remove a list of classes
65
+ * @param {string|string[]} classes - String or array of string that need to add an individual element as a class
66
+ *
67
+ * @returns {Element[]|NodeList} - Returns the array of elements after removing the class.
68
+ * @private
69
+ */
70
+ export declare function removeClassWithAttr(elements: Element[] | NodeList, classes: string | string[]): Element[] | NodeList;