Hi, is there an easy way to force FCKeditor to switch from using <font color= face= etc. to the XHTML behavior like <span style=... ? I have searched through the forum - there are many questions like this, but probably no answers? I would be very thankful for any advices.
P.J.
P.J.
RE: font tag vs span - is there any solution?
RE: font tag vs span - is there any solution?
RE: font tag vs span - is there any solution?
<font color="#ff0000">red text<font color="#0000ff">blue text</font></font>
And, at least in Firefox font can be span if in fckconfig.js:
FCKConfig.GeckoUseSPAN = true ;
RE: font tag vs span - is there any solution?
RE: font tag vs span - is there any solution?
RE: font tag vs span - is there any solution?
There have been several replies about this, but it seems that people prefer to ignore them.
If you use IE then it can't generate span tags to apply things like colors, font sizes or families, but if your really care about XHTML then you shouldn't allow your users to mix such presentational attributes because hiding them in span tags instead of fonts is just a bad trick. You should use just classes so you are really separating markup and presentation.
And another question is as always: why are you going after XHTML? just because it's the latest? are you really complying with XHTML or do you thing that it works because it looks "fine". Read this if you haven't: http://www.hixie.ch/advocacy/xhtml