Page 1 of 1

href automatically modified in HTML code

Posted: Thu Oct 06, 2005 7:23 am
by zieren
Hi all,

I'm having some trouble with getting the plain HTML editor to leave my href's unchanged. When I enter something like

Code: Select all

<area shape="poly" coords="226,180,..." href="index.php?page=test" />
then it is always changed to

Code: Select all

<area shape="poly" coords="226,180,..." href="http://www.mysite.comindex.php?page=test" />
My current workaround is to have two user-defined tags {lt} and {gt} that just echo "":

Code: Select all

{lt}area shape="poly" coords="226,180,..." href="index.php?page=test" /{gt}
This works, but sure there must be a better way! Can anyone enlighten me?

Greetings,
Jörg

Re: href automatically modified in HTML code

Posted: Thu Oct 06, 2005 9:52 am
by Ted
By plain, do you mean with the WYSIWYG turned off?  And if not, which WYSIWYG/version of CMSMS are you using?

Thanks

Re: href automatically modified in HTML code

Posted: Thu Oct 06, 2005 11:23 am
by zieren
By "plain" I meant pressing the "HTML" button in TinyMCE. And I'm using 0.10.2 and the TinyMCE version that came with it. Sorry for being unclear...

When I disable the TinyMCE extension and use the plain editor the problem does not occur. So it seems that TinyMCE is doing its own modifications to the manually entered code. Would be nice if this could be turned off somewhere; in the case of href I don't really see the use of forcing it to start with "http://" (only then is href left unchanged, it seems, but that's more of a feeling rather than an investigation result).

Also, TinyMCE is not "Tag-aware": My first shot was to create a user-defined tag that simply echoed its argument and go like {test text=""}, but the href was still modified. So the modifications made by TinyMCE affect the arguments of user-defined tags as well, which might be problematic in some cases.

Greetings,
Jörg