mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
c7085650f3
commit
d1dc5a8388
1 changed files with 11 additions and 4 deletions
|
|
@ -1,11 +1,18 @@
|
|||
var CloudCommander, CodeMirror;
|
||||
/* object contains editors CodeMirror
|
||||
* and later will be Ace
|
||||
*/
|
||||
CloudCommander.Editor = {};
|
||||
CloudCommander.Editor.CodeMirror = {
|
||||
load: (function(){
|
||||
CloudCommander.Editor.CodeMirror = {
|
||||
load: (function(){ /* function loads CodeMirror js and css files */
|
||||
|
||||
/* load CodeMirror main module */
|
||||
CloudCommander.jsload('http://codemirror.net/lib/codemirror.js', load_all(this));
|
||||
|
||||
function load_all(pParent) {
|
||||
/* function loads css files
|
||||
* of CodeMirror
|
||||
*/
|
||||
var load_all = function(pParent) {
|
||||
return function(){
|
||||
CloudCommander.cssLoad({
|
||||
src : 'http://codemirror.net/lib/codemirror.css',
|
||||
|
|
@ -61,7 +68,7 @@ CloudCommander.Editor.CodeMirror = {
|
|||
};
|
||||
}
|
||||
}),
|
||||
show : (function(){
|
||||
show : (function(){ /* function shows CodeMirror editor */
|
||||
/* if CloudEditor is not loaded - loading him */
|
||||
document.getElementById('CloudEditor') ||
|
||||
this.load();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue