mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
bda47450c3
commit
6392d4d978
1 changed files with 6 additions and 5 deletions
|
|
@ -15,7 +15,8 @@ CloudCommander.Editor.CodeMirror = {
|
|||
var lFM = document.getElementById('fm');
|
||||
|
||||
if(lFM){
|
||||
lFM.appendChild(lEditor);
|
||||
lFM.appendChild(lEditor);
|
||||
this.show();
|
||||
}else console.log('Error. Something went wrong FM not found');
|
||||
}
|
||||
};
|
||||
|
|
@ -57,10 +58,10 @@ CloudCommander.Editor.CodeMirror = {
|
|||
CloudCommander.jsload('lib/client/editor/codemirror/pack/codemirror.pack.js', loadAll(this));
|
||||
}),
|
||||
|
||||
show : (function(pParent){ /* function shows CodeMirror editor */
|
||||
show : (function(){ /* function shows CodeMirror editor */
|
||||
/* if CloudEditor is not loaded - loading him */
|
||||
document.getElementById('CloudEditor') ||
|
||||
this.load();
|
||||
if(!document.getElementById('CloudEditor'))
|
||||
return this.load();
|
||||
/* removing keyBinding if set */
|
||||
CloudCommander.keyBinded = false;
|
||||
|
||||
|
|
@ -80,7 +81,7 @@ CloudCommander.Editor.CodeMirror = {
|
|||
lineWrapping: true,
|
||||
extraKeys: {
|
||||
//Сохранение
|
||||
"Esc": pParent.hide(pParent)
|
||||
"Esc": this.hide(this)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue