EditorProps
Represents the props of the KendoReact Editor component.
className?
string
Sets additional classes to the Editor.
contentStyle?
CSSProperties
Sets styles to the content element wrapper of the Editor.
defaultContent?
string
Sets the default HTML content of the Editor.
defaultEditMode?
"iframe" | "div"
Sets the initial edit mode of the Editor. Defaults to iframe
.
dir?
string
Represents the dir
HTML attribute.
keyboardNavigation?
boolean
If set to false
, it will turn off the built-in keyboard navigation of the Editor's Toolbar.
onBlur?
(event: { nativeEvent: any; target: Editor; }) => void
Fires when the Editor's content element has lost focus.
onChange?
(event: EditorChangeEvent) => void
Fires each time the value of the Editor is about to change.
onExecute?
(event: { state: EditorState; target: Editor; transaction: Transaction; }) => boolean | void
Fires each time the Editor is about to apply a transaction.
To prevent the transaction, return false
.
onFocus?
(event: { nativeEvent: any; target: Editor; }) => void
Fires when the Editor's content element has received focus.
onMount?
(event: { dom: HTMLDivElement; plugins: Array<Plugin>; shortcuts: Shortcuts; target: Editor; viewProps: {[key: string]: any}; }) => EditorView | void
Fires each time the Editor is about to mount.
Useful for configuring the EditorView
object.
To initialize EditorView
, use the properties of the event
object.
onPasteHtml?
(event: { pastedHtml: string; target: Editor; }) => string | void
Fires each time the Editor is about to insert pasted content. Useful for modifying pasted content.
style?
CSSProperties
Sets styles to the Editor.
tools?
Array<any>
Sets the tools of the Editor. By default, the Editor renders no tools.
value?
Node | string
The value of the Editor.