From a033ddf7735a61e77b1b6abe627c47d6197050ba Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 16 Jul 2012 23:33:22 +0200 Subject: [PATCH] More init checks in HtmlEditorField.js --- javascript/HtmlEditorField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index 7f21670d6..5c19463fd 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -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(); } },