diff --git a/lib/client/editor.js b/lib/client/editor.js index 82c704b9..908491c8 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -69,8 +69,7 @@ CloudCommander.Editor.CodeMirror = { lLeft && (lLeft.className = 'panel hidden'); - - + CodeMirror(lCloudEditor,{ mode : "xml", htmlMode : true, @@ -100,6 +99,10 @@ CloudCommander.Editor.CodeMirror = { lLeft && (lLeft.className = 'panel'); + + var lCodeMirror = pParent.getByClassName('CodeMirror'); + if(lCodeMirror.length) + document.body.removeChild([0]); }; }), getById: function(pId){return document.getElementById(pId);},