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.

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.

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.

 /