rc-editor

1.5.3 • Public • Published

rc-editor


React Editor Component,based on draft-js

Browser Support

IE Chrome Firefox Opera Safari
IE 10+ ✔ Chrome 31.0+ ✔ Firefox 31.0+ ✔ Opera 30.0+ ✔ Safari 7.0+ ✔

Screenshots

Development

npm install
npm start

Example

online example: http://lin-xiaoji.github.io/rc-editor/

install

npm install rc-editor

Usage

import React from 'react'
import { render } from 'react-dom'
import RcEditor from 'rc-editor'
render(<RcEditor />
    ,container);
 
 

API

props

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

Test Case

npm test

License

rc-editor-core is released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i rc-editor

Weekly Downloads

2

Version

1.5.3

License

ISC

Last publish

Collaborators

  • lin-xiaoji