mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fixed tinymce cleanup
This commit is contained in:
parent
2e71dea3b6
commit
83f6c82639
@ -261,12 +261,12 @@
|
||||
* Note: Everything that calls this externally has an inappropriate coupling to TinyMCE.
|
||||
*/
|
||||
cleanup: function() {
|
||||
if((typeof tinymce != 'undefined') && tinymce.EditorManager) {
|
||||
var id;
|
||||
for(id in tinymce.EditorManager.editors) {
|
||||
tinymce.EditorManager.editors[id].remove();
|
||||
if((typeof tinymce != 'undefined') && tinymce.editors) {
|
||||
$(tinymce.editors).each(function() {
|
||||
if(typeof(this.remove) == 'function') {
|
||||
this.remove();
|
||||
}
|
||||
tinymce.EditorManager.editors = {};
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user