EditorComponent
Represents the Kendo UI Editor component for Angular.
Selector
kendo-editor
Inputs
Name | Type | Default | Description |
---|---|---|---|
applyToWord |
|
|
If set to |
disabled |
|
Sets the disabled state of the component. To learn how to disable the component in reactive forms, refer to the article on Forms Support. | |
iframe |
|
|
If set to |
iframeCss |
|
Allows applying custom CSS styles to the Editor in iframe mode. | |
pasteCleanupSettings |
|
Configures how pasted content is modified before it is added to the Editor (see example). | |
placeholder |
|
The hint, which is displayed when the component is empty. | |
plugins |
|
Defines a function which determines the plugins that will be used when initializing the Editor. It exposes the default plugins collection as an argument, and returns the plugins collection that will be used when creating the Editor component. (see example) | |
preserveWhitespace |
|
|
By default, whitespace is collapsed as per HTML's rules.
Set to |
readonly |
|
|
Sets the read-only state of the component. |
resizable |
|
|
Determines whether the Editor can be resized (see example). |
schema |
|
Allows providing a custom schema. (see example) | |
value |
|
Sets the value of the Editor (see example). |
Fields
Name | Type | Default | Description |
---|---|---|---|
selectionText |
|
Returns the text which the current Editor selection contains (see example). | |
view |
|
Returns the ProseMirror EditorView object that manages the DOM structure that represents an editable document. |
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires when the content area of the Editor is blurred (see example). |
focus |
|
Fires when the content area of the Editor is focused (see example). |
paste |
|
Fires when the user performs paste in the content area of the Editor (see example). The event is preventable. If you cancel it, the Editor content will not change. |
valueChange |
|
Fires each time the value of the Editor is changed upon user interaction—
for example, when the value is updated through typing in the content area or using some of the Editor tools (see example).
When the value of the Editor is programmatically changed through its API ( |
Methods
blur |
---|
Manually blur the Editor. |
exec | |||||||||
---|---|---|---|---|---|---|---|---|---|
Executes a command on the currently selected text (more information and example). | |||||||||
|
focus |
---|
Manually focus the Editor. |
openDialog | ||||||
---|---|---|---|---|---|---|
Opens a dialog. | ||||||
|