diff --git a/lib/client/editor.js b/lib/client/editor.js index c2c29882..ae14b678 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -65,6 +65,7 @@ CloudCommander.Editor.CodeMirror = { /* removing keyBinding if set */ CloudCommander.keyBinded = false; + var lParent = this; var initCodeMirror_f = function(pValue){ CodeMirror(lCloudEditor,{ mode : 'xml', @@ -76,7 +77,7 @@ CloudCommander.Editor.CodeMirror = { autofocus : true, extraKeys: { //Сохранение - "Esc": this.hide(this) + "Esc": lParent.hide(this) } }); };