editor.js now minimizing and loading

This commit is contained in:
coderaiaser 2012-07-17 07:23:28 -07:00
parent 7d5eb8ac79
commit 11c9b7b56d
2 changed files with 16 additions and 7 deletions

View file

@ -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-овые */

View file

@ -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)