<TinyMCEInput>
for admin-on-rest
component for admin-on-rest, useful for editing HTML in admin GUIs.
Binding of <TinyMCE />
for admin-on-rest.
Installation
npm install aor-tinymce-input --save
Usage
import React from 'react'
import {
Edit,
TextInput
} from 'admin-on-rest/mui'
import tinymce from 'tinymce/tinymce'
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>
<TextInput source="title" />
<TinyMCEInput source="content" config={{ skin: false }} />
</Edit>
)
License
This library is licensed under the MIT Licence, and sponsored by iGLOO.