4.3.2 • Published 2 years ago

@revolunce-draft-js/buttons v4.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@revolunce-draft-js/buttons

Draft.js Buttons

Important: Include after the Editor

For the toolbar to work correctly, you must include the <Toolbar> component after the editor component:

<Editor .../>
<Toolbar />

Using the Subscript and Superscript buttons requires a custom style map:

<Editor
    customStyleMap={{
      SUBSCRIPT: { fontSize: '0.6em', verticalAlign: 'sub' },
      SUPERSCRIPT: { fontSize: '0.6em', verticalAlign: 'super' }
    }}

/>
<Toolbar />