破解CKfinder討厭的訊息
最近在用asp.net編寫後台時,需要用到FCKeditor,沒想到連到官網發現已經大改版了,就下載新版的CKeditor與Ckfinder來玩玩,還挺不賴的,不過CKfinder會有個討厭的訊息"This is the demo version of CKFinder. Click here to visit our web site",原來CKfinder要付費的,後來研究一下,這應該是JS的寫法,跟網頁上DIV的開關一定有關係,果然找到破解的答案了,如下
if ( (1==(dK.indexOf(ab.bW.substr(1,1)) % 5)&&window.top[qC+'\143\141\x74\x69\157\x6E'][qF+'\163\x74'].toLowerCase()!=ab.eo) || 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);*/ };
把上面紅色的字註解掉就好了~而上面這段js存在於core資料夾下的js資料夾(ckfinder/core/js)下有兩個檔案,分別是ckfinder_gecko.js與ckfinder_ie.js,找出來把上面那段紅字註解掉就不會再出現討厭的訊息了~