Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
react-ckeditor-wrapper
Advanced tools
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 }}/>)
}
npm install
npm start
name | type | default | description |
---|---|---|---|
value | string | Specifies the default value | |
onChange | function | ||
config | object | CKEditor config |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
Because I am sure I will forget
npm run pub
react-ckeditor-wrapper is released under the MIT license.
FAQs
CKEditor wrapper for react
The npm package react-ckeditor-wrapper receives a total of 120 weekly downloads. As such, react-ckeditor-wrapper popularity was classified as not popular.
We found that react-ckeditor-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.