# react-ckeditor-wrapper

> CKEditor wrapper for react

Latest version **1.1.2** (published 2017-10-12) · 0 weekly downloads

## Install

```sh
npm install react-ckeditor-wrapper
pnpm add react-ckeditor-wrapper
yarn add react-ckeditor-wrapper
bun add react-ckeditor-wrapper
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-10-12 |
| First published | 2017-03-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Maintainers | luigiinred |
| Keywords | react, react-component, ckeditor, wysiwug |

## Links

- npm: https://www.npmjs.com/package/react-ckeditor-wrapper
- Repository: https://github.com/luigiinred/react-ckeditor-wrapper
- Issues: https://github.com/luigiinred/react-ckeditor-wrapper/issues
- npm.io page: https://npm.io/package/react-ckeditor-wrapper

## Dependencies (6)

- [rc-util](https://npm.io/package/rc-util.md) 3.x
- [happypack](https://npm.io/package/happypack.md) 3.1.0
- [classnames](https://npm.io/package/classnames.md) 2.x
- [rc-animate](https://npm.io/package/rc-animate.md) 2.x
- [babel-runtime](https://npm.io/package/babel-runtime.md) 6.x
- [dom-scroll-into-view](https://npm.io/package/dom-scroll-into-view.md) 1.x

## 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

- 1.1.2 (latest) — 2017-10-12
- 1.1.1 — 2017-10-09
- 1.1.0 — 2017-10-09
- 1.0.22 — 2017-05-11
- 1.0.21 — 2017-05-03
- 1.0.20 — 2017-05-03
- 1.0.19 — 2017-05-03
- 1.0.18 — 2017-03-30
- 1.0.17 — 2017-03-30
- 1.0.16 — 2017-03-30
- 1.0.15 — 2017-03-30
- 1.0.14 — 2017-03-30
- 1.0.13 — 2017-03-30
- 1.0.12 — 2017-03-30
- 1.0.11 — 2017-03-30
- … 9 more at https://npm.io/package/react-ckeditor-wrapper/versions

## README

# react-ckeditor-wrapper
---

## install

[![react-ckeditor-wrapper](https://nodei.co/npm/react-ckeditor-wrapper.png)](https://npmjs.org/package/react-ckeditor-wrapper)

## Usage

Add CKEditor to your index.html from the cdn
```html
    <script src="https://cdn.ckeditor.com/4.6.2/standard/ckeditor.js"></script>
```
or if you want a custom version of ckeditor
```html
     <script src="assets/ckeditor/ckeditor.js"></script>
```



```js
var CKEditor = require('react-ckeditor-wrapper');
 
class Example  extends Component {
    constructor(props) {
        super(props);
        this.state = {
        content: 'content',
        }
    }

    updateContent(value) {
        this.setState({content:value})
    }

    render() {
        return (<CKEditor 
        value={this.state.content} 
        onChange={this.updateContent.bind(this)} />)
    }
}
```

With custom config
```js
    render() {
        return (<CKEditor 
        value={this.state.content} 
        onChange={this.updateContent.bind(this)} 
        config={{ readOnly: true }}/>)
    }

```

## Development

```
npm install
npm start
```


## 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>value</td>
          <td>string</td>
          <td></td>
          <td>Specifies the default value</td>
        </tr>
        <tr>
          <td>onChange</td>
          <td>function</td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td>config</td>
          <td>object</td>
          <td></td>
          <td>CKEditor config</td>
        </tr>
    </tbody>
</table>



## Test Case

```
npm test
npm run chrome-test
```

## Coverage

```
npm run coverage
```

open coverage/ dir


## Deploy to npm

Because I am sure I will forget
```
npm run pub
```


## License

react-ckeditor-wrapper is released under the MIT license.

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