【原创】手把手教你删除修改DZ论坛发帖时编辑器的一些无用或多余功能-Discuz教程下载

【原创】手把手教你删除修改DZ论坛发帖时编辑器的一些无用或多余功能

开通本站Svip会员,全站资源免费下
修改前:
1.png
修改后:
QQ截图20220617135102.png

教程开始:
1、进入网站根目录——template——当前使用模板——forum——post_editor_body文件,分别删除你不需要的功能即可。
对应删除代码:
亲爱的游客您好,请 登录 后进行 回复

2、进入网站更目录——template——当前使用模板——common——editor.CSS
将如下代码
  1. #e_bold                        { background-position: 0 0; }
  2. #e_italic                { background-position: -20px 0; }
  3. #e_underline                { background-position: -40px 0; }
  4. #e_forecolor                { background-position: -60px 0; }
  5. #e_url                        { background-position: -40px -20px; }
  6. #e_unlink                { background-position: -60px -20px; }
  7. #e_justifyleft                { background-position: -80px -20px; }
  8. #e_justifycenter        { background-position: -240px -40px; }
  9. #e_justifyright                { background-position: -260px -40px; }
  10. #e_tbl                        { background-position: -160px -20px; }
  11. #e_removeformat                { background-position: -60px -40px; }
  12. #e_hide                        { background-position: -120px -40px; }
  13. #e_downremoteimg        { background-position: -80px -60px; }
  14. .edt .b2r a                { width: 20px; height: 20px; text-indent: -9999px; }
  15. .edt .b2r a.dp                { margin-right: 1px; padding-left: 2px; width: 78px; height: 20px; text-indent: 0; border-color: {INPUTBORDERDARKCOLOR} {INPUTBORDER} {INPUTBORDER} {INPUTBORDERDARKCOLOR}; background: #FFF url({STATICURL}image/common/newarow.gif) no-repeat 100% 0; }
  16. #e_fontsize                { width: 45px; }
  17. .b2r #e_quote                 { background-position: -140px -20px; }
  18. .edt .bar a:hover, .edt .bar a.hover { border-color: #09C; background-color: {WRAPBG}; text-decoration: none; }
复制代码
修改为
  1. #e_bold {background:transparent url({STATICURL}/image/editor/b.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  2. #e_italic {background:transparent url({STATICURL}/image/editor/i.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  3. #e_underline {background:transparent url({STATICURL}/image/editor/u.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  4. #e_forecolor {background:transparent url({STATICURL}/image/editor/ys.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  5. #e_url {background:transparent url({STATICURL}/image/editor/lian.png) no-repeat 5px 0;overflow:hidden;background-position:6px 0px!important;}
  6. #e_unlink {background:transparent url({STATICURL}/image/editor/qu.png) no-repeat 5px 0;overflow:hidden;background-position:6px 0px!important;}
  7. #e_justifyleft {background:transparent url({STATICURL}/image/editor/zuo.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  8. #e_justifycenter {background:transparent url({STATICURL}/image/editor/zhong.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  9. #e_justifyright {background:transparent url({STATICURL}/image/editor/you.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  10. #e_tbl {background:transparent url({STATICURL}/image/editor/biao.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  11. #e_removeformat {background:transparent url({STATICURL}/image/editor/wen.png) no-repeat 5px 0;overflow:hidden;background-position:initial!important;}
  12. #e_hide {background:transparent url({STATICURL}/image/editor/cang.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  13. #e_undo {background:transparent url({STATICURL}/image/editor/che.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  14. #e_redo {background:transparent url({STATICURL}/image/editor/chong.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
  15. #e_downremoteimg {background:transparent url({STATICURL}/image/editor/xia.png) no-repeat 5px 0;overflow:hidden;background-position:initial!important;}
  16. #e_fontsize {width:45px;!important;}
  17. .edt .b2r a {padding-top:27px!important;width:35px!important;height:15px;text-align:center;text-indent:initial!important;}
  18. .edt .b2r a.dp {margin-right:1px;padding-left:2px;width:78px!important;padding-top:0px!important;height:20px;text-align:left!important;text-indent:0!important;border-color:{INPUTBORDERDARKCOLOR} {INPUTBORDER} {INPUTBORDER} {INPUTBORDERDARKCOLOR};background:#FFF url({STATICURL}image/common/newarow.gif) no-repeat 100% 0;}
  19. .b2r #e_quote  {background-position:-163px -80px;}
  20. .edt .bar a:hover, .edt .bar a.hover {border-color:#09C;background-color:{WRAPBG}!important;text-decoration:none;}
复制代码
3、将如下图标上传至网站根目录——static——image——editor文件夹中
亲爱的游客您好,请 登录 后进行 回复

4、进入网站后台,更新缓存即可。

【注:修改前请先备份】
2.png

全部评论 1

开通本站Svip会员,全站资源免费下
正需要,学习一下!
您需要登录后才可以回帖 立即登录
登录
0
1
0
返回顶部