VRichTextEditor
Props
| Name | Type | Description |
|---|---|---|
| placeholder | string | |
| selection-end | number | |
| selection-start | number |
Events
| Name | Event Type | Description |
|---|---|---|
| blur | FocusEvent | Fires when the element loses focus. |
| click | MouseEvent | Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element. |
| focus | FocusEvent | Fires when the element receives focus. |
| input | Event | Fires when the value of an element has been changed. |
| keydown | KeyboardEvent | Fires when a key is pressed. |
| keyup | KeyboardEvent | Fires when a key is released. |
Methods
| Name | Type | Description |
|---|---|---|
| addInlineImage | `(imageProps: { |
file: File;
position?: number;
alt?: string;
}) => unknown` | |
| focus | () => unknown | | | placeholderChanged | () => unknown | | | scrollToAttachments | (additionalPixels: unknown) => unknown | | | selectionEndChanged | () => unknown | | | selectionStartChanged | () => unknown | | | setSelectionDecoration | (decoration: string) => unknown | | | setSelectionTextSize | (textSize: 'extra-large' | 'large' | 'normal' | 'small') => unknown | | | setTextBlock | (blockType: 'title' | 'subtitle' | 'body') => unknown | |