@syncfusion/ej2-richtexteditor 18.4.39 → 18.4.42-70943

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 (210) hide show
  1. package/CHANGELOG.md +782 -728
  2. package/README.md +67 -67
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +249 -145
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +371 -267
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/license +9 -9
  11. package/package.json +76 -75
  12. package/src/common/interface.d.ts +6 -6
  13. package/src/editor-manager/base/classes.d.ts +1 -1
  14. package/src/editor-manager/base/classes.js +1 -1
  15. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  16. package/src/editor-manager/base/editor-manager.js +3 -3
  17. package/src/editor-manager/base/interface.d.ts +7 -7
  18. package/src/editor-manager/base/types.d.ts +1 -1
  19. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  20. package/src/editor-manager/plugin/alignments.js +2 -2
  21. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  22. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  23. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  24. package/src/editor-manager/plugin/clearformat.js +1 -1
  25. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  26. package/src/editor-manager/plugin/dom-node.js +34 -34
  27. package/src/editor-manager/plugin/formats.d.ts +2 -2
  28. package/src/editor-manager/plugin/formats.js +2 -2
  29. package/src/editor-manager/plugin/image.d.ts +3 -3
  30. package/src/editor-manager/plugin/image.js +5 -4
  31. package/src/editor-manager/plugin/indents.d.ts +2 -2
  32. package/src/editor-manager/plugin/indents.js +2 -2
  33. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  34. package/src/editor-manager/plugin/insert-methods.js +4 -4
  35. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  36. package/src/editor-manager/plugin/insert-text.js +2 -2
  37. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  38. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  39. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  40. package/src/editor-manager/plugin/inserthtml.js +16 -12
  41. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  42. package/src/editor-manager/plugin/isformatted.js +8 -8
  43. package/src/editor-manager/plugin/link.d.ts +2 -2
  44. package/src/editor-manager/plugin/link.js +8 -8
  45. package/src/editor-manager/plugin/lists.d.ts +2 -2
  46. package/src/editor-manager/plugin/lists.js +8 -4
  47. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  48. package/src/editor-manager/plugin/ms-word-clean-up.js +23 -7
  49. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  50. package/src/editor-manager/plugin/nodecutter.js +6 -6
  51. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  52. package/src/editor-manager/plugin/selection-commands.js +35 -4
  53. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  54. package/src/editor-manager/plugin/selection-exec.js +2 -2
  55. package/src/editor-manager/plugin/table.d.ts +2 -2
  56. package/src/editor-manager/plugin/table.js +4 -3
  57. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  58. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  59. package/src/editor-manager/plugin/undo.d.ts +6 -6
  60. package/src/editor-manager/plugin/undo.js +6 -6
  61. package/src/global.d.ts +1 -0
  62. package/src/markdown-parser/base/interface.d.ts +10 -10
  63. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  64. package/src/markdown-parser/base/markdown-parser.js +3 -3
  65. package/src/markdown-parser/base/types.d.ts +1 -1
  66. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  67. package/src/markdown-parser/plugin/clearformat.js +2 -2
  68. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  69. package/src/markdown-parser/plugin/formats.js +2 -2
  70. package/src/markdown-parser/plugin/link.d.ts +2 -2
  71. package/src/markdown-parser/plugin/link.js +2 -2
  72. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  73. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  74. package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
  75. package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
  76. package/src/markdown-parser/plugin/table.d.ts +3 -3
  77. package/src/markdown-parser/plugin/table.js +3 -3
  78. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  79. package/src/markdown-parser/plugin/undo.js +6 -6
  80. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  81. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  82. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  83. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  84. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  85. package/src/rich-text-editor/actions/color-picker.js +2 -2
  86. package/src/rich-text-editor/actions/count.d.ts +3 -3
  87. package/src/rich-text-editor/actions/count.js +3 -3
  88. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  89. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  90. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  91. package/src/rich-text-editor/actions/full-screen.js +3 -3
  92. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  93. package/src/rich-text-editor/actions/html-editor.js +3 -3
  94. package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
  95. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  96. package/src/rich-text-editor/actions/keyboard.js +22 -21
  97. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  98. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  99. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  100. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  101. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  102. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  103. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  104. package/src/rich-text-editor/actions/toolbar.js +13 -13
  105. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  106. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  107. package/src/rich-text-editor/base/classes.d.ts +103 -103
  108. package/src/rich-text-editor/base/classes.js +103 -103
  109. package/src/rich-text-editor/base/constant.d.ts +112 -107
  110. package/src/rich-text-editor/base/constant.js +112 -107
  111. package/src/rich-text-editor/base/enum.d.ts +1 -1
  112. package/src/rich-text-editor/base/enum.js +1 -1
  113. package/src/rich-text-editor/base/interface.d.ts +40 -40
  114. package/src/rich-text-editor/base/interface.js +1 -1
  115. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
  116. package/src/rich-text-editor/base/rich-text-editor.d.ts +51 -51
  117. package/src/rich-text-editor/base/rich-text-editor.js +88 -66
  118. package/src/rich-text-editor/base/util.d.ts +1 -1
  119. package/src/rich-text-editor/base/util.js +1 -1
  120. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  121. package/src/rich-text-editor/formatter/formatter.js +8 -8
  122. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  123. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  124. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  125. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  126. package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
  127. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  128. package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
  129. package/src/rich-text-editor/models/inline-mode.js +19 -19
  130. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
  131. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  132. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  133. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  134. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  135. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  136. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  137. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  138. package/src/rich-text-editor/renderer/image-module.d.ts +2 -1
  139. package/src/rich-text-editor/renderer/image-module.js +21 -7
  140. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  141. package/src/rich-text-editor/renderer/link-module.js +1 -1
  142. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  143. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  144. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  145. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  146. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  147. package/src/rich-text-editor/renderer/render.js +2 -2
  148. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  149. package/src/rich-text-editor/renderer/table-module.js +7 -2
  150. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
  151. package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
  152. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  153. package/src/rich-text-editor/renderer/view-source.js +6 -6
  154. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  155. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  156. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  157. package/src/rich-text-editor/services/service-locator.js +3 -3
  158. package/src/selection/selection.d.ts +22 -22
  159. package/src/selection/selection.js +22 -22
  160. package/styles/_all.scss +2 -2
  161. package/styles/bootstrap-dark.css +13 -1
  162. package/styles/bootstrap.css +13 -1
  163. package/styles/bootstrap4.css +13 -1
  164. package/styles/bootstrap5-dark.css +0 -0
  165. package/styles/bootstrap5-dark.scss +0 -0
  166. package/styles/bootstrap5.css +0 -0
  167. package/styles/bootstrap5.scss +0 -0
  168. package/styles/fabric-dark.css +13 -1
  169. package/styles/fabric.css +13 -1
  170. package/styles/highcontrast-light.css +13 -1
  171. package/styles/highcontrast.css +13 -1
  172. package/styles/material-dark.css +13 -1
  173. package/styles/material.css +13 -1
  174. package/styles/rich-text-editor/_all.scss +2 -2
  175. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
  176. package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
  177. package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
  178. package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
  179. package/styles/rich-text-editor/_fabric-definition.scss +148 -148
  180. package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
  181. package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
  182. package/styles/rich-text-editor/_layout.scss +1416 -1404
  183. package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
  184. package/styles/rich-text-editor/_material-definition.scss +150 -150
  185. package/styles/rich-text-editor/_theme.scss +499 -499
  186. package/styles/rich-text-editor/bootstrap-dark.css +13 -1
  187. package/styles/rich-text-editor/bootstrap.css +13 -1
  188. package/styles/rich-text-editor/bootstrap4.css +13 -1
  189. package/styles/rich-text-editor/fabric-dark.css +13 -1
  190. package/styles/rich-text-editor/fabric.css +13 -1
  191. package/styles/rich-text-editor/highcontrast-light.css +13 -1
  192. package/styles/rich-text-editor/highcontrast.css +13 -1
  193. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
  194. package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
  195. package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
  196. package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
  197. package/styles/rich-text-editor/icons/_fabric.scss +288 -288
  198. package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
  199. package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
  200. package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
  201. package/styles/rich-text-editor/icons/_material.scss +288 -288
  202. package/styles/rich-text-editor/material-dark.css +13 -1
  203. package/styles/rich-text-editor/material.css +13 -1
  204. package/styles/tailwind-dark.css +0 -0
  205. package/styles/tailwind-dark.scss +0 -0
  206. package/styles/tailwind.css +0 -0
  207. package/styles/tailwind.scss +0 -0
  208. package/dist/global/ej2-richtexteditor.min.js +0 -11
  209. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  210. package/dist/global/index.d.ts +0 -14
@@ -1,4 +1,4 @@
1
- import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } 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, isBlazor } 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 } from './interface';import { BeforeQuickToolbarOpenArgs, ChangeEventArgs, AfterImageDeleteEventArgs } from './interface';import { IExecutionGroup, executeGroup, CommandName, ResizeArgs } from './interface';import { ILinkCommandsArgs, IImageCommandsArgs, BeforeSanitizeHtmlArgs, ITableCommandsArgs, ExecuteCommandOption } from './interface';import { ServiceLocator } from '../services/service-locator';import { RendererFactory } from '../services/renderer-factory';import { RenderType, ToolbarType } from './enum';import { EditorMode } 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 } from '../models/models';import { ToolbarSettingsModel, IFrameSettingsModel, ImageSettingsModel, TableSettingsModel } from '../models/models';import { QuickToolbarSettingsModel, InlineModeModel, PasteCleanupSettingsModel, FileManagerSettingsModel } from '../models/models';import { ToolbarSettings, ImageSettings, QuickToolbarSettings, FontFamily, FontSize, Format } 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 { 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 * as CONSTANT from '../../common/constant';import { IHtmlKeyboardEvent } from '../../editor-manager/base/interface';import { dispatchEvent, getEditValue, isIDevice, decode, isEditableValueEmpty } 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';
1
+ import { Component, ModuleDeclaration, EventHandler, Complex, Browser, EmitType, addClass, select, detach } from '@syncfusion/ej2-base';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -7,745 +7,745 @@ 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
- * text: ['Cut', 'Copy', 'Paste']
60
- * }
61
- */
62
- quickToolbarSettings?: QuickToolbarSettingsModel;
63
-
64
- /**
65
- * Specifies the pasting options in Rich Text Editor component and control with the following properties.
66
- * * prompt - Set boolean value to enable or disable the prompt when pasting.
67
- * * deniedAttrs - Specifies the attributes to restrict when pasting in RTE.
68
- * * allowedStyleProps - Specifies the allowed style properties when pasting in RTE.
69
- * * deniedTags - Specifies the tags to restrict when pasting in RTE.
70
- * * keepFormat - Set boolean value to keep or remove the from when pasting.
71
- * * plainText - Set boolean value to paste as plain text or not.
72
- *
73
- * {% codeBlock src='rich-text-editor/paste-cleanup-settings/index.md' %}{% endcodeBlock %}
74
- *
75
- * @default
76
- * {
77
- * prompt: false,
78
- * deniedAttrs: null,
79
- * allowedStyleProps: ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius',
80
- * 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor',
81
- * 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style',
82
- * 'height', 'left', 'line-height', 'margin', 'margin-top', 'margin-left',
83
- * 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
84
- * 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
85
- * 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent',
86
- * 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
87
- * deniedTags: null,
88
- * keepFormat: true,
89
- * plainText: false
90
- * }
91
- */
92
- pasteCleanupSettings?: PasteCleanupSettingsModel;
93
-
94
- /**
95
- * Specifies the items to be rendered in an iframe mode, and it has the following properties.
96
- * * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
97
- * * attributes - Custom style to be used inside the iframe to display content. This style is added to the iframe body.
98
- * * resources - we can add both styles and scripts to the iframe.
99
- * 1. styles[] - An array of CSS style files to inject inside the iframe to display content
100
- * 2. scripts[] - An array of JS script files to inject inside the iframe
101
- *
102
- * {% codeBlock src='rich-text-editor/iframe-settings/index.md' %}{% endcodeBlock %}
103
- *
104
- * @default
105
- * {
106
- * enable: false,
107
- * attributes: null,
108
- * resources: { styles: [], scripts: [] }
109
- * }
110
- */
111
- iframeSettings?: IFrameSettingsModel;
112
-
113
- /**
114
- * Specifies the image insert options in Rich Text Editor component and control with the following properties.
115
- * * allowedTypes - Specifies the extensions of the image types allowed to insert on bowering and
116
- * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
117
- * * display - Sets the default display for an image when it is inserted in to the RichTextEditor.
118
- * Possible options are: 'inline' and 'block'.
119
- * * width - Sets the default width of the image when it is inserted in the RichTextEditor.
120
- * * saveFormat - Specifies the format to store the image in the Rich Text Editor (Base64 or Blob).
121
- * > If you want to insert a lot of tiny images in the editor and don't want a specific physical location for
122
- * saving images, you can opt to save format as Base64.
123
- * * height - Sets the default height of the image when it is inserted in the RichTextEditor.
124
- * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
125
- * * path - Specifies the path of the location to store the images and refer it to display the images.
126
- *
127
- * {% codeBlock src='rich-text-editor/insert-image-settings/index.md' %}{% endcodeBlock %}
128
- *
129
- * @default
130
- * {
131
- * allowedTypes: ['.jpeg', '.jpg', '.png'],
132
- * display: 'inline',
133
- * width: 'auto',
134
- * height: 'auto',
135
- * saveFormat: 'Blob'
136
- * saveUrl: null,
137
- * path: null,
138
- * }
139
- */
140
- insertImageSettings?: ImageSettingsModel;
141
-
142
- /**
143
- * Specifies the table insert options in Rich Text Editor component and control with the following properties.
144
- * * styles - Class name should be appended by default in table element.
145
- * It helps to design the table in specific CSS styles always when inserting in editor.
146
- * * width - Sets the default width of the table when it is inserted in the RichTextEditor.
147
- * * minWidth - Sets the default minWidth of the table when it is inserted in the RichTextEditor.
148
- * * maxWidth - Sets the default maxWidth of the table when it is inserted in the RichTextEditor.
149
- * * resize - To enable resize the table.
150
- *
151
- * {% codeBlock src='rich-text-editor/table-settings/index.md' %}{% endcodeBlock %}
152
- *
153
- * @default
154
- * {
155
- * width: '100%',
156
- * styles: [{ text: 'Dashed Borders', class: 'e-dashed-borders', command: 'Table', subCommand: 'Dashed' },
157
- * { text: 'Alternate Rows', class: 'e-alternate-rows', command: 'Table', subCommand: 'Alternate' }],
158
- * resize: true,
159
- * minWidth: 0,
160
- * maxWidth: null,
161
- * }
162
- */
163
- tableSettings?: TableSettingsModel;
164
-
165
- /**
166
- * Preserves the toolbar at the top of the Rich Text Editor on scrolling and
167
- * specifies the offset of the floating toolbar from documents top position
168
- * @default 0
169
- */
170
- floatingToolbarOffset?: number;
171
-
172
- /**
173
- * Enable or disable the inline edit mode.
174
- * * enable - set boolean value to enable or disable the inline edit mode.
175
- * * onSelection - If its set to true, upon selecting the text, the toolbar is opened in inline.
176
- * If its set to false, upon clicking to the target element, the toolbar is opened.
177
- *
178
- * {% codeBlock src='rich-text-editor/inline-mode/index.md' %}{% endcodeBlock %}
179
- *
180
- * @default
181
- * {
182
- * enable: false,
183
- * onSelection: true
184
- * }
185
- */
186
- inlineMode?: InlineModeModel;
187
-
188
- /**
189
- * Specifies the image manager options in Rich Text Editor component and control with the following properties.
190
- * * enable - set boolean value to enable or disable the image manager.
191
- * * ajaxSettings - Specifies the AJAX settings of the image manager.
192
- * * contextMenuSettings - Specifies the context menu settings of the image manager.
193
- * * navigationPaneSettings - Specifies the navigation pane settings of the image manager.
194
- * * toolbarSettings - Specifies the group of items aligned horizontally in the toolbar.
195
- * * uploadSettings - Specifies the upload settings for the image manager.
196
- *
197
- * @default
198
- * {
199
- * enable: false,
200
- * path: '/',
201
- * ajaxSettings: { getImageUrl: null, url: null, uploadUrl: null },
202
- * contextMenuSettings: {
203
- * visible: true,
204
- * file: ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Rename', '|', 'Details'],
205
- * folder: ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', '|', 'Details'],
206
- * layout: ['SortBy', 'View', 'Refresh', '|', 'Paste', '|', 'NewFolder', 'Upload', '|', 'Details', '|', 'SelectAll']
207
- * },
208
- * navigationPaneSettings: {
209
- * visible: true,
210
- * items: [
211
- * 'NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download',
212
- * 'Rename', 'SortBy', 'Refresh', 'Selection', 'View', 'Details'
213
- * ]
214
- * },
215
- * toolbarSettings: { visible: true, items: ['Upload', 'NewFolder'] },
216
- * uploadSettings: { autoUpload: true, minFileSize: 0, maxFileSize: 30000000, allowedExtensions: '', autoClose: false }
217
- * }
218
- */
219
- fileManagerSettings?: FileManagerSettingsModel;
220
-
221
- /**
222
- * Specifies the width of the RichTextEditor.
223
- * @default '100%'
224
- */
225
- width?: string | number;
226
-
227
- /**
228
- * Enables or disables the persisting component's state between page reloads.
229
- * If enabled, the value of Rich Text Editor is persisted
230
- *
231
- * {% codeBlock src='rich-text-editor/enable-persistence/index.md' %}{% endcodeBlock %}
232
- *
233
- * @default false.
234
- */
235
- enablePersistence?: boolean;
236
-
237
- /**
238
- * Enables or disables the resizing option in the editor.
239
- * If enabled, the Rich Text Editor can be resized by dragging the resize icon in the bottom right corner.
240
- *
241
- * {% codeBlock src='rich-text-editor/enable-resize/index.md' %}{% endcodeBlock %}
242
- *
243
- * @default false.
244
- */
245
- enableResize?: boolean;
246
-
247
- /**
248
- * Allows additional HTML attributes such as title, name, etc., and
249
- * It will be accepts n number of attributes in a key-value pair format.
250
- * @default {}.
251
- */
252
- htmlAttributes?: { [key: string]: string; };
253
-
254
- /**
255
- * Specifies the placeholder for the RichTextEditor’s content used when the Rich Text Editor body is empty.
256
- * @default null.
257
- */
258
- placeholder?: string;
259
-
260
- /**
261
- * Enables or disables the auto-save option which performs the save action while in the idle state after typed content.
262
- * If enabled, the Rich Text Editor will save the content on idle state with `saveInterval` property's value.
263
- * The change event will be triggered if the content has changed from the last saved state.
264
- * @default false.
265
- */
266
- autoSaveOnIdle?: boolean;
267
-
268
- /**
269
- * The user interactions on the component are disabled, when set to true.
270
- * @default false.
271
- */
272
- readonly?: boolean;
273
-
274
- /**
275
- * Specifies a value that indicates whether the component is enabled or not.
276
- *
277
- * {% codeBlock src='rich-text-editor/enabled/index.md' %}{% endcodeBlock %}
278
- *
279
- * @default true.
280
- */
281
- enabled?: boolean;
282
-
283
- /**
284
- * Defines whether to allow the cross-scripting site or not.
285
- * @default true
286
- */
287
- enableHtmlSanitizer?: boolean;
288
-
289
- /**
290
- * specifies the value whether the source code is displayed with encoded format.
291
- * @default false.
292
- */
293
- enableHtmlEncode?: boolean;
294
-
295
- /**
296
- * Specifies a value that indicates whether the xhtml is enabled or not.
297
- * @default false.
298
- */
299
- enableXhtml?: boolean;
300
-
301
- /**
302
- * Specifies the height of the Rich Text Editor component.
303
- * @default "auto"
304
- */
305
- height?: string | number;
306
-
307
- /**
308
- * Specifies the CSS class name appended with the root element of the RichTextEditor.
309
- * One or more custom CSS classes can be added to a RichTextEditor.
310
- * @default null
311
- */
312
- cssClass?: string;
313
-
314
- /**
315
- * Specifies the value displayed in the RichTextEditor's content area and it should be string.
316
- * The content of Rich Text Editor can be loaded with dynamic data such as database, AJAX content, and more.
317
- *
318
- * {% codeBlock src='rich-text-editor/value/index.md' %}{% endcodeBlock %}
319
- *
320
- * @default null
321
- */
322
- value?: string;
323
-
324
- /**
325
- * Specifies the count of undo history which is stored in undoRedoManager.
326
- *
327
- * {% codeBlock src='rich-text-editor/undo-redo-steps/index.md' %}{% endcodeBlock %}
328
- *
329
- * @default 30
330
- */
331
- undoRedoSteps?: number;
332
-
333
- /**
334
- * Specifies the interval value in milliseconds that store actions in undoRedoManager. The minimum value is 300 milliseconds.
335
- * @default 300
336
- */
337
- undoRedoTimer?: number;
338
-
339
- /**
340
- * Specifies the editing mode of the RichTextEditor.
341
- *
342
- * - `HTML` - Render Rich Text Editor as HTML editor using <IFRAME> element or content editable <div> element
343
- * or <textarea> element.
344
- *
345
- * - `Markdown` - Render Rich Text Editor as markdown editor using <textarea>.
346
- *
347
- * @default 'HTML'
348
- */
349
- editorMode?: EditorMode;
350
-
351
- /**
352
- * Customizes the key actions in RichTextEditor.
353
- * For example, when using German keyboard, the key actions can be customized using these shortcuts.
354
- *
355
- * {% codeBlock src='rich-text-editor/keyconfig/index.md' %}{% endcodeBlock %}
356
- *
357
- * @default null
358
- */
359
- keyConfig?: { [key: string]: string };
360
-
361
- /**
362
- * Sets Boolean value to enable or disable the display of the character counter.
363
- *
364
- * {% codeBlock src='rich-text-editor/show-char-count/index.md' %}{% endcodeBlock %}
365
- *
366
- * @default false
367
- */
368
- showCharCount?: boolean;
369
-
370
- /**
371
- * Allows the tab key action in the Rich Text Editor content.
372
- *
373
- * {% codeBlock src='rich-text-editor/enable-tab-key/index.md' %}{% endcodeBlock %}
374
- *
375
- * @default false
376
- */
377
- enableTabKey?: boolean;
378
-
379
- /**
380
- * Enable `enableAutoUrl` to accept the given URL (relative or absolute) without validating the URL for hyperlinks, otherwise
381
- * the given URL will automatically convert to absolute path URL by prefixing `https://` for hyperlinks.
382
- *
383
- * {% codeBlock src='rich-text-editor/enable-autourl/index.md' %}{% endcodeBlock %}
384
- *
385
- * @default false
386
- */
387
- enableAutoUrl?: boolean;
388
-
389
- /**
390
- * Specifies the maximum number of characters allowed in the Rich Text Editor component.
391
- *
392
- * {% codeBlock src='rich-text-editor/max-length/index.md' %}{% endcodeBlock %}
393
- *
394
- * @default -1
395
- */
396
- maxLength?: number;
397
-
398
- /**
399
- * Predefine the collection of paragraph styles along with quote and code style that populate in format dropdown from the toolbar.
400
- *
401
- * {% codeBlock src='rich-text-editor/format/index.md' %}{% endcodeBlock %}
402
- *
403
- * @default
404
- * {
405
- * default: 'Paragraph',
406
- * width: '65px',
407
- * types: [
408
- * { text: 'Paragraph' },
409
- * { text: 'Code' },
410
- * { text: 'Quotation' },
411
- * { text: 'Heading 1' },
412
- * { text: 'Heading 2' },
413
- * { text: 'Heading 3' },
414
- * { text: 'Heading 4' },
415
- * { text: 'Heading 5' },
416
- * { text: 'Heading 6' }
417
- * ]
418
- * }
419
- */
420
- format?: FormatModel;
421
-
422
- /**
423
- * Predefine the font families that populate in font family dropdown list from the toolbar.
424
- *
425
- * {% codeBlock src='rich-text-editor/font-family/index.md' %}{% endcodeBlock %}
426
- *
427
- * @default
428
- * {
429
- * default: 'Segoe UI',
430
- * width: '65px',
431
- * items: [
432
- * { text: 'Segoe UI', value: 'Segoe UI' },
433
- * { text: 'Arial', value: 'Arial,Helvetica,sans-serif' },
434
- * { text: 'Courier New', value: 'Courier New,Courier,monospace' },
435
- * { text: 'Georgia', value: 'Georgia,serif' },
436
- * { text: 'Impact', value: 'Impact,Charcoal,sans-serif' },
437
- * { text: 'Lucida Console', value: 'Lucida Console,Monaco,monospace' },
438
- * { text: 'Tahoma', value: 'Tahoma,Geneva,sans-serif' },
439
- * { text: 'Times New Roman', value: 'Times New Roman,Times,serif' },
440
- * { text: 'Trebuchet MS', value: 'Trebuchet MS,Helvetica,sans-serif' },
441
- * { text: 'Verdana', value: 'Verdana,Geneva,sans-serif' }
442
- * ]
443
- * }
444
- */
445
- fontFamily?: FontFamilyModel;
446
-
447
- /**
448
- * Predefine the font sizes that populate in font size dropdown list from the toolbar.
449
- *
450
- * {% codeBlock src='rich-text-editor/font-size/index.md' %}{% endcodeBlock %}
451
- *
452
- * @default
453
- * {
454
- * default: '10',
455
- * width: '35px',
456
- * items: [
457
- * { text: '8', value: '8pt' },
458
- * { text: '10', value: '10pt' },
459
- * { text: '12', value: '12pt' },
460
- * { text: '14', value: '14pt' },
461
- * { text: '18', value: '18pt' },
462
- * { text: '24', value: '24pt' },
463
- * { text: '36', value: '36pt' }
464
- * ]
465
- * }
466
- */
467
- fontSize?: FontSizeModel;
468
-
469
- /**
470
- * Predefine the color palette that can be rendered for font color toolbar command .
471
- *
472
- * {% codeBlock src='rich-text-editor/font-color/index.md' %}{% endcodeBlock %}
473
- *
474
- * @default
475
- * {
476
- * columns: 10,
477
- * colorCode: {
478
- * 'Custom': [
479
- * '', '#000000', '#e7e6e6', '#44546a', '#4472c4', '#ed7d31', '#a5a5a5', '#ffc000', '#70ad47', '#ff0000',
480
- * '#f2f2f2', '#808080', '#cfcdcd', '#d5dce4', '#d9e2f3', '#fbe4d5', '#ededed', '#fff2cc', '#e2efd9', '#ffcccc',
481
- * '#d9d9d9', '#595959', '#aeaaaa', '#acb9ca', '#b4c6e7', '#f7caac', '#dbdbdb', '#ffe599', '#c5e0b3', '#ff8080',
482
- * '#bfbfbf', '#404040', '#747070', '#8496b0', '#8eaadb', '#f4b083', '#c9c9c9', '#ffd966', '#a8d08d', '#ff3333',
483
- * '#a6a6a6', '#262626', '#3b3838', '#323e4f', '#2f5496', '#c45911', '#7b7b7b', '#bf8f00', '#538135', '#b30000',
484
- * '#7f7f7f', '#0d0d0d', '#161616', '#212934', '#1f3763', '#823b0b', '#525252', '#7f5f00', '#375623', '#660000']
485
- * }
486
- * }
487
- */
488
- fontColor?: FontColorModel;
489
-
490
- /**
491
- * Predefine the color palette that can be rendered for background color (text highlighted color) toolbar command.
492
- *
493
- * {% codeBlock src='rich-text-editor/background-color/index.md' %}{% endcodeBlock %}
494
- *
495
- * @default
496
- * {
497
- * columns: 5,
498
- * colorCode: {
499
- * 'Custom': ['#ffff00', '#00ff00', '#00ffff', '#ff00ff', '#0000ff', '#ff0000',
500
- * '#000080', '#008080', '#008000', '#800080', '#800000', '#808000',
501
- * '#c0c0c0', '#000000', '']
502
- * }
503
- * }
504
- */
505
- backgroundColor?: BackgroundColorModel;
506
-
507
- /**
508
- * Accepts the template design and assigns it as RichTextEditor’s content.
509
- * The built-in template engine which provides options to compile template string into a executable function.
510
- * For EX: We have expression evolution as like ES6 expression string literals
511
- *
512
- * {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
513
- *
514
- * @default null
515
- */
516
- valueTemplate?: string;
517
-
518
- /**
519
- * Specifies the saveInterval in milliseconds for autosave the value.
520
- * The change event will be triggered if the content was changed from the last saved interval.
521
- *
522
- * {% codeBlock src='rich-text-editor/save-interval/index.md' %}{% endcodeBlock %}
523
- *
524
- * @default 10000
525
- */
526
- saveInterval?: number;
527
-
528
- /**
529
- * Triggers before command execution using toolbar items or executeCommand method.
530
- * If you cancel this event, the command cannot be executed.
531
- * Set the cancel argument to true to cancel the command execution.
532
- * @event
533
- * @blazorProperty 'OnActionBegin'
534
- */
535
- actionBegin?: EmitType<ActionBeginEventArgs>;
536
-
537
- /**
538
- * Triggers after command execution using toolbar items or executeCommand method.
539
- * @event
540
- * @blazorProperty 'OnActionComplete'
541
- */
542
- actionComplete?: EmitType<ActionCompleteEventArgs>;
543
-
544
- /**
545
- * Event triggers when the dialog is being opened.
546
- * If you cancel this event, the dialog remains closed.
547
- * Set the cancel argument to true to cancel the open of a dialog.
548
- * @event
549
- * @blazorProperty 'OnDialogOpen'
550
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
551
- */
552
-
553
- beforeDialogOpen?: EmitType<BeforeOpenEventArgs>;
554
-
555
- /**
556
- * Event triggers when a dialog is opened.
557
- * @event
558
- * @blazorProperty 'DialogOpened'
559
- * @blazorType DialogOpenEventArgs
560
- */
561
- dialogOpen?: EmitType<Object>;
562
-
563
- /**
564
- * Event triggers when the dialog is being closed.
565
- * If you cancel this event, the dialog remains opened.
566
- * Set the cancel argument to true to prevent closing a dialog.
567
- * @event
568
- * @blazorProperty 'OnDialogClose'
569
- * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
570
- */
571
- beforeDialogClose?: EmitType<BeforeCloseEventArgs>;
572
-
573
- /**
574
- * Event triggers after the dialog has been closed.
575
- * @event
576
- * @blazorProperty 'DialogClosed'
577
- * @blazorType DialogCloseEventArgs
578
- */
579
- dialogClose?: EmitType<Object>;
580
-
581
- /**
582
- * Event triggers when the quick toolbar is being opened.
583
- * @event
584
- * @blazorProperty 'OnQuickToolbarOpen'
585
- */
586
-
587
- beforeQuickToolbarOpen?: EmitType<BeforeQuickToolbarOpenArgs>;
588
-
589
- /**
590
- * Event triggers when a quick toolbar is opened.
591
- * @event
592
- * @blazorProperty 'QuickToolbarOpened'
593
- * @blazorType QuickToolbarEventArgs
594
- */
595
- quickToolbarOpen?: EmitType<Object>;
596
-
597
- /**
598
- * Event triggers after the quick toolbar has been closed.
599
- * @event
600
- * @blazorProperty 'QuickToolbarClosed'
601
- * @blazorType QuickToolbarEventArgs
602
- */
603
- quickToolbarClose?: 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
+ * text: ['Cut', 'Copy', 'Paste']
60
+ * }
61
+ */
62
+ quickToolbarSettings?: QuickToolbarSettingsModel;
63
+
64
+ /**
65
+ * Specifies the pasting options in Rich Text Editor component and control with the following properties.
66
+ * * prompt - Set boolean value to enable or disable the prompt when pasting.
67
+ * * deniedAttrs - Specifies the attributes to restrict when pasting in RTE.
68
+ * * allowedStyleProps - Specifies the allowed style properties when pasting in RTE.
69
+ * * deniedTags - Specifies the tags to restrict when pasting in RTE.
70
+ * * keepFormat - Set boolean value to keep or remove the from when pasting.
71
+ * * plainText - Set boolean value to paste as plain text or not.
72
+ *
73
+ * {% codeBlock src='rich-text-editor/paste-cleanup-settings/index.md' %}{% endcodeBlock %}
74
+ *
75
+ * @default
76
+ * {
77
+ * prompt: false,
78
+ * deniedAttrs: null,
79
+ * allowedStyleProps: ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius',
80
+ * 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor',
81
+ * 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style',
82
+ * 'height', 'left', 'line-height', 'margin', 'margin-top', 'margin-left',
83
+ * 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width',
84
+ * 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right',
85
+ * 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent',
86
+ * 'top', 'vertical-align', 'visibility', 'white-space', 'width'],
87
+ * deniedTags: null,
88
+ * keepFormat: true,
89
+ * plainText: false
90
+ * }
91
+ */
92
+ pasteCleanupSettings?: PasteCleanupSettingsModel;
93
+
94
+ /**
95
+ * Specifies the items to be rendered in an iframe mode, and it has the following properties.
96
+ * * enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page.
97
+ * * attributes - Custom style to be used inside the iframe to display content. This style is added to the iframe body.
98
+ * * resources - we can add both styles and scripts to the iframe.
99
+ * 1. styles[] - An array of CSS style files to inject inside the iframe to display content
100
+ * 2. scripts[] - An array of JS script files to inject inside the iframe
101
+ *
102
+ * {% codeBlock src='rich-text-editor/iframe-settings/index.md' %}{% endcodeBlock %}
103
+ *
104
+ * @default
105
+ * {
106
+ * enable: false,
107
+ * attributes: null,
108
+ * resources: { styles: [], scripts: [] }
109
+ * }
110
+ */
111
+ iframeSettings?: IFrameSettingsModel;
112
+
113
+ /**
114
+ * Specifies the image insert options in Rich Text Editor component and control with the following properties.
115
+ * * allowedTypes - Specifies the extensions of the image types allowed to insert on bowering and
116
+ * passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png.
117
+ * * display - Sets the default display for an image when it is inserted in to the RichTextEditor.
118
+ * Possible options are: 'inline' and 'block'.
119
+ * * width - Sets the default width of the image when it is inserted in the RichTextEditor.
120
+ * * saveFormat - Specifies the format to store the image in the Rich Text Editor (Base64 or Blob).
121
+ * > If you want to insert a lot of tiny images in the editor and don't want a specific physical location for
122
+ * saving images, you can opt to save format as Base64.
123
+ * * height - Sets the default height of the image when it is inserted in the RichTextEditor.
124
+ * * saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server.
125
+ * * path - Specifies the path of the location to store the images and refer it to display the images.
126
+ *
127
+ * {% codeBlock src='rich-text-editor/insert-image-settings/index.md' %}{% endcodeBlock %}
128
+ *
129
+ * @default
130
+ * {
131
+ * allowedTypes: ['.jpeg', '.jpg', '.png'],
132
+ * display: 'inline',
133
+ * width: 'auto',
134
+ * height: 'auto',
135
+ * saveFormat: 'Blob'
136
+ * saveUrl: null,
137
+ * path: null,
138
+ * }
139
+ */
140
+ insertImageSettings?: ImageSettingsModel;
141
+
142
+ /**
143
+ * Specifies the table insert options in Rich Text Editor component and control with the following properties.
144
+ * * styles - Class name should be appended by default in table element.
145
+ * It helps to design the table in specific CSS styles always when inserting in editor.
146
+ * * width - Sets the default width of the table when it is inserted in the RichTextEditor.
147
+ * * minWidth - Sets the default minWidth of the table when it is inserted in the RichTextEditor.
148
+ * * maxWidth - Sets the default maxWidth of the table when it is inserted in the RichTextEditor.
149
+ * * resize - To enable resize the table.
150
+ *
151
+ * {% codeBlock src='rich-text-editor/table-settings/index.md' %}{% endcodeBlock %}
152
+ *
153
+ * @default
154
+ * {
155
+ * width: '100%',
156
+ * styles: [{ text: 'Dashed Borders', class: 'e-dashed-borders', command: 'Table', subCommand: 'Dashed' },
157
+ * { text: 'Alternate Rows', class: 'e-alternate-rows', command: 'Table', subCommand: 'Alternate' }],
158
+ * resize: true,
159
+ * minWidth: 0,
160
+ * maxWidth: null,
161
+ * }
162
+ */
163
+ tableSettings?: TableSettingsModel;
164
+
165
+ /**
166
+ * Preserves the toolbar at the top of the Rich Text Editor on scrolling and
167
+ * specifies the offset of the floating toolbar from documents top position
168
+ * @default 0
169
+ */
170
+ floatingToolbarOffset?: number;
171
+
172
+ /**
173
+ * Enable or disable the inline edit mode.
174
+ * * enable - set boolean value to enable or disable the inline edit mode.
175
+ * * onSelection - If its set to true, upon selecting the text, the toolbar is opened in inline.
176
+ * If its set to false, upon clicking to the target element, the toolbar is opened.
177
+ *
178
+ * {% codeBlock src='rich-text-editor/inline-mode/index.md' %}{% endcodeBlock %}
179
+ *
180
+ * @default
181
+ * {
182
+ * enable: false,
183
+ * onSelection: true
184
+ * }
185
+ */
186
+ inlineMode?: InlineModeModel;
187
+
188
+ /**
189
+ * Specifies the image manager options in Rich Text Editor component and control with the following properties.
190
+ * * enable - set boolean value to enable or disable the image manager.
191
+ * * ajaxSettings - Specifies the AJAX settings of the image manager.
192
+ * * contextMenuSettings - Specifies the context menu settings of the image manager.
193
+ * * navigationPaneSettings - Specifies the navigation pane settings of the image manager.
194
+ * * toolbarSettings - Specifies the group of items aligned horizontally in the toolbar.
195
+ * * uploadSettings - Specifies the upload settings for the image manager.
196
+ *
197
+ * @default
198
+ * {
199
+ * enable: false,
200
+ * path: '/',
201
+ * ajaxSettings: { getImageUrl: null, url: null, uploadUrl: null },
202
+ * contextMenuSettings: {
203
+ * visible: true,
204
+ * file: ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Rename', '|', 'Details'],
205
+ * folder: ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', '|', 'Details'],
206
+ * layout: ['SortBy', 'View', 'Refresh', '|', 'Paste', '|', 'NewFolder', 'Upload', '|', 'Details', '|', 'SelectAll']
207
+ * },
208
+ * navigationPaneSettings: {
209
+ * visible: true,
210
+ * items: [
211
+ * 'NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download',
212
+ * 'Rename', 'SortBy', 'Refresh', 'Selection', 'View', 'Details'
213
+ * ]
214
+ * },
215
+ * toolbarSettings: { visible: true, items: ['Upload', 'NewFolder'] },
216
+ * uploadSettings: { autoUpload: true, minFileSize: 0, maxFileSize: 30000000, allowedExtensions: '', autoClose: false }
217
+ * }
218
+ */
219
+ fileManagerSettings?: FileManagerSettingsModel;
220
+
221
+ /**
222
+ * Specifies the width of the RichTextEditor.
223
+ * @default '100%'
224
+ */
225
+ width?: string | number;
226
+
227
+ /**
228
+ * Enables or disables the persisting component's state between page reloads.
229
+ * If enabled, the value of Rich Text Editor is persisted
230
+ *
231
+ * {% codeBlock src='rich-text-editor/enable-persistence/index.md' %}{% endcodeBlock %}
232
+ *
233
+ * @default false.
234
+ */
235
+ enablePersistence?: boolean;
236
+
237
+ /**
238
+ * Enables or disables the resizing option in the editor.
239
+ * If enabled, the Rich Text Editor can be resized by dragging the resize icon in the bottom right corner.
240
+ *
241
+ * {% codeBlock src='rich-text-editor/enable-resize/index.md' %}{% endcodeBlock %}
242
+ *
243
+ * @default false.
244
+ */
245
+ enableResize?: boolean;
246
+
247
+ /**
248
+ * Allows additional HTML attributes such as title, name, etc., and
249
+ * It will be accepts n number of attributes in a key-value pair format.
250
+ * @default {}.
251
+ */
252
+ htmlAttributes?: { [key: string]: string; };
253
+
254
+ /**
255
+ * Specifies the placeholder for the RichTextEditor’s content used when the Rich Text Editor body is empty.
256
+ * @default null.
257
+ */
258
+ placeholder?: string;
259
+
260
+ /**
261
+ * Enables or disables the auto-save option which performs the save action while in the idle state after typed content.
262
+ * If enabled, the Rich Text Editor will save the content on idle state with `saveInterval` property's value.
263
+ * The change event will be triggered if the content has changed from the last saved state.
264
+ * @default false.
265
+ */
266
+ autoSaveOnIdle?: boolean;
267
+
268
+ /**
269
+ * The user interactions on the component are disabled, when set to true.
270
+ * @default false.
271
+ */
272
+ readonly?: boolean;
273
+
274
+ /**
275
+ * Specifies a value that indicates whether the component is enabled or not.
276
+ *
277
+ * {% codeBlock src='rich-text-editor/enabled/index.md' %}{% endcodeBlock %}
278
+ *
279
+ * @default true.
280
+ */
281
+ enabled?: boolean;
282
+
283
+ /**
284
+ * Defines whether to allow the cross-scripting site or not.
285
+ * @default true
286
+ */
287
+ enableHtmlSanitizer?: boolean;
288
+
289
+ /**
290
+ * specifies the value whether the source code is displayed with encoded format.
291
+ * @default false.
292
+ */
293
+ enableHtmlEncode?: boolean;
294
+
295
+ /**
296
+ * Specifies a value that indicates whether the xhtml is enabled or not.
297
+ * @default false.
298
+ */
299
+ enableXhtml?: boolean;
300
+
301
+ /**
302
+ * Specifies the height of the Rich Text Editor component.
303
+ * @default "auto"
304
+ */
305
+ height?: string | number;
306
+
307
+ /**
308
+ * Specifies the CSS class name appended with the root element of the RichTextEditor.
309
+ * One or more custom CSS classes can be added to a RichTextEditor.
310
+ * @default null
311
+ */
312
+ cssClass?: string;
313
+
314
+ /**
315
+ * Specifies the value displayed in the RichTextEditor's content area and it should be string.
316
+ * The content of Rich Text Editor can be loaded with dynamic data such as database, AJAX content, and more.
317
+ *
318
+ * {% codeBlock src='rich-text-editor/value/index.md' %}{% endcodeBlock %}
319
+ *
320
+ * @default null
321
+ */
322
+ value?: string;
323
+
324
+ /**
325
+ * Specifies the count of undo history which is stored in undoRedoManager.
326
+ *
327
+ * {% codeBlock src='rich-text-editor/undo-redo-steps/index.md' %}{% endcodeBlock %}
328
+ *
329
+ * @default 30
330
+ */
331
+ undoRedoSteps?: number;
332
+
333
+ /**
334
+ * Specifies the interval value in milliseconds that store actions in undoRedoManager. The minimum value is 300 milliseconds.
335
+ * @default 300
336
+ */
337
+ undoRedoTimer?: number;
338
+
339
+ /**
340
+ * Specifies the editing mode of the RichTextEditor.
341
+ *
342
+ * - `HTML` - Render Rich Text Editor as HTML editor using &lt;IFRAME&gt; element or content editable &lt;div&gt; element
343
+ * or &lt;textarea&gt; element.
344
+ *
345
+ * - `Markdown` - Render Rich Text Editor as markdown editor using &lt;textarea&gt;.
346
+ *
347
+ * @default 'HTML'
348
+ */
349
+ editorMode?: EditorMode;
350
+
351
+ /**
352
+ * Customizes the key actions in RichTextEditor.
353
+ * For example, when using German keyboard, the key actions can be customized using these shortcuts.
354
+ *
355
+ * {% codeBlock src='rich-text-editor/keyconfig/index.md' %}{% endcodeBlock %}
356
+ *
357
+ * @default null
358
+ */
359
+ keyConfig?: { [key: string]: string };
360
+
361
+ /**
362
+ * Sets Boolean value to enable or disable the display of the character counter.
363
+ *
364
+ * {% codeBlock src='rich-text-editor/show-char-count/index.md' %}{% endcodeBlock %}
365
+ *
366
+ * @default false
367
+ */
368
+ showCharCount?: boolean;
369
+
370
+ /**
371
+ * Allows the tab key action in the Rich Text Editor content.
372
+ *
373
+ * {% codeBlock src='rich-text-editor/enable-tab-key/index.md' %}{% endcodeBlock %}
374
+ *
375
+ * @default false
376
+ */
377
+ enableTabKey?: boolean;
378
+
379
+ /**
380
+ * Enable `enableAutoUrl` to accept the given URL (relative or absolute) without validating the URL for hyperlinks, otherwise
381
+ * the given URL will automatically convert to absolute path URL by prefixing `https://` for hyperlinks.
382
+ *
383
+ * {% codeBlock src='rich-text-editor/enable-autourl/index.md' %}{% endcodeBlock %}
384
+ *
385
+ * @default false
386
+ */
387
+ enableAutoUrl?: boolean;
388
+
389
+ /**
390
+ * Specifies the maximum number of characters allowed in the Rich Text Editor component.
391
+ *
392
+ * {% codeBlock src='rich-text-editor/max-length/index.md' %}{% endcodeBlock %}
393
+ *
394
+ * @default -1
395
+ */
396
+ maxLength?: number;
397
+
398
+ /**
399
+ * Predefine the collection of paragraph styles along with quote and code style that populate in format dropdown from the toolbar.
400
+ *
401
+ * {% codeBlock src='rich-text-editor/format/index.md' %}{% endcodeBlock %}
402
+ *
403
+ * @default
404
+ * {
405
+ * default: 'Paragraph',
406
+ * width: '65px',
407
+ * types: [
408
+ * { text: 'Paragraph' },
409
+ * { text: 'Code' },
410
+ * { text: 'Quotation' },
411
+ * { text: 'Heading 1' },
412
+ * { text: 'Heading 2' },
413
+ * { text: 'Heading 3' },
414
+ * { text: 'Heading 4' },
415
+ * { text: 'Heading 5' },
416
+ * { text: 'Heading 6' }
417
+ * ]
418
+ * }
419
+ */
420
+ format?: FormatModel;
421
+
422
+ /**
423
+ * Predefine the font families that populate in font family dropdown list from the toolbar.
424
+ *
425
+ * {% codeBlock src='rich-text-editor/font-family/index.md' %}{% endcodeBlock %}
426
+ *
427
+ * @default
428
+ * {
429
+ * default: 'Segoe UI',
430
+ * width: '65px',
431
+ * items: [
432
+ * { text: 'Segoe UI', value: 'Segoe UI' },
433
+ * { text: 'Arial', value: 'Arial,Helvetica,sans-serif' },
434
+ * { text: 'Courier New', value: 'Courier New,Courier,monospace' },
435
+ * { text: 'Georgia', value: 'Georgia,serif' },
436
+ * { text: 'Impact', value: 'Impact,Charcoal,sans-serif' },
437
+ * { text: 'Lucida Console', value: 'Lucida Console,Monaco,monospace' },
438
+ * { text: 'Tahoma', value: 'Tahoma,Geneva,sans-serif' },
439
+ * { text: 'Times New Roman', value: 'Times New Roman,Times,serif' },
440
+ * { text: 'Trebuchet MS', value: 'Trebuchet MS,Helvetica,sans-serif' },
441
+ * { text: 'Verdana', value: 'Verdana,Geneva,sans-serif' }
442
+ * ]
443
+ * }
444
+ */
445
+ fontFamily?: FontFamilyModel;
446
+
447
+ /**
448
+ * Predefine the font sizes that populate in font size dropdown list from the toolbar.
449
+ *
450
+ * {% codeBlock src='rich-text-editor/font-size/index.md' %}{% endcodeBlock %}
451
+ *
452
+ * @default
453
+ * {
454
+ * default: '10',
455
+ * width: '35px',
456
+ * items: [
457
+ * { text: '8', value: '8pt' },
458
+ * { text: '10', value: '10pt' },
459
+ * { text: '12', value: '12pt' },
460
+ * { text: '14', value: '14pt' },
461
+ * { text: '18', value: '18pt' },
462
+ * { text: '24', value: '24pt' },
463
+ * { text: '36', value: '36pt' }
464
+ * ]
465
+ * }
466
+ */
467
+ fontSize?: FontSizeModel;
468
+
469
+ /**
470
+ * Predefine the color palette that can be rendered for font color toolbar command .
471
+ *
472
+ * {% codeBlock src='rich-text-editor/font-color/index.md' %}{% endcodeBlock %}
473
+ *
474
+ * @default
475
+ * {
476
+ * columns: 10,
477
+ * colorCode: {
478
+ * 'Custom': [
479
+ * '', '#000000', '#e7e6e6', '#44546a', '#4472c4', '#ed7d31', '#a5a5a5', '#ffc000', '#70ad47', '#ff0000',
480
+ * '#f2f2f2', '#808080', '#cfcdcd', '#d5dce4', '#d9e2f3', '#fbe4d5', '#ededed', '#fff2cc', '#e2efd9', '#ffcccc',
481
+ * '#d9d9d9', '#595959', '#aeaaaa', '#acb9ca', '#b4c6e7', '#f7caac', '#dbdbdb', '#ffe599', '#c5e0b3', '#ff8080',
482
+ * '#bfbfbf', '#404040', '#747070', '#8496b0', '#8eaadb', '#f4b083', '#c9c9c9', '#ffd966', '#a8d08d', '#ff3333',
483
+ * '#a6a6a6', '#262626', '#3b3838', '#323e4f', '#2f5496', '#c45911', '#7b7b7b', '#bf8f00', '#538135', '#b30000',
484
+ * '#7f7f7f', '#0d0d0d', '#161616', '#212934', '#1f3763', '#823b0b', '#525252', '#7f5f00', '#375623', '#660000']
485
+ * }
486
+ * }
487
+ */
488
+ fontColor?: FontColorModel;
489
+
490
+ /**
491
+ * Predefine the color palette that can be rendered for background color (text highlighted color) toolbar command.
492
+ *
493
+ * {% codeBlock src='rich-text-editor/background-color/index.md' %}{% endcodeBlock %}
494
+ *
495
+ * @default
496
+ * {
497
+ * columns: 5,
498
+ * colorCode: {
499
+ * 'Custom': ['#ffff00', '#00ff00', '#00ffff', '#ff00ff', '#0000ff', '#ff0000',
500
+ * '#000080', '#008080', '#008000', '#800080', '#800000', '#808000',
501
+ * '#c0c0c0', '#000000', '']
502
+ * }
503
+ * }
504
+ */
505
+ backgroundColor?: BackgroundColorModel;
506
+
507
+ /**
508
+ * Accepts the template design and assigns it as RichTextEditor’s content.
509
+ * The built-in template engine which provides options to compile template string into a executable function.
510
+ * For EX: We have expression evolution as like ES6 expression string literals
511
+ *
512
+ * {% codeBlock src='rich-text-editor/value-template/index.md' %}{% endcodeBlock %}
513
+ *
514
+ * @default null
515
+ */
516
+ valueTemplate?: string;
517
+
518
+ /**
519
+ * Specifies the saveInterval in milliseconds for autosave the value.
520
+ * The change event will be triggered if the content was changed from the last saved interval.
521
+ *
522
+ * {% codeBlock src='rich-text-editor/save-interval/index.md' %}{% endcodeBlock %}
523
+ *
524
+ * @default 10000
525
+ */
526
+ saveInterval?: number;
527
+
528
+ /**
529
+ * Triggers before command execution using toolbar items or executeCommand method.
530
+ * If you cancel this event, the command cannot be executed.
531
+ * Set the cancel argument to true to cancel the command execution.
532
+ * @event
533
+ * @blazorProperty 'OnActionBegin'
534
+ */
535
+ actionBegin?: EmitType<ActionBeginEventArgs>;
536
+
537
+ /**
538
+ * Triggers after command execution using toolbar items or executeCommand method.
539
+ * @event
540
+ * @blazorProperty 'OnActionComplete'
541
+ */
542
+ actionComplete?: EmitType<ActionCompleteEventArgs>;
543
+
544
+ /**
545
+ * Event triggers when the dialog is being opened.
546
+ * If you cancel this event, the dialog remains closed.
547
+ * Set the cancel argument to true to cancel the open of a dialog.
548
+ * @event
549
+ * @blazorProperty 'OnDialogOpen'
550
+ * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
551
+ */
552
+
553
+ beforeDialogOpen?: EmitType<BeforeOpenEventArgs>;
554
+
555
+ /**
556
+ * Event triggers when a dialog is opened.
557
+ * @event
558
+ * @blazorProperty 'DialogOpened'
559
+ * @blazorType DialogOpenEventArgs
560
+ */
561
+ dialogOpen?: EmitType<Object>;
562
+
563
+ /**
564
+ * Event triggers when the dialog is being closed.
565
+ * If you cancel this event, the dialog remains opened.
566
+ * Set the cancel argument to true to prevent closing a dialog.
567
+ * @event
568
+ * @blazorProperty 'OnDialogClose'
569
+ * @blazorType Syncfusion.EJ2.Blazor.Popups.BeforeOpenEventArgs
570
+ */
571
+ beforeDialogClose?: EmitType<BeforeCloseEventArgs>;
572
+
573
+ /**
574
+ * Event triggers after the dialog has been closed.
575
+ * @event
576
+ * @blazorProperty 'DialogClosed'
577
+ * @blazorType DialogCloseEventArgs
578
+ */
579
+ dialogClose?: EmitType<Object>;
580
+
581
+ /**
582
+ * Event triggers when the quick toolbar is being opened.
583
+ * @event
584
+ * @blazorProperty 'OnQuickToolbarOpen'
585
+ */
586
+
587
+ beforeQuickToolbarOpen?: EmitType<BeforeQuickToolbarOpenArgs>;
588
+
589
+ /**
590
+ * Event triggers when a quick toolbar is opened.
591
+ * @event
592
+ * @blazorProperty 'QuickToolbarOpened'
593
+ * @blazorType QuickToolbarEventArgs
594
+ */
595
+ quickToolbarOpen?: EmitType<Object>;
596
+
597
+ /**
598
+ * Event triggers after the quick toolbar has been closed.
599
+ * @event
600
+ * @blazorProperty 'QuickToolbarClosed'
601
+ * @blazorType QuickToolbarEventArgs
602
+ */
603
+ quickToolbarClose?: EmitType<Object>;
604
604
 
605
605
  /**
606
- * Triggers when the undo and redo status is updated.
607
- * @event
608
- * @blazorType ToolbarUpdateEventArgs
609
- */
610
- toolbarStatusUpdate?: EmitType<Object>;
606
+ * Triggers when the undo and redo status is updated.
607
+ * @event
608
+ * @blazorType ToolbarUpdateEventArgs
609
+ */
610
+ toolbarStatusUpdate?: EmitType<Object>;
611
611
 
612
612
  /**
613
- * Event triggers when the image is selected or dragged into the insert image dialog.
614
- * @event
615
- * @blazorProperty 'OnImageSelected'
616
- */
617
- imageSelected?: EmitType<SelectedEventArgs>;
613
+ * Event triggers when the image is selected or dragged into the insert image dialog.
614
+ * @event
615
+ * @blazorProperty 'OnImageSelected'
616
+ */
617
+ imageSelected?: EmitType<SelectedEventArgs>;
618
618
 
619
619
  /**
620
- * Event triggers before the image upload process.
621
- * @event
622
- */
623
- beforeImageUpload?: EmitType<BeforeUploadEventArgs>;
620
+ * Event triggers before the image upload process.
621
+ * @event
622
+ */
623
+ beforeImageUpload?: EmitType<BeforeUploadEventArgs>;
624
624
 
625
625
  /**
626
- * Event triggers when the selected image begins to upload in the insert image dialog.
627
- * @event
628
- * @blazorProperty 'OnImageUploading'
629
- */
630
- imageUploading?: EmitType<UploadingEventArgs>;
626
+ * Event triggers when the selected image begins to upload in the insert image dialog.
627
+ * @event
628
+ * @blazorProperty 'OnImageUploading'
629
+ */
630
+ imageUploading?: EmitType<UploadingEventArgs>;
631
631
 
632
632
  /**
633
- * Event triggers when the image is successfully uploaded to the server side.
634
- * @event
635
- * @blazorProperty 'OnImageUploadSuccess'
636
- * @blazorType ImageSuccessEventArgs
637
- */
638
- imageUploadSuccess?: EmitType<Object>;
633
+ * Event triggers when the image is successfully uploaded to the server side.
634
+ * @event
635
+ * @blazorProperty 'OnImageUploadSuccess'
636
+ * @blazorType ImageSuccessEventArgs
637
+ */
638
+ imageUploadSuccess?: EmitType<Object>;
639
639
 
640
640
  /**
641
- * Event triggers when there is an error in the image upload.
642
- * @event
643
- * @blazorProperty 'OnImageUploadFailed'
644
- * @blazorType ImageFailedEventArgs
645
- */
646
- imageUploadFailed?: EmitType<Object>;
641
+ * Event triggers when there is an error in the image upload.
642
+ * @event
643
+ * @blazorProperty 'OnImageUploadFailed'
644
+ * @blazorType ImageFailedEventArgs
645
+ */
646
+ imageUploadFailed?: EmitType<Object>;
647
647
 
648
648
  /**
649
- * Event triggers when the selected image is cleared from the insert image dialog.
650
- * @event
651
- * @blazorProperty 'OnImageRemoving'
652
- */
653
- imageRemoving?: EmitType<RemovingEventArgs>;
649
+ * Event triggers when the selected image is cleared from the insert image dialog.
650
+ * @event
651
+ * @blazorProperty 'OnImageRemoving'
652
+ */
653
+ imageRemoving?: EmitType<RemovingEventArgs>;
654
654
 
655
655
  /**
656
- * Event triggers when the selected image is cleared from the Rich Text Editor Content.
657
- * @event
658
- * @blazorProperty 'OnImageDelete'
659
- */
660
- afterImageDelete?: EmitType<AfterImageDeleteEventArgs>;
656
+ * Event triggers when the selected image is cleared from the Rich Text Editor Content.
657
+ * @event
658
+ * @blazorProperty 'OnImageDelete'
659
+ */
660
+ afterImageDelete?: EmitType<AfterImageDeleteEventArgs>;
661
661
 
662
662
  /**
663
- * Triggers when the Rich Text Editor is rendered.
664
- * @event
665
- * @blazorProperty 'Created'
666
- */
667
- created?: EmitType<Object>;
663
+ * Triggers when the Rich Text Editor is rendered.
664
+ * @event
665
+ * @blazorProperty 'Created'
666
+ */
667
+ created?: EmitType<Object>;
668
668
 
669
669
  /**
670
- * Triggers when the Rich Text Editor is destroyed.
671
- * @event
672
- * @blazorProperty 'Destroyed'
673
- * @blazorType DestroyedEventArgs
674
- */
675
- destroyed?: EmitType<Object>;
670
+ * Triggers when the Rich Text Editor is destroyed.
671
+ * @event
672
+ * @blazorProperty 'Destroyed'
673
+ * @blazorType DestroyedEventArgs
674
+ */
675
+ destroyed?: EmitType<Object>;
676
676
 
677
677
  /**
678
- * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
679
- * @event
680
- * @blazorProperty 'OnSanitizeHtml'
681
- */
682
- beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
678
+ * Event triggers before sanitize the value. It's only applicable to editorMode as `HTML`.
679
+ * @event
680
+ * @blazorProperty 'OnSanitizeHtml'
681
+ */
682
+ beforeSanitizeHtml?: EmitType<BeforeSanitizeHtmlArgs>;
683
683
 
684
684
  /**
685
- * Triggers when Rich Text Editor is focused out.
686
- * @event
687
- * @blazorType BlurEventArgs
688
- */
689
- blur?: EmitType<Object>;
685
+ * Triggers when Rich Text Editor is focused out.
686
+ * @event
687
+ * @blazorType BlurEventArgs
688
+ */
689
+ blur?: EmitType<Object>;
690
690
 
691
691
  /**
692
- * Triggers when Rich Text Editor Toolbar items is clicked.
693
- * @event
694
- * @blazorProperty 'OnToolbarClick'
695
- * @blazorType ToolbarClickEventArgs
696
- */
697
- toolbarClick?: EmitType<Object>;
692
+ * Triggers when Rich Text Editor Toolbar items is clicked.
693
+ * @event
694
+ * @blazorProperty 'OnToolbarClick'
695
+ * @blazorType ToolbarClickEventArgs
696
+ */
697
+ toolbarClick?: EmitType<Object>;
698
698
 
699
699
  /**
700
- * Triggers when Rich Text Editor is focused in
701
- * @event
702
- * @blazorType FocusEventArgs
703
- */
704
- focus?: EmitType<Object>;
700
+ * Triggers when Rich Text Editor is focused in
701
+ * @event
702
+ * @blazorType FocusEventArgs
703
+ */
704
+ focus?: EmitType<Object>;
705
705
 
706
706
  /**
707
- * Triggers only when Rich Text Editor is blurred and changes are done to the content.
708
- * @event
709
- * @blazorProperty 'ValueChange'
710
- */
711
- change?: EmitType<ChangeEventArgs>;
707
+ * Triggers only when Rich Text Editor is blurred and changes are done to the content.
708
+ * @event
709
+ * @blazorProperty 'ValueChange'
710
+ */
711
+ change?: EmitType<ChangeEventArgs>;
712
712
 
713
713
  /**
714
- * Triggers only when resizing the image.
715
- * @event
716
- * @blazorProperty 'Resizing'
717
- */
718
- resizing?: EmitType<ResizeArgs>;
714
+ * Triggers only when resizing the image.
715
+ * @event
716
+ * @blazorProperty 'Resizing'
717
+ */
718
+ resizing?: EmitType<ResizeArgs>;
719
719
 
720
720
  /**
721
- * Triggers only when start resize the image.
722
- * @event
723
- * @blazorProperty 'OnResizeStart'
724
- */
725
- resizeStart?: EmitType<ResizeArgs>;
721
+ * Triggers only when start resize the image.
722
+ * @event
723
+ * @blazorProperty 'OnResizeStart'
724
+ */
725
+ resizeStart?: EmitType<ResizeArgs>;
726
726
 
727
727
  /**
728
- * Triggers only when stop resize the image.
729
- * @event
730
- * @blazorProperty 'OnResizeStop'
731
- */
732
- resizeStop?: EmitType<ResizeArgs>;
728
+ * Triggers only when stop resize the image.
729
+ * @event
730
+ * @blazorProperty 'OnResizeStop'
731
+ */
732
+ resizeStop?: EmitType<ResizeArgs>;
733
733
 
734
734
  /**
735
- * Triggers before drop the image.
736
- * @event
737
- * @blazorProperty 'OnImageDrop'
738
- */
739
- beforeImageDrop?: EmitType<ImageDropEventArgs>;
735
+ * Triggers before drop the image.
736
+ * @event
737
+ * @blazorProperty 'OnImageDrop'
738
+ */
739
+ beforeImageDrop?: EmitType<ImageDropEventArgs>;
740
740
 
741
741
  /**
742
- * Customize keyCode to change the key value.
743
- *
744
- * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
745
- *
746
- * @default null
747
- * @blazorType object
748
- */
749
- formatter?: IFormatter;
742
+ * Customize keyCode to change the key value.
743
+ *
744
+ * {% codeBlock src='rich-text-editor/formatter/index.md' %}{% endcodeBlock %}
745
+ *
746
+ * @default null
747
+ * @blazorType object
748
+ */
749
+ formatter?: IFormatter;
750
750
 
751
751
  }