mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
added local copies of codemirror
This commit is contained in:
parent
e4e2f2d29b
commit
578ec66c25
2 changed files with 6 additions and 26 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue