From 92a2163a6896a91bd4c54cbc09964355dbb7b926 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jul 2012 06:28:10 -0400 Subject: [PATCH] minor changes --- lib/client/editor.js | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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 &&