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.
npm install aor-tinymce-input --save
or
yarn add aor-tinymce-input
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>;
This library is licensed under the MIT Licence, and sponsored by Whitebolt.