I've searched online, throughout these forums, and through the configuration settings for FCKEditor and have yet to find any method of using span tags with inline styles rather than font tags. Because font tags are officially deprecated by the W3C and because web developers should be using CSS for their styles now are there any plans to remove the FONT tags from FCKEditor and only use SPANs with styles?
My main issue is that when I setup CMS sites for clients using CSS styles then they go in and use the editor to style text it screws everything up because its using font tags. I've seen a lot of other editors (that I don't like nearly as much as FCKEditor, but they use spans and style tags which is the one thing I like about them over FCKEditor)
My main issue is that when I setup CMS sites for clients using CSS styles then they go in and use the editor to style text it screws everything up because its using font tags. I've seen a lot of other editors (that I don't like nearly as much as FCKEditor, but they use spans and style tags which is the one thing I like about them over FCKEditor)
Re: How to not use FONT Tags
am also interested in this - can FCK write in CSS styles instead of <font> and other depreciated tags?
Thanks!
Re: How to not use FONT Tags
There's a good tutorial on configuring the styles list at http://wiki.fckeditor.net/Developer%27s ... ion/Styles
In brief, you customise the fckstyles.xml file, or create a styles file of your own which you configure the editor to point to.
A style lists the tag that it places around your selection (behaves differently for 'objects' - i.e. images, tables etc...), and any attributes that it will give it. Attaching a class to a span is done like this:
Create all your styles like this, and then remove the font drop down and you're done. Best thing is to create a custom toolbarset with just the toolbar items on it that you want.
Re: How to not use FONT Tags
I agree that this is something that FCKeditor needs to address. The homepage states that FCKeditor outputs XHTML 1.0. While the font tag is valid (but deprecated!) in the XHTML transitional doctype, it's not valid at all in the strict doctype. I'd like to see FCKEditor transition to outputing XHTML strict code.