FCKEditor , browser, and colors

Hello,

The quick descritpion symptom i have is sometimes RT is not displaying the
colors edited in the FCKEditor.
RT version 3.8.8, and FCKEditor version 2.6.4

My analysis is :

When i edit my text with IE8, FCK Editor generates the following code :
ROUGE

ROUGE GRAS

VERT

VERT ITALIQUE

When i edit my text with Firefox4, FCK Editor generates the following code
:
ROUGE

ROUGE GRAS

VERT

VERT ITALIQUE

the difference is on the color coding hexa/vs/rgb

The Firefox code is displayed in color on RT web interface, but the code
from IE is displayed all in black colour.
Now, when i forward the ticket to my LotusNotes messaging, BOTH codes are
displayed in colours.
So i beleive there is something to modify on the RT Side.

May i upgrade the FCKEditor to a newer version ? if yes, does a RT patch
exist ?
or is it more related to RT itself ?

Rapha�l
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caract�re priv�. S’ils ne vous sont
pas destin�s, nous vous signalons qu’il est strictement interdit de les
divulguer, de les reproduire ou d’en utiliser de quelque mani�re que ce
soit le contenu. Si ce message vous a �t� transmis par erreur, merci d’en
informer l’exp�diteur et de supprimer imm�diatement de votre syst�me
informatique ce courriel ainsi que tous les documents qui y sont attach�s."

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."

The Firefox code is displayed in color on RT web interface, but the code
from IE is displayed all in black colour.
Now, when i forward the ticket to my LotusNotes messaging, BOTH codes
are displayed in colours.
So i beleive there is something to modify on the RT Side.

May i upgrade the FCKEditor to a newer version ? if yes, does a RT patch
exist ?
or is it more related to RT itself ?

This is a result of RT’s HTML scrubbing for security purposes. In 3.8,
the CSS is unnecessarily restrictive to allowing only colors using rgb()
rather than #hex. It’s fixed in 4.0. If you really wanted you could
backport the changes to ScrubHTML from 4.0, but that code has moved
around so you’d have to adjust it appropriately (and know what you were
doing).

Thomas

thank you thomas for this quick effective answer.
Still i’m going to try and find why FCK generates different htlm code with
different browsers, there should be something in its config, at least i
hope so.

Raphael

Message-ID: 4D948B00.9050201@bestpractical.com
Content-Type: text/plain; charset=UTF-8On 31 Mar 2011 09:59, Rapha?l MOUNEYRES wrote:

The Firefox code is displayed in color on RT web interface, but the code
from IE is displayed all in black colour.
Now, when i forward the ticket to my LotusNotes messaging, BOTH codes
are displayed in colours.
So i beleive there is something to modify on the RT Side.

May i upgrade the FCKEditor to a newer version ? if yes, does a RT patch
exist ?
or is it more related to RT itself ?

This is a result of RT’s HTML scrubbing for security purposes. In 3.8,
the CSS is unnecessarily restrictive to allowing only colors using rgb()
rather than #hex. It’s fixed in 4.0. If you really wanted you could
backport the changes to ScrubHTML from 4.0, but that code has moved
around so you’d have to adjust it appropriately (and know what you were
doing).

Thomas

Rapha�l MOUNEYRES
Ing�nieur Moyens Tests
Avenue Paul Gellos 64990 Mouguerre
Phone: +33 (0)5 59 58 41 51
Email: raphael.mouneyres@sagemcom.com

" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caract�re priv�. S’ils ne vous sont
pas destin�s, nous vous signalons qu’il est strictement interdit de les
divulguer, de les reproduire ou d’en utiliser de quelque mani�re que ce
soit le contenu. Si ce message vous a �t� transmis par erreur, merci d’en
informer l’exp�diteur et de supprimer imm�diatement de votre syst�me
informatique ce courriel ainsi que tous les documents qui y sont attach�s."

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."