spectrum-draft-js-inline-toolbar

0.2.2 • Public • Published

spectrum-draft-js-inline-toolbar

Spectrums inline toolbar for rich text editors based on draft js

NPM JavaScript Style Guide

Install

npm install --save spectrum-draft-js-inline-toolbar

Usage

import React, { Component } from 'react'
 
import InlineToolbar from 'spectrum-draft-js-inline-toolbar'
 
class Example extends Component {
  render () {
    return (
      <InlineToolbar
        onChange={(editorState) => this.setState({ editorState })}
        editorState={this.state.editorState}
        selectionRef={{ current: this.editorRef }}
      />
    )
  }
}

License

MIT © juliankrispel

/spectrum-draft-js-inline-toolbar/

    Package Sidebar

    Install

    npm i spectrum-draft-js-inline-toolbar

    Weekly Downloads

    1

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    90 kB

    Total Files

    4

    Last publish

    Collaborators

    • juliankrispel