Skip to content

Commit

Permalink
release v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirathore2006 committed Aug 22, 2016
1 parent d815fe3 commit cf76fae
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.6.3 - Mon, 22 Aug 2016 11:58:57 GMT
--------------------------------------

-


v0.5.1 - Thu, 21 Apr 2016 00:17:15 GMT
--------------------------------------

Expand Down
10 changes: 7 additions & 3 deletions dist/react-tinymce-editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/react-tinymce-editor.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-tinymce-editor.min.js.map

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions lib/components/TinyMCE.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ const TinyMCE = React.createClass({
},

componentDidMount() {
const config = clone(this.props.config);
const content = clone(this.props.content||"")
this._init(config,content);
const config = clone(this.props.config);
const content = clone( this.props.content || '' );
this._init(config, content);
},

componentWillReceiveProps(nextProps) {
Expand Down Expand Up @@ -98,8 +98,9 @@ const TinyMCE = React.createClass({
}

// hide the textarea that is me so that no one sees it
if(this.isMounted())
findDOMNode(this).style.hidden = 'hidden';
if (this.isMounted()) {
findDOMNode(this).style.hidden = 'hidden';
}

const setupCallback = config.setup;
const hasSetupCallback = (typeof setupCallback === 'function');
Expand Down Expand Up @@ -128,8 +129,9 @@ const TinyMCE = React.createClass({

tinymce.init(config);

if(this.isMounted())
findDOMNode(this).style.hidden = '';
if (this.isMounted()) {
findDOMNode(this).style.hidden = '';
}

this._isInit = true;
},
Expand Down
2 changes: 1 addition & 1 deletion lib/components/__tests__/TinyMCE-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { equal } from 'assert';

/* eslint func-names:0 */
describe('react-tinymce', function() {
describe('react-tinymce-editor', function() {
it('should render', function() {
equal(true, true);
});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "react-tinymce-editor",
"version": "0.6.1",
"version": "0.6.3",
"description": "React TinyMCE Editor component",
"main": "lib/main.js",
"scripts": {
"test": "node_modules/.bin/rackt test --single-run --browsers Firefox",
"start": "node_modules/.bin/rackt server",
"build": "node_modules/.bin/rackt build",
"pages": "node_modules/.bin/rackt pages",
"release" : "node_modules/.bin/rackt release"
"release": "node_modules/.bin/rackt release"
},
"repository": {
"type": "git",
Expand All @@ -35,4 +35,4 @@
"dependencies": {
"lodash": "^3.9.3"
}
}
}

0 comments on commit cf76fae

Please sign in to comment.