641 Views
To begin, we'll create a TextEditor component which will render the Draft.js Editor component in the way that is outlined by the Draft.js documentation. We'll also render a custom EditorToolbar component within the TextEditor component and pass it editorState and setEditorState as props: Now we'll add a dropdown menu to the EditorToolbar, which will display options to select different font sizes.
0 comments