React Editor Component,based on draft-js
IE 10+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
npm install
npm start
online example: http://lin-xiaoji.github.io/rc-editor/
npm install rc-editor
import React from 'react'
import { render } from 'react-dom'
import RcEditor from 'rc-editor'
render(<RcEditor />
,container);
name | type | default | description |
---|---|---|---|
prefixCls | String | rc-editor | css class prefix |
lang | String | zh-CN | language,en zh-CN |
lang | String | zh-CN | language,en zh-CN |
width | String | 100% | editor width |
height | String | 280px | editor height |
defaultValue | String | defaultValue,support HTML | |
plugins | Array | [] | customize plugin |
toolbars | Array | [] | shwo toolbar items |
npm test
rc-editor-core is released under the MIT license.