added local copies of codemirror

This commit is contained in:
coderaiser 2012-07-27 08:15:27 -04:00
parent e4e2f2d29b
commit 578ec66c25
2 changed files with 6 additions and 26 deletions

View file

@ -40,11 +40,11 @@ CloudCommander.Editor.CodeMirror = {
var loadAll = function(pParent) {
return function(){
CloudCommander.cssLoad({
src : 'http://codemirror.net/lib/codemirror.css'
src : 'lib/client/editor/codemirror/pack/codemirror.pack.css'
});
CloudCommander.cssLoad({
src : 'http://codemirror.net/theme/night.css'
src : 'lib/client/editor/codemirror/pack/night.pack.css'
});
CloudCommander.cssSet({id:'editor',
@ -62,13 +62,13 @@ CloudCommander.Editor.CodeMirror = {
'}'
});
CloudCommander.jsload('http://codemirror.net/mode/xml/xml.js',
CloudCommander.jsload('lib/client/editor/codemirror/pack/xml.pack.js',
showEditor(pParent));
};
};
/* load CodeMirror main module */
CloudCommander.jsload('http://codemirror.net/lib/codemirror.js', loadAll(this));
CloudCommander.jsload('lib/client/editor/codemirror/pack/codemirror.pack.js', loadAll(this));
}),
show : (function(){ /* function shows CodeMirror editor */