mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
editor.js now minimizing and loading
This commit is contained in:
parent
7d5eb8ac79
commit
11c9b7b56d
2 changed files with 16 additions and 7 deletions
|
|
@ -356,7 +356,14 @@ CloudClient.init=(function()
|
|||
element:document.head,
|
||||
inner:'#left{width:46%;}' +
|
||||
'.panel{height:' + lHeight +'px'
|
||||
});
|
||||
});
|
||||
|
||||
/* loading CloudMirror plagin */
|
||||
CloudClient.jsload(CloudClient.LIBDIR+'editor.js',{
|
||||
onload:(function(){
|
||||
CloudCommander.Editor.CloudMirror.load();
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
/* функция меняет ссыки на ajax-овые */
|
||||
|
|
|
|||
|
|
@ -137,11 +137,12 @@ exports.Minify={
|
|||
'client.js' +
|
||||
' changed. size:',
|
||||
(pFinalCode = pFinalCode
|
||||
.replace('cloudfunc.js','cloudfunc.min.js')
|
||||
.replace('keyBinding.js','keyBinding.min.js')
|
||||
.replace('/lib/', lMinFolder)
|
||||
.replace('/lib/client/',
|
||||
lMinFolder)).length);
|
||||
.replace('editor.js','editor.min.js')
|
||||
.replace('cloudfunc.js','cloudfunc.min.js')
|
||||
.replace('keyBinding.js','keyBinding.min.js')
|
||||
.replace('/lib/', lMinFolder)
|
||||
.replace('/lib/client/',
|
||||
lMinFolder)).length);
|
||||
return pFinalCode;
|
||||
};
|
||||
|
||||
|
|
@ -151,7 +152,8 @@ exports.Minify={
|
|||
lOptimizeParams=[{
|
||||
'client.js': lPostProcessing_f},
|
||||
'lib/cloudfunc.js',
|
||||
'lib/client/keyBinding.js'];
|
||||
'lib/client/keyBinding.js',
|
||||
'lib/client/editor.js'];
|
||||
}
|
||||
|
||||
if (this._allowed.html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue