@syncfusion/ej2-richtexteditor 26.2.10 → 26.2.11-618955

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 (225) 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 +233 -179
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +321 -267
  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/common/util.js +7 -0
  16. package/src/editor-manager/base/classes.d.ts +1 -1
  17. package/src/editor-manager/base/classes.js +1 -1
  18. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  19. package/src/editor-manager/base/editor-manager.js +3 -3
  20. package/src/editor-manager/base/enum.d.ts +2 -2
  21. package/src/editor-manager/base/interface.d.ts +9 -9
  22. package/src/editor-manager/base/types.d.ts +1 -1
  23. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  24. package/src/editor-manager/plugin/alignments.js +2 -2
  25. package/src/editor-manager/plugin/audio.d.ts +3 -3
  26. package/src/editor-manager/plugin/audio.js +3 -3
  27. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  28. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  29. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  30. package/src/editor-manager/plugin/clearformat.js +1 -1
  31. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  32. package/src/editor-manager/plugin/dom-node.js +36 -36
  33. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  34. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  35. package/src/editor-manager/plugin/formats.d.ts +2 -2
  36. package/src/editor-manager/plugin/formats.js +3 -3
  37. package/src/editor-manager/plugin/image.d.ts +3 -3
  38. package/src/editor-manager/plugin/image.js +3 -3
  39. package/src/editor-manager/plugin/indents.d.ts +2 -2
  40. package/src/editor-manager/plugin/indents.js +2 -2
  41. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  42. package/src/editor-manager/plugin/insert-methods.js +4 -4
  43. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  44. package/src/editor-manager/plugin/insert-text.js +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
  48. package/src/editor-manager/plugin/inserthtml.js +22 -10
  49. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  50. package/src/editor-manager/plugin/isformatted.js +8 -8
  51. package/src/editor-manager/plugin/link.d.ts +2 -2
  52. package/src/editor-manager/plugin/link.js +2 -2
  53. package/src/editor-manager/plugin/lists.d.ts +2 -2
  54. package/src/editor-manager/plugin/lists.js +2 -4
  55. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  56. package/src/editor-manager/plugin/ms-word-clean-up.js +9 -4
  57. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  58. package/src/editor-manager/plugin/nodecutter.js +6 -6
  59. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  60. package/src/editor-manager/plugin/selection-commands.js +19 -2
  61. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  62. package/src/editor-manager/plugin/selection-exec.js +2 -2
  63. package/src/editor-manager/plugin/table.d.ts +2 -2
  64. package/src/editor-manager/plugin/table.js +3 -3
  65. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  67. package/src/editor-manager/plugin/undo.d.ts +6 -6
  68. package/src/editor-manager/plugin/undo.js +6 -6
  69. package/src/editor-manager/plugin/video.d.ts +3 -3
  70. package/src/editor-manager/plugin/video.js +3 -3
  71. package/src/markdown-parser/base/interface.d.ts +10 -10
  72. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  73. package/src/markdown-parser/base/markdown-parser.js +3 -3
  74. package/src/markdown-parser/base/types.d.ts +1 -1
  75. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  76. package/src/markdown-parser/plugin/clearformat.js +2 -2
  77. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  78. package/src/markdown-parser/plugin/formats.js +2 -2
  79. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  80. package/src/markdown-parser/plugin/insert-text.js +2 -2
  81. package/src/markdown-parser/plugin/link.d.ts +2 -2
  82. package/src/markdown-parser/plugin/link.js +2 -2
  83. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  84. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  85. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  86. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  87. package/src/markdown-parser/plugin/table.d.ts +3 -3
  88. package/src/markdown-parser/plugin/table.js +3 -3
  89. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  90. package/src/markdown-parser/plugin/undo.js +6 -6
  91. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  92. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  93. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  94. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  95. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  96. package/src/rich-text-editor/actions/color-picker.js +2 -2
  97. package/src/rich-text-editor/actions/count.d.ts +3 -3
  98. package/src/rich-text-editor/actions/count.js +3 -3
  99. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  100. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  101. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  102. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  103. package/src/rich-text-editor/actions/enter-key.js +1 -1
  104. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  105. package/src/rich-text-editor/actions/full-screen.js +3 -3
  106. package/src/rich-text-editor/actions/html-editor.d.ts +4 -3
  107. package/src/rich-text-editor/actions/html-editor.js +18 -3
  108. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  109. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  110. package/src/rich-text-editor/actions/keyboard.js +20 -20
  111. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  112. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  113. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  114. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  115. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  116. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  117. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  118. package/src/rich-text-editor/actions/toolbar.js +13 -13
  119. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  120. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  121. package/src/rich-text-editor/base/classes.d.ts +125 -125
  122. package/src/rich-text-editor/base/classes.js +125 -125
  123. package/src/rich-text-editor/base/constant.d.ts +157 -157
  124. package/src/rich-text-editor/base/constant.js +157 -157
  125. package/src/rich-text-editor/base/enum.d.ts +1 -1
  126. package/src/rich-text-editor/base/enum.js +1 -1
  127. package/src/rich-text-editor/base/interface.d.ts +50 -50
  128. package/src/rich-text-editor/base/interface.js +1 -1
  129. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +890 -890
  130. package/src/rich-text-editor/base/rich-text-editor.d.ts +61 -61
  131. package/src/rich-text-editor/base/rich-text-editor.js +63 -63
  132. package/src/rich-text-editor/base/util.d.ts +1 -1
  133. package/src/rich-text-editor/base/util.js +1 -1
  134. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  135. package/src/rich-text-editor/formatter/formatter.js +8 -8
  136. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  137. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  138. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  139. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  140. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  141. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  142. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  143. package/src/rich-text-editor/models/inline-mode.js +19 -19
  144. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  145. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  146. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  147. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  148. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  149. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  150. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  151. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  152. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  153. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  154. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  155. package/src/rich-text-editor/renderer/image-module.js +6 -6
  156. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/link-module.js +1 -1
  158. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  159. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  160. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  161. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  162. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  163. package/src/rich-text-editor/renderer/render.js +2 -2
  164. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  165. package/src/rich-text-editor/renderer/table-module.js +1 -1
  166. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  167. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
  168. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  169. package/src/rich-text-editor/renderer/video-module.js +1 -1
  170. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  171. package/src/rich-text-editor/renderer/view-source.js +5 -5
  172. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  173. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  174. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  175. package/src/rich-text-editor/services/service-locator.js +3 -3
  176. package/src/selection/selection.d.ts +22 -22
  177. package/src/selection/selection.js +22 -22
  178. package/styles/_all.scss +1 -1
  179. package/styles/material3-dark.scss +1 -1
  180. package/styles/material3.scss +1 -1
  181. package/styles/rich-text-editor/_all.scss +2 -2
  182. package/styles/rich-text-editor/_bds-definition.scss +288 -288
  183. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +289 -289
  184. package/styles/rich-text-editor/_bootstrap-definition.scss +347 -347
  185. package/styles/rich-text-editor/_bootstrap4-definition.scss +474 -474
  186. package/styles/rich-text-editor/_bootstrap5-definition.scss +276 -276
  187. package/styles/rich-text-editor/_bootstrap5.3-definition.scss +276 -276
  188. package/styles/rich-text-editor/_fabric-dark-definition.scss +273 -273
  189. package/styles/rich-text-editor/_fabric-definition.scss +271 -271
  190. package/styles/rich-text-editor/_fluent-definition.scss +277 -277
  191. package/styles/rich-text-editor/_fluent2-definition.scss +282 -282
  192. package/styles/rich-text-editor/_fusionnew-definition.scss +274 -274
  193. package/styles/rich-text-editor/_highcontrast-definition.scss +271 -271
  194. package/styles/rich-text-editor/_highcontrast-light-definition.scss +271 -271
  195. package/styles/rich-text-editor/_layout.scss +2647 -2647
  196. package/styles/rich-text-editor/_material-dark-definition.scss +276 -276
  197. package/styles/rich-text-editor/_material-definition.scss +274 -274
  198. package/styles/rich-text-editor/_material3-definition.scss +276 -276
  199. package/styles/rich-text-editor/_tailwind-definition.scss +271 -271
  200. package/styles/rich-text-editor/_theme.scss +813 -813
  201. package/styles/rich-text-editor/icons/_bds.scss +368 -368
  202. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +369 -369
  203. package/styles/rich-text-editor/icons/_bootstrap.scss +369 -369
  204. package/styles/rich-text-editor/icons/_bootstrap4.scss +369 -369
  205. package/styles/rich-text-editor/icons/_bootstrap5.3.scss +368 -368
  206. package/styles/rich-text-editor/icons/_bootstrap5.scss +368 -368
  207. package/styles/rich-text-editor/icons/_fabric-dark.scss +369 -369
  208. package/styles/rich-text-editor/icons/_fabric.scss +369 -369
  209. package/styles/rich-text-editor/icons/_fluent.scss +368 -368
  210. package/styles/rich-text-editor/icons/_fluent2.scss +365 -365
  211. package/styles/rich-text-editor/icons/_fusionnew.scss +353 -353
  212. package/styles/rich-text-editor/icons/_highcontrast-light.scss +357 -357
  213. package/styles/rich-text-editor/icons/_highcontrast.scss +357 -357
  214. package/styles/rich-text-editor/icons/_material-dark.scss +369 -369
  215. package/styles/rich-text-editor/icons/_material.scss +369 -369
  216. package/styles/rich-text-editor/icons/_material3.scss +368 -368
  217. package/styles/rich-text-editor/icons/_tailwind.scss +368 -368
  218. package/styles/rich-text-editor/material3-dark.scss +1 -1
  219. package/styles/rich-text-editor/material3.scss +1 -1
  220. package/dist/ej2-richtexteditor.min.js +0 -10
  221. package/dist/global/ej2-richtexteditor.min.js +0 -11
  222. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  223. package/dist/global/index.d.ts +0 -14
  224. package/hotfix/26.1.35_Vol2.txt +0 -1
  225. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, detach, remove } from '@syncfusion/ej2-base';import { Property, NotifyPropertyChanges, INotifyPropertyChanged, formatUnit, L10n, closest } from '@syncfusion/ej2-base';import { setStyleAttribute, Event, removeClass, print as printWindow, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, compile, append, extend, debounce } from '@syncfusion/ej2-base';import { Touch as EJ2Touch, TapEventArgs } from '@syncfusion/ej2-base';import { getScrollableParent, BeforeOpenEventArgs, BeforeCloseEventArgs } from '@syncfusion/ej2-popups';import * as events from '../base/constant';import * as classes from '../base/classes';import { Render } from '../renderer/render';import { ViewSource } from '../renderer/view-source';import { IRenderer, IFormatter, PrintEventArgs, ActionCompleteEventArgs, ActionBeginEventArgs, ImageDropEventArgs, IFormatPainterArgs, CleanupResizeElemArgs, IBaseQuickToolbar } from './interface';import { IExecutionGroup, executeGroup, CommandName, ResizeArgs, StatusArgs, ToolbarStatusEventArgs } from './interface';import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs, AfterMediaDeleteEventArgs, PasteCleanupArgs } from './interface';import { ILinkCommandsArgs, IImageCommandsArgs, IAudioCommandsArgs, IVideoCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';import { ServiceLocator } from '../services/service-locator';import { RendererFactory } from '../services/renderer-factory';import { RenderType, DialogType } from './enum';import { EditorMode, ShiftEnterKey, EnterKey } from './../../common/types';import { Toolbar } from '../actions/toolbar';import { ExecCommandCallBack } from '../actions/execute-command-callback';import { KeyboardEvents, KeyboardEventArgs } from '../actions/keyboard';import { FontFamilyModel, FontSizeModel, FontColorModel, FormatModel, BackgroundColorModel, NumberFormatListModel, BulletFormatListModel } from '../models/models';import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, AudioSettingsModel, VideoSettingsModel, TableSettingsModel } from '../models/models';import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel, FormatPainterSettingsModel, EmojiSettingsModel } from '../models/models';import { ToolbarSettings, ImageSettings, AudioSettings, VideoSettings, QuickToolbarSettings, FontFamily, FontSize, Format, NumberFormatList, BulletFormatList, FormatPainterSettings, EmojiSettings } from '../models/toolbar-settings';import { FileManagerSettings } from '../models/toolbar-settings';import { TableSettings, PasteCleanupSettings } from '../models/toolbar-settings';import { FontColor, BackgroundColor } from '../models/toolbar-settings';import { IFrameSettings } from '../models/iframe-settings';import { InlineMode } from '../models/inline-mode';import { Link } from '../renderer/link-module';import { Image } from '../renderer/image-module';import { Audio } from '../renderer/audio-module';import { Video } from '../renderer/video-module';import { Table } from '../renderer/table-module';import { Count } from '../actions/count';import { HtmlEditor } from '../actions/html-editor';import { MarkdownEditor } from '../actions/markdown-editor';import { defaultLocale } from '../models/default-locale';import { setAttributes } from '../actions/html-attributes';import { BaseToolbar } from '../actions/base-toolbar';import { QuickToolbar } from '../actions/quick-toolbar';import { FullScreen } from '../actions/full-screen';import { PasteCleanup } from '../actions/paste-clean-up';import { EnterKeyAction } from '../actions/enter-key';import * as CONSTANT from '../../common/constant';import { IHtmlKeyboardEvent } from '../../editor-manager/base/interface';import { dispatchEvent, getEditValue, isIDevice, decode, isEditableValueEmpty, getDefaultValue } from '../base/util';import { DialogRenderer } from '../renderer/dialog-renderer';import { SelectedEventArgs, RemovingEventArgs, UploadingEventArgs, BeforeUploadEventArgs } from '@syncfusion/ej2-inputs';import { Resize } from '../actions/resize';import { FileManager } from '../actions/file-manager';import { FormatPainter } from '../actions/format-painter';import { EmojiPicker } from '../actions/emoji-picker';
1
+ import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, detach, remove } from '@syncfusion/ej2-base';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -7,958 +7,958 @@ import {ComponentModel} from '@syncfusion/ej2-base';
7
7
  export interface RichTextEditorModel extends ComponentModel{
8
8
 
9
9
  /**
10
- * Specifies the group of items aligned horizontally in the toolbar as well as defined the toolbar rendering type.
11
- * By default, toolbar is float at the top of the RichTextEditor.
12
- * When you scroll down, the toolbar will scroll along with the page on Rich Text Editor with the specified offset value.
13
- * * enable: set boolean value to show or hide the toolbar.
14
- * * enableFloating: Set Boolean value to enable or disable the floating toolbar.
15
- * Preserves the toolbar at top of the Rich Text Editor on scrolling.
16
- * * type: it has two possible options
17
- * 1. Expand: Hide the overflowing toolbar items in the next row. Click the expand arrow to view overflowing toolbar items
18
- * 2. MultiRow: The toolbar overflowing items wrapped in the next row.
19
- * * items: Specifies the array of items aligned horizontally in the toolbar.
20
- * > | and - can insert a vertical and horizontal separator lines in the toolbar.
21
- * * itemConfigs: Modify the default toolbar item configuration like icon class.
22
- *
23
- * > By default, The toolbar is rendered with scrollable in mobile devices and does not support the toolbar type.
24
- *
25
- * {% codeBlock src='rich-text-editor/toolbar-settings/index.md' %}{% endcodeBlock %}
26
- *
27
- * @default
28
- * {
29
- * enable: true,
30
- * enableFloating: true,
31
- * type: ToolbarType.Expand,
32
- * items: ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments', 'OrderedList',
33
- * 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo'],
34
- * itemConfigs: {}
35
- * }
36
- */
37
- toolbarSettings?: ToolbarSettingsModel;
38
-
39
- /**
40
- * Specifies the items to be rendered in quick toolbar based on the target element.
41
- * * It has following fields:
42
- * * enable - set boolean value to show or hide the quick toolbar
43
- * * actionOnScroll - it has two possible options
44
- * 1. hide: The quickToolbar is closed when the parent element is scrolled.
45
- * 2. none: The quickToolbar cannot be closed even the parent element is scrolled.
46
- * * link - Specifies the items to be rendered in quick toolbar based on link element such as `Open`, `Edit`, and `UnLink`.
47
- * * image - Specifies the items to be rendered in quick toolbar based on image element such as 'Replace',
48
- * 'Align', 'Caption', 'Remove', 'InsertLink', 'Display', 'AltText', 'Dimension'.
49
- * * text - Specifies the items to be rendered in quick toolbar based on text element such as 'Cut', 'Copy', 'Paste'.
50
- *
51
- * {% codeBlock src='rich-text-editor/quick-toolbar-settings/index.md' %}{% endcodeBlock %}
52
- *
53
- * @default
54
- * {
55
- * enable: true,
56
- * actionOnScroll: 'hide',
57
- * link: ['Open', 'Edit', 'UnLink'],
58
- * image: ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink', 'Display', 'AltText', 'Dimension'],
59
- * audio: ['AudioReplace', 'AudioRemove', 'AudioLayoutOption'],
60
- * video: ['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension'],
61
- * }
62
- */
63
- quickToolbarSettings?: QuickToolbarSettingsModel;
64
-
65
- /**
66
- * Specifies the pasting options in Rich Text Editor component and control with the following properties.
67
- * * prompt - Set boolean value to enable or disable the prompt when pasting.
68
- * * deniedAttrs - Specifies the attributes to restrict when pasting in RTE.
69
- * * allowedStyleProps - Specifies the allowed style properties when pasting in RTE.
70
- * * deniedTags - Specifies the tags to restrict when pasting in RTE.
71
- * * keepFormat - Set boolean value to keep or remove the from when pasting.
72
- * * plainText - Set boolean value to paste as plain text or not.
73
- *
74
- * {% codeBlock src='rich-text-editor/paste-cleanup-settings/index.md' %}{% endcodeBlock %}
75
- *
76
- * @default
77
- * {
78
- * prompt: false,
79
- * deniedAttrs: null,
80
- * allowedStyleProps: ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius',
81
- * 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor',
82
- * 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style',
83
- * 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left',
84
- * 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
85
- * 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
86
- * 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-transform', 'text-indent',
87
- * 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
88
- * deniedTags: null,
89
- * keepFormat: true,
90
- * plainText: false
91
- * }
92
- */
93
- pasteCleanupSettings?: PasteCleanupSettingsModel;
94
-
95
- /**
96
- * Specifies the format painter options in Rich Text Editor with the following properties.
97
- * * allowedFormats - Sets the tag name selectors for elements from which the formats can be copied.
98
- * * deniedFormats - Sets the selectors for elements from which formats cannot be copied.
99
- *
100
- * {% codeBlock src='rich-text-editor/format-painter-settings/index.md' %}{% endcodeBlock %}
101
- *
102
- * @default
103
- * {
104
- * allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; ol; ul; li; pre;',
105
- * deniedFormats: null
106
- * }
107
- */
108
- formatPainterSettings?: FormatPainterSettingsModel
109
-
110
- /**
111
- * Specifies the emoji picker options in Rich Text Editor with the following properties.
112
- * * iconsSet – Specify an array of items representing emoji icons.
113
- * * showSearchBox - Enables or disables the search box in an emoji picker.
114
- *
115
- *
116
- */
117
- emojiPickerSettings?: EmojiSettingsModel
118
-
119
- /**
120
- * Specifies the items to be rendered in an iframe mode, and it has the following properties.
121
- * * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
122
- * * attributes - Custom style to be used inside the iframe to display content. This style is added to the iframe body.
123
- * * resources - we can add both styles and scripts to the iframe.
124
- * 1. styles[] - An array of CSS style files to inject inside the iframe to display content
125
- * 2. scripts[] - An array of JS script files to inject inside the iframe
126
- *
127
- * {% codeBlock src='rich-text-editor/iframe-settings/index.md' %}{% endcodeBlock %}
128
- *
129
- * @default
130
- * {
131
- * enable: false,
132
- * attributes: null,
133
- * resources: { styles: [], scripts: [] }
134
- * }
135
- */
136
- iframeSettings?: IFrameSettingsModel;
137
-
138
- /**
139
- * Specifies the image insert options in Rich Text Editor component and control with the following properties.
140
- * * allowedTypes - Specifies the extensions of the image types allowed to insert on bowering and
141
- * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
142
- * * display - Sets the default display for an image when it is inserted in to the RichTextEditor.
143
- * Possible options are: 'inline' and 'block'.
144
- * * width - Sets the default width of the image when it is inserted in the RichTextEditor.
145
- * * saveFormat - Specifies the format to store the image in the Rich Text Editor (Base64 or Blob).
146
- * > If you want to insert a lot of tiny images in the editor and don't want a specific physical location for
147
- * saving images, you can opt to save format as Base64.
148
- * * height - Sets the default height of the image when it is inserted in the RichTextEditor.
149
- * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
150
- * * path - Specifies the path of the location to store the images and refer it to display the images.
151
- *
152
- * {% codeBlock src='rich-text-editor/insert-image-settings/index.md' %}{% endcodeBlock %}
153
- *
154
- * @default
155
- * {
156
- * allowedTypes: ['.jpeg', '.jpg', '.png'],
157
- * display: 'inline',
158
- * width: 'auto',
159
- * height: 'auto',
160
- * saveFormat: 'Blob'
161
- * saveUrl: null,
162
- * path: null,
163
- * }
164
- */
165
- insertImageSettings?: ImageSettingsModel;
166
-
167
- /**
168
- * Specifies the audio insert options in Rich Text Editor component and control with the following properties.
169
- * * allowedTypes - Specifies the extensions of the audio types allowed to insert on bowering and
170
- * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
171
- * * layoutOption - Sets the default display for an audio when it is inserted in to the RichTextEditor.
172
- * Possible options are: 'Inline' and 'Break'.
173
- * * saveFormat - Specifies the format to store the audio in the Rich Text Editor (Base64 or Blob).
174
- * > If you want to insert a lot of tiny audios in the editor and don't want a specific physical location for
175
- * saving audios, you can opt to save format as Base64.
176
- * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
177
- * * path - Specifies the path of the location to store the audios and refer it to display the audios.
178
- *
179
- * @default
180
- * {
181
- * allowedTypes: ['.wav', '.mp3', '.m4a','.wma'],
182
- * layoutOption: 'Inline',
183
- * saveFormat: 'Blob'
184
- * saveUrl: null,
185
- * path: null,
186
- * }
187
- */
188
- insertAudioSettings?: AudioSettingsModel;
189
-
190
- /**
191
- * Specifies the video insert options in Rich Text Editor component and control with the following properties.
192
- * * allowedTypes - Specifies the extensions of the video types allowed to insert on bowering and
193
- * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
194
- * * layoutOption - Sets the default display for an video when it is inserted in to the RichTextEditor.
195
- * Possible options are: 'Inline' and 'Break'.
196
- * * width - Sets the default width of the video when it is inserted in the RichTextEditor.
197
- * * saveFormat - Specifies the format to store the video in the Rich Text Editor (Base64 or Blob).
198
- * > If you want to insert a lot of tiny videos in the editor and don't want a specific physical location for
199
- * saving videos, you can opt to save format as Base64.
200
- * * height - Sets the default height of the video when it is inserted in the RichTextEditor.
201
- * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
202
- * * path - Specifies the path of the location to store the videos and refer it to display the videos.
203
- *
204
- * @default
205
- * {
206
- * allowedTypes: ['.mp4', '.mov', '.wmv','.avi'],
207
- * layoutOption: 'Inline',
208
- * width: 'auto',
209
- * height: 'auto',
210
- * saveFormat: 'Blob'
211
- * saveUrl: null,
212
- * path: null,
213
- * }
214
- */
215
- insertVideoSettings?: VideoSettingsModel;
216
-
217
- /**
218
- * Specifies the table insert options in Rich Text Editor component and control with the following properties.
219
- * * styles - Class name should be appended by default in table element.
220
- * It helps to design the table in specific CSS styles always when inserting in editor.
221
- * * width - Sets the default width of the table when it is inserted in the RichTextEditor.
222
- * * minWidth - Sets the default minWidth of the table when it is inserted in the RichTextEditor.
223
- * * maxWidth - Sets the default maxWidth of the table when it is inserted in the RichTextEditor.
224
- * * resize - To enable resize the table.
225
- *
226
- * {% codeBlock src='rich-text-editor/table-settings/index.md' %}{% endcodeBlock %}
227
- *
228
- * @default
229
- * {
230
- * width: '100%',
231
- * styles: [{ text: 'Dashed Borders', class: 'e-dashed-borders', command: 'Table', subCommand: 'Dashed' },
232
- * { text: 'Alternate Rows', class: 'e-alternate-rows', command: 'Table', subCommand: 'Alternate' }],
233
- * resize: true,
234
- * minWidth: 0,
235
- * maxWidth: null,
236
- * }
237
- */
238
- tableSettings?: TableSettingsModel;
239
-
240
- /**
241
- * Preserves the toolbar at the top of the Rich Text Editor on scrolling and
242
- * specifies the offset of the floating toolbar from documents top position
243
- *
244
- * @default 0
245
- */
246
- floatingToolbarOffset?: number;
247
-
248
- /**
249
- * Enable or disable the inline edit mode.
250
- * * enable - set boolean value to enable or disable the inline edit mode.
251
- * * onSelection - If its set to true, upon selecting the text, the toolbar is opened in inline.
252
- * If its set to false, upon clicking to the target element, the toolbar is opened.
253
- *
254
- * {% codeBlock src='rich-text-editor/inline-mode/index.md' %}{% endcodeBlock %}
255
- *
256
- * @default
257
- * {
258
- * enable: false,
259
- * onSelection: true
260
- * }
261
- */
262
- inlineMode?: InlineModeModel;
263
-
264
- /**
265
- * Specifies the image manager options in Rich Text Editor component and control with the following properties.
266
- * * enable - set boolean value to enable or disable the image manager.
267
- * * ajaxSettings - Specifies the AJAX settings of the image manager.
268
- * * contextMenuSettings - Specifies the context menu settings of the image manager.
269
- * * navigationPaneSettings - Specifies the navigation pane settings of the image manager.
270
- * * toolbarSettings - Specifies the group of items aligned horizontally in the toolbar.
271
- * * uploadSettings - Specifies the upload settings for the image manager.
272
- *
273
- * @default
274
- * {
275
- * enable: false,
276
- * path: '/',
277
- * ajaxSettings: { getImageUrl: null, url: null, uploadUrl: null },
278
- * contextMenuSettings: {
279
- * visible: true,
280
- * file: ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Rename', '|', 'Details'],
281
- * folder: ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', '|', 'Details'],
282
- * layout: ['SortBy', 'View', 'Refresh', '|', 'Paste', '|', 'NewFolder', 'Upload', '|', 'Details', '|', 'SelectAll']
283
- * },
284
- * navigationPaneSettings: {
285
- * visible: true,
286
- * items: [
287
- * 'NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download',
288
- * 'Rename', 'SortBy', 'Refresh', 'Selection', 'View', 'Details'
289
- * ]
290
- * },
291
- * toolbarSettings: { visible: true, items: ['Upload', 'NewFolder'] },
292
- * uploadSettings: { autoUpload: true, minFileSize: 0, maxFileSize: 30000000, allowedExtensions: '', autoClose: false }
293
- * }
294
- */
295
- fileManagerSettings?: FileManagerSettingsModel;
296
-
297
- /**
298
- * Specifies the width of the RichTextEditor.
299
- *
300
- * @default '100%'
301
- */
302
- width?: string | number;
303
-
304
- /**
305
- * Enables or disables the persisting component's state between page reloads.
306
- * If enabled, the value of Rich Text Editor is persisted
307
- *
308
- * {% codeBlock src='rich-text-editor/enable-persistence/index.md' %}{% endcodeBlock %}
309
- *
310
- * @default false.
311
- */
312
- enablePersistence?: boolean;
313
-
314
- /**
315
- * Specify the value whether tooltip will be displayed for the Rich Text Editor toolbar.
316
- *
317
- * @default true.
318
- */
319
- showTooltip?: boolean;
320
-
321
- /**
322
- * Enables or disables the resizing option in the editor.
323
- * If enabled, the Rich Text Editor can be resized by dragging the resize icon in the bottom right corner.
324
- *
325
- * {% codeBlock src='rich-text-editor/enable-resize/index.md' %}{% endcodeBlock %}
326
- *
327
- * @default false.
328
- */
329
- enableResize?: boolean;
330
-
331
- /**
332
- * Allows additional HTML attributes such as title, name, etc., and
333
- * It will be accepts n number of attributes in a key-value pair format.
334
- *
335
- * @default {}.
336
- */
337
- htmlAttributes?: { [key: string]: string };
338
-
339
- /**
340
- * Specifies the placeholder for the RichTextEditor’s content used when the Rich Text Editor body is empty.
341
- *
342
- * @default null.
343
- */
344
- placeholder?: string;
345
-
346
- /**
347
- * Enables or disables the auto-save option which performs the save action while in the idle state after typed content.
348
- * If enabled, the Rich Text Editor will save the content on idle state with `saveInterval` property's value.
349
- * The change event will be triggered if the content has changed from the last saved state.
350
- *
351
- * @default false.
352
- */
353
- autoSaveOnIdle?: boolean;
354
-
355
- /**
356
- * The user interactions on the component are disabled, when set to true.
357
- *
358
- * @default false.
359
- */
360
- readonly?: boolean;
361
-
362
- /**
363
- * Specifies a value that indicates whether the component is enabled or not.
364
- *
365
- * {% codeBlock src='rich-text-editor/enabled/index.md' %}{% endcodeBlock %}
366
- *
367
- * @default true.
368
- */
369
- enabled?: boolean;
370
-
371
- /**
372
- * Defines whether to allow the cross-scripting site or not.
373
- *
374
- * @default true
375
- */
376
- enableHtmlSanitizer?: boolean;
377
-
378
- /**
379
- * specifies the value whether the source code is displayed with encoded format.
380
- *
381
- * @default false.
382
- */
383
- enableHtmlEncode?: boolean;
384
-
385
- /**
386
- * Specifies a value that indicates whether the xhtml is enabled or not.
387
- *
388
- * @default false.
389
- */
390
- enableXhtml?: boolean;
391
-
392
- /**
393
- * Specifies the height of the Rich Text Editor component.
394
- *
395
- * @default "auto"
396
- */
397
- height?: string | number;
398
-
399
- /**
400
- * Specifies the CSS class name appended with the root element of the RichTextEditor.
401
- * One or more custom CSS classes can be added to a RichTextEditor.
402
- *
403
- * @default null
404
- */
405
- cssClass?: string;
406
-
407
- /**
408
- * Specifies the value displayed in the RichTextEditor's content area and it should be string.
409
- * The content of Rich Text Editor can be loaded with dynamic data such as database, AJAX content, and more.
410
- *
411
- * {% codeBlock src='rich-text-editor/value/index.md' %}{% endcodeBlock %}
412
- *
413
- * @default null
414
- */
415
- value?: string;
416
-
417
- /**
418
- * Specifies tag to be inserted when enter key is pressed.
419
- *
420
- * - `P` - When the enter key is pressed a `p` tag will be inserted and the default value of the Rich Text Editor will be <p><br></p>.
421
- *
422
- * - `DIV` - When the enter key is pressed a `div` tag will be inserted instead of the default `P` tag and the default value of the Rich Text Editor will be <div><br></div>.
423
- *
424
- * - `BR` - When the enter key is pressed a `br` tag will be inserted instead of the default `P` tag and the default value of the Rich Text Editor will be <br>.
425
- *
426
- * @default 'P'
427
- */
428
- enterKey?: EnterKey;
429
-
430
- /**
431
- * Specifies tags to be inserted when shift+enter key is pressed.
432
- *
433
- * - `BR` - When the shift + enter key is pressed a `br` tag will be inserted which is the default behavior.
434
- *
435
- * - `P` - When the shift + enter key is pressed a `p` tag will be inserted instead of the default `br` tag.
436
- *
437
- * - `DIV` - When the shift + enter key is pressed a `div` tag will be inserted instead of the default `br` tag.
438
- *
439
- * @default 'BR'
440
- */
441
- shiftEnterKey?: ShiftEnterKey;
442
-
443
- /**
444
- * Specifies the count of undo history which is stored in undoRedoManager.
445
- *
446
- * {% codeBlock src='rich-text-editor/undo-redo-steps/index.md' %}{% endcodeBlock %}
447
- *
448
- * @default 30
449
- */
450
- undoRedoSteps?: number;
451
-
452
- /**
453
- * Specifies the interval value in milliseconds that store actions in undoRedoManager. The minimum value is 300 milliseconds.
454
- *
455
- * @default 300
456
- */
457
- undoRedoTimer?: number;
458
-
459
- /**
460
- * Specifies the editing mode of the RichTextEditor.
461
- *
462
- * - `HTML` - Render Rich Text Editor as HTML editor using <IFRAME> element or content editable <div> element
463
- * or <textarea> element.
464
- *
465
- * - `Markdown` - Render Rich Text Editor as markdown editor using <textarea>.
466
- *
467
- * @default 'HTML'
468
- */
469
- editorMode?: EditorMode;
470
-
471
- /**
472
- * Customizes the key actions in RichTextEditor.
473
- * For example, when using German keyboard, the key actions can be customized using these shortcuts.
474
- *
475
- * {% codeBlock src='rich-text-editor/keyconfig/index.md' %}{% endcodeBlock %}
476
- *
477
- * @default null
478
- */
479
- keyConfig?: { [key: string]: string };
480
-
481
- /**
482
- * Sets Boolean value to enable or disable the display of the character counter.
483
- *
484
- * {% codeBlock src='rich-text-editor/show-char-count/index.md' %}{% endcodeBlock %}
485
- *
486
- * @default false
487
- */
488
- showCharCount?: boolean;
489
-
490
- /**
491
- * Allows the tab key action in the Rich Text Editor content.
492
- *
493
- * {% codeBlock src='rich-text-editor/enable-tab-key/index.md' %}{% endcodeBlock %}
494
- *
495
- * @default false
496
- */
497
- enableTabKey?: boolean;
498
-
499
- /**
500
- * Enable `enableAutoUrl` to accept the given URL (relative or absolute) without validating the URL for hyperlinks, otherwise
501
- * the given URL will automatically convert to absolute path URL by prefixing `https://` for hyperlinks.
502
- *
503
- * {% codeBlock src='rich-text-editor/enable-autourl/index.md' %}{% endcodeBlock %}
504
- *
505
- * @default false
506
- */
507
- enableAutoUrl?: boolean;
508
-
509
- /**
510
- * Specifies the maximum number of characters allowed in the Rich Text Editor component.
511
- *
512
- * {% codeBlock src='rich-text-editor/max-length/index.md' %}{% endcodeBlock %}
513
- *
514
- * @default -1
515
- */
516
- maxLength?: number;
517
-
518
- /**
519
- * Predefine the collection of paragraph styles along with quote and code style that populate in format dropdown from the toolbar.
520
- *
521
- * {% codeBlock src='rich-text-editor/format/index.md' %}{% endcodeBlock %}
522
- *
523
- * @default
524
- * {
525
- * default: 'Paragraph',
526
- * width: '65px',
527
- * types: [
528
- * { text: 'Paragraph' },
529
- * { text: 'Code' },
530
- * { text: 'Heading 1' },
531
- * { text: 'Heading 2' },
532
- * { text: 'Heading 3' },
533
- * { text: 'Heading 4' },
534
- * { text: 'Heading 5' },
535
- * { text: 'Heading 6' }
536
- * ]
537
- * }
538
- */
539
- format?: FormatModel;
540
-
541
- /**
542
- * Predefine the advanced list types that populate in the numberFormatList dropdown list from the toolbar.
543
- *
544
- * @default
545
- * {
546
- * types: [
547
- * { text: 'None', value: 'none' },
548
- * { text: 'Number', value: 'decimal' },
549
- * { text: 'Lower Greek', value: 'lowerGreek' },
550
- * { text: 'Lower Roman', value: 'lowerRoman' },
551
- * { text: 'Upper Alpha', value: 'upperAlpha' },
552
- * { text: 'Lower Alpha', value: 'lowerAlpha' },
553
- * { text: 'Upper Roman', value: 'upperRoman' },
554
- * ]
555
- * }
556
- */
557
- numberFormatList?: NumberFormatListModel;
558
-
559
- /**
560
- * Predefine the advanced list types that populate in the bulletFormatList dropdown list from the toolbar.
561
- *
562
- * @default
563
- * {
564
- * types: [
565
- * { text: 'None', value: 'none' },
566
- * { text: 'Disc', value: 'disc' },
567
- * { text: 'Circle', value: 'circle' },
568
- * { text: 'Square', value: 'square' }
569
- * ]
570
- * }
571
- */
572
- bulletFormatList?: BulletFormatListModel;
573
-
574
- /**
575
- * Predefine the font families that populate in font family dropdown list from the toolbar.
576
- *
577
- * {% codeBlock src='rich-text-editor/font-family/index.md' %}{% endcodeBlock %}
578
- *
579
- * @default
580
- * {
581
- * default: 'Segoe UI',
582
- * width: '65px',
583
- * items: [
584
- * { text: 'Segoe UI', value: 'Segoe UI' },
585
- * { text: 'Arial', value: 'Arial,Helvetica,sans-serif' },
586
- * { text: 'Courier New', value: 'Courier New,Courier,monospace' },
587
- * { text: 'Georgia', value: 'Georgia,serif' },
588
- * { text: 'Impact', value: 'Impact,Charcoal,sans-serif' },
589
- * { text: 'Lucida Console', value: 'Lucida Console,Monaco,monospace' },
590
- * { text: 'Tahoma', value: 'Tahoma,Geneva,sans-serif' },
591
- * { text: 'Times New Roman', value: 'Times New Roman,Times,serif' },
592
- * { text: 'Trebuchet MS', value: 'Trebuchet MS,Helvetica,sans-serif' },
593
- * { text: 'Verdana', value: 'Verdana,Geneva,sans-serif' }
594
- * ]
595
- * }
596
- */
597
- fontFamily?: FontFamilyModel;
598
-
599
- /**
600
- * Predefine the font sizes that populate in font size dropdown list from the toolbar.
601
- *
602
- * {% codeBlock src='rich-text-editor/font-size/index.md' %}{% endcodeBlock %}
603
- *
604
- * @default
605
- * {
606
- * default: '10pt',
607
- * width: '35px',
608
- * items: [
609
- * { text: '8', value: '8pt' },
610
- * { text: '10', value: '10pt' },
611
- * { text: '12', value: '12pt' },
612
- * { text: '14', value: '14pt' },
613
- * { text: '18', value: '18pt' },
614
- * { text: '24', value: '24pt' },
615
- * { text: '36', value: '36pt' }
616
- * ]
617
- * }
618
- */
619
- fontSize?: FontSizeModel;
620
-
621
- /**
622
- * Predefine the color palette that can be rendered for font color toolbar command .
623
- *
624
- * {% codeBlock src='rich-text-editor/font-color/index.md' %}{% endcodeBlock %}
625
- *
626
- * @default
627
- * {
628
- * columns: 10,
629
- * colorCode: {
630
- * 'Custom': [
631
- * '', '#000000', '#e7e6e6', '#44546a', '#4472c4', '#ed7d31', '#a5a5a5', '#ffc000', '#70ad47', '#ff0000',
632
- * '#f2f2f2', '#808080', '#cfcdcd', '#d5dce4', '#d9e2f3', '#fbe4d5', '#ededed', '#fff2cc', '#e2efd9', '#ffcccc',
633
- * '#d9d9d9', '#595959', '#aeaaaa', '#acb9ca', '#b4c6e7', '#f7caac', '#dbdbdb', '#ffe599', '#c5e0b3', '#ff8080',
634
- * '#bfbfbf', '#404040', '#747070', '#8496b0', '#8eaadb', '#f4b083', '#c9c9c9', '#ffd966', '#a8d08d', '#ff3333',
635
- * '#a6a6a6', '#262626', '#3b3838', '#323e4f', '#2f5496', '#c45911', '#7b7b7b', '#bf8f00', '#538135', '#b30000',
636
- * '#7f7f7f', '#0d0d0d', '#161616', '#212934', '#1f3763', '#823b0b', '#525252', '#7f5f00', '#375623', '#660000']
637
- * }
638
- * }
639
- */
640
- fontColor?: FontColorModel;
641
-
642
- /**
643
- * Predefine the color palette that can be rendered for background color (text highlighted color) toolbar command.
644
- *
645
- * {% codeBlock src='rich-text-editor/background-color/index.md' %}{% endcodeBlock %}
646
- *
647
- * @default
648
- * {
649
- * columns: 5,
650
- * colorCode: {
651
- * 'Custom': ['#ffff00', '#00ff00', '#00ffff', '#ff00ff', '#0000ff', '#ff0000',
652
- * '#000080', '#008080', '#008000', '#800080', '#800000', '#808000',
653
- * '#c0c0c0', '#000000', '']
654
- * }
655
- * }
656
- */
657
- backgroundColor?: BackgroundColorModel;
658
-
659
- /**
660
- * Accepts the template design and assigns it as RichTextEditor’s content.
661
- * The built-in template engine which provides options to compile template string into a executable function.
662
- * For EX: We have expression evolution as like ES6 expression string literals
663
- *
664
- * {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
665
- *
666
- * @default null
667
- * @aspType string
668
- */
669
- valueTemplate?: string | Function;
670
-
671
- /**
672
- * Specifies the saveInterval in milliseconds for autosave the value.
673
- * The change event will be triggered if the content was changed from the last saved interval.
674
- *
675
- * {% codeBlock src='rich-text-editor/save-interval/index.md' %}{% endcodeBlock %}
676
- *
677
- * @default 10000
678
- */
679
- saveInterval?: number;
680
-
681
- /**
682
- * Triggers before command execution using toolbar items or executeCommand method.
683
- * If you cancel this event, the command cannot be executed.
684
- * Set the cancel argument to true to cancel the command execution.
685
- *
686
- * @event 'actionBegin'
687
- */
688
- actionBegin?: EmitType<ActionBeginEventArgs>;
689
-
690
- /**
691
- * Triggers after command execution using toolbar items or executeCommand method.
692
- *
693
- * @event 'actionComplete'
694
- */
695
- actionComplete?: EmitType<ActionCompleteEventArgs>;
696
-
697
- /**
698
- * Event triggers when the dialog is being opened.
699
- * If you cancel this event, the dialog remains closed.
700
- * Set the cancel argument to true to cancel the open of a dialog.
701
- *
702
- * @event 'beforeDialogOpen'
703
- */
704
-
705
- beforeDialogOpen?: EmitType<BeforeOpenEventArgs>;
706
-
707
- /**
708
- * Event triggers when a dialog is opened.
709
- *
710
- * @event 'dialogOpen'
711
- */
712
- dialogOpen?: EmitType<Object>;
713
-
714
- /**
715
- * Event triggers when the dialog is being closed.
716
- * If you cancel this event, the dialog remains opened.
717
- * Set the cancel argument to true to prevent closing a dialog.
718
- *
719
- * @event 'beforeDialogClose'
720
- */
721
- beforeDialogClose?: EmitType<BeforeCloseEventArgs>;
722
-
723
- /**
724
- * Event triggers after the dialog has been closed.
725
- *
726
- * @event 'dialogClose'
727
- */
728
- dialogClose?: EmitType<Object>;
10
+ * Specifies the group of items aligned horizontally in the toolbar as well as defined the toolbar rendering type.
11
+ * By default, toolbar is float at the top of the RichTextEditor.
12
+ * When you scroll down, the toolbar will scroll along with the page on Rich Text Editor with the specified offset value.
13
+ * * enable: set boolean value to show or hide the toolbar.
14
+ * * enableFloating: Set Boolean value to enable or disable the floating toolbar.
15
+ * Preserves the toolbar at top of the Rich Text Editor on scrolling.
16
+ * * type: it has two possible options
17
+ * 1. Expand: Hide the overflowing toolbar items in the next row. Click the expand arrow to view overflowing toolbar items
18
+ * 2. MultiRow: The toolbar overflowing items wrapped in the next row.
19
+ * * items: Specifies the array of items aligned horizontally in the toolbar.
20
+ * > | and - can insert a vertical and horizontal separator lines in the toolbar.
21
+ * * itemConfigs: Modify the default toolbar item configuration like icon class.
22
+ *
23
+ * > By default, The toolbar is rendered with scrollable in mobile devices and does not support the toolbar type.
24
+ *
25
+ * {% codeBlock src='rich-text-editor/toolbar-settings/index.md' %}{% endcodeBlock %}
26
+ *
27
+ * @default
28
+ * {
29
+ * enable: true,
30
+ * enableFloating: true,
31
+ * type: ToolbarType.Expand,
32
+ * items: ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments', 'OrderedList',
33
+ * 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo'],
34
+ * itemConfigs: {}
35
+ * }
36
+ */
37
+ toolbarSettings?: ToolbarSettingsModel;
38
+
39
+ /**
40
+ * Specifies the items to be rendered in quick toolbar based on the target element.
41
+ * * It has following fields:
42
+ * * enable - set boolean value to show or hide the quick toolbar
43
+ * * actionOnScroll - it has two possible options
44
+ * 1. hide: The quickToolbar is closed when the parent element is scrolled.
45
+ * 2. none: The quickToolbar cannot be closed even the parent element is scrolled.
46
+ * * link - Specifies the items to be rendered in quick toolbar based on link element such as `Open`, `Edit`, and `UnLink`.
47
+ * * image - Specifies the items to be rendered in quick toolbar based on image element such as 'Replace',
48
+ * 'Align', 'Caption', 'Remove', 'InsertLink', 'Display', 'AltText', 'Dimension'.
49
+ * * text - Specifies the items to be rendered in quick toolbar based on text element such as 'Cut', 'Copy', 'Paste'.
50
+ *
51
+ * {% codeBlock src='rich-text-editor/quick-toolbar-settings/index.md' %}{% endcodeBlock %}
52
+ *
53
+ * @default
54
+ * {
55
+ * enable: true,
56
+ * actionOnScroll: 'hide',
57
+ * link: ['Open', 'Edit', 'UnLink'],
58
+ * image: ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink', 'Display', 'AltText', 'Dimension'],
59
+ * audio: ['AudioReplace', 'AudioRemove', 'AudioLayoutOption'],
60
+ * video: ['VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension'],
61
+ * }
62
+ */
63
+ quickToolbarSettings?: QuickToolbarSettingsModel;
64
+
65
+ /**
66
+ * Specifies the pasting options in Rich Text Editor component and control with the following properties.
67
+ * * prompt - Set boolean value to enable or disable the prompt when pasting.
68
+ * * deniedAttrs - Specifies the attributes to restrict when pasting in RTE.
69
+ * * allowedStyleProps - Specifies the allowed style properties when pasting in RTE.
70
+ * * deniedTags - Specifies the tags to restrict when pasting in RTE.
71
+ * * keepFormat - Set boolean value to keep or remove the from when pasting.
72
+ * * plainText - Set boolean value to paste as plain text or not.
73
+ *
74
+ * {% codeBlock src='rich-text-editor/paste-cleanup-settings/index.md' %}{% endcodeBlock %}
75
+ *
76
+ * @default
77
+ * {
78
+ * prompt: false,
79
+ * deniedAttrs: null,
80
+ * allowedStyleProps: ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius',
81
+ * 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor',
82
+ * 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style',
83
+ * 'height', 'left', 'line-height', 'list-style-type', 'margin', 'margin-top', 'margin-left',
84
+ * 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
85
+ * 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
86
+ * 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-transform', 'text-indent',
87
+ * 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
88
+ * deniedTags: null,
89
+ * keepFormat: true,
90
+ * plainText: false
91
+ * }
92
+ */
93
+ pasteCleanupSettings?: PasteCleanupSettingsModel;
94
+
95
+ /**
96
+ * Specifies the format painter options in Rich Text Editor with the following properties.
97
+ * * allowedFormats - Sets the tag name selectors for elements from which the formats can be copied.
98
+ * * deniedFormats - Sets the selectors for elements from which formats cannot be copied.
99
+ *
100
+ * {% codeBlock src='rich-text-editor/format-painter-settings/index.md' %}{% endcodeBlock %}
101
+ *
102
+ * @default
103
+ * {
104
+ * allowedFormats: 'b; em; font; sub; sup; kbd; i; s; u; code; strong; span; p; div; h1; h2; h3; h4; h5; h6; blockquote; ol; ul; li; pre;',
105
+ * deniedFormats: null
106
+ * }
107
+ */
108
+ formatPainterSettings?: FormatPainterSettingsModel
109
+
110
+ /**
111
+ * Specifies the emoji picker options in Rich Text Editor with the following properties.
112
+ * * iconsSet – Specify an array of items representing emoji icons.
113
+ * * showSearchBox - Enables or disables the search box in an emoji picker.
114
+ *
115
+ *
116
+ */
117
+ emojiPickerSettings?: EmojiSettingsModel
118
+
119
+ /**
120
+ * Specifies the items to be rendered in an iframe mode, and it has the following properties.
121
+ * * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
122
+ * * attributes - Custom style to be used inside the iframe to display content. This style is added to the iframe body.
123
+ * * resources - we can add both styles and scripts to the iframe.
124
+ * 1. styles[] - An array of CSS style files to inject inside the iframe to display content
125
+ * 2. scripts[] - An array of JS script files to inject inside the iframe
126
+ *
127
+ * {% codeBlock src='rich-text-editor/iframe-settings/index.md' %}{% endcodeBlock %}
128
+ *
129
+ * @default
130
+ * {
131
+ * enable: false,
132
+ * attributes: null,
133
+ * resources: { styles: [], scripts: [] }
134
+ * }
135
+ */
136
+ iframeSettings?: IFrameSettingsModel;
137
+
138
+ /**
139
+ * Specifies the image insert options in Rich Text Editor component and control with the following properties.
140
+ * * allowedTypes - Specifies the extensions of the image types allowed to insert on bowering and
141
+ * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
142
+ * * display - Sets the default display for an image when it is inserted in to the RichTextEditor.
143
+ * Possible options are: 'inline' and 'block'.
144
+ * * width - Sets the default width of the image when it is inserted in the RichTextEditor.
145
+ * * saveFormat - Specifies the format to store the image in the Rich Text Editor (Base64 or Blob).
146
+ * > If you want to insert a lot of tiny images in the editor and don't want a specific physical location for
147
+ * saving images, you can opt to save format as Base64.
148
+ * * height - Sets the default height of the image when it is inserted in the RichTextEditor.
149
+ * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
150
+ * * path - Specifies the path of the location to store the images and refer it to display the images.
151
+ *
152
+ * {% codeBlock src='rich-text-editor/insert-image-settings/index.md' %}{% endcodeBlock %}
153
+ *
154
+ * @default
155
+ * {
156
+ * allowedTypes: ['.jpeg', '.jpg', '.png'],
157
+ * display: 'inline',
158
+ * width: 'auto',
159
+ * height: 'auto',
160
+ * saveFormat: 'Blob'
161
+ * saveUrl: null,
162
+ * path: null,
163
+ * }
164
+ */
165
+ insertImageSettings?: ImageSettingsModel;
166
+
167
+ /**
168
+ * Specifies the audio insert options in Rich Text Editor component and control with the following properties.
169
+ * * allowedTypes - Specifies the extensions of the audio types allowed to insert on bowering and
170
+ * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
171
+ * * layoutOption - Sets the default display for an audio when it is inserted in to the RichTextEditor.
172
+ * Possible options are: 'Inline' and 'Break'.
173
+ * * saveFormat - Specifies the format to store the audio in the Rich Text Editor (Base64 or Blob).
174
+ * > If you want to insert a lot of tiny audios in the editor and don't want a specific physical location for
175
+ * saving audios, you can opt to save format as Base64.
176
+ * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
177
+ * * path - Specifies the path of the location to store the audios and refer it to display the audios.
178
+ *
179
+ * @default
180
+ * {
181
+ * allowedTypes: ['.wav', '.mp3', '.m4a','.wma'],
182
+ * layoutOption: 'Inline',
183
+ * saveFormat: 'Blob'
184
+ * saveUrl: null,
185
+ * path: null,
186
+ * }
187
+ */
188
+ insertAudioSettings?: AudioSettingsModel;
189
+
190
+ /**
191
+ * Specifies the video insert options in Rich Text Editor component and control with the following properties.
192
+ * * allowedTypes - Specifies the extensions of the video types allowed to insert on bowering and
193
+ * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
194
+ * * layoutOption - Sets the default display for an video when it is inserted in to the RichTextEditor.
195
+ * Possible options are: 'Inline' and 'Break'.
196
+ * * width - Sets the default width of the video when it is inserted in the RichTextEditor.
197
+ * * saveFormat - Specifies the format to store the video in the Rich Text Editor (Base64 or Blob).
198
+ * > If you want to insert a lot of tiny videos in the editor and don't want a specific physical location for
199
+ * saving videos, you can opt to save format as Base64.
200
+ * * height - Sets the default height of the video when it is inserted in the RichTextEditor.
201
+ * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
202
+ * * path - Specifies the path of the location to store the videos and refer it to display the videos.
203
+ *
204
+ * @default
205
+ * {
206
+ * allowedTypes: ['.mp4', '.mov', '.wmv','.avi'],
207
+ * layoutOption: 'Inline',
208
+ * width: 'auto',
209
+ * height: 'auto',
210
+ * saveFormat: 'Blob'
211
+ * saveUrl: null,
212
+ * path: null,
213
+ * }
214
+ */
215
+ insertVideoSettings?: VideoSettingsModel;
216
+
217
+ /**
218
+ * Specifies the table insert options in Rich Text Editor component and control with the following properties.
219
+ * * styles - Class name should be appended by default in table element.
220
+ * It helps to design the table in specific CSS styles always when inserting in editor.
221
+ * * width - Sets the default width of the table when it is inserted in the RichTextEditor.
222
+ * * minWidth - Sets the default minWidth of the table when it is inserted in the RichTextEditor.
223
+ * * maxWidth - Sets the default maxWidth of the table when it is inserted in the RichTextEditor.
224
+ * * resize - To enable resize the table.
225
+ *
226
+ * {% codeBlock src='rich-text-editor/table-settings/index.md' %}{% endcodeBlock %}
227
+ *
228
+ * @default
229
+ * {
230
+ * width: '100%',
231
+ * styles: [{ text: 'Dashed Borders', class: 'e-dashed-borders', command: 'Table', subCommand: 'Dashed' },
232
+ * { text: 'Alternate Rows', class: 'e-alternate-rows', command: 'Table', subCommand: 'Alternate' }],
233
+ * resize: true,
234
+ * minWidth: 0,
235
+ * maxWidth: null,
236
+ * }
237
+ */
238
+ tableSettings?: TableSettingsModel;
239
+
240
+ /**
241
+ * Preserves the toolbar at the top of the Rich Text Editor on scrolling and
242
+ * specifies the offset of the floating toolbar from documents top position
243
+ *
244
+ * @default 0
245
+ */
246
+ floatingToolbarOffset?: number;
247
+
248
+ /**
249
+ * Enable or disable the inline edit mode.
250
+ * * enable - set boolean value to enable or disable the inline edit mode.
251
+ * * onSelection - If its set to true, upon selecting the text, the toolbar is opened in inline.
252
+ * If its set to false, upon clicking to the target element, the toolbar is opened.
253
+ *
254
+ * {% codeBlock src='rich-text-editor/inline-mode/index.md' %}{% endcodeBlock %}
255
+ *
256
+ * @default
257
+ * {
258
+ * enable: false,
259
+ * onSelection: true
260
+ * }
261
+ */
262
+ inlineMode?: InlineModeModel;
263
+
264
+ /**
265
+ * Specifies the image manager options in Rich Text Editor component and control with the following properties.
266
+ * * enable - set boolean value to enable or disable the image manager.
267
+ * * ajaxSettings - Specifies the AJAX settings of the image manager.
268
+ * * contextMenuSettings - Specifies the context menu settings of the image manager.
269
+ * * navigationPaneSettings - Specifies the navigation pane settings of the image manager.
270
+ * * toolbarSettings - Specifies the group of items aligned horizontally in the toolbar.
271
+ * * uploadSettings - Specifies the upload settings for the image manager.
272
+ *
273
+ * @default
274
+ * {
275
+ * enable: false,
276
+ * path: '/',
277
+ * ajaxSettings: { getImageUrl: null, url: null, uploadUrl: null },
278
+ * contextMenuSettings: {
279
+ * visible: true,
280
+ * file: ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Rename', '|', 'Details'],
281
+ * folder: ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', '|', 'Details'],
282
+ * layout: ['SortBy', 'View', 'Refresh', '|', 'Paste', '|', 'NewFolder', 'Upload', '|', 'Details', '|', 'SelectAll']
283
+ * },
284
+ * navigationPaneSettings: {
285
+ * visible: true,
286
+ * items: [
287
+ * 'NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download',
288
+ * 'Rename', 'SortBy', 'Refresh', 'Selection', 'View', 'Details'
289
+ * ]
290
+ * },
291
+ * toolbarSettings: { visible: true, items: ['Upload', 'NewFolder'] },
292
+ * uploadSettings: { autoUpload: true, minFileSize: 0, maxFileSize: 30000000, allowedExtensions: '', autoClose: false }
293
+ * }
294
+ */
295
+ fileManagerSettings?: FileManagerSettingsModel;
296
+
297
+ /**
298
+ * Specifies the width of the RichTextEditor.
299
+ *
300
+ * @default '100%'
301
+ */
302
+ width?: string | number;
303
+
304
+ /**
305
+ * Enables or disables the persisting component's state between page reloads.
306
+ * If enabled, the value of Rich Text Editor is persisted
307
+ *
308
+ * {% codeBlock src='rich-text-editor/enable-persistence/index.md' %}{% endcodeBlock %}
309
+ *
310
+ * @default false.
311
+ */
312
+ enablePersistence?: boolean;
313
+
314
+ /**
315
+ * Specify the value whether tooltip will be displayed for the Rich Text Editor toolbar.
316
+ *
317
+ * @default true.
318
+ */
319
+ showTooltip?: boolean;
320
+
321
+ /**
322
+ * Enables or disables the resizing option in the editor.
323
+ * If enabled, the Rich Text Editor can be resized by dragging the resize icon in the bottom right corner.
324
+ *
325
+ * {% codeBlock src='rich-text-editor/enable-resize/index.md' %}{% endcodeBlock %}
326
+ *
327
+ * @default false.
328
+ */
329
+ enableResize?: boolean;
330
+
331
+ /**
332
+ * Allows additional HTML attributes such as title, name, etc., and
333
+ * It will be accepts n number of attributes in a key-value pair format.
334
+ *
335
+ * @default {}.
336
+ */
337
+ htmlAttributes?: { [key: string]: string };
338
+
339
+ /**
340
+ * Specifies the placeholder for the RichTextEditor’s content used when the Rich Text Editor body is empty.
341
+ *
342
+ * @default null.
343
+ */
344
+ placeholder?: string;
345
+
346
+ /**
347
+ * Enables or disables the auto-save option which performs the save action while in the idle state after typed content.
348
+ * If enabled, the Rich Text Editor will save the content on idle state with `saveInterval` property's value.
349
+ * The change event will be triggered if the content has changed from the last saved state.
350
+ *
351
+ * @default false.
352
+ */
353
+ autoSaveOnIdle?: boolean;
354
+
355
+ /**
356
+ * The user interactions on the component are disabled, when set to true.
357
+ *
358
+ * @default false.
359
+ */
360
+ readonly?: boolean;
361
+
362
+ /**
363
+ * Specifies a value that indicates whether the component is enabled or not.
364
+ *
365
+ * {% codeBlock src='rich-text-editor/enabled/index.md' %}{% endcodeBlock %}
366
+ *
367
+ * @default true.
368
+ */
369
+ enabled?: boolean;
370
+
371
+ /**
372
+ * Defines whether to allow the cross-scripting site or not.
373
+ *
374
+ * @default true
375
+ */
376
+ enableHtmlSanitizer?: boolean;
377
+
378
+ /**
379
+ * specifies the value whether the source code is displayed with encoded format.
380
+ *
381
+ * @default false.
382
+ */
383
+ enableHtmlEncode?: boolean;
384
+
385
+ /**
386
+ * Specifies a value that indicates whether the xhtml is enabled or not.
387
+ *
388
+ * @default false.
389
+ */
390
+ enableXhtml?: boolean;
391
+
392
+ /**
393
+ * Specifies the height of the Rich Text Editor component.
394
+ *
395
+ * @default "auto"
396
+ */
397
+ height?: string | number;
398
+
399
+ /**
400
+ * Specifies the CSS class name appended with the root element of the RichTextEditor.
401
+ * One or more custom CSS classes can be added to a RichTextEditor.
402
+ *
403
+ * @default null
404
+ */
405
+ cssClass?: string;
406
+
407
+ /**
408
+ * Specifies the value displayed in the RichTextEditor's content area and it should be string.
409
+ * The content of Rich Text Editor can be loaded with dynamic data such as database, AJAX content, and more.
410
+ *
411
+ * {% codeBlock src='rich-text-editor/value/index.md' %}{% endcodeBlock %}
412
+ *
413
+ * @default null
414
+ */
415
+ value?: string;
416
+
417
+ /**
418
+ * Specifies tag to be inserted when enter key is pressed.
419
+ *
420
+ * - `P` - When the enter key is pressed a `p` tag will be inserted and the default value of the Rich Text Editor will be &lt;p&gt;&lt;br&gt;&lt;/p&gt;.
421
+ *
422
+ * - `DIV` - When the enter key is pressed a `div` tag will be inserted instead of the default `P` tag and the default value of the Rich Text Editor will be &lt;div&gt;&lt;br&gt;&lt;/div&gt;.
423
+ *
424
+ * - `BR` - When the enter key is pressed a `br` tag will be inserted instead of the default `P` tag and the default value of the Rich Text Editor will be &lt;br&gt;.
425
+ *
426
+ * @default 'P'
427
+ */
428
+ enterKey?: EnterKey;
429
+
430
+ /**
431
+ * Specifies tags to be inserted when shift+enter key is pressed.
432
+ *
433
+ * - `BR` - When the shift + enter key is pressed a `br` tag will be inserted which is the default behavior.
434
+ *
435
+ * - `P` - When the shift + enter key is pressed a `p` tag will be inserted instead of the default `br` tag.
436
+ *
437
+ * - `DIV` - When the shift + enter key is pressed a `div` tag will be inserted instead of the default `br` tag.
438
+ *
439
+ * @default 'BR'
440
+ */
441
+ shiftEnterKey?: ShiftEnterKey;
442
+
443
+ /**
444
+ * Specifies the count of undo history which is stored in undoRedoManager.
445
+ *
446
+ * {% codeBlock src='rich-text-editor/undo-redo-steps/index.md' %}{% endcodeBlock %}
447
+ *
448
+ * @default 30
449
+ */
450
+ undoRedoSteps?: number;
451
+
452
+ /**
453
+ * Specifies the interval value in milliseconds that store actions in undoRedoManager. The minimum value is 300 milliseconds.
454
+ *
455
+ * @default 300
456
+ */
457
+ undoRedoTimer?: number;
458
+
459
+ /**
460
+ * Specifies the editing mode of the RichTextEditor.
461
+ *
462
+ * - `HTML` - Render Rich Text Editor as HTML editor using &lt;IFRAME&gt; element or content editable &lt;div&gt; element
463
+ * or &lt;textarea&gt; element.
464
+ *
465
+ * - `Markdown` - Render Rich Text Editor as markdown editor using &lt;textarea&gt;.
466
+ *
467
+ * @default 'HTML'
468
+ */
469
+ editorMode?: EditorMode;
470
+
471
+ /**
472
+ * Customizes the key actions in RichTextEditor.
473
+ * For example, when using German keyboard, the key actions can be customized using these shortcuts.
474
+ *
475
+ * {% codeBlock src='rich-text-editor/keyconfig/index.md' %}{% endcodeBlock %}
476
+ *
477
+ * @default null
478
+ */
479
+ keyConfig?: { [key: string]: string };
480
+
481
+ /**
482
+ * Sets Boolean value to enable or disable the display of the character counter.
483
+ *
484
+ * {% codeBlock src='rich-text-editor/show-char-count/index.md' %}{% endcodeBlock %}
485
+ *
486
+ * @default false
487
+ */
488
+ showCharCount?: boolean;
489
+
490
+ /**
491
+ * Allows the tab key action in the Rich Text Editor content.
492
+ *
493
+ * {% codeBlock src='rich-text-editor/enable-tab-key/index.md' %}{% endcodeBlock %}
494
+ *
495
+ * @default false
496
+ */
497
+ enableTabKey?: boolean;
498
+
499
+ /**
500
+ * Enable `enableAutoUrl` to accept the given URL (relative or absolute) without validating the URL for hyperlinks, otherwise
501
+ * the given URL will automatically convert to absolute path URL by prefixing `https://` for hyperlinks.
502
+ *
503
+ * {% codeBlock src='rich-text-editor/enable-autourl/index.md' %}{% endcodeBlock %}
504
+ *
505
+ * @default false
506
+ */
507
+ enableAutoUrl?: boolean;
508
+
509
+ /**
510
+ * Specifies the maximum number of characters allowed in the Rich Text Editor component.
511
+ *
512
+ * {% codeBlock src='rich-text-editor/max-length/index.md' %}{% endcodeBlock %}
513
+ *
514
+ * @default -1
515
+ */
516
+ maxLength?: number;
517
+
518
+ /**
519
+ * Predefine the collection of paragraph styles along with quote and code style that populate in format dropdown from the toolbar.
520
+ *
521
+ * {% codeBlock src='rich-text-editor/format/index.md' %}{% endcodeBlock %}
522
+ *
523
+ * @default
524
+ * {
525
+ * default: 'Paragraph',
526
+ * width: '65px',
527
+ * types: [
528
+ * { text: 'Paragraph' },
529
+ * { text: 'Code' },
530
+ * { text: 'Heading 1' },
531
+ * { text: 'Heading 2' },
532
+ * { text: 'Heading 3' },
533
+ * { text: 'Heading 4' },
534
+ * { text: 'Heading 5' },
535
+ * { text: 'Heading 6' }
536
+ * ]
537
+ * }
538
+ */
539
+ format?: FormatModel;
540
+
541
+ /**
542
+ * Predefine the advanced list types that populate in the numberFormatList dropdown list from the toolbar.
543
+ *
544
+ * @default
545
+ * {
546
+ * types: [
547
+ * { text: 'None', value: 'none' },
548
+ * { text: 'Number', value: 'decimal' },
549
+ * { text: 'Lower Greek', value: 'lowerGreek' },
550
+ * { text: 'Lower Roman', value: 'lowerRoman' },
551
+ * { text: 'Upper Alpha', value: 'upperAlpha' },
552
+ * { text: 'Lower Alpha', value: 'lowerAlpha' },
553
+ * { text: 'Upper Roman', value: 'upperRoman' },
554
+ * ]
555
+ * }
556
+ */
557
+ numberFormatList?: NumberFormatListModel;
558
+
559
+ /**
560
+ * Predefine the advanced list types that populate in the bulletFormatList dropdown list from the toolbar.
561
+ *
562
+ * @default
563
+ * {
564
+ * types: [
565
+ * { text: 'None', value: 'none' },
566
+ * { text: 'Disc', value: 'disc' },
567
+ * { text: 'Circle', value: 'circle' },
568
+ * { text: 'Square', value: 'square' }
569
+ * ]
570
+ * }
571
+ */
572
+ bulletFormatList?: BulletFormatListModel;
573
+
574
+ /**
575
+ * Predefine the font families that populate in font family dropdown list from the toolbar.
576
+ *
577
+ * {% codeBlock src='rich-text-editor/font-family/index.md' %}{% endcodeBlock %}
578
+ *
579
+ * @default
580
+ * {
581
+ * default: 'Segoe UI',
582
+ * width: '65px',
583
+ * items: [
584
+ * { text: 'Segoe UI', value: 'Segoe UI' },
585
+ * { text: 'Arial', value: 'Arial,Helvetica,sans-serif' },
586
+ * { text: 'Courier New', value: 'Courier New,Courier,monospace' },
587
+ * { text: 'Georgia', value: 'Georgia,serif' },
588
+ * { text: 'Impact', value: 'Impact,Charcoal,sans-serif' },
589
+ * { text: 'Lucida Console', value: 'Lucida Console,Monaco,monospace' },
590
+ * { text: 'Tahoma', value: 'Tahoma,Geneva,sans-serif' },
591
+ * { text: 'Times New Roman', value: 'Times New Roman,Times,serif' },
592
+ * { text: 'Trebuchet MS', value: 'Trebuchet MS,Helvetica,sans-serif' },
593
+ * { text: 'Verdana', value: 'Verdana,Geneva,sans-serif' }
594
+ * ]
595
+ * }
596
+ */
597
+ fontFamily?: FontFamilyModel;
598
+
599
+ /**
600
+ * Predefine the font sizes that populate in font size dropdown list from the toolbar.
601
+ *
602
+ * {% codeBlock src='rich-text-editor/font-size/index.md' %}{% endcodeBlock %}
603
+ *
604
+ * @default
605
+ * {
606
+ * default: '10pt',
607
+ * width: '35px',
608
+ * items: [
609
+ * { text: '8', value: '8pt' },
610
+ * { text: '10', value: '10pt' },
611
+ * { text: '12', value: '12pt' },
612
+ * { text: '14', value: '14pt' },
613
+ * { text: '18', value: '18pt' },
614
+ * { text: '24', value: '24pt' },
615
+ * { text: '36', value: '36pt' }
616
+ * ]
617
+ * }
618
+ */
619
+ fontSize?: FontSizeModel;
620
+
621
+ /**
622
+ * Predefine the color palette that can be rendered for font color toolbar command .
623
+ *
624
+ * {% codeBlock src='rich-text-editor/font-color/index.md' %}{% endcodeBlock %}
625
+ *
626
+ * @default
627
+ * {
628
+ * columns: 10,
629
+ * colorCode: {
630
+ * 'Custom': [
631
+ * '', '#000000', '#e7e6e6', '#44546a', '#4472c4', '#ed7d31', '#a5a5a5', '#ffc000', '#70ad47', '#ff0000',
632
+ * '#f2f2f2', '#808080', '#cfcdcd', '#d5dce4', '#d9e2f3', '#fbe4d5', '#ededed', '#fff2cc', '#e2efd9', '#ffcccc',
633
+ * '#d9d9d9', '#595959', '#aeaaaa', '#acb9ca', '#b4c6e7', '#f7caac', '#dbdbdb', '#ffe599', '#c5e0b3', '#ff8080',
634
+ * '#bfbfbf', '#404040', '#747070', '#8496b0', '#8eaadb', '#f4b083', '#c9c9c9', '#ffd966', '#a8d08d', '#ff3333',
635
+ * '#a6a6a6', '#262626', '#3b3838', '#323e4f', '#2f5496', '#c45911', '#7b7b7b', '#bf8f00', '#538135', '#b30000',
636
+ * '#7f7f7f', '#0d0d0d', '#161616', '#212934', '#1f3763', '#823b0b', '#525252', '#7f5f00', '#375623', '#660000']
637
+ * }
638
+ * }
639
+ */
640
+ fontColor?: FontColorModel;
641
+
642
+ /**
643
+ * Predefine the color palette that can be rendered for background color (text highlighted color) toolbar command.
644
+ *
645
+ * {% codeBlock src='rich-text-editor/background-color/index.md' %}{% endcodeBlock %}
646
+ *
647
+ * @default
648
+ * {
649
+ * columns: 5,
650
+ * colorCode: {
651
+ * 'Custom': ['#ffff00', '#00ff00', '#00ffff', '#ff00ff', '#0000ff', '#ff0000',
652
+ * '#000080', '#008080', '#008000', '#800080', '#800000', '#808000',
653
+ * '#c0c0c0', '#000000', '']
654
+ * }
655
+ * }
656
+ */
657
+ backgroundColor?: BackgroundColorModel;
658
+
659
+ /**
660
+ * Accepts the template design and assigns it as RichTextEditor’s content.
661
+ * The built-in template engine which provides options to compile template string into a executable function.
662
+ * For EX: We have expression evolution as like ES6 expression string literals
663
+ *
664
+ * {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
665
+ *
666
+ * @default null
667
+ * @aspType string
668
+ */
669
+ valueTemplate?: string | Function;
670
+
671
+ /**
672
+ * Specifies the saveInterval in milliseconds for autosave the value.
673
+ * The change event will be triggered if the content was changed from the last saved interval.
674
+ *
675
+ * {% codeBlock src='rich-text-editor/save-interval/index.md' %}{% endcodeBlock %}
676
+ *
677
+ * @default 10000
678
+ */
679
+ saveInterval?: number;
680
+
681
+ /**
682
+ * Triggers before command execution using toolbar items or executeCommand method.
683
+ * If you cancel this event, the command cannot be executed.
684
+ * Set the cancel argument to true to cancel the command execution.
685
+ *
686
+ * @event 'actionBegin'
687
+ */
688
+ actionBegin?: EmitType<ActionBeginEventArgs>;
689
+
690
+ /**
691
+ * Triggers after command execution using toolbar items or executeCommand method.
692
+ *
693
+ * @event 'actionComplete'
694
+ */
695
+ actionComplete?: EmitType<ActionCompleteEventArgs>;
696
+
697
+ /**
698
+ * Event triggers when the dialog is being opened.
699
+ * If you cancel this event, the dialog remains closed.
700
+ * Set the cancel argument to true to cancel the open of a dialog.
701
+ *
702
+ * @event 'beforeDialogOpen'
703
+ */
704
+
705
+ beforeDialogOpen?: EmitType<BeforeOpenEventArgs>;
706
+
707
+ /**
708
+ * Event triggers when a dialog is opened.
709
+ *
710
+ * @event 'dialogOpen'
711
+ */
712
+ dialogOpen?: EmitType<Object>;
713
+
714
+ /**
715
+ * Event triggers when the dialog is being closed.
716
+ * If you cancel this event, the dialog remains opened.
717
+ * Set the cancel argument to true to prevent closing a dialog.
718
+ *
719
+ * @event 'beforeDialogClose'
720
+ */
721
+ beforeDialogClose?: EmitType<BeforeCloseEventArgs>;
722
+
723
+ /**
724
+ * Event triggers after the dialog has been closed.
725
+ *
726
+ * @event 'dialogClose'
727
+ */
728
+ dialogClose?: EmitType<Object>;
729
+
730
+ /**
731
+ * Event triggers when the quick toolbar is being opened.
732
+ *
733
+ * @event 'beforeQuickToolbarOpen'
734
+ */
735
+ beforeQuickToolbarOpen?: EmitType<BeforeQuickToolbarOpenArgs>;
729
736
 
730
737
  /**
731
- * Event triggers when the quick toolbar is being opened.
732
- *
733
- * @event 'beforeQuickToolbarOpen'
734
- */
735
- beforeQuickToolbarOpen?: EmitType<BeforeQuickToolbarOpenArgs>;
738
+ * Event triggers when a quick toolbar is opened.
739
+ *
740
+ * @event 'quickToolbarOpen'
741
+ */
742
+ quickToolbarOpen?: EmitType<Object>;
736
743
 
737
744
  /**
738
- * Event triggers when a quick toolbar is opened.
739
- *
740
- * @event 'quickToolbarOpen'
741
- */
742
- quickToolbarOpen?: EmitType<Object>;
745
+ * Event triggers after the quick toolbar has been closed.
746
+ *
747
+ * @event 'quickToolbarClose'
748
+ */
749
+ quickToolbarClose?: EmitType<Object>;
743
750
 
744
751
  /**
745
- * Event triggers after the quick toolbar has been closed.
746
- *
747
- * @event 'quickToolbarClose'
748
- */
749
- quickToolbarClose?: EmitType<Object>;
752
+ * This event is deprecated and no longer works. Use `updatedToolbarStatus` event to get the undo and redo status.
753
+ *
754
+ * @deprecated
755
+ * @event 'toolbarStatusUpdate'
756
+ */
757
+ toolbarStatusUpdate?: EmitType<Object>;
750
758
 
751
759
  /**
752
- * This event is deprecated and no longer works. Use `updatedToolbarStatus` event to get the undo and redo status.
753
- *
754
-
755
- * @event 'toolbarStatusUpdate'
756
- */
757
- toolbarStatusUpdate?: EmitType<Object>;
758
-
759
- /**
760
- * Triggers when the toolbar items status is updated.
761
- *
762
- * @event 'updatedToolbarStatus'
763
- */
764
- updatedToolbarStatus?: EmitType<ToolbarStatusEventArgs>;
760
+ * Triggers when the toolbar items status is updated.
761
+ *
762
+ * @event 'updatedToolbarStatus'
763
+ */
764
+ updatedToolbarStatus?: EmitType<ToolbarStatusEventArgs>;
765
765
 
766
766
  /**
767
- * Event triggers when the image is selected or dragged into the insert image dialog.
768
- *
769
- * @event 'imageSelected'
770
- */
771
- imageSelected?: EmitType<SelectedEventArgs>;
767
+ * Event triggers when the image is selected or dragged into the insert image dialog.
768
+ *
769
+ * @event 'imageSelected'
770
+ */
771
+ imageSelected?: EmitType<SelectedEventArgs>;
772
772
 
773
773
  /**
774
- * Event triggers before the image upload process.
775
- *
776
- * @event 'beforeImageUpload'
777
- */
778
- beforeImageUpload?: EmitType<BeforeUploadEventArgs>;
774
+ * Event triggers before the image upload process.
775
+ *
776
+ * @event 'beforeImageUpload'
777
+ */
778
+ beforeImageUpload?: EmitType<BeforeUploadEventArgs>;
779
779
 
780
780
  /**
781
- * Event triggers when the selected image begins to upload in the insert image dialog.
782
- *
783
- * @event 'imageUploading'
784
- */
785
- imageUploading?: EmitType<UploadingEventArgs>;
781
+ * Event triggers when the selected image begins to upload in the insert image dialog.
782
+ *
783
+ * @event 'imageUploading'
784
+ */
785
+ imageUploading?: EmitType<UploadingEventArgs>;
786
786
 
787
787
  /**
788
- * Event triggers when the image is successfully uploaded to the server side.
789
- *
790
- * @event 'imageUploadSuccess'
791
- */
792
- imageUploadSuccess?: EmitType<Object>;
788
+ * Event triggers when the image is successfully uploaded to the server side.
789
+ *
790
+ * @event 'imageUploadSuccess'
791
+ */
792
+ imageUploadSuccess?: EmitType<Object>;
793
793
 
794
794
  /**
795
- * Event triggers when there is an error in the image upload.
796
- *
797
- * @event 'imageUploadFailed'
798
- */
799
- imageUploadFailed?: EmitType<Object>;
795
+ * Event triggers when there is an error in the image upload.
796
+ *
797
+ * @event 'imageUploadFailed'
798
+ */
799
+ imageUploadFailed?: EmitType<Object>;
800
800
 
801
801
  /**
802
- * Event triggers when the selected image is cleared from the insert image dialog.
803
- *
804
- * @event 'imageRemoving'
805
- */
806
- imageRemoving?: EmitType<RemovingEventArgs>;
802
+ * Event triggers when the selected image is cleared from the insert image dialog.
803
+ *
804
+ * @event 'imageRemoving'
805
+ */
806
+ imageRemoving?: EmitType<RemovingEventArgs>;
807
807
 
808
808
  /**
809
- * Event triggers when the selected image is cleared from the Rich Text Editor Content.
810
- *
811
- * @event 'afterImageDelete'
812
- */
813
- afterImageDelete?: EmitType<AfterImageDeleteEventArgs>;
809
+ * Event triggers when the selected image is cleared from the Rich Text Editor Content.
810
+ *
811
+ * @event 'afterImageDelete'
812
+ */
813
+ afterImageDelete?: EmitType<AfterImageDeleteEventArgs>;
814
814
 
815
815
  /**
816
- * Event triggers when the media is selected or dragged into the insert media audio/video dialog.
817
- *
818
- * @event 'fileSelected'
819
- */
820
- fileSelected?: EmitType<SelectedEventArgs>;
816
+ * Event triggers when the media is selected or dragged into the insert media audio/video dialog.
817
+ *
818
+ * @event 'fileSelected'
819
+ */
820
+ fileSelected?: EmitType<SelectedEventArgs>;
821
821
 
822
822
  /**
823
- * Event triggers before the media audio/video upload process.
824
- *
825
- * @event 'beforeFileUpload'
826
- */
827
- beforeFileUpload?: EmitType<BeforeUploadEventArgs>;
823
+ * Event triggers before the media audio/video upload process.
824
+ *
825
+ * @event 'beforeFileUpload'
826
+ */
827
+ beforeFileUpload?: EmitType<BeforeUploadEventArgs>;
828
828
 
829
829
  /**
830
- * Event triggers when the selected media begins to upload in the insert media audio/video dialog.
831
- *
832
- * @event 'fileUploading'
833
- */
834
- fileUploading?: EmitType<UploadingEventArgs>;
830
+ * Event triggers when the selected media begins to upload in the insert media audio/video dialog.
831
+ *
832
+ * @event 'fileUploading'
833
+ */
834
+ fileUploading?: EmitType<UploadingEventArgs>;
835
835
 
836
836
  /**
837
- * Event triggers when the media is successfully uploaded to the server side.
838
- *
839
- * @event 'fileUploadSuccess'
840
- */
841
- fileUploadSuccess?: EmitType<Object>;
837
+ * Event triggers when the media is successfully uploaded to the server side.
838
+ *
839
+ * @event 'fileUploadSuccess'
840
+ */
841
+ fileUploadSuccess?: EmitType<Object>;
842
842
 
843
843
  /**
844
- * Event triggers when there is an error in the media upload.
845
- *
846
- * @event 'fileUploadFailed'
847
- */
848
- fileUploadFailed?: EmitType<Object>;
844
+ * Event triggers when there is an error in the media upload.
845
+ *
846
+ * @event 'fileUploadFailed'
847
+ */
848
+ fileUploadFailed?: EmitType<Object>;
849
849
 
850
850
  /**
851
- * Event triggers when the selected media is cleared from the insert audio/video dialog.
852
- *
853
- * @event 'fileRemoving'
854
- */
855
- fileRemoving?: EmitType<RemovingEventArgs>;
851
+ * Event triggers when the selected media is cleared from the insert audio/video dialog.
852
+ *
853
+ * @event 'fileRemoving'
854
+ */
855
+ fileRemoving?: EmitType<RemovingEventArgs>;
856
856
 
857
857
  /**
858
- * Event triggers when the selected media is cleared from the Rich Text Editor Content.
859
- *
860
- * @event 'afterMediaDelete'
861
- */
862
- afterMediaDelete?: EmitType<AfterMediaDeleteEventArgs>;
858
+ * Event triggers when the selected media is cleared from the Rich Text Editor Content.
859
+ *
860
+ * @event 'afterMediaDelete'
861
+ */
862
+ afterMediaDelete?: EmitType<AfterMediaDeleteEventArgs>;
863
863
 
864
864
  /**
865
- * Triggers when the Rich Text Editor is rendered.
866
- *
867
- * @event 'created'
868
- */
869
- created?: EmitType<Object>;
865
+ * Triggers when the Rich Text Editor is rendered.
866
+ *
867
+ * @event 'created'
868
+ */
869
+ created?: EmitType<Object>;
870
870
 
871
871
  /**
872
- * Triggers when the Rich Text Editor is destroyed.
873
- *
874
- * @event 'destroyed'
875
- */
876
- destroyed?: EmitType<Object>;
872
+ * Triggers when the Rich Text Editor is destroyed.
873
+ *
874
+ * @event 'destroyed'
875
+ */
876
+ destroyed?: EmitType<Object>;
877
877
 
878
878
  /**
879
- * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
880
- *
881
- * @event 'beforeSanitizeHtml'
882
- */
883
- beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
879
+ * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
880
+ *
881
+ * @event 'beforeSanitizeHtml'
882
+ */
883
+ beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
884
884
 
885
885
  /**
886
- * Triggers when Rich Text Editor is focused out.
887
- *
888
- * @event 'blur'
889
- */
890
- blur?: EmitType<Object>;
886
+ * Triggers when Rich Text Editor is focused out.
887
+ *
888
+ * @event 'blur'
889
+ */
890
+ blur?: EmitType<Object>;
891
891
 
892
892
  /**
893
- * Triggers when Rich Text Editor Toolbar items is clicked.
894
- *
895
- * @event 'toolbarClick'
896
- */
897
- toolbarClick?: EmitType<Object>;
893
+ * Triggers when Rich Text Editor Toolbar items is clicked.
894
+ *
895
+ * @event 'toolbarClick'
896
+ */
897
+ toolbarClick?: EmitType<Object>;
898
898
 
899
899
  /**
900
- * Triggers when Rich Text Editor is focused in
901
- *
902
- * @event 'focus'
903
- */
904
- focus?: EmitType<Object>;
900
+ * Triggers when Rich Text Editor is focused in
901
+ *
902
+ * @event 'focus'
903
+ */
904
+ focus?: EmitType<Object>;
905
905
 
906
906
  /**
907
- * Triggers only when Rich Text Editor is blurred and changes are done to the content.
908
- *
909
- * @event 'change'
910
- */
911
- change?: EmitType<ChangeEventArgs>;
907
+ * Triggers only when Rich Text Editor is blurred and changes are done to the content.
908
+ *
909
+ * @event 'change'
910
+ */
911
+ change?: EmitType<ChangeEventArgs>;
912
912
 
913
913
  /**
914
- * Triggers only when resizing the image.
915
- *
916
- * @event 'resizing'
917
- */
918
- resizing?: EmitType<ResizeArgs>;
914
+ * Triggers only when resizing the image.
915
+ *
916
+ * @event 'resizing'
917
+ */
918
+ resizing?: EmitType<ResizeArgs>;
919
919
 
920
920
  /**
921
- * Triggers only when start resize the image.
922
- *
923
- * @event 'resizeStart'
924
- */
925
- resizeStart?: EmitType<ResizeArgs>;
921
+ * Triggers only when start resize the image.
922
+ *
923
+ * @event 'resizeStart'
924
+ */
925
+ resizeStart?: EmitType<ResizeArgs>;
926
926
 
927
927
  /**
928
- * Triggers only when stop resize the image.
929
- *
930
- * @event 'resizeStop'
931
- */
932
- resizeStop?: EmitType<ResizeArgs>;
928
+ * Triggers only when stop resize the image.
929
+ *
930
+ * @event 'resizeStop'
931
+ */
932
+ resizeStop?: EmitType<ResizeArgs>;
933
933
 
934
934
  /**
935
- * Triggers before cleanup the copied content.
936
- *
937
- * @event 'beforePasteCleanup'
938
- */
939
- beforePasteCleanup?: EmitType<PasteCleanupArgs>;
935
+ * Triggers before cleanup the copied content.
936
+ *
937
+ * @event 'beforePasteCleanup'
938
+ */
939
+ beforePasteCleanup?: EmitType<PasteCleanupArgs>;
940
940
 
941
941
  /**
942
- * Triggers after cleanup the copied content.
943
- *
944
- * @event 'afterPasteCleanup'
945
- */
946
- afterPasteCleanup?: EmitType<object>;
942
+ * Triggers after cleanup the copied content.
943
+ *
944
+ * @event 'afterPasteCleanup'
945
+ */
946
+ afterPasteCleanup?: EmitType<object>;
947
947
 
948
948
  /**
949
- * Triggers before drop the image.
950
- *
951
- * @event 'beforeImageDrop'
952
- */
953
- beforeImageDrop?: EmitType<ImageDropEventArgs>;
949
+ * Triggers before drop the image.
950
+ *
951
+ * @event 'beforeImageDrop'
952
+ */
953
+ beforeImageDrop?: EmitType<ImageDropEventArgs>;
954
954
 
955
955
  /**
956
- * Customize keyCode to change the key value.
957
- *
958
- * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
959
- *
960
- * @default null
961
- */
962
- formatter?: IFormatter;
956
+ * Customize keyCode to change the key value.
957
+ *
958
+ * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
959
+ *
960
+ * @default null
961
+ */
962
+ formatter?: IFormatter;
963
963
 
964
964
  }