Page 1 of 1
editor changes my html code!
Posted: Thu Nov 16, 2006 5:01 am
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!
Re: editor changes my html code!
Posted: Thu Nov 16, 2006 7:30 am
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 ...
Re: editor changes my html code!
Posted: Thu Nov 16, 2006 7:56 am
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!
Re: editor changes my html code!
Posted: Thu Nov 16, 2006 8:12 am
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

?
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.
Re: editor changes my html code!
Posted: Thu Nov 16, 2006 12:28 pm
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