Skip to content

Commit

Permalink
Merge pull request instructure-react#8 from designfrontier/bug/flash-…
Browse files Browse the repository at this point in the history
…of-textarea

Hide the textarea before initialization
  • Loading branch information
mzabriskie committed Jul 23, 2015
2 parents 0c70732 + 27e0d1d commit d0a1f63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/components/TinyMCE.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ var TinyMCE = React.createClass({
}

var self = this;

//hide the textarea that is me so that no one sees it
self.getDOMNode().style.hidden = "hidden";

config.selector = '#' + this.id;
config.setup = function (editor) {
EVENTS.forEach(function (event, index) {
Expand All @@ -94,6 +98,9 @@ var TinyMCE = React.createClass({
};

tinymce.init(config);

self.getDOMNode().style.hidden = "";

this._isInit = true;
},

Expand Down

0 comments on commit d0a1f63

Please sign in to comment.