Last updated 5 years ago
Was this helpful?
Make sure to apply decorators before the content
const [editorState, setEditorState] = useState(() => EditorState.createWithContent( props.defaultContent, decorators ) ); return ( <Editor editorState={editorState} /> );
Cons:
You can't optionally change one of style of theme.
You have to change them all.
You can reuse the css if you go into the package and find the class names.
Main Site