1.1.2 • Published 7 years ago
react-ckeditor-wrapper v1.1.2
react-ckeditor-wrapper
install
Usage
Add CKEditor to your index.html from the cdn
<script src="https://cdn.ckeditor.com/4.6.2/standard/ckeditor.js"></script>
or if you want a custom version of ckeditor
<script src="assets/ckeditor/ckeditor.js"></script>
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
render() {
return (<CKEditor
value={this.state.content}
onChange={this.updateContent.bind(this)}
config={{ readOnly: true }}/>)
}
Development
npm install
npm start
API
props
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.
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.22
7 years ago
1.0.21
7 years ago
1.0.20
7 years ago
1.0.19
7 years ago
1.0.18
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago