react-ckeditor-component
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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() { |
{ | ||
"name": "react-ckeditor-component", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "CKEditor component for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9386
90