diff --git a/lib/client/editor.js b/lib/client/editor.js index 5b84651b..fbacb6b5 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -102,7 +102,7 @@ CloudCommander.Editor.CodeMirror = { var lCodeMirror = pParent.getByClass('CodeMirror'); if(lCodeMirror.length) - document.body.removeChild([0]); + document.body.removeChild(lCodeMirror[0]); }; }), getById : function(pId){return document.getElementById(pId);},