Skip to content
This repository
Browse code

More init checks in HtmlEditorField.js

  • Loading branch information...
commit a033ddf7735a61e77b1b6abe627c47d6197050ba 1 parent d4b8db2
Ingo Schommer authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  javascript/HtmlEditorField.js
2  javascript/HtmlEditorField.js
@@ -283,7 +283,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
283 283
 				onbeforestatechange: function(){
284 284
 					this.css('visibility', 'hidden');
285 285
 
286  
-					var ed = this.getEditor(), container = ed.getInstance() ? ed.getContainer() : null;
  286
+					var ed = this.getEditor(), container = (ed && ed.getInstance()) ? ed.getContainer() : null;
287 287
 					if(container && container.length) container.remove();
288 288
 				}
289 289
 			},

0 notes on commit a033ddf

Please sign in to comment.
Something went wrong with that request. Please try again.