@palustris/ra-tinymce-input
v3.0.0
Published
<TinyMCEInput /> component for react-admin, useful for editing HTML in admin GUIs
Downloads
13
Maintainers
Readme
<TinyMCEInput>
for react-admin
component for react-admin, useful for editing HTML in admin GUIs.
Binding of <Editor />
for react-admin.
This is a fork of aor-tinymce-input, changed to use the official tinyMCE react-integration.
Installation
npm install @palustris/tinymce-input --save
or
yarn add @palustris/tinymce-input
Usage
import React from 'react';
import {SimpleForm, Edit, TextInput } from 'ra-ui-materialui';
import 'tinymce/themes/modern/theme';
import 'tinymce/skins/lightgray/skin.min.css';
import TinyMCEInput from '@palustris/tinymce-input';
export const PostEdit = props=> (
<Edit>
<SimpleForm>
<TextInput source="title" />
<TinyMCEInput source="content" plugins={["code"]} />
</SimpleForm>
</Edit>
);
Building
node_modules/.bin/babel src --out-dir lib
License
This library is licensed under the MIT Licence