react-ckeditor-import

1.0.4 • Public • Published

react-ckeditor-import

Component that integrates CKEditor with React js

Installation

npm install react-chkeditor-import

Example

class Example extends Component {
    constructor(props) {
        super(props);

        this.state = {
            content: null,
        }
    }

  
    onChange(event){
      this.setState({
        content: event.editor.getData()
      })
    }
    
    render() {
        return (
            <CKEditor 
              content={this.state.content} 
              events={{
                "change": this.onChange
              }}
             className="my-editor"   
             />
        )
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-ckeditor-import

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

137 kB

Total Files

4

Last publish

Collaborators

  • senright