react-ckeditor5-classic

1.1.3 • Public • Published

react-ckeditor5-classic

npm version

NPM

How to install?

npm i react-ckeditor5-classic

How to use?

import React, { Component } from 'react';
import ReactCKEditor from 'react-ckeditor5-classic';
 
class App extends Component {
  onChange(content){
    console.log("Content: " + content);
  }
  render() {
      return (
          <div className="App">
              <h2>Using CKEditor 5 build in React</h2>
              <ReactCKEditor
                  name='example'
                  content={this.state.content}
                  onChange={this.onChange}
              />
          </div>
      );
  }
}
 
export default App;

API

props

name type default description
name string editor Object to init
onChange function
config object height: '300px' width: 'auto' CKEditor config

License

react-ckeditor5-classic is released under the MIT license.

Package Sidebar

Install

npm i react-ckeditor5-classic

Weekly Downloads

3

Version

1.1.3

License

MIT

Unpacked Size

9.6 kB

Total Files

5

Last publish

Collaborators

  • vdhson