ckeditor-wrapper
v0.0.1
Published
ckeditor wrapper for React
Downloads
25
Readme
ckeditor wrapper
ckeditor wrapper for React
Use
Install
npm i ckeditor-wrapper
Usage
import React, { Component } from 'react'
import CKEditor from 'ckeditor-wrapper'
class App extends Component {
constructor(props) {
super(props)
this.state = { content: '' }
}
change = value => {
console.log(value)
this.setState({
content: value
})
}
render() {
return <CKEditor value={this.state.content} onChange={this.change} />
}
}
export default App
Dev
git clone https://github.com/ThaddeusJiang/ckeditor-wrapper.git && cd $_
yarn
npm run build
npm link
cd example
npm link ckeditor-wrapper
yarn
yarn start
Deploy
npm run publish