@contentkit/buttons

0.0.36 • 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 (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @contentkit/buttons

    Weekly Downloads

    3

    Version

    0.0.36

    License

    MIT

    Unpacked Size

    47.3 kB

    Total Files

    22

    Last publish

    Collaborators

    • contentkit