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

react-ckeditor-component

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ckeditor-component - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

19

lib/ckeditor.js

@@ -81,3 +81,5 @@ "use strict";

this.editorInstance.on("change", function () {
_this2.state.content = _this2.editorInstance.getData();
_this2.setState({
content: _this2.editorInstance.getData()
});

@@ -91,17 +93,2 @@ //call callback if present

}, {
key: "componentWillReceiveProps",
value: function componentWillReceiveProps(nextProps) {
if (!this.editorInstance) {
return;
}
if (this.state.content !== nextProps.content) {
this.editorInstance.setData(nextProps.content);
}
this.setState({
content: nextProps.content
});
}
}, {
key: "render",

@@ -108,0 +95,0 @@ value: function render() {

2

package.json
{
"name": "react-ckeditor-component",
"version": "1.0.2",
"version": "1.0.3",
"description": "CKEditor component for React",

@@ -5,0 +5,0 @@ "keywords": [

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