I have seen a few other posts about this but with no reply.
I'm using FCKeditor to edit email templates and sending emails with RGB() instead of the HEX value breaks the format and layout in some email clients. Is there a reason why FCKeditor replaces all HEX values with RGB? Is there a way to turn this off and just keep HEX values?
I can't seem to find anything after some searching.
Thanks for you help
I'm using FCKeditor to edit email templates and sending emails with RGB() instead of the HEX value breaks the format and layout in some email clients. Is there a reason why FCKeditor replaces all HEX values with RGB? Is there a way to turn this off and just keep HEX values?
I can't seem to find anything after some searching.
Thanks for you help
Re: FCKeditor is converting HEX Colours to RGB()
Your best bet is to take the edited HTML and do a search-and-replace for all 'rgb\(\d+,\d+,\d+\)' instances. With JavaScript (or PHP, or Perl), you can use regular expression replacements and functions to do the job in about 15 lines, well-spaced.
Re: FCKeditor is converting HEX Colours to RGB()
I see this in fckconfig.js, I wonder if it can be adjusted to insert HEX instead of RGB?:
FCKConfig.CoreStyles =
{
...
'Color' :
{
Element : 'font',
Styles : { 'color' : '#("Color","color")' },
Overrides : [ { Element : 'font', Attributes : { 'color' : '#("Color","color")' } } ]
},
...
}
Re: FCKeditor is converting HEX Colours to RGB()
Re: FCKeditor is converting HEX Colours to RGB()
Re: FCKeditor is converting HEX Colours to RGB()
Hi, I'm also facing same problem which wgrand mentioned. Is any one know how to convert RGB color code to Hex value in FCKeditor.
Regards,
Re: FCKeditor is converting HEX Colours to RGB()
Re: FCKeditor is converting HEX Colours to RGB()