在部署到Web服務器上時,下列文件夾和文件都可以刪除:
/_samples :示例文件夾;
/_source :未壓縮源程序;
/lang文件夾下除 zh-cn.js、en.js 以外的文件(也可以根據需要保留其他語言文件);
根目錄下的 changes.html(更新列表),install.html(安裝指向),license.html(使用許可);
/skins 目錄下不需要的皮膚,一般用V2(簡單,樸素) ,如果只保留V2則必須在config.js中指定皮膚。
這些東西是免費的,使用相對fckeditor來說,省了類庫fckdetior.dll的引用,直接在頁面使用js!。。。。。。。但是這個時候 發現上傳功能使用不了!原來fckefitor把他以前的功能整合拆分了,ckeditor、ckfinder,兩部分,后者是上傳功能要錢的!!再在網 上找找,有破解方法,下了個ckfinder放進工程根目錄!!在頁面添加了
<script type="text/javascript">
//如果是在ASP.NET環境下用的服務器端控件<TextBox>
var editor = CKEDITOR.replace('tbContent');
CKFinder.SetupCKEditor(editor, '/ckfinder/');(這個是在ckeditor基礎上加的ckfinder)
</script>
發現還是不行,上傳出來錯誤頁面!接著費了好多周折:
ckfinder/config:
public override bool CheckAuthentication()
{
return true;
}
ckeditror/config.js加入:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.filebrowserBrowseUrl = location.hash + '../ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = location.hash + '../ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = location.hash+'../ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = location.hash + '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = location.hash + '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = location.hash + '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
// config.filebrowserWindowWidth = '800';
// config.filebrowserWindowHeight = '500';
};
帶顏色的部分是容易出錯的地方,開始我沒有放..(根目錄)
登錄后,您就出現在這里。 一直出錯后來加了..在前面表示從工程根目錄開始。錯誤解決!! 最后就是破解了:
下面簡單說一下我的破解步驟:(摘自別人)
1、使用FF瀏覽器中的firebug插件;
2、打開安裝好的文件瀏覽器,發現是調用的ckfinder.html文件;
3、在ckfinder.html中發現<td id ="iO " >這個單元格中寫入了一個iframe,src是core/pages/ckffiles.html;
4、繼續打開iframe節點在<tr id="he">和<tr id="qu">兩個標簽之間有一個<tr>沒有id,那個叫你給錢的話就在這里面了~;
5、打開 core/pages/ckffiles.html源文件,發現 <tr id="he">和<tr id="qu">之間沒有東西,說明這個<tr>是代碼生成的;
6、接下來就可以在CKfinder的js里面去找答案了,幸好以前FCKeditor還是比較熟悉,直接到ckfinder/core/js文件夾下面找;
7、這個文件夾下面兩個js一個是給IE用的,另一個是給其他瀏覽器的,這個和FCKeditor一樣;
8、打開ckfinder_gecko.js搜索"qu",很快就發現了eF=B.getElementById('qu');這句;
9、再往后面看
if ((1==(dK.indexOf(ab.bW.substr(1,1)) % 5)&&window.top[qC+'/143/141/x74/x69/157/x6E'][qF+'/163/x74'].toLowerCase().replace(s4,"")!=ab.eo.replace(s4,""))||ab.bW.substr(3,1)!=dK.substr(((dK.indexOf(ab.bW.substr(0,1))+dK.indexOf(ab.bW.substr(2,1)))*9) % (dK.length-1),1)){en.call(window,qo);};eF.appendChild(D);
這段最后的 appendChild~,差不多就在這里了;
10、前面一大堆條件,執行的就只有 en.call(window,qo);,不是它還是什么~;
11、刪除 en.call(window,qo);或者/* en.call(window,qo); */,再刷新看看果然沒了~;
12、完了再修改ckfinder_ie.js,一樣的。
新聞熱點
疑難解答