diff --git a/lib/client/editor.js b/lib/client/editor.js index 12fdd880..cf0237a6 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -70,18 +70,20 @@ CloudCommander.Editor.CodeMirror = { lLeft && (lLeft.className = 'panel hidden'); - CodeMirror(lCloudEditor,{ - mode : "xml", - htmlMode : true, - theme : 'night', - lineNumbers : true, - //переносим длинные строки - lineWrapping: true, - extraKeys: { - //Сохранение - "Esc": this.hide(this) - } - }); + var lCodeMirror = CodeMirror(lCloudEditor,{ + mode : "xml", + htmlMode : true, + theme : 'night', + lineNumbers : true, + //переносим длинные строки + lineWrapping: true, + extraKeys: { + //Сохранение + "Esc": this.hide(this) + } + }); + + lCodeMirror.setCursor({line:1,ch:1}); lCloudEditor &&