This package has been deprecated

Author message:

use @draft-js-plugins/buttons >=v4 instead

draft-js-buttons
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

DraftJS 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 />

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i draft-js-buttons

    Weekly Downloads

    50,733

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    34.3 kB

    Total Files

    26

    Last publish

    Collaborators

    • juliankrispel
    • nikgraf
    • sibelius