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

Chugani, Ravi ravi.chugani at blackrock.com
Fri Feb 17 16:13:12 CET 2006


Restart Tomcat.

Ravi Chugani
BlackRock Solutions
(617) 357-1522
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tosi, Joel
Sent: Friday, February 17, 2006 10:03 AM
To: Markus Mahnig; The OpenCms mailing list
Subject: RE: [opencms-dev] OpenCms 6.0.x editor, relative links, and XML

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

_______________________________________________
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


THE INFORMATION CONTAINED IN THIS MESSAGE AND ANY ATTACHMENT MAY BE PRIVILEGED, CONFIDENTIAL, PROPRIETARY OR OTHERWISE PROTECTED FROM DISCLOSURE. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this message and any attachment is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and permanently delete it from your computer and destroy any printout thereof.



More information about the opencms-dev mailing list