1.1.0 • Published 8 years ago

unordered-draft-editor v1.1.0

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

unordered-draft-editor

a rich text editor based on draft-js

DEMO

INSTALL

npm i -S unordered-draft-editor

USAGE

import Editor from 'unordered-draft-editor'


render() {
  return (
    ...
      <Editor />
    ...
  )
}

API

props

value: PropTypes.string
imageWidth: PropTypes.number.isRequired default 600

interface

getHtml() // return content html that convert from content state

getRawContent() // return raw content state
1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago