From 11c9b7b56d31e049269f0a7fabb6acc020796799 Mon Sep 17 00:00:00 2001 From: coderaiaser Date: Tue, 17 Jul 2012 07:23:28 -0700 Subject: [PATCH] editor.js now minimizing and loading --- client.js | 9 ++++++++- lib/server/object.js | 14 ++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/client.js b/client.js index 21535a0a..701b8f1f 100644 --- a/client.js +++ b/client.js @@ -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-овые */ diff --git a/lib/server/object.js b/lib/server/object.js index d268280b..29355925 100644 --- a/lib/server/object.js +++ b/lib/server/object.js @@ -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)