mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
Update lib/client/editor.js
This commit is contained in:
parent
ce834b8470
commit
d60ce0f123
1 changed files with 5 additions and 2 deletions
|
|
@ -2,7 +2,11 @@ var CloudCommander, CloudFunc, CodeMirror;
|
|||
/* object contains editors CodeMirror
|
||||
* and later will be Ace
|
||||
*/
|
||||
CloudCommander.Editor = new CloudCommander.Util();
|
||||
CloudCommander.Editor = {
|
||||
get : (function(){
|
||||
return this.Codemirror
|
||||
})
|
||||
};
|
||||
CloudCommander.Editor.CodeMirror = new CloudCommander.Util();
|
||||
|
||||
/* indicator says CodeMirror still loads */
|
||||
|
|
@ -61,7 +65,6 @@ CloudCommander.Editor.CodeMirror.load = (function(pParent){
|
|||
});
|
||||
|
||||
/* function shows CodeMirror editor */
|
||||
CloudCommander.Editor.show =
|
||||
CloudCommander.Editor.CodeMirror.show = (function(){
|
||||
/* if CloudEditor is not loaded - loading him */
|
||||
if(!this.getById('CloudEditor'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue