Hello,
i have problems getting valide XHTML 1.0 strict code with FCKeditor 2.3
I have found on google:
but the Vars are not in the standard fckconfig.js in v2.3
i have added this lines - but no effect.
Any solutions ?
Best regards,
Daniel Stobbe.
i have problems getting valide XHTML 1.0 strict code with FCKeditor 2.3
Error: Attribute `align` not allowed within div Tag.
Error Position:
<div align="center"><img width="380" height="380" src="/pos-data/page_img/Im
Error: Attribute `width` not allowed within hr Tag.
Error Position:
<hr width="100%" size="2" align="center" />
I have found on google:
FCKConfig.EnableXHTML = true ;
FCKConfig.EnableSourceXHTML = true ;
but the Vars are not in the standard fckconfig.js in v2.3
i have added this lines - but no effect.
Any solutions ?
Best regards,
Daniel Stobbe.
RE: How can i get XHTML 1.0 strict with FCK v
However from what I have seen, the XHTML mode of FCK is not really XHTML. It could better be described as XML. It merely makes sure tags are closed and that the code is well formed XML, not that all of the tags and attributes are XHTML compliant.
We run our code through HTMLTidy on the server side after it comes out of the editor.
RE: How can i get XHTML 1.0 strict with FCK v
hello,
thanks for the info.
tidy is not the solution for me.
i have tested tidy, but he produces not valid "xhtml 1.0 strict" code.
"<hr width..." is not valide
>tidy -c --doctype strict --output-xhtml true test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 14 February 2006), see http://www.w3.org" />
<title></title>
<style type="text/css">
/*<![CDATA[*/
div.c1 {text-align: center}
/*]]>*/
</style>
</head>
<body>
<div class="c1">center</div>
<hr width="20%" />
</body>
</html>
i will have valid FCK output.
where can i configure - that always is style="...." used instead of width= align= border= ....
is a easy mapping-solution aviable in FCK without installing of tidy ?
best regards,
Daniel Stobbe.