custom-app
Version:
ITIMS��Ʒ�鿪��ר��React���,�Dz��ý��ּ�dhcc-app���������
124 lines (82 loc) • 4.18 kB
Markdown
# rc-editor-core
---
React EditorCore Component
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
[](https://saucelabs.com/u/rc-editor-core)
[](https://saucelabs.com/u/rc-editor-core)
[npm-image]: http://img.shields.io/npm/v/rc-editor-core.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-editor-core
[travis-image]: https://img.shields.io/travis/react-component/editor-core.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/editor-core
[coveralls-image]: https://img.shields.io/coveralls/react-component/editor-core.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/editor-core?branch=master
[gemnasium-image]: http://img.shields.io/gemnasium/react-component/editor-core.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/react-component/editor-core
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/rc-editor-core.svg?style=flat-square
[download-url]: https://npmjs.org/package/rc-editor-core
## Browser Support
|  <br /> IE / Edge |  <br /> Firefox |  <br /> Chrome |  <br /> Safari |  <br />iOS Safari |  <br/> Chrome for Android |
| --------- | --------- | --------- | --------- | --------- | --------- |
| IE11, Edge [1, 2]| last 2 versions| last 2 versions| last 2 versions| not fully supported [3] | not fully supported [3]
[1] May need a shim or a polyfill for some syntax used in Draft.js ([docs](https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#polyfills)).
[2] IME inputs have known issues in these browsers, especially Korean ([docs](https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#ime-and-internet-explorer)).
[3] There are known issues with mobile browsers, especially on Android ([docs](https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#mobile-not-yet-supported)).
## Screenshots
<img src="https://zos.alipayobjects.com/rmsportal/iNbBdYhHdLxfnCT.png" width="288"/>
## Development
```
npm install
npm start
```
## Example
http://localhost:8003/examples/
online example: http://react-component.github.io/editor-core/
## Feature
* support ie8,ie8+,chrome,firefox,safari
## install
[](https://npmjs.org/package/rc-editor-core)
## Usage
```js
var EditorCore = require('rc-editor-core');
var React = require('react');
React.render(<EditorCore />, container);
```
## API
### props
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">name</th>
<th style="width: 50px;">type</th>
<th style="width: 50px;">default</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>className</td>
<td>String</td>
<td></td>
<td>additional css class of root dom node</td>
</tr>
</tbody>
</table>
## Test Case
```
npm test
npm run chrome-test
```
## Coverage
```
npm run coverage
```
open coverage/ dir
## License
rc-editor-core is released under the MIT license.