Very new to FCKeditor and I know this may seem like a really obvious question to some, but using the basic sample editor code with some very minor tweaks, the generated code appears to be HTML (has various deprecated features, such as font tags etc...)
How do I get it to generate XHTML!? I've tried to find out on the documentation website, but there doesn't appear to be anything that describes how to switch it over. Help!
How do I get it to generate XHTML!? I've tried to find out on the documentation website, but there doesn't appear to be anything that describes how to switch it over. Help!
RE: How do I generate XHTML?
If you are using it plain, or with some other language wrapper, set FCKConfig["EnableXHTML"] = "true" in your config file.
RE: How do I generate XHTML?
For example, this is the HTML generated on the FCKEditor page...
<div>
<input type="hidden" id="sAT_TEXT" name="sAT_TEXT" value="<p>this is a <strong>test</strong> of the <em>xhtml</em> capability of <font face="Comic Sans MS">this </font>code</p>" style="display:none" />
<input type="hidden" id="sAT_TEXT___Config" value="EnableSourceXHTML=true&EnableXHTML=true" style="display:none" />
<iframe id="sAT_TEXT___Frame" src="/fckeditor/editor/fckeditor.html?InstanceName=sAT_TEXT&Toolbar=GHMToolbar" width="90%" height="320" frameborder="0" scrolling="no"></iframe>
</div>
You'll noice that by adding the EnableXHTML it appear to have added them to the hidden input field above, however it makes no difference to the way it saves the content - in fact you can see the 'font' tag in the sAT_TEXT hidden field above?