@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.
- package/CHANGELOG.md +782 -728
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +249 -145
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +371 -267
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +76 -75
- package/src/common/interface.d.ts +6 -6
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +5 -4
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +16 -12
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +8 -8
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +8 -4
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +23 -7
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +35 -4
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +4 -3
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/global.d.ts +1 -0
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
- package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +22 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +103 -103
- package/src/rich-text-editor/base/classes.js +103 -103
- package/src/rich-text-editor/base/constant.d.ts +112 -107
- package/src/rich-text-editor/base/constant.js +112 -107
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +40 -40
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
- package/src/rich-text-editor/base/rich-text-editor.d.ts +51 -51
- package/src/rich-text-editor/base/rich-text-editor.js +88 -66
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/image-module.js +21 -7
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +7 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
- package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +13 -1
- package/styles/bootstrap.css +13 -1
- package/styles/bootstrap4.css +13 -1
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/fabric-dark.css +13 -1
- package/styles/fabric.css +13 -1
- package/styles/highcontrast-light.css +13 -1
- package/styles/highcontrast.css +13 -1
- package/styles/material-dark.css +13 -1
- package/styles/material.css +13 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
- package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
- package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
- package/styles/rich-text-editor/_fabric-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
- package/styles/rich-text-editor/_layout.scss +1416 -1404
- package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_material-definition.scss +150 -150
- package/styles/rich-text-editor/_theme.scss +499 -499
- package/styles/rich-text-editor/bootstrap-dark.css +13 -1
- package/styles/rich-text-editor/bootstrap.css +13 -1
- package/styles/rich-text-editor/bootstrap4.css +13 -1
- package/styles/rich-text-editor/fabric-dark.css +13 -1
- package/styles/rich-text-editor/fabric.css +13 -1
- package/styles/rich-text-editor/highcontrast-light.css +13 -1
- package/styles/rich-text-editor/highcontrast.css +13 -1
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
- package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
- package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_fabric.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
- package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
- package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
- package/styles/rich-text-editor/icons/_material.scss +288 -288
- package/styles/rich-text-editor/material-dark.css +13 -1
- package/styles/rich-text-editor/material.css +13 -1
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- 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';
|
|
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 <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>;
|
|
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
|
}
|