Skip to content

Commit

Permalink
More init checks in HtmlEditorField.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jul 16, 2012
1 parent d4b8db2 commit a033ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/HtmlEditorField.js
Expand Up @@ -283,7 +283,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
onbeforestatechange: function(){
this.css('visibility', 'hidden');

var ed = this.getEditor(), container = ed.getInstance() ? ed.getContainer() : null;
var ed = this.getEditor(), container = (ed && ed.getInstance()) ? ed.getContainer() : null;
if(container && container.length) container.remove();
}
},
Expand Down

0 comments on commit a033ddf

Please sign in to comment.