修改前:
修改后:
教程开始:
1、进入网站根目录——template——当前使用模板——forum——post_editor_body文件,分别删除你不需要的功能即可。
对应删除代码:
2、进入网站更目录——template——当前使用模板——common——editor.css
将如下代码- #e_bold { background-position: 0 0; }
- #e_italic { background-position: -20px 0; }
- #e_underline { background-position: -40px 0; }
- #e_forecolor { background-position: -60px 0; }
- #e_url { background-position: -40px -20px; }
- #e_unlink { background-position: -60px -20px; }
- #e_justifyleft { background-position: -80px -20px; }
- #e_justifycenter { background-position: -240px -40px; }
- #e_justifyright { background-position: -260px -40px; }
- #e_tbl { background-position: -160px -20px; }
- #e_removeformat { background-position: -60px -40px; }
- #e_hide { background-position: -120px -40px; }
- #e_downremoteimg { background-position: -80px -60px; }
- .edt .b2r a { width: 20px; height: 20px; text-indent: -9999px; }
- .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; }
- #e_fontsize { width: 45px; }
- .b2r #e_quote { background-position: -140px -20px; }
- .edt .bar a:hover, .edt .bar a.hover { border-color: #09C; background-color: {WRAPBG}; text-decoration: none; }
复制代码 修改为- #e_bold {background:transparent url({STATICURL}/image/editor/b.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_italic {background:transparent url({STATICURL}/image/editor/i.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_underline {background:transparent url({STATICURL}/image/editor/u.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_forecolor {background:transparent url({STATICURL}/image/editor/ys.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_url {background:transparent url({STATICURL}/image/editor/lian.png) no-repeat 5px 0;overflow:hidden;background-position:6px 0px!important;}
- #e_unlink {background:transparent url({STATICURL}/image/editor/qu.png) no-repeat 5px 0;overflow:hidden;background-position:6px 0px!important;}
- #e_justifyleft {background:transparent url({STATICURL}/image/editor/zuo.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_justifycenter {background:transparent url({STATICURL}/image/editor/zhong.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_justifyright {background:transparent url({STATICURL}/image/editor/you.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_tbl {background:transparent url({STATICURL}/image/editor/biao.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_removeformat {background:transparent url({STATICURL}/image/editor/wen.png) no-repeat 5px 0;overflow:hidden;background-position:initial!important;}
- #e_hide {background:transparent url({STATICURL}/image/editor/cang.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_undo {background:transparent url({STATICURL}/image/editor/che.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_redo {background:transparent url({STATICURL}/image/editor/chong.png) no-repeat 5px 0;overflow:hidden;background-position:5px 0px!important;}
- #e_downremoteimg {background:transparent url({STATICURL}/image/editor/xia.png) no-repeat 5px 0;overflow:hidden;background-position:initial!important;}
- #e_fontsize {width:45px;!important;}
- .edt .b2r a {padding-top:27px!important;width:35px!important;height:15px;text-align:center;text-indent:initial!important;}
- .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;}
- .b2r #e_quote {background-position:-163px -80px;}
- .edt .bar a:hover, .edt .bar a.hover {border-color:#09C;background-color:{WRAPBG}!important;text-decoration:none;}
复制代码 3、将如下图标上传至网站根目录——static——image——editor文件夹中
4、进入网站后台,更新缓存即可。
【注:修改前请先备份】 |