diff --git a/lib/client/editor.js b/lib/client/editor.js index fbacb6b5..4031a68a 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(lCodeMirror[0]); + lLeft.removeChild(lCodeMirror[0]); }; }), getById : function(pId){return document.getElementById(pId);},