<RichTextInput> for react-admin
npm install ra-input-rich-text --save-dev
import * as React from "react";importDateInputEditEditButtonTextInputfrom 'react-admin';import RichTextInput from 'ra-input-rich-text';const PostTitle = recordreturn <span>Post record ? `""` : ''</span>;;const PostEdit = props<Edit = ><TextInput ="Id" ="id" /><TextInput ="title" = /><TextInput ="teaser" = /><RichTextInput ="body" = /><DateInput ="Publication date" ="published_at" /></Edit>;
You can customize the rich text editor toolbar using the
toolbar attribute, as described on the Quill official toolbar documentation.
<RichTextInput ="body" = />
If you need more customization, you can access the quill object through the
configureQuill callback that will be called just after its initialization.
const configureQuill = quill;// ...<RichTextInput source="text" configureQuill=configureQuill/>
This library is licensed under the MIT License, and sponsored by marmelab.