$ npm install @draft-js-plugins/buttons
For the toolbar to work correctly, you must include the <Toolbar>
component after the editor component:
<Editor .../>
<Toolbar />
<Editor
customStyleMap={{
SUBSCRIPT: { fontSize: '0.6em', verticalAlign: 'sub' },
SUPERSCRIPT: { fontSize: '0.6em', verticalAlign: 'super' }
}}
/>
<Toolbar />
© 2010 - cnpmjs.org x YWFE | Home | YWFE