ra-tinymce-input
v1.2.3
Published
<TinyMCEInput /> component for react-admin, useful for editing HTML in admin GUIs
Downloads
43
Maintainers
Readme
<TinyMCEInput>
for admin-on-rest
component for react-admin, useful for editing HTML in admin GUIs.
Binding of <TinyMCE />
for react-admin.
This is a fork of aor-tinymce-input, changed to work on latest react-admin rather than admin-on-rest.
Installation
npm install aor-tinymce-input --save
or
yarn add aor-tinymce-input
Usage
import React from 'react';
import {SimpleForm, Edit, TextInput } from 'ra-ui-materialui';
import tinymce from 'tinymce/tinymce';
// react-tinymce use global ref
window.tinymce = tinymce;
import 'tinymce/themes/modern/theme';
import 'tinymce/skins/lightgray/skin.min.css';
import TinyMCEInput from 'aor-tinymce-input';
export const PostEdit = props=><Edit>
<SimpleForm>
<TextInput source="title" />
<TinyMCEInput source="content" plugins={["code"]} />
</SimpleForm>
</Edit>;
License
This library is licensed under the MIT Licence, and sponsored by Whitebolt.