6z6z软件下载中心,为您提供安全的软件下载!

首页 软件下载 端游下载 安卓专区 苹果专区 新闻资讯 游戏攻略 软件教程 小程序 专题库

当前位置:首页 > 软件教程 > 电脑教程

Zblog后台ueditor编辑器增加去除全部外链的办法

我要评论

zblog2.1程序功能很强大,一些细节还不够符合每个人的要求,比如本人一般需要复制一些网络文章到博客分享。复制的文章往往带有暗连,一个个去除很麻烦,需要批量去除。而发现新版的zblog去掉了ueditor的取消超链接功能,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']]"

非常简单的增加个代码就有了,在看后台编辑器。有一个批量去除超链接的按钮,只需全选文章,点击按钮,就可以完全去除全文的链接了。

查看更多资讯请关注6z6z下载站

快速搜索
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0-9