1.1.3 • Published 6 years ago
tinymce-webpack-bundle v1.1.3
Sendo TinyMCE Editor
Bundle TinyMCE with skins, plugins,... and create global tinymce variable to use with @tinymce/tinymce-react package
Requirements
- Nodejs >= 10.17.0 (Recommend)
How to use
import '@sendo/tinymce-editor';
import { Editor } from '@tinymce/tinymce-react';
<Editor
init={{
skin: false, // Required
content_css: false, // Required
language: 'vi' // Recommend
}}
plugins={[
'fullscreen',
'image',
'imagetools',
'link',
'lists',
'media',
'paste',
'table',
]}
toolbar={[
`undo redo | bold italic underline strikethrough | forecolor backcolor |
alignleft aligncenter alignright alignjustify |
subscript superscript`,
`removeformat | styleselect formatselect fontselect fontsizeselect`,
`table | bullist numlist | outdent indent blockquote | link unlink |
image media | fullscreen`,
]}
onEditorChange={(content, editor) => {
console.log({ content, editor })
}}
/>Run and build
yarnyarn buildoryarn dev(for development)