0

我正在尝试使用一个<cftextarea richedit="true"> 使用 FCKEditor 2.x 的 ColdFusion 标签来输入一个<cfreportparam>只理解<FONT>标签的文本字段,而不是<span style="">FCKEditor 2.x 生成的标签。

如何自定义fckconfig.js让 FCKEditor 2.x 生成<FONT face="" size="" color="">

这个链接应该是相关的: http: //docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/CoreStyles

谢谢

4

1 回答 1

4

找到了!将以下代码附加到fckconfig.js

FCKConfig.CoreStyles['FontFace'] = 
{ 
    Element     : 'font', 
    Attributes : { 'face' : '#("Font")' }
};
FCKConfig.CoreStyles['Size'] = 
{ 
    Element     : 'font', 
    Attributes : { 'size' : '#("Size","fontSize")' }
};
FCKConfig.CoreStyles['Color'] = 
{ 
    Element     : 'font', 
    Attributes : { 'color' : '#("Color","color")' }
};
FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;

来源:http ://drupal.fckeditor.net/filters

于 2011-03-11T14:27:55.590 回答