Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-ckeditor-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ckeditor-wrapper

CKEditor wrapper for react

  • 1.0.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130
increased by9.24%
Maintainers
1
Weekly downloads
 
Created
Source

react-ckeditor-wrapper


install

react-ckeditor-wrapper

Usage

Add CKEditor to your index.html

    <script src="https://cdn.ckeditor.com/4.6.2/standard/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

nametypedefaultdescription
valuestringSpecifies the default value
onChangefunction
configobjectCKEditor 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.

Keywords

FAQs

Package last updated on 03 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc