mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
More init checks in HtmlEditorField.js
This commit is contained in:
parent
d4b8db27af
commit
a033ddf773
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user