JSPM

@palustris/ra-tinymce-input

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35222F
  • License MIT

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

Package Exports

  • @palustris/ra-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 (@palustris/ra-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 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