mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Don't try to remove editor containers before they exist
This commit is contained in:
parent
7f62ad0f3e
commit
f26951c63d
@ -245,8 +245,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
// TODO Move to onunmatch for less coupling (once we figure out how to work with detached DOM nodes in TinyMCE)
|
// TODO Move to onunmatch for less coupling (once we figure out how to work with detached DOM nodes in TinyMCE)
|
||||||
$('.cms-container').bind('beforestatechange', function() {
|
$('.cms-container').bind('beforestatechange', function() {
|
||||||
self.css('visibility', 'hidden');
|
self.css('visibility', 'hidden');
|
||||||
ed.getContainer();
|
var container = ed.getInstance() ? ed.getContainer() : null;
|
||||||
if(ed) $(ed).remove();
|
if(container && container.length) container.remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._super();
|
this._super();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user