i build a drupal website and use the fckeditor. I tested my website with the html validator from http://www.w3c.org. There are 2 Errors i get because of the FCKEditor. When i insert a image on the right side of the text the fckeditor post the following code:
<img width="800" height="600" align="right" src="/image.jpg" alt="" />
correct is the following:
<img width="800" height="600" style="float:right;" src="/image.jpg" alt="here must be a text" />
Is it possible to check if an "alt"-text is written, like in the tinymce editor and to change the way the editor set the text-float around a picture?
p.s. there is another nice feature in the tinymce editor, it warns if i leave the site without saving.
Re: FCKEditor not XHTML Strict valid | align is not allowed.
It can be done You must replace align attribute with class attribute and maybe write some new classes to youre css file... I use fckeditor + Drupal and I looked the same solution. Now I got working example. http://kutotootmine.ee Next problem will come up with tables This I havent done yet but it will work the same way I guess..
21.May 2009 Table problem is solved long time ago for now ... If you need same solution you can let me a note http://web3.ee/contact