UNPKG

817 BMarkdownView Raw
1# mb-react-tinymce
2
3Try to deal with:
4* Warp `TinyMCE` into `React Component`
5* Also provides a hackable EditorToolbar Component
6
7[Online DEMO](https://mockingbot.github.io/mb-react-tinymce/)
8
9#### Basic Usage
10
11You can build the test version by `npm i && npm start`,
12and serve the `example/` directory.
13Then open `example/index.html`.
14
15Check code to init example at:
16- `source/index/example.js`
17- `example/`
18
19this package requires:
20
21```js
22const TINY_MCE = window.tinyMCE || window.tinymce // TinyMCE needs to be loaded
23```
24
25this package exports:
26
27```js
28export {
29 TinyMCEComponent,
30 EditorToolbar,
31 LOCALE_LIST,
32 GET_LOCALE,
33 SET_LOCALE
34}
35```
36
37#### Reference
38
39- [TinyMCE](https://www.tinymce.com/)
40- [mb-icons](https://github.com/mockingbot/mb-icons) (for EditorToolbar)