Forms
WYSIWYG Editor
Rich text editor that uses TipTap library.
Preview
Usage
API Reference
Prop | Type | Default |
---|---|---|
onChange | (value: StringLanguage[]) => void | (value: string) => void | - |
value | StringLanguage[] | string | - |
disableLanguages | boolean | false |
autofocus | boolean | false |
allowUploadFiles | { plugin_code: string, folder: string } | - |
disabled | boolean | false |
Extensions
We have implemented the following extensions:
- BulletList,
- CodeBlock,
- HardBreak,
- Heading,
- HorizontalRule,
- ListItem,
- OrderedList,
- Paragraph,
- Bold,
- Code,
- Italic,
- Strike,
- History,
- Underline,
- TextAlign,
- TextStyle,
- CodeBlockLowlight,
- Color,
- Link,
- Blockquote,
To Improve:
and extra extensions unique to our implementation:
- Remove Formatting,
- Emoji,
- Images,
- Files
Upload Files
Our editor allows you to upload files. To enable this feature, you need to pass the allowUploadFiles
prop with the plugin and folder name.
Read only mode
To display content form editor you have to use ReadOnlyEditor
component.
API Reference
Prop | Type | Default |
---|---|---|
value | StringLanguage[] | [] |
allowDownloadAttachments | boolean | false |