|
zblog2.1程序功能很强大,但是一些细节还不够符合每个人的要求,比如如果需要复制一些网络文章到博客分享。复制的文章往往带有暗连,一个个去除很麻烦,需要批量去除。而发现新版的zblog去掉了ueditor的取消超链接功能,本文将介绍怎么加上去。
方法很简单,只需修改一个代码:
找到:\zb_system\ADMIN\ueditor\editor_config.asp 文件
在文件42行里找到:
oDic.Add "toolbars","[ [ 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript','forecolor', 'backcolor', '|', 'insertorderedlist', 'insertunorderedlist','indent', 'justifyleft', 'justifycenter', 'justifyright','|', 'removeformat','formatmatch','autotypeset', 'searchreplace'],[ 'fontfamily', 'fontsize','|', 'emotion','link','music','insertimage',,'insertvideo', 'attachment','spechars','|', 'map', 'gmap','|', "&IIf(ZC_SYNTAXHIGHLIGHTER_ENABLE,"'highlightcode',","")&"'blockquote', 'pasteplain','wordimage','inserttable', '|' ,'scrawl','horizontal','fullscreen']]"
在'link',后面加上'unlink',
即修改为:
oDic.Add "toolbars","[ [ 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript','forecolor', 'backcolor', '|', 'insertorderedlist', 'insertunorderedlist','indent', 'justifyleft', 'justifycenter', 'justifyright','|', 'removeformat','formatmatch','autotypeset', 'searchreplace'],[ 'fontfamily', 'fontsize','|', 'emotion','link','unlink','music','insertimage',,'insertvideo', 'attachment','spechars','|', 'map', 'gmap','|', "&IIf(ZC_SYNTAXHIGHLIGHTER_ENABLE,"'highlightcode',","")&"'blockquote', 'pasteplain','wordimage','inserttable', '|' ,'scrawl','horizontal','fullscreen']]" 非常简单的增加个代码就有了,在看后台编辑器。有一个批量去除超链接的按钮,只需全选文章,点击按钮,就可以完全去除全文的链接了!
|
|