Do You Even Draft? - Pumping Up Font Sizes in Draft.js

added by JavaScript Kicks
8/7/2019 7:16:43 AM


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.