1 | # mb-react-tinymce
|
2 |
|
3 | Try 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 |
|
11 | You can build the test version by `npm i && npm start`,
|
12 | and serve the `example/` directory.
|
13 | Then open `example/index.html`.
|
14 |
|
15 | Check code to init example at:
|
16 | - `source/index/example.js`
|
17 | - `example/`
|
18 |
|
19 | this package requires:
|
20 |
|
21 | ```js
|
22 | const TINY_MCE = window.tinyMCE || window.tinymce // TinyMCE needs to be loaded
|
23 | ```
|
24 |
|
25 | this package exports:
|
26 |
|
27 | ```js
|
28 | export {
|
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)
|