EditorComponent
Represents the Kendo UI Editor component for Angular.
Use the Editor to create and edit rich text content in your Angular applications.
<kendo-editor [(value)]="editorValue"></kendo-editor>
Selector
kendo-editor
Inputs
Name | Type | Default | Description |
---|---|---|---|
applyToWord |
|
|
When set to |
disabled |
|
Sets the disabled state of the component. To disable the Editor in reactive forms, see Forms Support. | |
iframe |
|
|
If set to |
iframeCss |
|
Applies custom CSS styles to the Editor in iframe mode. Use this property to provide additional CSS for the Editor content. | |
pasteCleanupSettings |
|
Configures how pasted content is cleaned before it is added to the Editor (see example). Use this property to remove unwanted HTML, styles, or attributes from pasted content. | |
placeholder |
|
Sets the hint text displayed when the Editor is empty. Use this property to provide guidance to users. | |
plugins |
|
Defines a function to customize the plugins used by the Editor. The function receives the default plugins and returns the plugins to use (see example). | |
preserveWhitespace |
|
|
Controls whitespace handling in the Editor content.
Set to |
readonly |
|
|
Sets the read-only state of the component. When |
resizable |
|
|
Determines whether the Editor can be resized (see example).
Set to |
schema |
|
Provides a custom schema for the Editor (see example). | |
value |
|
Sets the value of the Editor (see example). Use this property to update the Editor content programmatically. |
Fields
Name | Type | Default | Description |
---|---|---|---|
selectionText |
|
Returns the text currently selected in the Editor (see example). | |
view |
|
Returns the ProseMirror EditorView object.
Use this property to access the underlying |
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires when the Editor content area is blurred (see example). |
focus |
|
Fires when the Editor content area receives focus (see example). |
paste |
|
Fires when the user paste content into the Editor (see example). This event is preventable. If you cancel it, the Editor content does not change. |
valueChange |
|
Fires when the Editor value changes due to user interaction.
This event does not fire when the value changes programmatically through |
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. | ||||||
|