[opencms-dev] OpenCms 6.0.x editor, relative links, and XML

Tosi, Joel JTosi at cme.com
Fri Feb 17 16:03:06 CET 2006


Markus,
	What version of OpenCms and IE are you running?  I'm on OpenCms
6.0.2 and IE 6.0 and even after this change and restarting the
application, I still have the same issue.

Thanks,
Joel

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Markus Mahnig
Sent: Wednesday, February 15, 2006 2:25 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] OpenCms 6.0.x editor, relative links, and XML


Hi,

i think the problematic IE FIX ist here
opencms\resources\editors\htmlarea\htmlarea.js Line 2047

// OPENCMS-FIX 10/22/04 (AK):
// HtmlArea strips hostname and port in IE, but OpenCms requires this
info
// in order to work with multiple sites.
// if (HTMLArea.is_ie && (name == "href" || name == "src")) {
// value = editor.stripBaseURL(value);
// }

enabling this, the links stay as entered =)
since we _need_ relative links, this looks like the solution for us....

Regards,
Markus




DI Gunther Schmidl wrote: 
> 
> Hi all,
> 
> I've run into the exact same problem that Philipp mentions in his post
> from
> Friday: the OpenCms structured content WYSIWYG editor replaces
relative
> links with absolute links when re-opening any given OpenCms content
file.
> This only happens on Internet Explorer.
> 
> Steps to reproduce:
> 
> - create a new XML Content of type Article (although it happens in any
> other
> structured content)
> - edit the article, switch to source mode, and type something like
test 
> - save and close the article
> 
> At this point, if you edit the file's control code, it still looks
> correct:
> 
>     < Text name="Text0">
>       < links>
>         < link name="link0" type="A" internal="false">
>           < target> < ![CDATA[test]]> < /target>
>         < /link>
>       < /links>
>       < content> < ![CDATA[ test ]]> < /content>
>     < /Text>
> 
> Upon re-opening the file in the Structured Content editor and
switching to
> source code mode, however, the source now looks as follows:
> 
>      test  
> 
> For a second before the editor switches to WYSIWYG mode, you can see
the
> old
> link correctly -- the replacement must take place there. As mentioned,
> this
> only happens on Internet Explorer, not on Firefox. On saving and
exiting,
> the control code now looks wrong, too:
> 
>     < Text name="Text0">
>       < links>
>         < link name="link0" type="A" internal="false">
>  
> < target> <
> ![CDATA[http://127.0.0.1:8787/opencms/opencms/system/workplace/edit
> ors/xmlcontent/test]]> < /target>
>         < /link>
>       < /links>
>       < content> < ![CDATA[ test  ]]> < /content>
>     < /Text>
> 
> Anyone have an idea what the problem is? This seems like a bug to me.
> 
> Thanks,
> 
> -- Gunther
> 
> 
> _______________________________________________
> 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
> 
>
--
View this message in context:
http://www.nabble.com/OpenCms-6.0.x-editor%2C-relative-links%2C-and-XML-
t1112966.html#a2946581
Sent from the OpenCMS - Dev forum at Nabble.com.


_______________________________________________
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



More information about the opencms-dev mailing list