Package Exports
- aor-tinymce-input
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aor-tinymce-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
<TinyMCEInput> for admin-on-rest
Binding of <TinyMCE /> for admin-on-rest.
Installation
npm install aor-tinymce-input --saveUsage
import React from 'react'
import {
Edit,
TextInput
} from 'admin-on-rest/mui'
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>
<TextInput source="title" />
<TinyMCEInput source="content" config={{ skin: false }} />
</Edit>
)License
This library is licensed under the MIT Licence, and sponsored by iGLOO.