• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > CMS教程 > Zblog教程 >

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

来源: www.dedecms8.com 编辑:织梦吧 时间:2013-05-18点击:

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']]"
非常简单的增加个代码就有了,在看后台编辑器。有一个批量去除超链接的按钮,只需全选文章,点击按钮,就可以完全去除全文的链接了。

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ