New to Kendo UI for Vue? Start a free 30-day trial

EditorProps

Interface

Represents the props of the Kendo UI for Vue Editor component.

Definition

Package:@progress/kendo-vue-editor

Properties

Sets the id of one or more elements that describe the Editor, similar to the HTML aria-describedby attribute.

Sets the accessible label of the Editor.

Sets the id of one or more elements that label the Editor.

Sets the styles of the content element wrapper of the Editor.

Sets the initial HTML content of the Editor.

Sets the initial edit mode of the Editor.

Default:

'iframe'

dir?

string

Sets the dir HTML attribute of the Editor.

Sets a function that runs each time the Editor is about to mount. Use it to configure the EditorView object. To create the EditorView, use the properties of the event object.

Parameters:eventEditorMountEventReturns:

void | EditorView

Turns the built-in keyboard navigation of the Editor toolbar on or off. To turn it off, set it to false.

Default:

true

onBlur?

(event: EditorBlurEvent) => void

Fires when the content element of the Editor loses focus.

Parameters:eventEditorBlurEvent

Fires each time the value of the Editor is about to change.

Parameters:eventEditorChangeEvent

Fires each time the Editor is about to apply a transaction. To prevent the transaction, return false.

Parameters:eventEditorExecuteEventReturns:

boolean | void

onFocus?

(event: EditorFocusEvent) => void

Fires when the content element of the Editor receives focus.

Parameters:eventEditorFocusEvent

Fires each time the Editor is about to mount. Use it to configure the EditorView object. To create the EditorView, use the properties of the event object.

Parameters:eventEditorMountEventReturns:

void | EditorView

Sets a function that runs each time the Editor is about to insert pasted content. Use it to change the pasted content.

Parameters:eventEditorPasteEventReturns:

string | void

preserveWhitespace?

string | boolean

Sets how the Editor handles whitespace when it parses HTML. When you set it to false, the Editor collapses whitespace by the HTML rules. When you set it to true, the Editor keeps whitespace but turns newlines into spaces. When you set it to full, the Editor keeps all whitespace.

Default:

'full'

resizable?

boolean

Sets whether you can resize the Editor.

tools?

any[]

Sets the tools of the Editor. By default, the Editor renders no tools.

value?

string | Node

Sets the value of the Editor.