1.1.0 • Published 10 years ago

unordered-draft-editor v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago