JSPM

aor-tinymce-input

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q73758F
  • License MIT

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

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

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