dede编辑器Fckeditor“引用"样式的修改
时间:2019-11-14 11:56:10 来源:未知 作者:站长技术网 点击:次
关于Fckeditor,大家并不陌生,多个互联网软件中都在使用它,它是一款非常强大的编辑器,近年来被站长使用火热的Dedecms的默认编辑器也是Fckeditor,关于修改和增加Fckeditor的功能问题,笔者已经发过很多相关文章,如:给dedecms的fckeditor增加可运行代码功能。今天笔者要说的是如何修改“引用”的显示样式,知道这一个功能如何修改,其它的您也就明白了。 1
var quoteString = "<table style= 'border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted' cellspacing=0 cellpadding=6 width= '95%' align=center border=0>
2
";
3
quoteString += "< tr ><td style= 'word-wrap: break-word' bgcolor= '#fdfddf' >
4
<font color= '#FF0000' > </font><br>
5
";
6
quoteString += "</td></ tr ></table>
7
";
三。(2)将以下代码改成你想的样式(第四步有本人推荐的样式) 1
var quoteString = "<table style= 'border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted' cellspacing=0 cellpadding=6 width= '95%' align=center border=0>
2
";
3
quoteString += "< tr ><td style= 'word-wrap: break-word' bgcolor= '#fdfddf' >
4
<font color= '#FF0000' >以下为引用的内容:</font><br>
5
";
6
quoteString += "</td></ tr ></table>
7
";
四。(DIV+CSS,其中的颜色,自己修改就可以了)
1
var quoteString = "
2
";
3
quoteString += "<div style= 'color:#636563;background-color:#f4efd4;font-size:12px;padding:10px;margin:0;border:#cccccc 1px dotted;' >
4
<font color= '#636563' > </font>
5
";
6
quoteString += "</div>
7
";
五。修改完毕,将修改的文件上传至网站空间覆盖原文件即可。如果打开编辑器插入的样式没有改变,清除IE缓存,再刷新就解决了。 |