# rc-editor-core

> editor-core ui component for react

Latest version **0.8.10** (published 2019-06-03) · 0 weekly downloads

## Install

```sh
npm install rc-editor-core
pnpm add rc-editor-core
yarn add rc-editor-core
bun add rc-editor-core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.10 |
| Published | 2019-06-03 |
| First published | 2016-05-27 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 113 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 57 |
| Author | surgesoft@gmail.com |
| Maintainers | afc163, raohai, yesmeck |
| Keywords | react, react-component, react-editor-core, editor-core |

## Links

- npm: https://www.npmjs.com/package/rc-editor-core
- Repository: https://github.com/react-component/editor-core
- Issues: https://github.com/react-component/editor-core/issues
- npm.io page: https://npm.io/package/rc-editor-core

## Dependencies (7)

- [lodash](https://npm.io/package/lodash.md) ^4.16.5
- [draft-js](https://npm.io/package/draft-js.md) ^0.10.0
- [immutable](https://npm.io/package/immutable.md) ^3.7.4
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [setimmediate](https://npm.io/package/setimmediate.md) ^1.0.5
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.26.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.8.10 (latest) — 2019-06-03
- 0.8.5-beta1 (beta) — 2018-02-24
- 0.8.9 — 2019-02-26
- 0.8.8 — 2018-10-27
- 0.8.7 — 2018-09-03
- 0.8.6 — 2018-03-06
- 0.8.5 — 2018-02-24
- 0.8.5-beta — 2018-02-24
- 0.8.4-beta — 2018-02-08
- 0.7.9 — 2017-12-04
- 0.8.3 — 2017-12-04
- 0.8.3-beta1 — 2017-11-28
- 0.8.2 — 2017-11-28
- 0.8.1 — 2017-11-27
- 0.8.0 — 2017-11-09
- … 145 more at https://npm.io/package/rc-editor-core/versions

## README

# 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]
[![Sauce Test Status](https://saucelabs.com/buildstatus/rc-editor-core)](https://saucelabs.com/u/rc-editor-core)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/rc-editor-core.svg)](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

| ![IE / Edge](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/edge.png) <br /> IE / Edge | ![Firefox](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/firefox.png) <br /> Firefox | ![Chrome](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/chrome.png) <br /> Chrome | ![Safari](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/safari.png ) <br /> Safari | ![iOS Safari](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/safari-ios.png) <br />iOS Safari | ![Chrome for Anroid](https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/chrome-android.png) <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


[![rc-editor-core](https://nodei.co/npm/rc-editor-core.png)](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.

---
_Source: https://npm.io/package/rc-editor-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
