Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More init checks in HtmlEditorField.js

  • Loading branch information...
commit a033ddf7735a61e77b1b6abe627c47d6197050ba 1 parent d4b8db2
Ingo Schommer chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  javascript/HtmlEditorField.js
2  javascript/HtmlEditorField.js
View
@@ -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();
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.