Simple React wrapper for SubEditor.
> npm install react-subeditor
import SubEditorComponent from 'react-subeditor';
const options = {
lang : "en",
width : 750,
height:250,
value : 'some text',
autoGrow : true,
pluginList : ["fullscreen","hr", "color","source","align","text","undo","redo","indent","format","remove_format","link", "paste","list", "table","image"],
toolbarList : ["undo","redo","text","format","link","remove_format","indent","outdent","color","backgroundcolor","align","ol","ul","image", "library","table","hr","source","fullscreen"],
onChange : (changed) => { console.log(changed)},
};
function App() {
return (<SubEditorComponent options={options}/>);
}
Visit SubEditor documents for more information on how to use.
MIT