[opencms-dev] jtidy (probably) problem

Claus Priisholm cpr at codedroids.com
Mon Sep 18 10:29:31 CEST 2006


More likely to be a problem with the FCKEditor it seems.

The culprit is the "src" parameter - somewhere the "src" parameter is 
mistaken for the ditto attribute.

First time the page is saved, the control code is correct - this should 
clear JTidy (and HTMLParser for that matter). When editing the saved 
page the first time, the content passed to the javascript method 
decodeURIComponent also seems fine. And the editor will actually show 
the image so internally it still has the correct URL. But as soon as the 
page is saved again (or one choose to look at the source from within the 
editor or change the image properties via the pop up) then the image url 
is messed up and it then holds only the value of the "src" parameter 
rather than the complete value of the "src" attribute.

Again the control code holds the correct interpretation of the bad URL, 
most likely marked as an internal URL pointing some non-existing resource.


Carl Alex Friis Nielsen wrote:
> Hello,
> 
> I am working on integrating an erez server providing images to OpenCms
> content using the FCK editor.
> 
> At this point I can get an erez URL and put that into an img tag
> in the FCK editor and the image is displayed as desired in the editor
> and in the preview.
> 
> But when I save the content (or pres thye "Cleanup HTML code") the img
> tag is transformed into something useless.
> 
> The file being edited is /sites/default/demopages/index.html
> 
> The correct tag is :
> (x.y.z inserted instead of the real server address)
> 
> <img alt="" src="http://x.y.z/erez3/erez?src=Samples/Macbeth%20color%20samples/Adobe%20RGB.tif&tmp=Medium" />
> 
> The result after tidying varies but is always useless -
> the latest example is:
> 
> <img alt="" src="/opencms/opencms/demopages/Samples/Macbeth _fcksavedurl=" opencms="" demopages="" color="" adobe="" samples="" />
> 
> How can I tell the editor to leave the src attribute unchanged ?
> 
> Or turn the stupid tidying off entirely.
> 
> And am I the only one who thinks this crappy behaviour should be considered
> an egregarious bug.
> 
> cheers,
> 
> Carl
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms



More information about the opencms-dev mailing list