[opencms-dev] FCKEditor - Image properties - style - strange behavior
pmarchwiak
pmarchwiak at gmail.com
Wed Jan 30 00:33:42 CET 2008
pmarchwiak wrote:
>
> I am experiencing some strange behavior when trying to set a style on an
> image using the FCKEditor image properties dialog. Under the advanced tab
> I am setting the style to "MARGIN: 0px 50px 50px 0px" (without the
> quotes). The margin is added in the XML content editor HTML area and I can
> verify this by clicking the "Source" button. When I save, the style code
> that was added is deleted but other changes get saved. What makes this
> really strange is that I only see this behavior in my production
> environment but I cannot reproduce it in my dev environment. I am using
> OpenCms 6.2.3. Does anyone have any ideas on how to resolve this? Thanks.
>
>
I have investigated this further and it seems that a call to
org.w3c.tidy.Tidy's parse method in org.opencms.util.CmsHtmlConvertor is the
culprit. It is removing the style attribute of my image when I save. Does
anyone know of a workaround? Thanks.
--
View this message in context: http://www.nabble.com/FCKEditor---Image-properties---style---strange-behavior-tp13982317p15172152.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list