href automatically modified in HTML code

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
zieren

href automatically modified in HTML code

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: href automatically modified in HTML code

Post by Ted »

By plain, do you mean with the WYSIWYG turned off?  And if not, which WYSIWYG/version of CMSMS are you using?

Thanks
zieren

Re: href automatically modified in HTML code

Post 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
Locked

Return to “CMSMS Core”