开发者

How to customize FCKEditor to use FONT instead of SPAN style?

开发者 https://www.devze.com 2023-02-16 11:29 出处:网络
I\'m trying to use a ColdFusion<cftextarea richedit=\"true\">tag that uses FCKEditor 2.x, to feed into a textfield in <cfreportparam> which only understands the <FONT> tag, not the &

I'm trying to use a ColdFusion<cftextarea richedit="true"> tag that uses FCKEditor 2.x, to feed into a textfield in <cfreportparam> which only understands the <FONT> tag, not the <span style=""> that FCKEditor 2.x generates.

How can I customize fckconfig.js to have FCKEditor 2.x generates <FONT face="" size="" color="">开发者_高级运维; ??

This link should be related: http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/CoreStyles

Thank you


Found it! Append the following code to 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' ;

source: http://drupal.fckeditor.net/filters

0

精彩评论

暂无评论...
验证码 换一张
取 消