2.4
Rich text editor
Used to content editor based Tiptap.js
Import
js
import { MpRichTextEditor, MpRTEStyleProvider } from '@mekari/pixel3'Playground
API
MpRichTextEditor
Props
Events
| Name | Type | Default |
|---|---|---|
id | string | - |
value | string | - |
placeholder | string | - |
maxlength | number | - |
options | heading | bold | italic | underline | strike | blockquote
| bulletList | orderedList | align | mention | textLink
| image | file | audio | undo | redo | clear
| { value: string, tooltip?: string } | - |
suggestions | array | [] |
is-disabled | boolean | false |
is-invalid | boolean | false |
has-border | boolean | false |
MpRTEStyleProvider
Props
| Name | Type | Default |
|---|---|---|
id | string | - |
Usage
Advance usage
Use emit action or paste event to handle attach image, file, audio