[opencms-dev] OpenCms 6.0.x editor, relative links, and XML
Markus Mahnig
markus.mahnig at sonydadc.com
Wed Feb 15 09:25:10 CET 2006
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.
More information about the opencms-dev
mailing list