Skip to content

<TinyMCEInput> component for react-admin, useful for editing HTML in admin GUIs.

License

Notifications You must be signed in to change notification settings

Whitebolt/ra-tinymce-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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.

About

<TinyMCEInput> component for react-admin, useful for editing HTML in admin GUIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%