@tinymce/tinymce-react
Advanced tools
Comparing version 2.6.1 to 3.0.0
@@ -0,1 +1,4 @@ | ||
## 3.0.0 (2019-02-11) | ||
* Changed default cloudChannel to `'5'`. | ||
## 2.6.1 (2019-02-07) | ||
@@ -2,0 +5,0 @@ * Changed `react` and `react-dom` to be peerDependencies and devDependencies. |
@@ -30,2 +30,3 @@ /** | ||
static propTypes: IEditorPropTypes; | ||
static defaultProps: Partial<IAllProps>; | ||
private element; | ||
@@ -32,0 +33,0 @@ private id?; |
@@ -72,3 +72,3 @@ "use strict"; | ||
var doc = this.element.ownerDocument; | ||
var channel = this.props.cloudChannel ? this.props.cloudChannel : 'stable'; | ||
var channel = this.props.cloudChannel; | ||
var apiKey = this.props.apiKey ? this.props.apiKey : ''; | ||
@@ -124,4 +124,7 @@ ScriptLoader.load(scriptState, doc, "https://cloud.tinymce.com/" + channel + "/tinymce.min.js?apiKey=" + apiKey, this.initialise); | ||
Editor.propTypes = EditorPropTypes_1.EditorPropTypes; | ||
Editor.defaultProps = { | ||
cloudChannel: '5' | ||
}; | ||
return Editor; | ||
}(React.Component)); | ||
exports.Editor = Editor; |
@@ -30,2 +30,3 @@ /** | ||
static propTypes: IEditorPropTypes; | ||
static defaultProps: Partial<IAllProps>; | ||
private element; | ||
@@ -32,0 +33,0 @@ private id?; |
@@ -70,3 +70,3 @@ /** | ||
var doc = this.element.ownerDocument; | ||
var channel = this.props.cloudChannel ? this.props.cloudChannel : 'stable'; | ||
var channel = this.props.cloudChannel; | ||
var apiKey = this.props.apiKey ? this.props.apiKey : ''; | ||
@@ -122,4 +122,7 @@ ScriptLoader.load(scriptState, doc, "https://cloud.tinymce.com/" + channel + "/tinymce.min.js?apiKey=" + apiKey, this.initialise); | ||
Editor.propTypes = EditorPropTypes; | ||
Editor.defaultProps = { | ||
cloudChannel: '5' | ||
}; | ||
return Editor; | ||
}(React.Component)); | ||
export { Editor }; |
{ | ||
"name": "@tinymce/tinymce-react", | ||
"version": "2.6.1", | ||
"version": "3.0.0", | ||
"description": "Official TinyMCE React Component", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
57564
1158