mockingbot / mb-react-tinymce

Warp `TinyMCE` into `React Component`

Home Page:https://mockingbot.github.io/mb-react-tinymce/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mb-react-tinymce

i:npm i:size i:lint i:npm-dev

Online DEMO

Try to deal with:

  • Warp TinyMCE into React Component
  • Also provides a hackable EditorToolbar Component

Basic Usage

You can build the test version by npm i && npm start, and serve the example/ directory. Then open example/index.html.

Check code to init example at:

  • source/index.example.js
  • example/index.html

this package expects TinyMCE to be loaded as: window.tinyMCE || window.tinymce

this package exports:

export {
  createEditorStore,
  TinyMCEComponent,
  Toolbar,
  LOCALE_LIST,
  GET_LOCALE,
  SET_LOCALE,
  TinyMCEPanelRestyleGlobalStyle
}

Reference

About

Warp `TinyMCE` into `React Component`

https://mockingbot.github.io/mb-react-tinymce/

License:MIT License


Languages

Language:JavaScript 85.6%Language:CSS 12.1%Language:HTML 2.3%