Editrex is a rich text editor component npm package for react.
For installation and usage guide proceed below.
Live demo : Click here
- Rich text editing
- Multiple themes
- Easy Integration
npm install --save editrex react react-dom
or
yarn add editrex react react-dom
Editrex depends on React and React DOM which must also be installed.
import React from "react";
import { Editrex } from "editrex";
export default function App() {
const [editorState, setEditorState] = useState('');
return (
<div>
<Editor
editorState={editorState}
updateEditorState={setEditorState}
theme='default' // explore more themes leafy,snowy,tangy & dark.
/>
</div>
);
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.