@tinymce/tinymce-react
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,10 @@ | ||
## 2.0.3 (2017-11-22) | ||
* Added check for `initialValue` prop to prevent javascript error that was shown when `tinymce.setContent` was called with undefined. | ||
## 2.0.2 (2017-11-22) | ||
* Accidentally published 2.0.1 without building first, published this version to fix that and added prepare hook to prevent the same thing from happening again. | ||
## 2.0.1 (2017-11-21) | ||
* Added description to package.json and improved readme wording. | ||
## 2.0.0 (2017-11-08) | ||
@@ -2,0 +11,0 @@ * *BREAKING!* Switched `value` prop to `initialValue` to make it clearer what it actually does. |
@@ -44,10 +44,7 @@ "use strict"; | ||
var _this = this; | ||
var setupCallback = this.props.init; | ||
var initialValue = typeof this.props.initialValue === 'string' ? this.props.initialValue : ''; | ||
var finalInit = __assign({}, this.props.init, { selector: "#" + this.id, inline: this.props.inline, setup: function (editor) { | ||
_this.editor = editor; | ||
editor.on('init', function () { return editor.setContent(_this.props.initialValue); }); | ||
editor.on('init', function () { return editor.setContent(initialValue); }); | ||
Utils_1.bindHandlers(_this.props, editor); | ||
if (typeof setupCallback === 'function') { | ||
setupCallback(editor); | ||
} | ||
} }); | ||
@@ -54,0 +51,0 @@ if (Utils_1.isTextarea(this.element)) { |
@@ -42,10 +42,7 @@ /** | ||
var _this = this; | ||
var setupCallback = this.props.init; | ||
var initialValue = typeof this.props.initialValue === 'string' ? this.props.initialValue : ''; | ||
var finalInit = __assign({}, this.props.init, { selector: "#" + this.id, inline: this.props.inline, setup: function (editor) { | ||
_this.editor = editor; | ||
editor.on('init', function () { return editor.setContent(_this.props.initialValue); }); | ||
editor.on('init', function () { return editor.setContent(initialValue); }); | ||
bindHandlers(_this.props, editor); | ||
if (typeof setupCallback === 'function') { | ||
setupCallback(editor); | ||
} | ||
} }); | ||
@@ -52,0 +49,0 @@ if (isTextarea(this.element)) { |
{ | ||
"name": "@tinymce/tinymce-react", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Official TinyMCE React Component", | ||
@@ -20,4 +20,5 @@ "repository": { | ||
"test": "jest", | ||
"build": "npm run clean && tsc -p ./tsconfig.es2015.json && tsc -p ./tsconfig.cjs.json", | ||
"watch": "tsc -w -p ./tsconfig.es2015.json" | ||
"build": "npm run test && npm run clean && tsc -p ./tsconfig.es2015.json && tsc -p ./tsconfig.cjs.json", | ||
"watch": "tsc -w -p ./tsconfig.es2015.json", | ||
"prepare": "npm run build" | ||
}, | ||
@@ -24,0 +25,0 @@ "jest": { |
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
28210
0
712