1.0.4 • Published 4 years ago
react-ckeditor-import v1.0.4
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"
/>
)
}
}