最近用到ckfinder作为文件管理集成到项目当中使用,但是发下从官网下载来的java版本的ckfinder插件,跑起项目起来发现提示信息This is the demo version of CKFinder,于是就在网上查找各种资料,有各种不同版本的解释,而且了解到不同版本对于去除左下方的提示语根本都不一样,这浪费了我一些时间,下面提供java版本ckfinder2.6官网下载去掉提示的方法如下:
1、去除页面正上方提示:
搜索ckfinder.js下查找到类似代码
<h4 class='message_content'></h4>
改为
<h4 class='message_content' style="display:none;"></h4>
2、去除左下方提示:
搜索ckfinder.js下查找到类似代码:(建议未格式化ckfinder.js前搜索r="\应该会快一些找到)
var r="\x3c\144\151\166\040\x63\x6c\x61\163\x73\075\x27\166\x69\145\x77\x20\x74\x6f\157\154\137\160\x61\156\x65\x6c\x27\x20\x73\164\x79\
154\145\x3d\x27\160\141\144\x64\x69\x6e\147\x3a\x32\160\170\073\x64\151\x73\160\x6c\141\171\072\x62\x6c\x6f\143\153\040\041\151\x6d\x70\
x6f\162\x74\141\x6e\164\073\x70\x6f\163\151\x74\151\157\x6e\x3a\x73\164\x61\x74\x69\x63\040\041\151\155\160\157\162\164\x61\156\x74\x3b\
143\x6f\x6c\157\162\x3a\142\154\x61\x63\x6b\x20\041\151\x6d\160\157\162\x74\x61\x6e\x74\073\x62\x61\143\153\x67\x72\157\x75\156\x64\x2d\
143\157\154\157\162\072\167\150\151\x74\145\040\x21\151\155\x70\x6f\x72\x74\x61\x6e\164\x3b\x27\076",
s="\x3c\x2f\144\151\166\x3e",
t="\x54\150\151\163\040\x69\163\x20\164\x68\145\040\x44\105\x4d\x4f\040\166\x65\x72\x73\x69\157\156\x20\157\146\040\103\113\x46\151\x6e\144\145\
x72\056\040\120\154\x65\141\163\145\040\166\x69\x73\x69\x74\x20\164\150\145\040\x3c\x61\x20\150\162\x65\x66\x3d\x27\150\164\x74\x70\x3a\x2f\x2f\
x63\x6b\163\157\x75\x72\x63\x65\056\143\x6f\x6d\057\143\153\146\151\x6e\144\x65\162\x27\x20\164\141\162\x67\x65\x74\x3d\047\x5f\x62\154\141\x6e\
x6b\x27\x3e\x43\x4b\106\151\156\144\x65\x72\040\x77\145\x62\040\163\151\x74\x65\x3c\x2f\x61\x3e\x20\164\157\040\x6f\x62\x74\141\x69\x6e\x20\141\
040\166\x61\154\151\144\040\x6c\151\x63\x65\156\163\x65\x2e",
u="\x43\113\x46\151\x6e\x64\145\162\x20\104\145\166\x65\x6c\157\160\145\x72\040\x4c\
x69\143\x65\156\x73\x65\074\142\x72\057\076\114\151\143\145\x6e\x73\145\144\040\164\157\072\040",
v=r+t+s,w=r+u+s;


添加红色部分,也就是设置隐藏属性,其他地方保持不变:
var r="<div style='display:none;'>\x3c\144\151\166\040\x63\x6c\x61\163\x73\075\x27\166\x69\145\x77\x20\x74\x6f\157\154\137\160\x61\156\x65\x6c\x27\x20\x73\164\x79\
154\145\x3d\x27\160\141\144\x64\x69\x6e\147\x3a\x32\160\170\073\x64\151\x73\160\x6c\141\171\072\x62\x6c\x6f\143\153\040\041\151\x6d\x70\
x6f\162\x74\141\x6e\164\073\x70\x6f\163\151\x74\151\157\x6e\x3a\x73\164\x61\x74\x69\x63\040\041\151\155\160\157\162\164\x61\156\x74\x3b\
143\x6f\x6c\157\162\x3a\142\154\x61\x63\x6b\x20\041\151\x6d\160\157\162\x74\x61\x6e\x74\073\x62\x61\143\153\x67\x72\157\x75\156\x64\x2d\
143\157\154\157\162\072\167\150\151\x74\145\040\x21\151\155\x70\x6f\x72\x74\x61\x6e\164\x3b\x27\076</div>",
s="\x3c\x2f\144\151\166\x3e",
t="\x54\150\151\163\040\x69\163\x20\164\x68\145\040\x44\105\x4d\x4f\040\166\x65\x72\x73\x69\157\156\x20\157\146\040\103\113\x46\151\x6e\144\145\
x72\056\040\120\154\x65\141\163\145\040\166\x69\x73\x69\x74\x20\164\150\145\040\x3c\x61\x20\150\162\x65\x66\x3d\x27\150\164\x74\x70\x3a\x2f\x2f\
x63\x6b\163\157\x75\x72\x63\x65\056\143\x6f\x6d\057\143\153\146\151\x6e\144\x65\162\x27\x20\164\141\162\x67\x65\x74\x3d\047\x5f\x62\154\141\x6e\
x6b\x27\x3e\x43\x4b\106\151\156\144\x65\x72\040\x77\145\x62\040\163\151\x74\x65\x3c\x2f\x61\x3e\x20\164\157\040\x6f\x62\x74\141\x69\x6e\x20\141\
040\166\x61\154\151\144\040\x6c\151\x63\x65\156\163\x65\x2e",
u="\x43\113\x46\151\x6e\x64\145\162\x20\104\145\166\x65\x6c\157\160\145\x72\040\x4c\
x69\143\x65\156\x73\x65\074\142\x72\057\076\114\151\143\145\x6e\x73\145\144\040\164\157\072\040",
v=r+t+s,w=r+u+s;

PS:java 版本ckfinder最新版本,请前往官网下载,地址:https://ckeditor.com/ckeditor-4/ckfinder/
java版本ckfinder2.6如何去掉版本提示This is the demo version of CKFinder

java版本ckfinder2.6如何去掉版本提示This is the demo version of CKFinderjava版本ckfinder2.6如何去掉版本提示This is the demo version of CKFinder
java版本ckfinder2.6如何去掉版本提示This is the demo version of CKFinder

java版本ckfinder2.6如何去掉版本提示This is the demo version of CKFinder




相关文章: