react-ckeditor-wrapper
install
Usage
Add CKEditor to your index.html from the cdn
or if you want a custom version of ckeditor
var CKEditor = ; { superprops; thisstate = content: 'content' } { this } { return <CKEditor value=thisstatecontent onChange=thisupdateContent /> }
With custom config
{ return <CKEditor value=thisstatecontent onChange=thisupdateContent config= readOnly: true /> }
Development
npm install
npm start
API
props
name | type | default | description |
---|---|---|---|
value | string | Specifies the default value | |
onChange | function | ||
config | object | CKEditor config |
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.