editor changes my 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
ruess

editor changes my html code!

Post by ruess »

Hi there,

I'm trying to get a form to work and one of the esential bits of code that needs to exist is:

   

I put that in FCKEditorX in source mode, change it back to WYSWYG mode and voila, without fail it automatically changes my code to:

    , adding a / at the end and making the code useless.

Is there a way to fix this or prevent this from happening?

Thanks!
cyberman

Re: editor changes my html code!

Post by cyberman »

CMSms is a xhtml CMS so this source change is a must have !

You can disable it in admin panel (menu extensions > FCKeditorX, tab Settings, "Enable xhtml formatting").

But in future the source written by FCKEd wount be xhtml valid per default ...
ruess

Re: editor changes my html code!

Post by ruess »

so is it better to leave as is and just shut off my editor when i need to deal with that form? Will the site be more compliant with current standards? I guess what I'm asking is why is it important that the site is xhmtl?

Thanks!
cyberman

Re: editor changes my html code!

Post by cyberman »

This

Code: Select all

    <input type="hidden" name="mailmyform_username" value="username">
is not xhtml valid.

This

Code: Select all

    <input type="hidden" name="mailmyform_username" value="username" />
is xhtml valid  :).

You can check it here

http://validator.w3.org/
ruess wrote: so is it better to leave as is and just shut off my editor when i need to deal with that form?
Yes, if this could be a solution for you ...
Will the site be more compliant with current standards?
Think so ...
why is it important that the site is xhmtl?
Why are you stopping your car if traffic light is showing red  ;D ?

Xhtml is one of THE current world wide standards for websites. Sometimes there could be problems with layout if you mix html and xhtml. Also some browsers think different about it. And debugging would be a lot easier.
Last edited by cyberman on Thu Nov 16, 2006 8:14 am, edited 1 time in total.
Pierre M.

Re: editor changes my html code!

Post by Pierre M. »

Lol
ruess wrote: Is there a way to fix this or prevent this from happening?
"[My web site is working]. Is there a way to fix this or prevent this from happening ?"
8^D
PM
Locked

Return to “CMSMS Core”